Pregunta de entrevista de Anonymous

Complete the given sql Query and how you approached it ?