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
what was the destination of flight 99 ?
assistant
SELECT destination FROM Flight WHERE flno = 99;
human
How far did flight 99 fly ?
assistant
SELECT distance FROM Flight WHERE flno = 99;
human
What was the name of the airplane from flight 99 ?
assistant
SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99 ;