Domanda di colloquio di Revature

How would you write an SQL query for x?