Question: Show all flight numbers with aircraft Airbus A340-300.
Schema: create table flight (flno varchar, aid varchar, PRIMARY KEY (flno)); create table aircraft (aid varchar, name varchar, PRIMARY KEY (aid))
SQL: select t1.flno from flight as t1 join aircraft as t2 on t1.aid = t2.aid where t2.name = "airbus a340-300"