Pergunta de entrevista da empresa Buck

Basic SQL some queries based on group by and joins