Domanda di colloquio di UC San Diego

The most difficult query I had written in SQL.