#194

Second-Best Pilot by Passengers

Aviation analytics is finding the flight with the second-highest passenger count. Among all flights, locate the one whose passengers is the second-largest after the maximum, and output the pilot's name and the flight's passengers.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

namepassengers
Brown250
T-Bank

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid