human
Schema:
airport (id, City, Country, IATA, ICAO, name)
operate_company (id, name, Type, Principal_activities, Incorporated_in, Group_Equity_Shareholding)
flight (id, Vehicle_Flight_number, Date, Pilot, Velocity, Altitude, airport_id, company_id)
Please answer with SQL.
assistant
Sure, I understand.
human
What are pilots names?
assistant
SELECT distinct pilot FROM flight;
human
Which pilot is in charge of most number of flights?
assistant
SELECT pilot FROM flight GROUP BY pilot ORDER BY COUNT( * ) DESC LIMIT 1 ;