Chinastark/bird_dataset huggingface dataset:
Database: language_corpus
Note: lid = 1 means it's Catalan language; 10 different words refers to words = 10; titles refers to title;
Question: Please list the titles of all the Wikipedia pages on the Catalan language with 10 different words.
SQL: SELECT title FROM pages WHERE lid = 1 AND words = 10 LIMIT 10
Database: language_corpus
Note: MAX(occurrences);
Question: What is the word that occurs the most in the Catalan language?
SQL: SELECT word FROM words WHERE occurrences = ( SELECT max(occurrences) FROM words )
Database: language_corpus
Note: lid = 1 means it's Catalan language; with most different words refers to MAX(words);
Question: Please list the titles of the top 3 Wikipedia pages with the most different words on the Catalan language.
SQL: SELECT title FROM pages WHERE lid = 1 ORDER BY words DESC LIMIT 3
Database: language_corpus
Note: lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision;
Question: What is the revision ID for the page on Catalan titled "Arqueologia"?
SQL: SELECT revision FROM pages WHERE lid = 1 AND title = 'Arqueologia'
Database: language_corpus
Note: lid = 1 means it's Catalan language; more than 300 different words refers to words > 300; revision ID of over 28330000 refers to 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?
SQL: SELECT count(lid) FROM pages WHERE lid = 1 AND words > 300 AND revision > 28330000
Database: language_corpus
Note: nombre refers to word = 'nombre'; page IDs refers to pid;
Question: Please list the page IDs of all the Wikipedia pages that have the word "nombre" appeared on it.
SQL: SELECT pages_words.pid FROM words INNER JOIN pages_words ON words.wid = pages_words.wid WHERE words.word = 'nombre'
Database: language_corpus
Note: nombre refers to word = 'nombre'; appear for more than 5 times refers to  pages_words.occurrences > 5;
Question: How many Wikipedia pages on Catalan are there with the word "nombre" appearing for more than 5 times?
SQL: SELECT count(pages_words.pid) FROM words INNER JOIN pages_words ON words.wid = pages_words.wid WHERE words.word = 'nombre' AND pages_words.occurrences > 5
Database: language_corpus
Note: grec refers to word = 'grec'; wid where word = 'grec' AS w2nd;
Question: How many biwords pairs are there whose second word is "grec"?
SQL: SELECT count(biwords.w1st) FROM words INNER JOIN biwords ON words.wid = biwords.w2nd WHERE words.word = 'grec'
Database: language_corpus
Note: occurrence of 52 times refers to pages_words.occurrences = 52; grec refers to word = 'grec';
Question: What is the title of the page on which the word "grec" has an occurrence of 52 times.
SQL: SELECT pages.title FROM words INNER JOIN pages_words ON words.wid = pages_words.wid INNER JOIN pages ON pages_words.pid = pages.pid WHERE words.word = 'grec' AND pages_words.occurrences = 52
Database: language_corpus
Note: àbac refers to word = 'àbac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10;
Question: Among the biwords pairs with "àbac" as its first word, how many of them have an occurrence of over 10?
SQL: SELECT count(biwords.w2nd) FROM words INNER JOIN biwords ON words.wid = biwords.w1st WHERE words.word = 'àbac' AND biwords.occurrences > 10
Database: language_corpus
Note: grec refers to word = 'grec'; AVG(occurrences where word = 'grec');
Question: What is the average occurrence of the word "grec" on each Wikipedia page that has this word?
SQL: SELECT cast(sum(pages_words.occurrences) AS REAL) / count(words.wid) FROM words INNER JOIN pages_words ON words.wid = pages_words.wid WHERE words.word = 'grec'
Database: airline
Note: on 2018/8/1 refers to fl_date = '2018/8/1';
Question: How many flights were there on 2018/8/1?
SQL: SELECT count(*) FROM airlines WHERE fl_date = '2018/8/1'
Database: airline
Note: on 2018/8/1 refers to fl_date = '2018/8/1'; departed from an airport in New York refers to origin = 'JFK';
Question: Among the flights on 2018/8/1, how many of them departed from an airport in New York?
SQL: SELECT count(*) FROM airlines WHERE fl_date = '2018/8/1' AND origin = 'JFK'
Database: airline
Note: destination cities refers to dest; cancelled refers to cancelled = 1; on 2018/8/1 refers to fl_date = '2018/8/1';
Question: Please list the destination cities of all the flights that were cancelled on 2018/8/1.
SQL: SELECT dest FROM airlines WHERE fl_date = '2018/8/1' AND cancelled = 1 GROUP BY dest
Database: airline
Note: dates of the flights refers to fl_date; cancelled refers to cancelled = 1; most serious reason refers to cancellation_code = 'A';
Question: Please list the dates of the flights that were cancelled due to the most serious reason.
SQL: SELECT fl_date FROM airlines WHERE cancellation_code = 'A' GROUP BY fl_date
Database: airline
Note: departure airports refers origin; on 2018/8/1 refers to fl_date = '2018/8/1'; delayed refers to dep_delay > 0;
Question: Please list the departure airports of the flights on 2018/8/1 that were delayed.
SQL: SELECT airports.description FROM airports INNER JOIN airlines ON airports.code = airlines.origin WHERE airlines.fl_date = '2018/8/1' AND airlines.dep_delay > 0 GROUP BY airports.description
Database: airline
Note: on 2018/8/1 refers to fl_date = '2018/8/1'; depart from refers to origin; John F. Kennedy International in New York refers to 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?
SQL: SELECT count(airports.code) FROM airports INNER JOIN airlines ON airports.code = airlines.origin WHERE airlines.fl_date = '2018/8/1' AND airports.description = 'New York, NY: John F. Kennedy International'
Database: airline
Note: on 2018/8/1 refers to fl_date = '2018/8/1';  delayed for the longest time refers to MAX(dep_delay); destination airport refers to dest;
Question: For the flight on 2018/8/1 that was delayed for the longest time, which was the destination airport of this flight?
SQL: SELECT airports.description FROM airports INNER JOIN airlines ON airports.code = airlines.dest WHERE airlines.fl_date = '2018/8/1' ORDER BY airlines.dep_delay DESC LIMIT 1
Database: airline
Note: departing from refers to origin; John F. Kennedy International refers to description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to arr_delay < 0;
Question: Among the flights departing from John F. Kennedy International, how many of them arrived earlier than scheduled?
SQL: SELECT sum(CASE WHEN airlines.arr_delay < 0 THEN 1 ELSE 0 END) AS COUNT FROM airports INNER JOIN airlines ON airports.code = airlines.origin WHERE airports.description = 'New York, NY: John F. Kennedy International'
Database: airline
Note: depart from refers to origin; John F. Kennedy International refers to description = 'New York, NY: John F. Kennedy International'; on 2018/8/1 refers to fl_date = '2018/8/1'; earliest one scheduled to depart refers to MIN(dep_time);
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?
SQL: SELECT airlines.dep_time FROM airports INNER JOIN airlines ON airports.code = airlines.origin WHERE airlines.fl_date = '2018/8/1' AND airports.description = 'New York, NY: John F. Kennedy International' AND airlines.dep_time IS NOT NULL ORDER BY airlines.dep_time ASC LIMIT 1
Database: airline
Note: on 2018/8/1 refers to fl_date = '2018/8/1'; American airlines Inc. refers to description = 'American airlines Inc.: AA';
Question: How many flights on 2018/8/1 were operated by American Airlines Inc.?
SQL: SELECT count(*) FROM airports INNER JOIN airlines ON airports.code = airlines.origin INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.fl_date = '2018/8/1' AND air carriers.description = 'American Airlines Inc.: AA'
Database: airline
Note: flight numbers refers to op_carrier_fl_num; American airlines Inc. refers to description = 'American airlines Inc.: AA'; depart from refers to origin; John F. Kennedy International refers to description = 'New York, NY: John F. Kennedy International';
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.
SQL: SELECT airlines.op_carrier_fl_num FROM airports INNER JOIN airlines ON airports.code = airlines.origin INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE air carriers.description = 'American Airlines Inc.: AA' AND airports.description = 'New York, NY: John F. Kennedy International' AND airlines.fl_date = '2018/8/1'
Database: airline
Note: American airlines Inc. refers to description = 'American airlines Inc.: AA'; on 2018/8/1 refers to fl_date = '2018/8/1'; faster than scheduled refers to actual_elapsed_time < crs_elapsed_time;
Question: How many flights operated by American Airlines Inc. on 2018/8/1 were faster than scheduled?
SQL: SELECT sum(CASE WHEN airlines.actual_elapsed_time < crs_elapsed_time THEN 1 ELSE 0 END) AS COUNT FROM airports INNER JOIN airlines ON airports.code = airlines.origin INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.fl_date = '2018/8/1' AND air carriers.description = 'American Airlines Inc.: AA'
Database: airline
Note: flight numbers refers to op_carrier_fl_num; American airlines Inc. refers to description = 'American airlines Inc.: AA'; longest delay in departure refers to MAX(dep_delay);
Question: What is the flight number of the flight operated by American Airlines Inc. that had the longest delay in departure?
SQL: SELECT airlines.op_carrier_fl_num FROM airlines INNER JOIN airports ON airports.code = airlines.origin INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE air carriers.description = 'American Airlines Inc.: AA' ORDER BY airlines.dep_time DESC LIMIT 1
Database: airline
Note: American airlines Inc. refers to description = 'American airlines Inc.: AA'; land in New York refers to dest = 'JFK';
Question: Among the flights operated by American Airlines Inc., how many of them were scheduled to land in New York?
SQL: SELECT sum(CASE WHEN airlines.dest = 'JFK' THEN 1 ELSE 0 END) AS COUNT FROM airports INNER JOIN airlines ON airports.code = airlines.dest INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE air carriers.description = 'American Airlines Inc.: AA'
Database: airline
Note: American airlines Inc. refers to description = 'American airlines Inc.: AA'; on 2018/8/1 refers to fl_date = '2018/8/1'; cancelled refers to cancelled = 1;
Question: Among the flights operated by American Airlines Inc. on 2018/8/1, how many of them were cancelled?
SQL: SELECT sum(CASE WHEN airlines.cancelled = 1 THEN 1 ELSE 0 END) AS COUNT FROM airports INNER JOIN airlines ON airports.code = airlines.origin INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.fl_date = '2018/8/1' AND air carriers.description = 'American Airlines Inc.: AA'
Database: airline
Note: SUM(description = 'American airlines Inc.: AA') > SUM(description = 'Endeavor Air Inc.: 9E') means American airlines Inc. operated more flights than  Endeavor Air Inc; SUM(description = 'American airlines Inc.: AA') < SUM(description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American airlines Inc.; on 2018/8/1 refers to fl_date = '2018/8/1';
Question: Which airline operated more flights on 2018/8/1, American Airlines Inc. or Endeavor Air Inc.?
SQL: SELECT CASE WHEN count(CASE WHEN air carriers.description = 'American Airlines Inc.: AA' THEN 1 ELSE NULL END) > count(CASE WHEN air carriers.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 INNER JOIN airlines ON airports.code = airlines.origin INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.fl_date = '2018/8/1'
Database: airline
Note: average departure delay time = DIVIDE(SUM(dep_delay), COUNT(code)); American airlines Inc. refers to description = 'American airlines Inc.: AA';
Question: What is the average departure delay time of flights operated by American Airlines Inc.?
SQL: SELECT avg(airlines.dep_delay) FROM airlines INNER JOIN airports ON airports.code = airlines.origin INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE air carriers.description = 'American Airlines Inc.: AA'
Database: airline
Note: flights on average = DIVIDE(COUNT(code), 31); American airlines Inc. refers to description = 'American airlines Inc.: AA'; every day in August, 2018 refers to fl_date like '2018/8%';
Question: How many flights on average does American Airlines Inc. operate every day in August, 2018?
SQL: SELECT cast( sum(CASE WHEN airlines.fl_date LIKE '2018/8%' THEN 1 ELSE 0 END) AS REAL) / 31 FROM airports INNER JOIN airlines ON airports.code = airlines.origin INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE air carriers.description = 'American Airlines Inc.: AA'
Database: airline
Question: What is the number of air carriers in the database?
SQL: SELECT count(code) FROM `air carriers`
Database: airline
Note: took off from refers to origin; Los Angeles International airport refers to description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to fl_date = '2018/8/27';
Question: Give the number of planes that took off from Los Angeles International airport on 2018/8/27.
SQL: SELECT sum(CASE WHEN airlines.fl_date = '2018/8/27' THEN 1 ELSE 0 END) AS COUNT FROM airports INNER JOIN airlines ON airports.code = airlines.origin WHERE airports.description = 'Los Angeles, CA: Los Angeles International'
Database: airline
Note: landed on refers to dest; Oakland Airport refers to description which contains 'Oakland'; on 2018/8/7 refers to fl_date = '2018/8/7';
Question: Provide the number of airplanes that landed on Oakland Airport on 2018/8/7.
SQL: SELECT sum(CASE WHEN airports.description LIKE '%Oakland%' THEN 1 ELSE 0 END) AS COUNT FROM airports INNER JOIN airlines ON airports.code = airlines.dest WHERE airlines.fl_date = '2018/8/7'
Database: airline
Note: Alaska airlines refers to description = 'Alaska airlines Inc.: AS'; delayed refers to dep_delay > 0; on 2018/8/2 refers to fl_date = '2018/8/2';
Question: How many flights of Alaska Airlines were delayed on 2018/8/2?
SQL: SELECT count(*) FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.fl_date = '2018/8/2' AND air carriers.description = 'Alaska Airlines Inc.: AS' AND airlines.dep_delay > 0
Database: airline
Note: landed on refers to dest; landed earlier refers to arr_delay < 0; Miami Airport refers to dest = 'MIA'; on 2018/8/12 refers to fl_date = '2018/8/12';
Question: Tell the number of fights landed earlier on Miami Airport on 2018/8/12.
SQL: SELECT count(*) FROM airports INNER JOIN airlines ON airports.code = airlines.dest WHERE airlines.fl_date = '2018/8/12' AND airlines.dest = 'MIA' AND airlines.arr_delay < 0
Database: airline
Note: American airlines refers to description = 'American airlines Inc.: AA'; cancelled refers to cancelled = 1; cancelled due to type A cancellation code refers to cancellation_code = 'A';
Question: How many flights from American Airlines were cancelled due to a type A cancellation code?
SQL: SELECT count(*) FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.cancellation_code = 'A' AND air carriers.description = 'American Airlines Inc.: AA' AND airlines.cancelled = 1
Database: airline
Note: Endeavor Air Inc. refers to description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to actual_elapsed_time < crs_elapsed_time; on 2018/8/31 refers to fl_date = '2018/8/31';
Question: How many flights of Endeavor Air Inc. were faster than scheduled on 2018/8/31?
SQL: SELECT sum(CASE WHEN airlines.actual_elapsed_time < crs_elapsed_time THEN 1 ELSE 0 END) AS COUNT FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.fl_date = '2018/8/31' AND air carriers.description = 'Endeavor Air Inc.: 9E'
Database: airline
Note: Spirit Air Lines refers to description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to fl_date = '2018/8/7';
Question: How many planes of Spirit Air Lines took off on 2018/8/7?
SQL: SELECT count(air carriers.code) FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.fl_date = '2018/8/7' AND air carriers.description = 'Spirit Air Lines: NK'
Database: airline
Note: tail number refers to tail_num; tail_num = 'N702SK';
Question: For the flight with the tail number 'N702SK', which air carrier does it belong to?
SQL: SELECT air carriers.description FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.tail_num = 'N702SK' GROUP BY air carriers.description
Database: airline
Note: name of the airport refers to description; airport that landed the most number of flights refers to MAX(COUNT(dest)); on 2018/8/15 refers to fl_date = '2018/8/15';
Question: Provide the name of the airport which landed the most number of flights on 2018/8/15.
SQL: SELECT airports.description FROM airports INNER JOIN airlines ON airports.code = airlines.dest WHERE airlines.fl_date = '2018/8/15' ORDER BY airlines.dest DESC LIMIT 1
Database: airline
Note: flight from ATL refers to origin = 'ATL'; flight to PHL refers to dest = 'PHL'; on 2018/8/1 refers to fl_date = '2018/8/1'; local departure time refers to crs_dep_time; crs_dep_time = '2040';
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?
SQL: SELECT air carriers.description FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.fl_date = '2018/8/1' AND airlines.origin = 'ATL' AND airlines.dest = 'PHL' AND airlines.crs_dep_time = '2040' GROUP BY air carriers.description
Database: airline
Note: landed at refers to dest; Lake Charles Regional Airport refers to description = 'Lake Charles, LA: Lake Charles Regional'; on 2018/8/15 refers to fl_date = '2018/8/15';
Question: Tell the number of flights that landed at Lake Charles Regional Airport on 2018/8/15.
SQL: SELECT count(airports.code) FROM airports INNER JOIN airlines ON airports.code = airlines.dest WHERE airlines.fl_date = '2018/8/15' AND airports.description = 'Lake Charles, LA: Lake Charles Regional'
Database: airline
Note: flights from refers to origin; San Diego International airport refers to description = 'San Diego, CA: San Diego International'; flights to refers to dest; Los Angeles International airport refers to description = 'Los Angeles, CA: Los Angeles International'; in the August of 2018 refers to fl_date like '2018/8%';
Question: How many flights were there from San Diego International airport to Los Angeles International airport in the August of 2018?
SQL: SELECT count(fl_date) FROM airlines WHERE fl_date LIKE '2018/8%' AND origin = ( SELECT airlines.origin FROM airports INNER JOIN airlines ON airports.code = airlines.origin WHERE airports.description = 'San Diego, CA: San Diego International' ) AND dest = ( SELECT airlines.dest FROM airports INNER JOIN airlines ON airports.code = airlines.dest WHERE airports.description = 'Los Angeles, CA: Los Angeles International' )
Database: airline
Note: percentage = MULTIPLY(DIVIDE(SUM(cancellation_code = 'C'), COUNT(code)), 100); flights from refers to origin; Los Angeles International airport refers to description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to cancelled = 1; cancelled due to a type C cancellation code refers to cancellation_code = 'C';
Question: What is the percentage of flights from Los Angeles International airport that were cancelled due to a type C cancellation code?
SQL: SELECT cast(sum(CASE WHEN airlines.cancellation_code = 'C' THEN 1.0 ELSE 0 END) AS REAL) * 100 / count(*) FROM airports INNER JOIN airlines ON airports.code = airlines.origin WHERE airlines.fl_date = '2018/8/15' AND airlines.cancellation_code IS NOT NULL AND airports.description = 'Los Angeles, CA: Los Angeles International'
Database: airline
Note: percentage = MULTIPLY(DIVIDE(SUM(actual_elapsed_time < T2.crs_elapsed_time), COUNT(code)), 100); landed at refers to dest; Pittsburgh refers to description which contains 'Pittsburgh'; faster than scheduled refers to actual_elapsed_time < crs_elapsed_time;
Question: What is the percentage of flights which landed at Pittsburgh were faster than scheduled?
SQL: SELECT cast(sum(CASE WHEN airlines.actual_elapsed_time < airlines.crs_elapsed_time THEN 1 ELSE 0 END) AS REAL) * 100 / count(*) FROM airlines INNER JOIN airports ON airports.code = airlines.dest WHERE airports.description LIKE '%Pittsburgh%' AND airlines.crs_elapsed_time IS NOT NULL AND airlines.actual_elapsed_time IS NOT NULL
Database: airline
Question: What is the description of the airline code 19049?
SQL: SELECT description FROM `air carriers` WHERE code = 19049
Database: airline
Note: departed on time refers to dep_delay <= 0; on 8/1/2018 refers to fl_date = '2018/8/1';
Question: How many flights departed on time on 8/1/2018?
SQL: SELECT count(*) FROM airlines WHERE fl_date = '2018/8/1' AND dep_delay <= 0
Database: airline
Note: airport found in Ankara, Turkey refers to description like '%Ankara, Turkey%';
Question: What are the codes of the airport found in Ankara, Turkey?
SQL: SELECT code FROM airports WHERE description LIKE '%Ankara, Turkey%'
Database: airline
Note: longest minute delay caused by a weather problem refers to MAX(weather_delay); airport id refers to origin_airport_id; origin_airport_id = 12264;
Question: How long was the longest minute delay caused by a weather problem in airport id 12264?
SQL: SELECT weather_delay FROM airlines WHERE origin_airport_id = 12264 ORDER BY weather_delay DESC LIMIT 1
Database: airline
Note: IATA code refers to code; Anita Bay Airport in Anita Bay, Alaska refers to description = 'Anita Bay, AK: Anita Bay Airport';
Question: What is the IATA code of the Anita Bay Airport in Anita Bay, Alaska?
SQL: SELECT code FROM airports WHERE description = 'Anita Bay, AK: Anita Bay Airport'
Database: airline
Note: origin airport id refers to origin_airport_id; longest delay due to a late aircraft refers to MAX(late_aircraft_delay);
Question: What is the origin airport id that recorded the longest delay due to a late aircraft?
SQL: SELECT origin_airport_id FROM airlines ORDER BY late_aircraft_delay DESC LIMIT 1
Database: airline
Note: depart to refers to dest; Hartsfield-Jackson Atlanta International refers to description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to origin; Chicago O'Hare International refes to description = 'Chicago, IL: Chicago O'Hare International';
Question: How many flights depart to Hartsfield-Jackson Atlanta International from Chicago O'Hare International?
SQL: SELECT count(fl_date) FROM airlines WHERE origin = ( SELECT airlines.origin FROM airports INNER JOIN airlines ON airports.code = airlines.origin WHERE airports.description = 'Chicago, IL: Chicago O''Hare International' ) AND dest = ( SELECT airlines.dest FROM airports INNER JOIN airlines ON airports.code = airlines.dest WHERE airports.description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International' )
Database: airline
Note: planes refers to tail_num; Southwest airlines Co. refers to description = 'Southwest airlines Co.: WN';
Question: How many planes does Southwest Airlines Co. have?
SQL: SELECT count(t3.tail_num) FROM ( SELECT airlines.tail_num FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE air carriers.description = 'Southwest Airlines Co.: WN' GROUP BY airlines.tail_num ) t3