db_id
stringclasses
140 values
question
stringlengths
16
224
query
stringlengths
18
577
db_schema
stringclasses
140 values
question_toks
listlengths
4
44
aircraft
What are the descriptions for the aircrafts?
SELECT Description FROM aircraft
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "descriptions", "for", "the", "aircrafts", "?" ]
aircraft
What is the average number of international passengers of all airports?
SELECT avg(International_Passengers) FROM airport
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "is", "the", "average", "number", "of", "international", "passengers", "of", "all", "airports", "?" ]
aircraft
What is the average number of international passengers for an airport?
SELECT avg(International_Passengers) FROM airport
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "is", "the", "average", "number", "of", "international", "passengers", "for", "an", "airport", "?" ]
aircraft
What are the number of international and domestic passengers of the airport named London "Heathrow"?
SELECT International_Passengers , Domestic_Passengers FROM airport WHERE Airport_Name = "London Heathrow"
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "number", "of", "international", "and", "domestic", "passengers", "of", "the", "airport", "named", "London", "``", "Heathrow", "''", "?" ]
aircraft
How many international and domestic passengers are there in the airport London Heathrow?
SELECT International_Passengers , Domestic_Passengers FROM airport WHERE Airport_Name = "London Heathrow"
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "How", "many", "international", "and", "domestic", "passengers", "are", "there", "in", "the", "airport", "London", "Heathrow", "?" ]
aircraft
What are the total number of Domestic Passengers of airports that contain the word "London".
SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "%London%"
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "total", "number", "of", "Domestic", "Passengers", "of", "airports", "that", "contain", "the", "word", "``", "London", "''", "." ]
aircraft
What are the total number of domestic passengers at all London airports?
SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "%London%"
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "total", "number", "of", "domestic", "passengers", "at", "all", "London", "airports", "?" ]
aircraft
What are the maximum and minimum number of transit passengers of all aiports.
SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "maximum", "and", "minimum", "number", "of", "transit", "passengers", "of", "all", "aiports", "." ]
aircraft
What is the maximum and mininum number of transit passengers for all airports?
SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "is", "the", "maximum", "and", "mininum", "number", "of", "transit", "passengers", "for", "all", "airports", "?" ]
aircraft
What are the name of pilots aged 25 or older?
SELECT Name FROM pilot WHERE Age >= 25
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "name", "of", "pilots", "aged", "25", "or", "older", "?" ]
aircraft
what is the name of every pilot who is at least 25 years old?
SELECT Name FROM pilot WHERE Age >= 25
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "what", "is", "the", "name", "of", "every", "pilot", "who", "is", "at", "least", "25", "years", "old", "?" ]
aircraft
List all pilot names in ascending alphabetical order.
SELECT Name FROM pilot ORDER BY Name ASC
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "List", "all", "pilot", "names", "in", "ascending", "alphabetical", "order", "." ]
aircraft
What are the names of the pilots in alphabetical order?
SELECT Name FROM pilot ORDER BY Name ASC
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "names", "of", "the", "pilots", "in", "alphabetical", "order", "?" ]
aircraft
List names of all pilot aged 30 or younger in descending alphabetical order.
SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "List", "names", "of", "all", "pilot", "aged", "30", "or", "younger", "in", "descending", "alphabetical", "order", "." ]
aircraft
What are the names of all pilots 30 years old or young in descending alphabetical order?
SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "names", "of", "all", "pilots", "30", "years", "old", "or", "young", "in", "descending", "alphabetical", "order", "?" ]
aircraft
Please show the names of aircrafts associated with airport with name "London Gatwick".
SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick"
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "Please", "show", "the", "names", "of", "aircrafts", "associated", "with", "airport", "with", "name", "``", "London", "Gatwick", "''", "." ]
aircraft
What are the names of all the aircrafts associated with London Gatwick airport?
SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick"
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "names", "of", "all", "the", "aircrafts", "associated", "with", "London", "Gatwick", "airport", "?" ]
aircraft
Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.
SELECT T1.Aircraft , T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "Please", "show", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "airports", "that", "have", "a", "total", "number", "of", "passengers", "bigger", "than", "10000000", "." ]
aircraft
What are the names and descriptions of aircrafts associated with an airport that has more total passengers than 10000000?
SELECT T1.Aircraft , T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "an", "airport", "that", "has", "more", "total", "passengers", "than", "10000000", "?" ]
aircraft
What is the average total number of passengers of airports that are associated with aircraft "Robinson R-22"?
SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = "Robinson R-22"
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "is", "the", "average", "total", "number", "of", "passengers", "of", "airports", "that", "are", "associated", "with", "aircraft", "``", "Robinson", "R-22", "''", "?" ]
aircraft
What is the average total number of passengers for all airports that the aircraft "Robinson R-22" visits?
SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = "Robinson R-22"
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "is", "the", "average", "total", "number", "of", "passengers", "for", "all", "airports", "that", "the", "aircraft", "``", "Robinson", "R-22", "''", "visits", "?" ]
aircraft
Please list the location and the winning aircraft name.
SELECT T2.Location , T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "Please", "list", "the", "location", "and", "the", "winning", "aircraft", "name", "." ]
aircraft
What is the location and name of the winning aircraft?
SELECT T2.Location , T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "is", "the", "location", "and", "name", "of", "the", "winning", "aircraft", "?" ]
aircraft
List the name of the aircraft that has been named winning aircraft the most number of times.
SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "List", "the", "name", "of", "the", "aircraft", "that", "has", "been", "named", "winning", "aircraft", "the", "most", "number", "of", "times", "." ]
aircraft
What is the name of the aircraft that has won an award the most?
SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "is", "the", "name", "of", "the", "aircraft", "that", "has", "won", "an", "award", "the", "most", "?" ]
aircraft
List the names of aircrafts and the number of times it won matches.
SELECT T1.Aircraft , COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "List", "the", "names", "of", "aircrafts", "and", "the", "number", "of", "times", "it", "won", "matches", "." ]
aircraft
For each aircraft that has won an award, what is its name and how many time has it won?
SELECT T1.Aircraft , COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "For", "each", "aircraft", "that", "has", "won", "an", "award", ",", "what", "is", "its", "name", "and", "how", "many", "time", "has", "it", "won", "?" ]
aircraft
List names of all pilot in descending order of age.
SELECT Name FROM pilot ORDER BY Age DESC
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "List", "names", "of", "all", "pilot", "in", "descending", "order", "of", "age", "." ]
aircraft
What are the names of all pilots listed by descending age?
SELECT Name FROM pilot ORDER BY Age DESC
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "names", "of", "all", "pilots", "listed", "by", "descending", "age", "?" ]
aircraft
List the names of aircrafts and that won matches at least twice.
SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*) >= 2
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "List", "the", "names", "of", "aircrafts", "and", "that", "won", "matches", "at", "least", "twice", "." ]
aircraft
What are the names of all aircrafts that have won a match at least twice?
SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*) >= 2
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "names", "of", "all", "aircrafts", "that", "have", "won", "a", "match", "at", "least", "twice", "?" ]
aircraft
List the names of aircrafts and that did not win any match.
SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH)
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "List", "the", "names", "of", "aircrafts", "and", "that", "did", "not", "win", "any", "match", "." ]
aircraft
What are the names of all aicrafts that have never won any match?
SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH)
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "names", "of", "all", "aicrafts", "that", "have", "never", "won", "any", "match", "?" ]
aircraft
Show the names of aircrafts that are associated with both an airport named "London Heathrow" and an airport named "London Gatwick"
SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Heathrow" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN...
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "Show", "the", "names", "of", "aircrafts", "that", "are", "associated", "with", "both", "an", "airport", "named", "``", "London", "Heathrow", "''", "and", "an", "airport", "named", "``", "London", "Gatwick", "''" ]
aircraft
What are the names of all aircrafts that are associated with both London Heathrow and Gatwick airports?
SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Heathrow" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN...
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "names", "of", "all", "aircrafts", "that", "are", "associated", "with", "both", "London", "Heathrow", "and", "Gatwick", "airports", "?" ]
aircraft
Show all information on the airport that has the largest number of international passengers.
SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "Show", "all", "information", "on", "the", "airport", "that", "has", "the", "largest", "number", "of", "international", "passengers", "." ]
aircraft
What is all the information on the airport with the largest number of international passengers?
SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "is", "all", "the", "information", "on", "the", "airport", "with", "the", "largest", "number", "of", "international", "passengers", "?" ]
aircraft
find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.
SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "find", "the", "name", "and", "age", "of", "the", "pilot", "who", "has", "won", "the", "most", "number", "of", "times", "among", "the", "pilots", "who", "are", "younger", "than", "30", "." ]
aircraft
What is the name and age of the pilot younger than 30 who has won the most number of times?
SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "is", "the", "name", "and", "age", "of", "the", "pilot", "younger", "than", "30", "who", "has", "won", "the", "most", "number", "of", "times", "?" ]
aircraft
what is the name and age of the youngest winning pilot?
SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "what", "is", "the", "name", "and", "age", "of", "the", "youngest", "winning", "pilot", "?" ]
aircraft
How old is the youngest winning pilot and what is their name?
SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "How", "old", "is", "the", "youngest", "winning", "pilot", "and", "what", "is", "their", "name", "?" ]
aircraft
find the name of pilots who did not win the matches held in the country of Australia.
SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia')
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "find", "the", "name", "of", "pilots", "who", "did", "not", "win", "the", "matches", "held", "in", "the", "country", "of", "Australia", "." ]
aircraft
What are the names of the pilots that have not won any matches in Australia?
SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia')
pilot: Pilot_Id (number), Name (text), Age (number) | aircraft: Aircraft_ID (number), Aircraft (text), Description (text), Max_Gross_Weight (text), Total_disk_area (text), Max_disk_Loading (text) | match: Round (number), Location (text), Country (text), Date (text), Fastest_Qualifying (text), Winning_Pilot (text), Winn...
[ "What", "are", "the", "names", "of", "the", "pilots", "that", "have", "not", "won", "any", "matches", "in", "Australia", "?" ]
local_govt_and_lot
How many residents does each property have? List property id and resident count.
SELECT T1.property_id , count(*) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id = T2.property_id GROUP BY T1.property_id
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "How", "many", "residents", "does", "each", "property", "have", "?", "List", "property", "id", "and", "resident", "count", "." ]
local_govt_and_lot
What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?
SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party'
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "What", "is", "the", "distinct", "service", "types", "that", "are", "provided", "by", "the", "organization", "which", "has", "detail", "'Denesik", "and", "Sons", "Party", "'", "?" ]
local_govt_and_lot
How many services has each resident requested? List the resident id, details, and the count in descending order of the count.
SELECT T1.resident_id , T1.other_details , count(*) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY count(*) DESC
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "How", "many", "services", "has", "each", "resident", "requested", "?", "List", "the", "resident", "id", ",", "details", ",", "and", "the", "count", "in", "descending", "order", "of", "the", "count", "." ]
local_govt_and_lot
What is the maximum number that a certain service is provided? List the service id, details and number.
SELECT T1.service_id , T1.service_details , count(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id = T2.service_id GROUP BY T1.service_id ORDER BY count(*) DESC LIMIT 1
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "What", "is", "the", "maximum", "number", "that", "a", "certain", "service", "is", "provided", "?", "List", "the", "service", "id", ",", "details", "and", "number", "." ]
local_govt_and_lot
List the id and type of each thing, and the details of the organization that owns it.
SELECT T1.thing_id , T1.type_of_Thing_Code , T2.organization_details FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id = T2.organization_id
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "List", "the", "id", "and", "type", "of", "each", "thing", ",", "and", "the", "details", "of", "the", "organization", "that", "owns", "it", "." ]
local_govt_and_lot
What are the id and details of the customers who have at least 3 events?
SELECT T1.customer_id , T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 3
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "What", "are", "the", "id", "and", "details", "of", "the", "customers", "who", "have", "at", "least", "3", "events", "?" ]
local_govt_and_lot
What is each customer's move in date, and the corresponding customer id and details?
SELECT T2.date_moved_in , T1.customer_id , T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "What", "is", "each", "customer", "'s", "move", "in", "date", ",", "and", "the", "corresponding", "customer", "id", "and", "details", "?" ]
local_govt_and_lot
Which events have the number of notes between one and three? List the event id and the property id.
SELECT T1.Customer_Event_ID , T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count(*) BETWEEN 1 AND 3
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "Which", "events", "have", "the", "number", "of", "notes", "between", "one", "and", "three", "?", "List", "the", "event", "id", "and", "the", "property", "id", "." ]
local_govt_and_lot
What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'
SELECT DISTINCT T2.thing_id , T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'Close", "'", "or", "has", "a", "status", "record", "before", "the", "date", "'2017-06-19", "02:59:21", "'" ]
local_govt_and_lot
How many distinct locations have the things with service detail 'Unsatisfied' been located in?
SELECT count(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.service_details = 'Unsatisfied'
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "How", "many", "distinct", "locations", "have", "the", "things", "with", "service", "detail", "'Unsatisfied", "'", "been", "located", "in", "?" ]
local_govt_and_lot
How many different status codes of things are there?
SELECT count(DISTINCT Status_of_Thing_Code) FROM Timed_Status_of_Things
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "How", "many", "different", "status", "codes", "of", "things", "are", "there", "?" ]
local_govt_and_lot
Which organizations are not a parent organization of others? List the organization id.
SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "Which", "organizations", "are", "not", "a", "parent", "organization", "of", "others", "?", "List", "the", "organization", "id", "." ]
local_govt_and_lot
When is the last day any resident moved in?
SELECT max(date_moved_in) FROM Residents
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "When", "is", "the", "last", "day", "any", "resident", "moved", "in", "?" ]
local_govt_and_lot
What are the resident details containing the substring 'Miss'?
SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%'
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "What", "are", "the", "resident", "details", "containing", "the", "substring", "'Miss", "'", "?" ]
local_govt_and_lot
List the customer event id and the corresponding move in date and property id.
SELECT customer_event_id , date_moved_in , property_id FROM customer_events
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "List", "the", "customer", "event", "id", "and", "the", "corresponding", "move", "in", "date", "and", "property", "id", "." ]
local_govt_and_lot
How many customers did not have any event?
SELECT count(*) FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM customer_events )
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "How", "many", "customers", "did", "not", "have", "any", "event", "?" ]
local_govt_and_lot
What are the distinct move in dates of the residents?
SELECT DISTINCT date_moved_in FROM residents
Customers: customer_id (number), customer_details (text) | Properties: property_id (number), property_type_code (text), property_address (text), other_details (text) | Residents: resident_id (number), property_id (number), date_moved_in (time), date_moved_out (time), other_details (text) | Organizations: organization_i...
[ "What", "are", "the", "distinct", "move", "in", "dates", "of", "the", "residents", "?" ]
school_player
How many schools are there?
SELECT count(*) FROM school
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "How", "many", "schools", "are", "there", "?" ]
school_player
Count the number of schools.
SELECT count(*) FROM school
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Count", "the", "number", "of", "schools", "." ]
school_player
List the locations of schools in ascending order of enrollment.
SELECT LOCATION FROM school ORDER BY Enrollment ASC
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "List", "the", "locations", "of", "schools", "in", "ascending", "order", "of", "enrollment", "." ]
school_player
What is the list of school locations sorted in ascending order of school enrollment?
SELECT LOCATION FROM school ORDER BY Enrollment ASC
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "is", "the", "list", "of", "school", "locations", "sorted", "in", "ascending", "order", "of", "school", "enrollment", "?" ]
school_player
List the locations of schools in descending order of founded year.
SELECT LOCATION FROM school ORDER BY Founded DESC
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "List", "the", "locations", "of", "schools", "in", "descending", "order", "of", "founded", "year", "." ]
school_player
What is the list of school locations sorted in descending order of school foundation year?
SELECT LOCATION FROM school ORDER BY Founded DESC
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "is", "the", "list", "of", "school", "locations", "sorted", "in", "descending", "order", "of", "school", "foundation", "year", "?" ]
school_player
What are the enrollments of schools whose denomination is not "Catholic"?
SELECT Enrollment FROM school WHERE Denomination != "Catholic"
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "are", "the", "enrollments", "of", "schools", "whose", "denomination", "is", "not", "``", "Catholic", "''", "?" ]
school_player
List the enrollment for each school that does not have "Catholic" as denomination.
SELECT Enrollment FROM school WHERE Denomination != "Catholic"
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "List", "the", "enrollment", "for", "each", "school", "that", "does", "not", "have", "``", "Catholic", "''", "as", "denomination", "." ]
school_player
What is the average enrollment of schools?
SELECT avg(Enrollment) FROM school
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "is", "the", "average", "enrollment", "of", "schools", "?" ]
school_player
Take the average of the school enrollment.
SELECT avg(Enrollment) FROM school
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Take", "the", "average", "of", "the", "school", "enrollment", "." ]
school_player
What are the teams of the players, sorted in ascending alphabetical order?
SELECT Team FROM player ORDER BY Team ASC
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "are", "the", "teams", "of", "the", "players", ",", "sorted", "in", "ascending", "alphabetical", "order", "?" ]
school_player
Find the team of each player and sort them in ascending alphabetical order.
SELECT Team FROM player ORDER BY Team ASC
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Find", "the", "team", "of", "each", "player", "and", "sort", "them", "in", "ascending", "alphabetical", "order", "." ]
school_player
How many different positions of players are there?
SELECT count(DISTINCT POSITION) FROM player
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "How", "many", "different", "positions", "of", "players", "are", "there", "?" ]
school_player
Count the number of distinct player positions.
SELECT count(DISTINCT POSITION) FROM player
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Count", "the", "number", "of", "distinct", "player", "positions", "." ]
school_player
Find the team of the player of the highest age.
SELECT Team FROM player ORDER BY Age DESC LIMIT 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Find", "the", "team", "of", "the", "player", "of", "the", "highest", "age", "." ]
school_player
Which team has the oldest player?
SELECT Team FROM player ORDER BY Age DESC LIMIT 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Which", "team", "has", "the", "oldest", "player", "?" ]
school_player
List the teams of the players with the top 5 largest ages.
SELECT Team FROM player ORDER BY Age DESC LIMIT 5
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "List", "the", "teams", "of", "the", "players", "with", "the", "top", "5", "largest", "ages", "." ]
school_player
What are the teams that have the 5 oldest players?
SELECT Team FROM player ORDER BY Age DESC LIMIT 5
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "are", "the", "teams", "that", "have", "the", "5", "oldest", "players", "?" ]
school_player
For each player, show the team and the location of school they belong to.
SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "For", "each", "player", ",", "show", "the", "team", "and", "the", "location", "of", "school", "they", "belong", "to", "." ]
school_player
What are the team and the location of school each player belongs to?
SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "are", "the", "team", "and", "the", "location", "of", "school", "each", "player", "belongs", "to", "?" ]
school_player
Show the locations of schools that have more than 1 player.
SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Show", "the", "locations", "of", "schools", "that", "have", "more", "than", "1", "player", "." ]
school_player
Which schools have more than 1 player? Give me the school locations.
SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Which", "schools", "have", "more", "than", "1", "player", "?", "Give", "me", "the", "school", "locations", "." ]
school_player
Show the denomination of the school that has the most players.
SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Show", "the", "denomination", "of", "the", "school", "that", "has", "the", "most", "players", "." ]
school_player
What is the denomination of the school the most players belong to?
SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "is", "the", "denomination", "of", "the", "school", "the", "most", "players", "belong", "to", "?" ]
school_player
Show locations and nicknames of schools.
SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Show", "locations", "and", "nicknames", "of", "schools", "." ]
school_player
What are the location and nickname of each school?
SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "are", "the", "location", "and", "nickname", "of", "each", "school", "?" ]
school_player
Please show different denominations and the corresponding number of schools.
SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Please", "show", "different", "denominations", "and", "the", "corresponding", "number", "of", "schools", "." ]
school_player
For each denomination, return the denomination and the count of schools with that denomination.
SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "For", "each", "denomination", ",", "return", "the", "denomination", "and", "the", "count", "of", "schools", "with", "that", "denomination", "." ]
school_player
Please show different denominations and the corresponding number of schools in descending order.
SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Please", "show", "different", "denominations", "and", "the", "corresponding", "number", "of", "schools", "in", "descending", "order", "." ]
school_player
Order denominations in descending order of the count of schools with the denomination. Return each denomination with the count of schools.
SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Order", "denominations", "in", "descending", "order", "of", "the", "count", "of", "schools", "with", "the", "denomination", ".", "Return", "each", "denomination", "with", "the", "count", "of", "schools", "." ]
school_player
List the school color of the school that has the largest enrollment.
SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "List", "the", "school", "color", "of", "the", "school", "that", "has", "the", "largest", "enrollment", "." ]
school_player
What is the school color of the school with the largest enrollment?
SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "is", "the", "school", "color", "of", "the", "school", "with", "the", "largest", "enrollment", "?" ]
school_player
List the locations of schools that do not have any player.
SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player)
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "List", "the", "locations", "of", "schools", "that", "do", "not", "have", "any", "player", "." ]
school_player
Which schools do not have any player? Give me the school locations.
SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player)
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Which", "schools", "do", "not", "have", "any", "player", "?", "Give", "me", "the", "school", "locations", "." ]
school_player
Show the denomination shared by schools founded before 1890 and schools founded after 1900
SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Show", "the", "denomination", "shared", "by", "schools", "founded", "before", "1890", "and", "schools", "founded", "after", "1900" ]
school_player
What are the denominations used by both schools founded before 1890 and schools founded after 1900?
SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "are", "the", "denominations", "used", "by", "both", "schools", "founded", "before", "1890", "and", "schools", "founded", "after", "1900", "?" ]
school_player
Show the nicknames of schools that are not in division 1.
SELECT Nickname FROM school_details WHERE Division != "Division 1"
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Show", "the", "nicknames", "of", "schools", "that", "are", "not", "in", "division", "1", "." ]
school_player
What are the nicknames of schools whose division is not 1?
SELECT Nickname FROM school_details WHERE Division != "Division 1"
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "are", "the", "nicknames", "of", "schools", "whose", "division", "is", "not", "1", "?" ]
school_player
Show the denomination shared by more than one school.
SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "Show", "the", "denomination", "shared", "by", "more", "than", "one", "school", "." ]
school_player
What are the denomination more than one school have?
SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1
school: School_ID (number), School (text), Location (text), Enrollment (number), Founded (number), Denomination (text), Boys_or_Girls (text), Day_or_Boarding (text), Year_Entered_Competition (number), School_Colors (text) | school_details: School_ID (number), Nickname (text), Colors (text), League (text), Class (text),...
[ "What", "are", "the", "denomination", "more", "than", "one", "school", "have", "?" ]