Pergunta de entrevista da empresa Office Practicum

Write an SQL query that solves X problem.