CoventBridge Group interview question

interview is only based on sql