db_id stringclasses 140
values | query stringlengths 18 577 | question stringlengths 16 224 | query_toks listlengths 4 90 | query_toks_no_value listlengths 4 125 | question_toks listlengths 4 44 | question_toks_masked listlengths 4 44 | query_toks_masked listlengths 4 125 |
|---|---|---|---|---|---|---|---|
aircraft | SELECT Description FROM aircraft | What are the descriptions for the aircrafts? | [
"SELECT",
"Description",
"FROM",
"aircraft"
] | [
"select",
"description",
"from",
"aircraft"
] | [
"What",
"are",
"the",
"descriptions",
"for",
"the",
"aircrafts",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"for",
"the",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
aircraft | SELECT avg(International_Passengers) FROM airport | What is the average number of international passengers of all airports? | [
"SELECT",
"avg",
"(",
"International_Passengers",
")",
"FROM",
"airport"
] | [
"select",
"avg",
"(",
"international_passengers",
")",
"from",
"airport"
] | [
"What",
"is",
"the",
"average",
"number",
"of",
"international",
"passengers",
"of",
"all",
"airports",
"?"
] | [
"What",
"is",
"the",
"average",
"number",
"of",
"<mask>",
"passengers",
"of",
"all",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
aircraft | SELECT avg(International_Passengers) FROM airport | What is the average number of international passengers for an airport? | [
"SELECT",
"avg",
"(",
"International_Passengers",
")",
"FROM",
"airport"
] | [
"select",
"avg",
"(",
"international_passengers",
")",
"from",
"airport"
] | [
"What",
"is",
"the",
"average",
"number",
"of",
"international",
"passengers",
"for",
"an",
"airport",
"?"
] | [
"What",
"is",
"the",
"average",
"number",
"of",
"<mask>",
"passengers",
"for",
"an",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
aircraft | SELECT International_Passengers , Domestic_Passengers FROM airport WHERE Airport_Name = "London Heathrow" | 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",
"''"
] | [
"select",
"international_passengers",
",",
"domestic_passengers",
"from",
"airport",
"where",
"airport_name",
"=",
"value"
] | [
"What",
"are",
"the",
"number",
"of",
"international",
"and",
"domestic",
"passengers",
"of",
"the",
"airport",
"named",
"London",
"``",
"Heathrow",
"''",
"?"
] | [
"What",
"are",
"the",
"number",
"of",
"<mask>",
"and",
"<mask>",
"passengers",
"of",
"the",
"<mask>",
"<mask>",
"London",
"``",
"Heathrow",
"''",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
aircraft | SELECT International_Passengers , Domestic_Passengers FROM airport WHERE Airport_Name = "London Heathrow" | 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",
"''"
] | [
"select",
"international_passengers",
",",
"domestic_passengers",
"from",
"airport",
"where",
"airport_name",
"=",
"value"
] | [
"How",
"many",
"international",
"and",
"domestic",
"passengers",
"are",
"there",
"in",
"the",
"airport",
"London",
"Heathrow",
"?"
] | [
"How",
"many",
"<mask>",
"and",
"<mask>",
"passengers",
"are",
"there",
"in",
"the",
"<mask>",
"London",
"Heathrow",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
aircraft | SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "%London%" | 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",
"%",
"''"
] | [
"select",
"sum",
"(",
"domestic_passengers",
")",
"from",
"airport",
"where",
"airport_name",
"like",
"value"
] | [
"What",
"are",
"the",
"total",
"number",
"of",
"Domestic",
"Passengers",
"of",
"airports",
"that",
"contain",
"the",
"word",
"``",
"London",
"''",
"."
] | [
"What",
"are",
"the",
"<mask>",
"number",
"of",
"<mask>",
"Passengers",
"of",
"<mask>",
"that",
"contain",
"the",
"word",
"``",
"London",
"''",
"."
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
aircraft | SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "%London%" | What are the total number of domestic passengers at all London airports? | [
"SELECT",
"sum",
"(",
"Domestic_Passengers",
")",
"FROM",
"airport",
"WHERE",
"Airport_Name",
"LIKE",
"``",
"%",
"London",
"%",
"''"
] | [
"select",
"sum",
"(",
"domestic_passengers",
")",
"from",
"airport",
"where",
"airport_name",
"like",
"value"
] | [
"What",
"are",
"the",
"total",
"number",
"of",
"domestic",
"passengers",
"at",
"all",
"London",
"airports",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"number",
"of",
"<mask>",
"passengers",
"at",
"all",
"London",
"<mask>",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
aircraft | SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport | What are the maximum and minimum number of transit passengers of all aiports. | [
"SELECT",
"max",
"(",
"Transit_Passengers",
")",
",",
"min",
"(",
"Transit_Passengers",
")",
"FROM",
"airport"
] | [
"select",
"max",
"(",
"transit_passengers",
")",
",",
"min",
"(",
"transit_passengers",
")",
"from",
"airport"
] | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"number",
"of",
"transit",
"passengers",
"of",
"all",
"aiports",
"."
] | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"number",
"of",
"<mask>",
"passengers",
"of",
"all",
"aiports",
"."
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
aircraft | SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport | What is the maximum and mininum number of transit passengers for all airports? | [
"SELECT",
"max",
"(",
"Transit_Passengers",
")",
",",
"min",
"(",
"Transit_Passengers",
")",
"FROM",
"airport"
] | [
"select",
"max",
"(",
"transit_passengers",
")",
",",
"min",
"(",
"transit_passengers",
")",
"from",
"airport"
] | [
"What",
"is",
"the",
"maximum",
"and",
"mininum",
"number",
"of",
"transit",
"passengers",
"for",
"all",
"airports",
"?"
] | [
"What",
"is",
"the",
"maximum",
"and",
"mininum",
"number",
"of",
"<mask>",
"passengers",
"for",
"all",
"<mask>",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
aircraft | SELECT Name FROM pilot WHERE Age >= 25 | What are the name of pilots aged 25 or older? | [
"SELECT",
"Name",
"FROM",
"pilot",
"WHERE",
"Age",
">",
"=",
"25"
] | [
"select",
"name",
"from",
"pilot",
"where",
"age",
">",
"=",
"value"
] | [
"What",
"are",
"the",
"name",
"of",
"pilots",
"aged",
"25",
"or",
"older",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"aged",
"<unk>",
"or",
"older",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"=",
"<unk>"
] |
aircraft | SELECT Name FROM pilot WHERE Age >= 25 | what is the name of every pilot who is at least 25 years old? | [
"SELECT",
"Name",
"FROM",
"pilot",
"WHERE",
"Age",
">",
"=",
"25"
] | [
"select",
"name",
"from",
"pilot",
"where",
"age",
">",
"=",
"value"
] | [
"what",
"is",
"the",
"name",
"of",
"every",
"pilot",
"who",
"is",
"at",
"least",
"25",
"years",
"old",
"?"
] | [
"what",
"is",
"the",
"<mask>",
"of",
"every",
"<mask>",
"who",
"is",
"at",
"least",
"<unk>",
"years",
"old",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"=",
"<unk>"
] |
aircraft | SELECT Name FROM pilot ORDER BY Name ASC | List all pilot names in ascending alphabetical order. | [
"SELECT",
"Name",
"FROM",
"pilot",
"ORDER",
"BY",
"Name",
"ASC"
] | [
"select",
"name",
"from",
"pilot",
"order",
"by",
"name",
"asc"
] | [
"List",
"all",
"pilot",
"names",
"in",
"ascending",
"alphabetical",
"order",
"."
] | [
"List",
"all",
"<mask>",
"<mask>",
"in",
"ascending",
"alphabetical",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
aircraft | SELECT Name FROM pilot ORDER BY Name ASC | What are the names of the pilots in alphabetical order? | [
"SELECT",
"Name",
"FROM",
"pilot",
"ORDER",
"BY",
"Name",
"ASC"
] | [
"select",
"name",
"from",
"pilot",
"order",
"by",
"name",
"asc"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"pilots",
"in",
"alphabetical",
"order",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"in",
"alphabetical",
"order",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
aircraft | SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC | List names of all pilot aged 30 or younger in descending alphabetical order. | [
"SELECT",
"Name",
"FROM",
"pilot",
"WHERE",
"Age",
"<",
"=",
"30",
"ORDER",
"BY",
"Name",
"DESC"
] | [
"select",
"name",
"from",
"pilot",
"where",
"age",
"<",
"=",
"value",
"order",
"by",
"name",
"desc"
] | [
"List",
"names",
"of",
"all",
"pilot",
"aged",
"30",
"or",
"younger",
"in",
"descending",
"alphabetical",
"order",
"."
] | [
"List",
"<mask>",
"of",
"all",
"<mask>",
"aged",
"<unk>",
"or",
"younger",
"in",
"descending",
"alphabetical",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"=",
"<unk>",
"order",
"by",
"<mask>",
"desc"
] |
aircraft | SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC | 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"
] | [
"select",
"name",
"from",
"pilot",
"where",
"age",
"<",
"=",
"value",
"order",
"by",
"name",
"desc"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"pilots",
"30",
"years",
"old",
"or",
"young",
"in",
"descending",
"alphabetical",
"order",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"<unk>",
"years",
"old",
"or",
"young",
"in",
"descending",
"alphabetical",
"order",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"=",
"<unk>",
"order",
"by",
"<mask>",
"desc"
] |
aircraft | 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" | 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",
"=",
"``",
"Lond... | [
"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... | [
"Please",
"show",
"the",
"names",
"of",
"aircrafts",
"associated",
"with",
"airport",
"with",
"name",
"``",
"London",
"Gatwick",
"''",
"."
] | [
"Please",
"show",
"the",
"<mask>",
"of",
"<mask>",
"associated",
"with",
"<mask>",
"with",
"<mask>",
"``",
"London",
"Gatwick",
"''",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
aircraft | 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" | 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",
"=",
"``",
"Lond... | [
"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... | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"aircrafts",
"associated",
"with",
"London",
"Gatwick",
"airport",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"the",
"<mask>",
"associated",
"with",
"London",
"Gatwick",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
aircraft | 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 | 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_Pass... | [
"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",
".",
"airpor... | [
"Please",
"show",
"the",
"names",
"and",
"descriptions",
"of",
"aircrafts",
"associated",
"with",
"airports",
"that",
"have",
"a",
"total",
"number",
"of",
"passengers",
"bigger",
"than",
"10000000",
"."
] | [
"Please",
"show",
"the",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"associated",
"with",
"<mask>",
"that",
"have",
"a",
"<mask>",
"number",
"of",
"passengers",
"bigger",
"than",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mas... |
aircraft | 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 | 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_Pass... | [
"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",
".",
"airpor... | [
"What",
"are",
"the",
"names",
"and",
"descriptions",
"of",
"aircrafts",
"associated",
"with",
"an",
"airport",
"that",
"has",
"more",
"total",
"passengers",
"than",
"10000000",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"associated",
"with",
"an",
"<mask>",
"that",
"has",
"more",
"<mask>",
"passengers",
"than",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mas... |
aircraft | 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" | 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.Aircra... | [
"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",
... | [
"What",
"is",
"the",
"average",
"total",
"number",
"of",
"passengers",
"of",
"airports",
"that",
"are",
"associated",
"with",
"aircraft",
"``",
"Robinson",
"R-22",
"''",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"number",
"of",
"passengers",
"of",
"<mask>",
"that",
"are",
"associated",
"with",
"<mask>",
"``",
"Robinson",
"R-22",
"''",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"... |
aircraft | 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" | 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.Aircra... | [
"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",
... | [
"What",
"is",
"the",
"average",
"total",
"number",
"of",
"passengers",
"for",
"all",
"airports",
"that",
"the",
"aircraft",
"``",
"Robinson",
"R-22",
"''",
"visits",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"number",
"of",
"passengers",
"for",
"all",
"<mask>",
"that",
"the",
"<mask>",
"``",
"Robinson",
"R-22",
"''",
"visits",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"... |
aircraft | SELECT T2.Location , T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_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"
] | [
"select",
"t2",
".",
"location",
",",
"t1",
".",
"aircraft",
"from",
"aircraft",
"as",
"t1",
"join",
"match",
"as",
"t2",
"on",
"t1",
".",
"aircraft_id",
"=",
"t2",
".",
"winning_aircraft"
] | [
"Please",
"list",
"the",
"location",
"and",
"the",
"winning",
"aircraft",
"name",
"."
] | [
"Please",
"list",
"the",
"<mask>",
"and",
"the",
"winning",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
aircraft | SELECT T2.Location , T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_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"
] | [
"select",
"t2",
".",
"location",
",",
"t1",
".",
"aircraft",
"from",
"aircraft",
"as",
"t1",
"join",
"match",
"as",
"t2",
"on",
"t1",
".",
"aircraft_id",
"=",
"t2",
".",
"winning_aircraft"
] | [
"What",
"is",
"the",
"location",
"and",
"name",
"of",
"the",
"winning",
"aircraft",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"winning",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
aircraft | 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 | 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"
] | [
"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",... | [
"List",
"the",
"name",
"of",
"the",
"aircraft",
"that",
"has",
"been",
"named",
"winning",
"aircraft",
"the",
"most",
"number",
"of",
"times",
"."
] | [
"List",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"been",
"<mask>",
"winning",
"<mask>",
"the",
"most",
"number",
"of",
"times",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
aircraft | 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 | 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"
] | [
"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",... | [
"What",
"is",
"the",
"name",
"of",
"the",
"aircraft",
"that",
"has",
"won",
"an",
"award",
"the",
"most",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"won",
"an",
"award",
"the",
"most",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
aircraft | SELECT T1.Aircraft , COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_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"
] | [
"select",
"t1",
".",
"aircraft",
",",
"count",
"(",
"*",
")",
"from",
"aircraft",
"as",
"t1",
"join",
"match",
"as",
"t2",
"on",
"t1",
".",
"aircraft_id",
"=",
"t2",
".",
"winning_aircraft",
"group",
"by",
"t2",
".",
"winning_aircraft"
] | [
"List",
"the",
"names",
"of",
"aircrafts",
"and",
"the",
"number",
"of",
"times",
"it",
"won",
"matches",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"and",
"the",
"number",
"of",
"times",
"it",
"won",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
aircraft | SELECT T1.Aircraft , COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_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"
] | [
"select",
"t1",
".",
"aircraft",
",",
"count",
"(",
"*",
")",
"from",
"aircraft",
"as",
"t1",
"join",
"match",
"as",
"t2",
"on",
"t1",
".",
"aircraft_id",
"=",
"t2",
".",
"winning_aircraft",
"group",
"by",
"t2",
".",
"winning_aircraft"
] | [
"For",
"each",
"aircraft",
"that",
"has",
"won",
"an",
"award",
",",
"what",
"is",
"its",
"name",
"and",
"how",
"many",
"time",
"has",
"it",
"won",
"?"
] | [
"For",
"each",
"<mask>",
"that",
"has",
"won",
"an",
"award",
",",
"what",
"is",
"its",
"<mask>",
"and",
"how",
"many",
"time",
"has",
"it",
"won",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
aircraft | SELECT Name FROM pilot ORDER BY Age DESC | List names of all pilot in descending order of age. | [
"SELECT",
"Name",
"FROM",
"pilot",
"ORDER",
"BY",
"Age",
"DESC"
] | [
"select",
"name",
"from",
"pilot",
"order",
"by",
"age",
"desc"
] | [
"List",
"names",
"of",
"all",
"pilot",
"in",
"descending",
"order",
"of",
"age",
"."
] | [
"List",
"<mask>",
"of",
"all",
"<mask>",
"in",
"descending",
"order",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
aircraft | SELECT Name FROM pilot ORDER BY Age DESC | What are the names of all pilots listed by descending age? | [
"SELECT",
"Name",
"FROM",
"pilot",
"ORDER",
"BY",
"Age",
"DESC"
] | [
"select",
"name",
"from",
"pilot",
"order",
"by",
"age",
"desc"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"pilots",
"listed",
"by",
"descending",
"age",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"listed",
"by",
"descending",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
aircraft | 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 | 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"
] | [
"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",
"(",
"*",
")",
">",
"=",
... | [
"List",
"the",
"names",
"of",
"aircrafts",
"and",
"that",
"won",
"matches",
"at",
"least",
"twice",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"and",
"that",
"won",
"<mask>",
"at",
"least",
"twice",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
aircraft | 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 | 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"
] | [
"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",
"(",
"*",
")",
">",
"=",
... | [
"What",
"are",
"the",
"names",
"of",
"all",
"aircrafts",
"that",
"have",
"won",
"a",
"match",
"at",
"least",
"twice",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"have",
"won",
"a",
"<mask>",
"at",
"least",
"twice",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
aircraft | SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH) | 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",
")"
] | [
"select",
"aircraft",
"from",
"aircraft",
"where",
"aircraft_id",
"not",
"in",
"(",
"select",
"winning_aircraft",
"from",
"match",
")"
] | [
"List",
"the",
"names",
"of",
"aircrafts",
"and",
"that",
"did",
"not",
"win",
"any",
"match",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"and",
"that",
"did",
"not",
"win",
"any",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
aircraft | SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH) | 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",
")"
] | [
"select",
"aircraft",
"from",
"aircraft",
"where",
"aircraft_id",
"not",
"in",
"(",
"select",
"winning_aircraft",
"from",
"match",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"aicrafts",
"that",
"have",
"never",
"won",
"any",
"match",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"aicrafts",
"that",
"have",
"never",
"won",
"any",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
aircraft | 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... | 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",
"=",
"``",
"Lond... | [
"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... | [
"Show",
"the",
"names",
"of",
"aircrafts",
"that",
"are",
"associated",
"with",
"both",
"an",
"airport",
"named",
"``",
"London",
"Heathrow",
"''",
"and",
"an",
"airport",
"named",
"``",
"London",
"Gatwick",
"''"
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"that",
"are",
"associated",
"with",
"both",
"an",
"<mask>",
"<mask>",
"``",
"London",
"Heathrow",
"''",
"and",
"an",
"<mask>",
"<mask>",
"``",
"London",
"Gatwick",
"''"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
aircraft | 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... | 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",
"=",
"``",
"Lond... | [
"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... | [
"What",
"are",
"the",
"names",
"of",
"all",
"aircrafts",
"that",
"are",
"associated",
"with",
"both",
"London",
"Heathrow",
"and",
"Gatwick",
"airports",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"are",
"associated",
"with",
"both",
"London",
"Heathrow",
"and",
"Gatwick",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
aircraft | SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 | Show all information on the airport that has the largest number of international passengers. | [
"SELECT",
"*",
"FROM",
"airport",
"ORDER",
"BY",
"International_Passengers",
"DESC",
"LIMIT",
"1"
] | [
"select",
"*",
"from",
"airport",
"order",
"by",
"international_passengers",
"desc",
"limit",
"value"
] | [
"Show",
"all",
"information",
"on",
"the",
"airport",
"that",
"has",
"the",
"largest",
"number",
"of",
"international",
"passengers",
"."
] | [
"Show",
"all",
"information",
"on",
"the",
"<mask>",
"that",
"has",
"the",
"largest",
"number",
"of",
"<mask>",
"passengers",
"."
] | [
"select",
"*",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
aircraft | SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 | 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"
] | [
"select",
"*",
"from",
"airport",
"order",
"by",
"international_passengers",
"desc",
"limit",
"value"
] | [
"What",
"is",
"all",
"the",
"information",
"on",
"the",
"airport",
"with",
"the",
"largest",
"number",
"of",
"international",
"passengers",
"?"
] | [
"What",
"is",
"all",
"the",
"information",
"on",
"the",
"<mask>",
"with",
"the",
"largest",
"number",
"of",
"<mask>",
"passengers",
"?"
] | [
"select",
"*",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
aircraft | 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 | 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",
"LIM... | [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"age",
"from",
"pilot",
"as",
"t1",
"join",
"match",
"as",
"t2",
"on",
"t1",
".",
"pilot_id",
"=",
"t2",
".",
"winning_pilot",
"where",
"t1",
".",
"age",
"<",
"value",
"group",
"by",
"t2",
".",
"winning_... | [
"find",
"the",
"name",
"and",
"age",
"of",
"the",
"pilot",
"who",
"has",
"won",
"the",
"most",
"number",
"of",
"times",
"among",
"the",
"pilots",
"who",
"are",
"younger",
"than",
"30",
"."
] | [
"find",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"who",
"has",
"won",
"the",
"most",
"number",
"of",
"times",
"among",
"the",
"<mask>",
"who",
"are",
"younger",
"than",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>",
"group",
"by... |
aircraft | 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 | 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",
"LIM... | [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"age",
"from",
"pilot",
"as",
"t1",
"join",
"match",
"as",
"t2",
"on",
"t1",
".",
"pilot_id",
"=",
"t2",
".",
"winning_pilot",
"where",
"t1",
".",
"age",
"<",
"value",
"group",
"by",
"t2",
".",
"winning_... | [
"What",
"is",
"the",
"name",
"and",
"age",
"of",
"the",
"pilot",
"younger",
"than",
"30",
"who",
"has",
"won",
"the",
"most",
"number",
"of",
"times",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"younger",
"than",
"<unk>",
"who",
"has",
"won",
"the",
"most",
"number",
"of",
"times",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>",
"group",
"by... |
aircraft | 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 | 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"
] | [
"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",
"value"
] | [
"what",
"is",
"the",
"name",
"and",
"age",
"of",
"the",
"youngest",
"winning",
"pilot",
"?"
] | [
"what",
"is",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"youngest",
"winning",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"limit",
"<unk>"
] |
aircraft | 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 | 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"
] | [
"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",
"value"
] | [
"How",
"old",
"is",
"the",
"youngest",
"winning",
"pilot",
"and",
"what",
"is",
"their",
"name",
"?"
] | [
"How",
"old",
"is",
"the",
"youngest",
"winning",
"<mask>",
"and",
"what",
"is",
"their",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"limit",
"<unk>"
] |
aircraft | SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia') | 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",
"'",
")"
] | [
"select",
"name",
"from",
"pilot",
"where",
"pilot_id",
"not",
"in",
"(",
"select",
"winning_pilot",
"from",
"match",
"where",
"country",
"=",
"value",
")"
] | [
"find",
"the",
"name",
"of",
"pilots",
"who",
"did",
"not",
"win",
"the",
"matches",
"held",
"in",
"the",
"country",
"of",
"Australia",
"."
] | [
"find",
"the",
"<mask>",
"of",
"<mask>",
"who",
"did",
"not",
"win",
"the",
"<mask>",
"held",
"in",
"the",
"<mask>",
"of",
"Australia",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
aircraft | SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia') | 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",
"'",
")"
] | [
"select",
"name",
"from",
"pilot",
"where",
"pilot_id",
"not",
"in",
"(",
"select",
"winning_pilot",
"from",
"match",
"where",
"country",
"=",
"value",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"pilots",
"that",
"have",
"not",
"won",
"any",
"matches",
"in",
"Australia",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"have",
"not",
"won",
"any",
"<mask>",
"in",
"Australia",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
local_govt_and_lot | 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 | 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"
] | [
"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"
] | [
"How",
"many",
"residents",
"does",
"each",
"property",
"have",
"?",
"List",
"property",
"id",
"and",
"resident",
"count",
"."
] | [
"How",
"many",
"<mask>",
"does",
"each",
"<mask>",
"have",
"?",
"List",
"<mask>",
"id",
"<mask>",
"<mask>",
"count",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
local_govt_and_lot | 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' | 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",
"'"
] | [
"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",
"=",
"value"
] | [
"What",
"is",
"the",
"distinct",
"service",
"types",
"that",
"are",
"provided",
"by",
"the",
"organization",
"which",
"has",
"detail",
"'Denesik",
"and",
"Sons",
"Party",
"'",
"?"
] | [
"What",
"is",
"the",
"distinct",
"<mask>",
"<mask>",
"that",
"are",
"provided",
"by",
"the",
"<mask>",
"which",
"has",
"detail",
"'Denesik",
"<mask>",
"Sons",
"Party",
"'",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
local_govt_and_lot | 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 | 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",
"... | [
"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... | [
"How",
"many",
"services",
"has",
"each",
"resident",
"requested",
"?",
"List",
"the",
"resident",
"id",
",",
"details",
",",
"and",
"the",
"count",
"in",
"descending",
"order",
"of",
"the",
"count",
"."
] | [
"How",
"many",
"<mask>",
"has",
"each",
"<mask>",
"requested",
"?",
"List",
"the",
"<mask>",
"id",
",",
"details",
",",
"<mask>",
"the",
"count",
"in",
"descending",
"order",
"of",
"the",
"count",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",... |
local_govt_and_lot | 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 | 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",
"(",... | [
"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",... | [
"What",
"is",
"the",
"maximum",
"number",
"that",
"a",
"certain",
"service",
"is",
"provided",
"?",
"List",
"the",
"service",
"id",
",",
"details",
"and",
"number",
"."
] | [
"What",
"is",
"the",
"maximum",
"number",
"that",
"a",
"certain",
"<mask>",
"is",
"provided",
"?",
"List",
"the",
"<mask>",
"id",
",",
"details",
"<mask>",
"number",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",... |
local_govt_and_lot | 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 | 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"
] | [
"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"
] | [
"List",
"the",
"id",
"and",
"type",
"of",
"each",
"thing",
",",
"and",
"the",
"details",
"of",
"the",
"organization",
"that",
"owns",
"it",
"."
] | [
"List",
"the",
"id",
"<mask>",
"<mask>",
"of",
"each",
"<mask>",
",",
"<mask>",
"the",
"details",
"of",
"the",
"<mask>",
"that",
"owns",
"it",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
local_govt_and_lot | 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 | 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"
] | [
"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",
... | [
"What",
"are",
"the",
"id",
"and",
"details",
"of",
"the",
"customers",
"who",
"have",
"at",
"least",
"3",
"events",
"?"
] | [
"What",
"are",
"the",
"id",
"<mask>",
"details",
"of",
"the",
"<mask>",
"who",
"have",
"at",
"least",
"<unk>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"... |
local_govt_and_lot | 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 | 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"
] | [
"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"
] | [
"What",
"is",
"each",
"customer",
"'s",
"move",
"in",
"date",
",",
"and",
"the",
"corresponding",
"customer",
"id",
"and",
"details",
"?"
] | [
"What",
"is",
"each",
"<mask>",
"'s",
"move",
"in",
"<mask>",
",",
"<mask>",
"the",
"corresponding",
"<mask>",
"id",
"<mask>",
"details",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
local_govt_and_lot | 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 | 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",
"(",
"*",
")"... | [
"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",
".",
"cu... | [
"Which",
"events",
"have",
"the",
"number",
"of",
"notes",
"between",
"one",
"and",
"three",
"?",
"List",
"the",
"event",
"id",
"and",
"the",
"property",
"id",
"."
] | [
"Which",
"<mask>",
"have",
"the",
"number",
"of",
"<mask>",
"between",
"one",
"<mask>",
"three",
"?",
"List",
"the",
"<mask>",
"id",
"<mask>",
"the",
"<mask>",
"id",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"... |
local_govt_and_lot | 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' | 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",
"<... | [
"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",
... | [
"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",
"'"
] | [
"What",
"are",
"the",
"distinct",
"id",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"the",
"<mask>",
"'Close",
"'",
"or",
"has",
"a",
"<mask>",
"record",
"before",
"the",
"<mask>",
"'2017-06-19",
"02:59:21",
"'"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
... |
local_govt_and_lot | 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' | 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",
"'"
] | [
"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",
"=",
"value"
] | [
"How",
"many",
"distinct",
"locations",
"have",
"the",
"things",
"with",
"service",
"detail",
"'Unsatisfied",
"'",
"been",
"located",
"in",
"?"
] | [
"How",
"many",
"distinct",
"<mask>",
"have",
"the",
"<mask>",
"with",
"<mask>",
"detail",
"'Unsatisfied",
"'",
"been",
"located",
"in",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
local_govt_and_lot | SELECT count(DISTINCT Status_of_Thing_Code) FROM Timed_Status_of_Things | How many different status codes of things are there? | [
"SELECT",
"count",
"(",
"DISTINCT",
"Status_of_Thing_Code",
")",
"FROM",
"Timed_Status_of_Things"
] | [
"select",
"count",
"(",
"distinct",
"status_of_thing_code",
")",
"from",
"timed_status_of_things"
] | [
"How",
"many",
"different",
"status",
"codes",
"of",
"things",
"are",
"there",
"?"
] | [
"How",
"many",
"different",
"<mask>",
"<mask>",
"of",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
local_govt_and_lot | SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations | 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"
] | [
"select",
"organization_id",
"from",
"organizations",
"except",
"select",
"parent_organization_id",
"from",
"organizations"
] | [
"Which",
"organizations",
"are",
"not",
"a",
"parent",
"organization",
"of",
"others",
"?",
"List",
"the",
"organization",
"id",
"."
] | [
"Which",
"<mask>",
"are",
"not",
"a",
"<mask>",
"<mask>",
"of",
"<mask>",
"?",
"List",
"the",
"<mask>",
"id",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>"
] |
local_govt_and_lot | SELECT max(date_moved_in) FROM Residents | When is the last day any resident moved in? | [
"SELECT",
"max",
"(",
"date_moved_in",
")",
"FROM",
"Residents"
] | [
"select",
"max",
"(",
"date_moved_in",
")",
"from",
"residents"
] | [
"When",
"is",
"the",
"last",
"day",
"any",
"resident",
"moved",
"in",
"?"
] | [
"When",
"is",
"the",
"last",
"day",
"any",
"<mask>",
"moved",
"in",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
local_govt_and_lot | SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%' | What are the resident details containing the substring 'Miss'? | [
"SELECT",
"other_details",
"FROM",
"Residents",
"WHERE",
"other_details",
"LIKE",
"'",
"%",
"Miss",
"%",
"'"
] | [
"select",
"other_details",
"from",
"residents",
"where",
"other_details",
"like",
"value"
] | [
"What",
"are",
"the",
"resident",
"details",
"containing",
"the",
"substring",
"'Miss",
"'",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"details",
"containing",
"the",
"substring",
"'Miss",
"'",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
local_govt_and_lot | SELECT customer_event_id , date_moved_in , property_id FROM customer_events | 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"
] | [
"select",
"customer_event_id",
",",
"date_moved_in",
",",
"property_id",
"from",
"customer_events"
] | [
"List",
"the",
"customer",
"event",
"id",
"and",
"the",
"corresponding",
"move",
"in",
"date",
"and",
"property",
"id",
"."
] | [
"List",
"the",
"<mask>",
"<mask>",
"id",
"<mask>",
"the",
"corresponding",
"move",
"in",
"<mask>",
"<mask>",
"<mask>",
"id",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
local_govt_and_lot | SELECT count(*) FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM customer_events ) | How many customers did not have any event? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customers",
"WHERE",
"customer_id",
"NOT",
"IN",
"(",
"SELECT",
"customer_id",
"FROM",
"customer_events",
")"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"customers",
"where",
"customer_id",
"not",
"in",
"(",
"select",
"customer_id",
"from",
"customer_events",
")"
] | [
"How",
"many",
"customers",
"did",
"not",
"have",
"any",
"event",
"?"
] | [
"How",
"many",
"<mask>",
"did",
"not",
"have",
"any",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
local_govt_and_lot | SELECT DISTINCT date_moved_in FROM residents | What are the distinct move in dates of the residents? | [
"SELECT",
"DISTINCT",
"date_moved_in",
"FROM",
"residents"
] | [
"select",
"distinct",
"date_moved_in",
"from",
"residents"
] | [
"What",
"are",
"the",
"distinct",
"move",
"in",
"dates",
"of",
"the",
"residents",
"?"
] | [
"What",
"are",
"the",
"distinct",
"move",
"in",
"<mask>",
"of",
"the",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
school_player | SELECT count(*) FROM school | How many schools are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"school"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"school"
] | [
"How",
"many",
"schools",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
school_player | SELECT count(*) FROM school | Count the number of schools. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"school"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"school"
] | [
"Count",
"the",
"number",
"of",
"schools",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
school_player | SELECT LOCATION FROM school ORDER BY Enrollment ASC | List the locations of schools in ascending order of enrollment. | [
"SELECT",
"LOCATION",
"FROM",
"school",
"ORDER",
"BY",
"Enrollment",
"ASC"
] | [
"select",
"location",
"from",
"school",
"order",
"by",
"enrollment",
"asc"
] | [
"List",
"the",
"locations",
"of",
"schools",
"in",
"ascending",
"order",
"of",
"enrollment",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"in",
"ascending",
"order",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
school_player | SELECT LOCATION FROM school ORDER BY Enrollment ASC | What is the list of school locations sorted in ascending order of school enrollment? | [
"SELECT",
"LOCATION",
"FROM",
"school",
"ORDER",
"BY",
"Enrollment",
"ASC"
] | [
"select",
"location",
"from",
"school",
"order",
"by",
"enrollment",
"asc"
] | [
"What",
"is",
"the",
"list",
"of",
"school",
"locations",
"sorted",
"in",
"ascending",
"order",
"of",
"school",
"enrollment",
"?"
] | [
"What",
"is",
"the",
"list",
"of",
"<mask>",
"<mask>",
"sorted",
"in",
"ascending",
"order",
"of",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
school_player | SELECT LOCATION FROM school ORDER BY Founded DESC | List the locations of schools in descending order of founded year. | [
"SELECT",
"LOCATION",
"FROM",
"school",
"ORDER",
"BY",
"Founded",
"DESC"
] | [
"select",
"location",
"from",
"school",
"order",
"by",
"founded",
"desc"
] | [
"List",
"the",
"locations",
"of",
"schools",
"in",
"descending",
"order",
"of",
"founded",
"year",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"in",
"descending",
"order",
"of",
"founded",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
school_player | SELECT LOCATION FROM school ORDER BY Founded DESC | What is the list of school locations sorted in descending order of school foundation year? | [
"SELECT",
"LOCATION",
"FROM",
"school",
"ORDER",
"BY",
"Founded",
"DESC"
] | [
"select",
"location",
"from",
"school",
"order",
"by",
"founded",
"desc"
] | [
"What",
"is",
"the",
"list",
"of",
"school",
"locations",
"sorted",
"in",
"descending",
"order",
"of",
"school",
"foundation",
"year",
"?"
] | [
"What",
"is",
"the",
"list",
"of",
"<mask>",
"<mask>",
"sorted",
"in",
"descending",
"order",
"of",
"<mask>",
"foundation",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
school_player | SELECT Enrollment FROM school WHERE Denomination != "Catholic" | What are the enrollments of schools whose denomination is not "Catholic"? | [
"SELECT",
"Enrollment",
"FROM",
"school",
"WHERE",
"Denomination",
"!",
"=",
"``",
"Catholic",
"''"
] | [
"select",
"enrollment",
"from",
"school",
"where",
"denomination",
"!",
"=",
"value"
] | [
"What",
"are",
"the",
"enrollments",
"of",
"schools",
"whose",
"denomination",
"is",
"not",
"``",
"Catholic",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"not",
"``",
"Catholic",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
school_player | SELECT Enrollment FROM school WHERE Denomination != "Catholic" | List the enrollment for each school that does not have "Catholic" as denomination. | [
"SELECT",
"Enrollment",
"FROM",
"school",
"WHERE",
"Denomination",
"!",
"=",
"``",
"Catholic",
"''"
] | [
"select",
"enrollment",
"from",
"school",
"where",
"denomination",
"!",
"=",
"value"
] | [
"List",
"the",
"enrollment",
"for",
"each",
"school",
"that",
"does",
"not",
"have",
"``",
"Catholic",
"''",
"as",
"denomination",
"."
] | [
"List",
"the",
"<mask>",
"for",
"each",
"<mask>",
"that",
"does",
"not",
"have",
"``",
"Catholic",
"''",
"as",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
school_player | SELECT avg(Enrollment) FROM school | What is the average enrollment of schools? | [
"SELECT",
"avg",
"(",
"Enrollment",
")",
"FROM",
"school"
] | [
"select",
"avg",
"(",
"enrollment",
")",
"from",
"school"
] | [
"What",
"is",
"the",
"average",
"enrollment",
"of",
"schools",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"of",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
school_player | SELECT avg(Enrollment) FROM school | Take the average of the school enrollment. | [
"SELECT",
"avg",
"(",
"Enrollment",
")",
"FROM",
"school"
] | [
"select",
"avg",
"(",
"enrollment",
")",
"from",
"school"
] | [
"Take",
"the",
"average",
"of",
"the",
"school",
"enrollment",
"."
] | [
"Take",
"the",
"average",
"of",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
school_player | SELECT Team FROM player ORDER BY Team ASC | What are the teams of the players, sorted in ascending alphabetical order? | [
"SELECT",
"Team",
"FROM",
"player",
"ORDER",
"BY",
"Team",
"ASC"
] | [
"select",
"team",
"from",
"player",
"order",
"by",
"team",
"asc"
] | [
"What",
"are",
"the",
"teams",
"of",
"the",
"players",
",",
"sorted",
"in",
"ascending",
"alphabetical",
"order",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
",",
"sorted",
"in",
"ascending",
"alphabetical",
"order",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
school_player | SELECT Team FROM player ORDER BY Team ASC | Find the team of each player and sort them in ascending alphabetical order. | [
"SELECT",
"Team",
"FROM",
"player",
"ORDER",
"BY",
"Team",
"ASC"
] | [
"select",
"team",
"from",
"player",
"order",
"by",
"team",
"asc"
] | [
"Find",
"the",
"team",
"of",
"each",
"player",
"and",
"sort",
"them",
"in",
"ascending",
"alphabetical",
"order",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"each",
"<mask>",
"and",
"sort",
"them",
"in",
"ascending",
"alphabetical",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
school_player | SELECT count(DISTINCT POSITION) FROM player | How many different positions of players are there? | [
"SELECT",
"count",
"(",
"DISTINCT",
"POSITION",
")",
"FROM",
"player"
] | [
"select",
"count",
"(",
"distinct",
"position",
")",
"from",
"player"
] | [
"How",
"many",
"different",
"positions",
"of",
"players",
"are",
"there",
"?"
] | [
"How",
"many",
"different",
"<mask>",
"of",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
school_player | SELECT count(DISTINCT POSITION) FROM player | Count the number of distinct player positions. | [
"SELECT",
"count",
"(",
"DISTINCT",
"POSITION",
")",
"FROM",
"player"
] | [
"select",
"count",
"(",
"distinct",
"position",
")",
"from",
"player"
] | [
"Count",
"the",
"number",
"of",
"distinct",
"player",
"positions",
"."
] | [
"Count",
"the",
"number",
"of",
"distinct",
"<mask>",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
school_player | SELECT Team FROM player ORDER BY Age DESC LIMIT 1 | Find the team of the player of the highest age. | [
"SELECT",
"Team",
"FROM",
"player",
"ORDER",
"BY",
"Age",
"DESC",
"LIMIT",
"1"
] | [
"select",
"team",
"from",
"player",
"order",
"by",
"age",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"team",
"of",
"the",
"player",
"of",
"the",
"highest",
"age",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"of",
"the",
"highest",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
school_player | SELECT Team FROM player ORDER BY Age DESC LIMIT 1 | Which team has the oldest player? | [
"SELECT",
"Team",
"FROM",
"player",
"ORDER",
"BY",
"Age",
"DESC",
"LIMIT",
"1"
] | [
"select",
"team",
"from",
"player",
"order",
"by",
"age",
"desc",
"limit",
"value"
] | [
"Which",
"team",
"has",
"the",
"oldest",
"player",
"?"
] | [
"Which",
"<mask>",
"has",
"the",
"oldest",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
school_player | SELECT Team FROM player ORDER BY Age DESC LIMIT 5 | List the teams of the players with the top 5 largest ages. | [
"SELECT",
"Team",
"FROM",
"player",
"ORDER",
"BY",
"Age",
"DESC",
"LIMIT",
"5"
] | [
"select",
"team",
"from",
"player",
"order",
"by",
"age",
"desc",
"limit",
"value"
] | [
"List",
"the",
"teams",
"of",
"the",
"players",
"with",
"the",
"top",
"5",
"largest",
"ages",
"."
] | [
"List",
"the",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"top",
"<unk>",
"largest",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
school_player | SELECT Team FROM player ORDER BY Age DESC LIMIT 5 | What are the teams that have the 5 oldest players? | [
"SELECT",
"Team",
"FROM",
"player",
"ORDER",
"BY",
"Age",
"DESC",
"LIMIT",
"5"
] | [
"select",
"team",
"from",
"player",
"order",
"by",
"age",
"desc",
"limit",
"value"
] | [
"What",
"are",
"the",
"teams",
"that",
"have",
"the",
"5",
"oldest",
"players",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"that",
"have",
"the",
"<unk>",
"oldest",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
school_player | SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID | 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"
] | [
"select",
"t1",
".",
"team",
",",
"t2",
".",
"location",
"from",
"player",
"as",
"t1",
"join",
"school",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id"
] | [
"For",
"each",
"player",
",",
"show",
"the",
"team",
"and",
"the",
"location",
"of",
"school",
"they",
"belong",
"to",
"."
] | [
"For",
"each",
"<mask>",
",",
"show",
"the",
"<mask>",
"and",
"the",
"<mask>",
"of",
"<mask>",
"they",
"belong",
"to",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
school_player | SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID | 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"
] | [
"select",
"t1",
".",
"team",
",",
"t2",
".",
"location",
"from",
"player",
"as",
"t1",
"join",
"school",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id"
] | [
"What",
"are",
"the",
"team",
"and",
"the",
"location",
"of",
"school",
"each",
"player",
"belongs",
"to",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"the",
"<mask>",
"of",
"<mask>",
"each",
"<mask>",
"belongs",
"to",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
school_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 | 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"
] | [
"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",
"(",
"*",
")",
">",
"value"
] | [
"Show",
"the",
"locations",
"of",
"schools",
"that",
"have",
"more",
"than",
"1",
"player",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"more",
"than",
"<unk>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
school_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 | 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"
] | [
"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",
"(",
"*",
")",
">",
"value"
] | [
"Which",
"schools",
"have",
"more",
"than",
"1",
"player",
"?",
"Give",
"me",
"the",
"school",
"locations",
"."
] | [
"Which",
"<mask>",
"have",
"more",
"than",
"<unk>",
"<mask>",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
school_player | 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 | 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"
] | [
"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",
... | [
"Show",
"the",
"denomination",
"of",
"the",
"school",
"that",
"has",
"the",
"most",
"players",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"the",
"most",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
school_player | 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 | 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"
] | [
"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",
... | [
"What",
"is",
"the",
"denomination",
"of",
"the",
"school",
"the",
"most",
"players",
"belong",
"to",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"the",
"most",
"<mask>",
"belong",
"to",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
school_player | SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID | 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"
] | [
"select",
"t1",
".",
"location",
",",
"t2",
".",
"nickname",
"from",
"school",
"as",
"t1",
"join",
"school_details",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id"
] | [
"Show",
"locations",
"and",
"nicknames",
"of",
"schools",
"."
] | [
"Show",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
school_player | SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID | 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"
] | [
"select",
"t1",
".",
"location",
",",
"t2",
".",
"nickname",
"from",
"school",
"as",
"t1",
"join",
"school_details",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id"
] | [
"What",
"are",
"the",
"location",
"and",
"nickname",
"of",
"each",
"school",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
school_player | SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination | Please show different denominations and the corresponding number of schools. | [
"SELECT",
"Denomination",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"school",
"GROUP",
"BY",
"Denomination"
] | [
"select",
"denomination",
",",
"count",
"(",
"*",
")",
"from",
"school",
"group",
"by",
"denomination"
] | [
"Please",
"show",
"different",
"denominations",
"and",
"the",
"corresponding",
"number",
"of",
"schools",
"."
] | [
"Please",
"show",
"different",
"<mask>",
"and",
"the",
"corresponding",
"number",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
school_player | SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination | For each denomination, return the denomination and the count of schools with that denomination. | [
"SELECT",
"Denomination",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"school",
"GROUP",
"BY",
"Denomination"
] | [
"select",
"denomination",
",",
"count",
"(",
"*",
")",
"from",
"school",
"group",
"by",
"denomination"
] | [
"For",
"each",
"denomination",
",",
"return",
"the",
"denomination",
"and",
"the",
"count",
"of",
"schools",
"with",
"that",
"denomination",
"."
] | [
"For",
"each",
"<mask>",
",",
"return",
"the",
"<mask>",
"and",
"the",
"count",
"of",
"<mask>",
"with",
"that",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
school_player | SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC | 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"
] | [
"select",
"denomination",
",",
"count",
"(",
"*",
")",
"from",
"school",
"group",
"by",
"denomination",
"order",
"by",
"count",
"(",
"*",
")",
"desc"
] | [
"Please",
"show",
"different",
"denominations",
"and",
"the",
"corresponding",
"number",
"of",
"schools",
"in",
"descending",
"order",
"."
] | [
"Please",
"show",
"different",
"<mask>",
"and",
"the",
"corresponding",
"number",
"of",
"<mask>",
"in",
"descending",
"order",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc"
] |
school_player | SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC | 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"
] | [
"select",
"denomination",
",",
"count",
"(",
"*",
")",
"from",
"school",
"group",
"by",
"denomination",
"order",
"by",
"count",
"(",
"*",
")",
"desc"
] | [
"Order",
"denominations",
"in",
"descending",
"order",
"of",
"the",
"count",
"of",
"schools",
"with",
"the",
"denomination",
".",
"Return",
"each",
"denomination",
"with",
"the",
"count",
"of",
"schools",
"."
] | [
"Order",
"<mask>",
"in",
"descending",
"order",
"of",
"the",
"count",
"of",
"<mask>",
"with",
"the",
"<mask>",
".",
"Return",
"each",
"<mask>",
"with",
"the",
"count",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc"
] |
school_player | SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1 | List the school color of the school that has the largest enrollment. | [
"SELECT",
"School_Colors",
"FROM",
"school",
"ORDER",
"BY",
"Enrollment",
"DESC",
"LIMIT",
"1"
] | [
"select",
"school_colors",
"from",
"school",
"order",
"by",
"enrollment",
"desc",
"limit",
"value"
] | [
"List",
"the",
"school",
"color",
"of",
"the",
"school",
"that",
"has",
"the",
"largest",
"enrollment",
"."
] | [
"List",
"the",
"<mask>",
"color",
"of",
"the",
"<mask>",
"that",
"has",
"the",
"largest",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
school_player | SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1 | What is the school color of the school with the largest enrollment? | [
"SELECT",
"School_Colors",
"FROM",
"school",
"ORDER",
"BY",
"Enrollment",
"DESC",
"LIMIT",
"1"
] | [
"select",
"school_colors",
"from",
"school",
"order",
"by",
"enrollment",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"school",
"color",
"of",
"the",
"school",
"with",
"the",
"largest",
"enrollment",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"color",
"of",
"the",
"<mask>",
"with",
"the",
"largest",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
school_player | SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM 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",
")"
] | [
"select",
"location",
"from",
"school",
"where",
"school_id",
"not",
"in",
"(",
"select",
"school_id",
"from",
"player",
")"
] | [
"List",
"the",
"locations",
"of",
"schools",
"that",
"do",
"not",
"have",
"any",
"player",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"that",
"do",
"not",
"have",
"any",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
school_player | SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM 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",
")"
] | [
"select",
"location",
"from",
"school",
"where",
"school_id",
"not",
"in",
"(",
"select",
"school_id",
"from",
"player",
")"
] | [
"Which",
"schools",
"do",
"not",
"have",
"any",
"player",
"?",
"Give",
"me",
"the",
"school",
"locations",
"."
] | [
"Which",
"<mask>",
"do",
"not",
"have",
"any",
"<mask>",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
school_player | SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900 | 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"
] | [
"select",
"denomination",
"from",
"school",
"where",
"founded",
"<",
"value",
"intersect",
"select",
"denomination",
"from",
"school",
"where",
"founded",
">",
"value"
] | [
"Show",
"the",
"denomination",
"shared",
"by",
"schools",
"founded",
"before",
"1890",
"and",
"schools",
"founded",
"after",
"1900"
] | [
"Show",
"the",
"<mask>",
"shared",
"by",
"<mask>",
"founded",
"before",
"<unk>",
"and",
"<mask>",
"founded",
"after",
"<unk>"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
school_player | SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900 | 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"
] | [
"select",
"denomination",
"from",
"school",
"where",
"founded",
"<",
"value",
"intersect",
"select",
"denomination",
"from",
"school",
"where",
"founded",
">",
"value"
] | [
"What",
"are",
"the",
"denominations",
"used",
"by",
"both",
"schools",
"founded",
"before",
"1890",
"and",
"schools",
"founded",
"after",
"1900",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"used",
"by",
"both",
"<mask>",
"founded",
"before",
"<unk>",
"and",
"<mask>",
"founded",
"after",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
school_player | SELECT Nickname FROM school_details WHERE Division != "Division 1" | Show the nicknames of schools that are not in division 1. | [
"SELECT",
"Nickname",
"FROM",
"school_details",
"WHERE",
"Division",
"!",
"=",
"``",
"Division",
"1",
"''"
] | [
"select",
"nickname",
"from",
"school_details",
"where",
"division",
"!",
"=",
"value"
] | [
"Show",
"the",
"nicknames",
"of",
"schools",
"that",
"are",
"not",
"in",
"division",
"1",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"that",
"are",
"not",
"in",
"<mask>",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
school_player | SELECT Nickname FROM school_details WHERE Division != "Division 1" | What are the nicknames of schools whose division is not 1? | [
"SELECT",
"Nickname",
"FROM",
"school_details",
"WHERE",
"Division",
"!",
"=",
"``",
"Division",
"1",
"''"
] | [
"select",
"nickname",
"from",
"school_details",
"where",
"division",
"!",
"=",
"value"
] | [
"What",
"are",
"the",
"nicknames",
"of",
"schools",
"whose",
"division",
"is",
"not",
"1",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"not",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
school_player | SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1 | Show the denomination shared by more than one school. | [
"SELECT",
"Denomination",
"FROM",
"school",
"GROUP",
"BY",
"Denomination",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"1"
] | [
"select",
"denomination",
"from",
"school",
"group",
"by",
"denomination",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Show",
"the",
"denomination",
"shared",
"by",
"more",
"than",
"one",
"school",
"."
] | [
"Show",
"the",
"<mask>",
"shared",
"by",
"more",
"than",
"one",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
school_player | SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1 | What are the denomination more than one school have? | [
"SELECT",
"Denomination",
"FROM",
"school",
"GROUP",
"BY",
"Denomination",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"1"
] | [
"select",
"denomination",
"from",
"school",
"group",
"by",
"denomination",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"What",
"are",
"the",
"denomination",
"more",
"than",
"one",
"school",
"have",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"more",
"than",
"one",
"<mask>",
"have",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.