Domanda di colloquio di Southwest Airlines

Explain the sql subquery and why we need it