Pregunta de entrevista de Revature

How would you write an SQL query for x?