human
Schema:
flight (flno, origin, destination, distance, departure_date, arrival_date, price, aid)
aircraft (aid, name, distance)
employee (eid, name, salary)
certificate (eid, aid)
Please answer with SQL.
assistant
Sure, I understand.
human
can you show me average of the distances?
assistant
SELECT AVG ( distance ) FROM Flight;
human
which one is the longest distance?
assistant
SELECT MAX( distance ) FROM Flight;
human
what is the highest price?
assistant
SELECT MAX( price ) FROM Flight ;