db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
language_corpus | select count(t2.occurrences) from words as t1 inner join pages_words as t2 on t1.wid = t2.wid where t1.word = 'herdot' | Question: how many times does the word 'herdot' appear in the wikipedia page? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st, w2nd, occu... | how many times does the word 'herdot' appear in the wikipedia page? |
language_corpus | select pid from pages_words where pid = ( select pid from pages where revision = 28278070 ) order by occurrences desc limit 1 | Question: which word has the most appearances in the wikipedia page revision id no. 28278070? give the word id. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences... | which word has the most appearances in the wikipedia page revision id no. 28278070? give the word id. |
language_corpus | select occurrences from biwords where w1st = ( select wid from words where word = 'que' ) and w2nd = ( select wid from words where word = 'gregorio' ) | Question: how many times does the biwords 'que gregorio' appear in the language? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st, w2nd, o... | how many times does the biwords 'que gregorio' appear in the language? |
language_corpus | select count(w1st) from biwords where w2nd = ( select wid from words where word = 'base' ) | Question: how many biword pairs contain the word 'base' as the second word? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st, w2nd, occurr... | how many biword pairs contain the word 'base' as the second word? |
language_corpus | select t2.occurrences from words as t1 inner join langs_words as t2 on t1.wid = t2.wid where t1.word = 'exemple' and t2.lid = 1 | Question: how many times of repetition does the word 'exemple' show in the catalan language? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w... | how many times of repetition does the word 'exemple' show in the catalan language? |
language_corpus | select t1.word from words as t1 inner join langs_words as t2 on t1.wid = t2.wid where t2.occurrences = 274499 and t2.lid = 1 | Question: which word that has 274499 repetitions in the catalan language? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st, w2nd, occurren... | which word that has 274499 repetitions in the catalan language? |
language_corpus | select cast(occurrences as real) / ( select occurrences from biwords where w1st = ( select wid from words where word = 'a' ) and w2nd = ( select wid from words where word = 'decimal' ) ) from biwords where w1st = ( select wid from words where word = 'a' ) and w2nd = ( select wid from words where word = 'base' ) | Question: how many times greater is the appearances of the biword pair 'a base' than 'a decimal'? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> l... | how many times greater is the appearances of the biword pair 'a base' than 'a decimal'? |
language_corpus | select cast(sum(case when t3.title = 'art' then t2.occurrences else 0 end) as real) * 100 / sum(t2.occurrences) from words as t1 inner join pages_words as t2 on t1.wid = t2.wid inner join pages as t3 on t2.pid = t3.pid where t1.word = 'grec' | Question: for the word 'grec', what is the percentage of the appearances in the 'art' wikipedia page have among all the appearances? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> ... | for the word 'grec', what is the percentage of the appearances in the 'art' wikipedia page have among all the appearances? |
language_corpus | select count(lid) from pages where lid = 1 and words > 4000 | Question: how many wikipedia pages with over 4000 different words are there on the catalan language? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -... | how many wikipedia pages with over 4000 different words are there on the catalan language? |
language_corpus | select title from pages where lid = 1 and words = 10 limit 10 | Question: please list the titles of all the wikipedia pages on the catalan language with 10 different words. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. b... | please list the titles of all the wikipedia pages on the catalan language with 10 different words. |
language_corpus | select word from words where occurrences = ( select max(occurrences) from words ) | Question: what is the word that occurs the most in the catalan language? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st, w2nd, occurrenc... | what is the word that occurs the most in the catalan language? |
language_corpus | select title from pages where lid = 1 order by words desc limit 3 | Question: please list the titles of the top 3 wikipedia pages with the most different words on the catalan language. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurr... | please list the titles of the top 3 wikipedia pages with the most different words on the catalan language. |
language_corpus | select revision from pages where lid = 1 and title = 'arqueologia' | Question: what is the revision id for the page on catalan titled 'arqueologia'? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st, w2nd, oc... | what is the revision id for the page on catalan titled 'arqueologia'? |
language_corpus | select count(lid) from pages where lid = 1 and words > 300 and revision > 28330000 | Question: among the wikipedia pages on catalan with more than 300 different words, how many of them have a revision id of over 28330000? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words... | among the wikipedia pages on catalan with more than 300 different words, how many of them have a revision id of over 28330000? |
language_corpus | select t2.pid from words as t1 inner join pages_words as t2 on t1.wid = t2.wid where t1.word = 'nombre' | Question: please list the page ids of all the wikipedia pages that have the word 'nombre' appeared on it. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwo... | please list the page ids of all the wikipedia pages that have the word 'nombre' appeared on it. |
language_corpus | select count(t2.pid) from words as t1 inner join pages_words as t2 on t1.wid = t2.wid where t1.word = 'nombre' and t2.occurrences > 5 | Question: how many wikipedia pages on catalan are there with the word 'nombre' appearing for more than 5 times? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences... | how many wikipedia pages on catalan are there with the word 'nombre' appearing for more than 5 times? |
language_corpus | select count(t2.w1st) from words as t1 inner join biwords as t2 on t1.wid = t2.w2nd where t1.word = 'grec' | Question: how many biwords pairs are there whose second word is 'grec'? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st, w2nd, occurrence... | how many biwords pairs are there whose second word is 'grec'? |
language_corpus | select t3.title from words as t1 inner join pages_words as t2 on t1.wid = t2.wid inner join pages as t3 on t2.pid = t3.pid where t1.word = 'grec' and t2.occurrences = 52 | Question: what is the title of the page on which the word 'grec' has an occurrence of 52 times. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid... | what is the title of the page on which the word 'grec' has an occurrence of 52 times. |
language_corpus | select count(t2.w2nd) from words as t1 inner join biwords as t2 on t1.wid = t2.w1st where t1.word = 'bac' and t2.occurrences > 10 | Question: among the biwords pairs with 'bac' as its first word, how many of them have an occurrence of over 10? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences... | among the biwords pairs with 'bac' as its first word, how many of them have an occurrence of over 10? |
language_corpus | select cast(sum(t2.occurrences) as real) / count(t1.wid) from words as t1 inner join pages_words as t2 on t1.wid = t2.wid where t1.word = 'grec' | Question: what is the average occurrence of the word 'grec' on each wikipedia page that has this word? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords... | what is the average occurrence of the word 'grec' on each wikipedia page that has this word? |
airline | select count(*) from airlines where fl_date = '2018/8/1' | Question: how many flights were there on 2018/8/1? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_ID, DEST_CITY... | how many flights were there on 2018/8/1? |
airline | select count(*) from airlines where fl_date = '2018/8/1' and origin = 'jfk' | Question: among the flights on 2018/8/1, how many of them departed from an airport in new york? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DE... | among the flights on 2018/8/1, how many of them departed from an airport in new york? |
airline | select dest from airlines where fl_date = '2018/8/1' and cancelled = 1 group by dest | Question: please list the destination cities of all the flights that were cancelled on 2018/8/1. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, D... | please list the destination cities of all the flights that were cancelled on 2018/8/1. |
airline | select fl_date from airlines where cancellation_code = 'a' group by fl_date | Question: please list the dates of the flights that were cancelled due to the most serious reason. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN,... | please list the dates of the flights that were cancelled due to the most serious reason. |
airline | select t1.description from airports as t1 inner join airlines as t2 on t1.code = t2.origin where t2.fl_date = '2018/8/1' and t2.dep_delay > 0 group by t1.description | Question: please list the departure airports of the flights on 2018/8/1 that were delayed. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AI... | please list the departure airports of the flights on 2018/8/1 that were delayed. |
airline | select count(t1.code) from airports as t1 inner join airlines as t2 on t1.code = t2.origin where t2.fl_date = '2018/8/1' and t1.description = 'new york, ny: john f. kennedy international' | Question: among the flights on 2018/8/1, how many of them were scheduled to depart from john f. kennedy international in new york? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID... | among the flights on 2018/8/1, how many of them were scheduled to depart from john f. kennedy international in new york? |
airline | select t1.description from airports as t1 inner join airlines as t2 on t1.code = t2.dest where t2.fl_date = '2018/8/1' order by t2.dep_delay desc limit 1 | Question: for the flight on 2018/8/1 that was delayed for the longest time, which was the destination airport of this flight? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORI... | for the flight on 2018/8/1 that was delayed for the longest time, which was the destination airport of this flight? |
airline | select sum(case when t2.arr_delay < 0 then 1 else 0 end) as count from airports as t1 inner join airlines as t2 on t1.code = t2.origin where t1.description = 'new york, ny: john f. kennedy international' | Question: among the flights departing from john f. kennedy international, how many of them arrived earlier than scheduled? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN... | among the flights departing from john f. kennedy international, how many of them arrived earlier than scheduled? |
airline | select t2.dep_time from airports as t1 inner join airlines as t2 on t1.code = t2.origin where t2.fl_date = '2018/8/1' and t1.description = 'new york, ny: john f. kennedy international' and t2.dep_time is not null order by t2.dep_time asc limit 1 | Question: among all the flights scheduled to depart from john f. kennedy international on 2018/8/1, when was the earliest one scheduled to depart? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGI... | among all the flights scheduled to depart from john f. kennedy international on 2018/8/1, when was the earliest one scheduled to depart? |
airline | select count(*) from airports as t1 inner join airlines as t2 on t1.code = t2.origin inner join `air carriers` as t3 on t2.op_carrier_airline_id = t3.code where t2.fl_date = '2018/8/1' and t3.description = 'american airlines inc.: aa' | Question: how many flights on 2018/8/1 were operated by american airlines inc.? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, D... | how many flights on 2018/8/1 were operated by american airlines inc.? |
airline | select t2.op_carrier_fl_num from airports as t1 inner join airlines as t2 on t1.code = t2.origin inner join `air carriers` as t3 on t2.op_carrier_airline_id = t3.code where t3.description = 'american airlines inc.: aa' and t1.description = 'new york, ny: john f. kennedy international' and t2.fl_date = '2018/8/1' | Question: please list the flight numbers of all the flights operated by american airlines inc. that were scheduled to depart from john f. kennedy international. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIR... | please list the flight numbers of all the flights operated by american airlines inc. that were scheduled to depart from john f. kennedy international. |
airline | select sum(case when t2.actual_elapsed_time < crs_elapsed_time then 1 else 0 end) as count from airports as t1 inner join airlines as t2 on t1.code = t2.origin inner join `air carriers` as t3 on t2.op_carrier_airline_id = t3.code where t2.fl_date = '2018/8/1' and t3.description = 'american airlines inc.: aa' | Question: how many flights operated by american airlines inc. on 2018/8/1 were faster than scheduled? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIG... | how many flights operated by american airlines inc. on 2018/8/1 were faster than scheduled? |
airline | select t1.op_carrier_fl_num from airlines as t1 inner join airports as t2 on t2.code = t1.origin inner join `air carriers` as t3 on t1.op_carrier_airline_id = t3.code where t3.description = 'american airlines inc.: aa' order by t1.dep_time desc limit 1 | Question: what is the flight number of the flight operated by american airlines inc. that had the longest delay in departure? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORI... | what is the flight number of the flight operated by american airlines inc. that had the longest delay in departure? |
airline | select sum(case when t2.dest = 'jfk' then 1 else 0 end) as count from airports as t1 inner join airlines as t2 on t1.code = t2.dest inner join `air carriers` as t3 on t2.op_carrier_airline_id = t3.code where t3.description = 'american airlines inc.: aa' | Question: among the flights operated by american airlines inc., how many of them were scheduled to land in new york? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_... | among the flights operated by american airlines inc., how many of them were scheduled to land in new york? |
airline | select sum(case when t2.cancelled = 1 then 1 else 0 end) as count from airports as t1 inner join airlines as t2 on t1.code = t2.origin inner join `air carriers` as t3 on t2.op_carrier_airline_id = t3.code where t2.fl_date = '2018/8/1' and t3.description = 'american airlines inc.: aa' | Question: among the flights operated by american airlines inc. on 2018/8/1, how many of them were cancelled? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_I... | among the flights operated by american airlines inc. on 2018/8/1, how many of them were cancelled? |
airline | select case when count(case when t3.description = 'american airlines inc.: aa' then 1 else null end) > count(case when t3.description = 'endeavor air inc.: 9e' then 1 else null end) then 'american airlines inc.: aa' else 'endeavor air inc.: 9e' end as result from airports as t1 inner join airlines as t2 on t1.code = t2... | Question: which airline operated more flights on 2018/8/1, american airlines inc. or endeavor air inc.? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, OR... | which airline operated more flights on 2018/8/1, american airlines inc. or endeavor air inc.? |
airline | select avg(t1.dep_delay) from airlines as t1 inner join airports as t2 on t2.code = t1.origin inner join `air carriers` as t3 on t1.op_carrier_airline_id = t3.code where t3.description = 'american airlines inc.: aa' | Question: what is the average departure delay time of flights operated by american airlines inc.? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, ... | what is the average departure delay time of flights operated by american airlines inc.? |
airline | select cast( sum(case when t2.fl_date like '2018/8%' then 1 else 0 end) as real) / 31 from airports as t1 inner join airlines as t2 on t1.code = t2.origin inner join `air carriers` as t3 on t2.op_carrier_airline_id = t3.code where t3.description = 'american airlines inc.: aa' | Question: how many flights on average does american airlines inc. operate every day in august, 2018? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGI... | how many flights on average does american airlines inc. operate every day in august, 2018? |
airline | select count(code) from `air carriers` | Question: what is the number of air carriers in the database? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_ID... | what is the number of air carriers in the database? |
airline | select sum(case when t2.fl_date = '2018/8/27' then 1 else 0 end) as count from airports as t1 inner join airlines as t2 on t1.code = t2.origin where t1.description = 'los angeles, ca: los angeles international' | Question: give the number of planes that took off from los angeles international airport on 2018/8/27. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORI... | give the number of planes that took off from los angeles international airport on 2018/8/27. |
airline | select sum(case when t1.description like '%oakland%' then 1 else 0 end) as count from airports as t1 inner join airlines as t2 on t1.code = t2.dest where t2.fl_date = '2018/8/7' | Question: provide the number of airplanes that landed on oakland airport on 2018/8/7. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT... | provide the number of airplanes that landed on oakland airport on 2018/8/7. |
airline | select count(*) from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t1.fl_date = '2018/8/2' and t2.description = 'alaska airlines inc.: as' and t1.dep_delay > 0 | Question: how many flights of alaska airlines were delayed on 2018/8/2? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRP... | how many flights of alaska airlines were delayed on 2018/8/2? |
airline | select count(*) from airports as t1 inner join airlines as t2 on t1.code = t2.dest where t2.fl_date = '2018/8/12' and t2.dest = 'mia' and t2.arr_delay < 0 | Question: tell the number of fights landed earlier on miami airport on 2018/8/12. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID,... | tell the number of fights landed earlier on miami airport on 2018/8/12. |
airline | select count(*) from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t1.cancellation_code = 'a' and t2.description = 'american airlines inc.: aa' and t1.cancelled = 1 | Question: how many flights from american airlines were cancelled due to a type a cancellation code? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN... | how many flights from american airlines were cancelled due to a type a cancellation code? |
airline | select sum(case when t1.actual_elapsed_time < crs_elapsed_time then 1 else 0 end) as count from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t1.fl_date = '2018/8/31' and t2.description = 'endeavor air inc.: 9e' | Question: how many flights of endeavor air inc. were faster than scheduled on 2018/8/31? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRP... | how many flights of endeavor air inc. were faster than scheduled on 2018/8/31? |
airline | select count(t2.code) from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t1.fl_date = '2018/8/7' and t2.description = 'spirit air lines: nk' | Question: how many planes of spirit air lines took off on 2018/8/7? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_... | how many planes of spirit air lines took off on 2018/8/7? |
airline | select t2.description from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t1.tail_num = 'n702sk' group by t2.description | Question: for the flight with the tail number 'n702sk', which air carrier does it belong to? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_... | for the flight with the tail number 'n702sk', which air carrier does it belong to? |
airline | select t1.description from airports as t1 inner join airlines as t2 on t1.code = t2.dest where t2.fl_date = '2018/8/15' order by t2.dest desc limit 1 | Question: provide the name of the airport which landed the most number of flights on 2018/8/15. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DE... | provide the name of the airport which landed the most number of flights on 2018/8/15. |
airline | select t2.description from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t1.fl_date = '2018/8/1' and t1.origin = 'atl' and t1.dest = 'phl' and t1.crs_dep_time = '2040' group by t2.description | Question: for the flight from atl to phl on 2018/8/1 that scheduled local departure time as '2040', which air carrier does this flight belong to? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN... | for the flight from atl to phl on 2018/8/1 that scheduled local departure time as '2040', which air carrier does this flight belong to? |
airline | select count(t1.code) from airports as t1 inner join airlines as t2 on t1.code = t2.dest where t2.fl_date = '2018/8/15' and t1.description = 'lake charles, la: lake charles regional' | Question: tell the number of flights that landed at lake charles regional airport on 2018/8/15. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DE... | tell the number of flights that landed at lake charles regional airport on 2018/8/15. |
airline | select count(fl_date) from airlines where fl_date like '2018/8%' and origin = ( select t2.origin from airports as t1 inner join airlines as t2 on t1.code = t2.origin where t1.description = 'san diego, ca: san diego international' ) and dest = ( select t4.dest from airports as t3 inner join airlines as t4 on t3.code = t... | Question: how many flights were there from san diego international airport to los angeles international airport in the august of 2018? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SE... | how many flights were there from san diego international airport to los angeles international airport in the august of 2018? |
airline | select cast(sum(case when t2.cancellation_code = 'c' then 1.0 else 0 end) as real) * 100 / count(*) from airports as t1 inner join airlines as t2 on t1.code = t2.origin where t2.fl_date = '2018/8/15' and t2.cancellation_code is not null and t1.description = 'los angeles, ca: los angeles international' | Question: what is the percentage of flights from los angeles international airport that were cancelled due to a type c cancellation code? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT... | what is the percentage of flights from los angeles international airport that were cancelled due to a type c cancellation code? |
airline | select cast(sum(case when t1.actual_elapsed_time < t1.crs_elapsed_time then 1 else 0 end) as real) * 100 / count(*) from airlines as t1 inner join airports as t2 on t2.code = t1.dest where t2.description like '%pittsburgh%' and t1.crs_elapsed_time is not null and t1.actual_elapsed_time is not null | Question: what is the percentage of flights which landed at pittsburgh were faster than scheduled? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN,... | what is the percentage of flights which landed at pittsburgh were faster than scheduled? |
airline | select description from `air carriers` where code = 19049 | Question: what is the description of the airline code 19049? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_ID,... | what is the description of the airline code 19049? |
airline | select count(*) from airlines where fl_date = '2018/8/1' and dep_delay <= 0 | Question: how many flights departed on time on 8/1/2018? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_ID, DES... | how many flights departed on time on 8/1/2018? |
airline | select code from airports where description like '%ankara, turkey%' | Question: what are the codes of the airport found in ankara, turkey? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT... | what are the codes of the airport found in ankara, turkey? |
airline | select weather_delay from airlines where origin_airport_id = 12264 order by weather_delay desc limit 1 | Question: how long was the longest minute delay caused by a weather problem in airport id 12264? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, D... | how long was the longest minute delay caused by a weather problem in airport id 12264? |
airline | select code from airports where description = 'anita bay, ak: anita bay airport' | Question: what is the iata code of the anita bay airport in anita bay, alaska? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DE... | what is the iata code of the anita bay airport in anita bay, alaska? |
airline | select origin_airport_id from airlines order by late_aircraft_delay desc limit 1 | Question: what is the origin airport id that recorded the longest delay due to a late aircraft? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DE... | what is the origin airport id that recorded the longest delay due to a late aircraft? |
airline | select count(fl_date) from airlines where origin = ( select t2.origin from airports as t1 inner join airlines as t2 on t1.code = t2.origin where t1.description = 'chicago, il: chicago o''hare international' ) and dest = ( select t4.dest from airports as t3 inner join airlines as t4 on t3.code = t4.dest where t3.descrip... | Question: how many flights depart to hartsfield-jackson atlanta international from chicago o'hare international? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARK... | how many flights depart to hartsfield-jackson atlanta international from chicago o'hare international? |
airline | select count(t3.tail_num) from ( select t1.tail_num from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t2.description = 'southwest airlines co.: wn' group by t1.tail_num ) t3 | Question: how many planes does southwest airlines co. have? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_ID, ... | how many planes does southwest airlines co. have? |
airline | select t2.fl_date from airports as t1 inner join airlines as t2 on t1.code = t2.origin where t2.fl_date like '2018/8%' and t1.description = 'dallas/fort worth, tx: dallas/fort worth international' and t2.origin = 'dfw' and t2.cancelled = 1 and t2.cancellation_code = 'a' group by t2.fl_date order by count(t2.fl_date) de... | Question: on august 2018, which day had the highest number of cancelled flights due to the most serious reasons in dallas/fort worth international? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIG... | on august 2018, which day had the highest number of cancelled flights due to the most serious reasons in dallas/fort worth international? |
airline | select t2.tail_num from airports as t1 inner join airlines as t2 on t1.code = t2.dest where t2.fl_date like '2018/8%' and t1.description = 'bakersfield, ca: meadows field' and t2.dest = 'bfl' and t2.arr_delay <= 0 group by t2.tail_num | Question: list the tail numbers of all the aircraft that arrived on time at meadows field airport in august of 2018? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_... | list the tail numbers of all the aircraft that arrived on time at meadows field airport in august of 2018? |
airline | select t2.op_carrier_airline_id from airports as t1 inner join airlines as t2 on t1.code = t2.dest where t1.description = 'boston, ma: logan international' and t2.dest = 'bos' order by t2.security_delay desc limit 1 | Question: among the airports whose destination is logan international, what is the airline id of the carrier operator with the highest delay in minutes due to security? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, OR... | among the airports whose destination is logan international, what is the airline id of the carrier operator with the highest delay in minutes due to security? |
airline | select t2.description from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code group by t2.description order by t1.tail_num desc limit 5 | Question: what are the names of the top 5 airlines with the highest number of aircraft? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPO... | what are the names of the top 5 airlines with the highest number of aircraft? |
airline | select t2.description from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t1.cancelled = 0 group by t2.description order by count(t1.cancelled) desc limit 1 | Question: what is the name of the airline with the highest number of non-cancelled flights? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_A... | what is the name of the airline with the highest number of non-cancelled flights? |
airline | select t2.description from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t1.tail_num = 'n202nn' group by t2.description | Question: give the name of the airline to which tail number n202nn belongs to. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DE... | give the name of the airline to which tail number n202nn belongs to. |
airline | select t3.description from airports as t1 inner join airlines as t2 on t1.code = t2.dest inner join `air carriers` as t3 on t2.op_carrier_airline_id = t3.code where t1.description = 'chicago, il: chicago midway international' and t2.dest = 'mdw' group by t3.description order by count(t3.description) desc limit 1 | Question: what is the name of the airline that flew the most flights to chicago midway international? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIG... | what is the name of the airline that flew the most flights to chicago midway international? |
airline | select t2.op_carrier_airline_id from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id where t1.description = 'compass airlines: cp' and t2.origin = 'lax' and t2.dest = 'abq' group by t2.op_carrier_airline_id order by count(t2.op_carrier_airline_id) desc limit 1 | Question: what is the tail number of a compass airline's plane that flew the most number of flights from lax to abq? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_... | what is the tail number of a compass airline's plane that flew the most number of flights from lax to abq? |
airline | select t2.dest from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id where t1.description = 'republic airline: yx' group by t2.dest order by count(t2.dest) desc limit 1 | Question: which airport did republic airline fly the most from? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_... | which airport did republic airline fly the most from? |
airline | select t1.op_carrier_airline_id from airlines as t1 inner join airports as t2 on t1.origin = t2.code where t1.actual_elapsed_time is not null and t1.crs_elapsed_time is not null order by t1.actual_elapsed_time - t1.crs_elapsed_time asc limit 1 | Question: which airline does the aircraft with the fastest flight belong to? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST... | which airline does the aircraft with the fastest flight belong to? |
airline | select t1.tail_num, sum(cast(t1.late_aircraft_delay as real) / 60) as delay from airlines as t1 inner join `air carriers` as t2 on t2.code = t1.op_carrier_airline_id where t1.fl_date like '2018/8/%' and t2.description = 'delta air lines inc.: dl' order by delay desc limit 1 | Question: how many hours in total did all of the delta air lines aircraft were delayed due to a late aircraft in august of 2018? identify the plane number of the aircraft with the highest delayed hours. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_I... | how many hours in total did all of the delta air lines aircraft were delayed due to a late aircraft in august of 2018? identify the plane number of the aircraft with the highest delayed hours. |
airline | select code, description from airports limit 3 | Question: please list any three airports with their codes. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_ID, D... | please list any three airports with their codes. |
airline | select code from `air carriers` where description like 'mississippi valley airlines%' | Question: what is the code of mississippi valley airlines? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_ID, D... | what is the code of mississippi valley airlines? |
airline | select crs_dep_time, dep_time from airlines where origin = 'phl' and dest = 'mdt' and tail_num = 'n627ae' and fl_date = '2018/8/13' | Question: what is the scheduled local departure time and the actual departure time of the flight from philadelphia to harrisburg with the plane's tail number n627ae on the 13th of august 2018? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NU... | what is the scheduled local departure time and the actual departure time of the flight from philadelphia to harrisburg with the plane's tail number n627ae on the 13th of august 2018? |
airline | select count(*) from airlines where fl_date = '2018/8/1' and origin = 'abe' | Question: how many flights on the 1st of august 2018 were coming from allentown, pennsylvania? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DES... | how many flights on the 1st of august 2018 were coming from allentown, pennsylvania? |
airline | select dest from airlines where origin = 'aby' group by dest | Question: what is the only flight destination for flights from albany? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPO... | what is the only flight destination for flights from albany? |
airline | select count(*) from airlines where dest = 'sna' and origin = 'dfw' and dep_delay = 0 | Question: how many flights from dallas to santa ana departed on time? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPOR... | how many flights from dallas to santa ana departed on time? |
airline | select count(*) from airlines as t1 inner join airports as t2 on t1.origin = t2.code where t1.origin = 'clt' and t1.dest = 'aus' and t2.description = 'charlotte, nc: charlotte douglas international' and t1.cancellation_code = 'a' | Question: how many flights from charlotte douglas international airport to austin - bergstrom international airport experienced serious reasons that cause flight cancellation? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_... | how many flights from charlotte douglas international airport to austin - bergstrom international airport experienced serious reasons that cause flight cancellation? |
airline | select t1.description from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id order by t2.cancelled desc limit 1 | Question: which flight carrier operator has the most cancelled flights? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRP... | which flight carrier operator has the most cancelled flights? |
airline | select t1.dep_time from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code inner join airports as t3 on t1.dest = t3.code where t1.fl_date = '2018/8/20' and t1.tail_num = 'n903jb' and t2.description like '%jetblue airways%' and t3.description like '%fort lauderdale-hollywood%' | Question: what is the actual departure time of jetblue airways with the plane's tail number n903jb to fort lauderdale-hollywood international airport on the 20th of august 2018? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_F... | what is the actual departure time of jetblue airways with the plane's tail number n903jb to fort lauderdale-hollywood international airport on the 20th of august 2018? |
airline | select t2.description from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t1.origin = 'acy' and t1.dest = 'fll' group by t2.description | Question: which flight carrier operator flies from atlantic city to fort lauderdale? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_... | which flight carrier operator flies from atlantic city to fort lauderdale? |
airline | select description from airports where code = 'a11' | Question: what is the airport description of the airport code a11? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_S... | what is the airport description of the airport code a11? |
airline | select count(*) as num from airlines where origin = 'okc' | Question: what is the total number of flights that have oklahoma as their origin? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID,... | what is the total number of flights that have oklahoma as their origin? |
airline | select count(*) from airports where code like 'c%' | Question: how many airports have a code starting with the letter c? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_... | how many airports have a code starting with the letter c? |
airline | select dest from airlines where op_carrier_fl_num = 1596 | Question: provide the destinations of flight number 1596. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_ID, DE... | provide the destinations of flight number 1596. |
airline | select description from airports where code like '%3' | Question: list the description of the airports that have code that ends with number 3? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPOR... | list the description of the airports that have code that ends with number 3? |
airline | select code from airports where description = 'driftwood bay, ak: driftwood bay airport' | Question: give the code of the airport described as driftwood bay, ak: driftwood bay airport. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST... | give the code of the airport described as driftwood bay, ak: driftwood bay airport. |
airline | select count(*) from airlines where cancelled = 1 | Question: how many cancelled flights are there? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRPORT_SEQ_ID, DEST_CITY_MA... | how many cancelled flights are there? |
airline | select tail_num from airlines where fl_date = '2018/8/17' group by tail_num | Question: list the tail number of flights that flew on august 17, 2018. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AIRP... | list the tail number of flights that flew on august 17, 2018. |
airline | select origin from airlines order by actual_elapsed_time asc limit 1 | Question: provide the origin of the flight that has the shortest actual elapsed time. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT... | provide the origin of the flight that has the shortest actual elapsed time. |
airline | select t1.fl_date, t1.tail_num from airlines as t1 inner join `air carriers` as t2 on t1.op_carrier_airline_id = t2.code where t2.description = 'ross aviation inc.: gwe' | Question: provide the date and tail number of flight with air carrier 'ross aviation inc.: gwe'. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, D... | provide the date and tail number of flight with air carrier 'ross aviation inc.: gwe'. |
airline | select t1.description, t1.code from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id order by t2.arr_time asc limit 1 | Question: list the air carrier description and code of the flight with the shortest arrival time. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, ... | list the air carrier description and code of the flight with the shortest arrival time. |
airline | select count(*) from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id where t1.description like '%jetblue airways: b6%' and t2.arr_delay_new = 0 | Question: how many flights of air carrier called jetblue airways: b6 have 0 new arrival delay? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DES... | how many flights of air carrier called jetblue airways: b6 have 0 new arrival delay? |
airline | select t1.description from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id where t2.dest = 'mia' | Question: provide the air carrier description of all flights arriving at miami. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, D... | provide the air carrier description of all flights arriving at miami. |
airline | select t1.description from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id where t2.cancelled = 1 group by t1.description | Question: what is the air carrier's description of the cancelled flights? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_ID, DEST_AI... | what is the air carrier's description of the cancelled flights? |
airline | select t2.actual_elapsed_time from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id where t1.description = 'semo aviation inc.: sem' | Question: give the actual elapsed time of the flights with air carrier named semo aviation inc.: sem. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIG... | give the actual elapsed time of the flights with air carrier named semo aviation inc.: sem. |
airline | select t2.tail_num from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id where t1.description = 'asap air inc.: asp' order by t2.dep_delay desc limit 1 | Question: among the flights with air carrier described as asap air inc.: asp, what is the tail number of the flight with the longest departure delay? | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, OR... | among the flights with air carrier described as asap air inc.: asp, what is the tail number of the flight with the longest departure delay? |
airline | select t1.description from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id where t2.dep_delay = 0 group by t1.description | Question: list the air carrier's description of the flights with 0 departure delay. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, DEST_AIRPORT_I... | list the air carrier's description of the flights with 0 departure delay. |
airline | select t1.description from `air carriers` as t1 inner join airlines as t2 on t1.code = t2.op_carrier_airline_id order by t2.actual_elapsed_time desc limit 1 | Question: provide the air carrier description of the flight with the highest actual elapsed time. | Tables: Air Carriers -> Code, Description. Airports -> Code, Description. Airlines -> FL_DATE, OP_CARRIER_AIRLINE_ID, TAIL_NUM, OP_CARRIER_FL_NUM, ORIGIN_AIRPORT_ID, ORIGIN_AIRPORT_SEQ_ID, ORIGIN_CITY_MARKET_ID, ORIGIN, ... | provide the air carrier description of the flight with the highest actual elapsed time. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.