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 |
|---|---|---|---|---|---|---|---|
ship_mission | SELECT Name FROM ship ORDER BY Tonnage ASC | List the name of ships in ascending order of tonnage. | [
"SELECT",
"Name",
"FROM",
"ship",
"ORDER",
"BY",
"Tonnage",
"ASC"
] | [
"select",
"name",
"from",
"ship",
"order",
"by",
"tonnage",
"asc"
] | [
"List",
"the",
"name",
"of",
"ships",
"in",
"ascending",
"order",
"of",
"tonnage",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"in",
"ascending",
"order",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
ship_mission | SELECT Name FROM ship ORDER BY Tonnage ASC | what are the names of the ships ordered by ascending tonnage? | [
"SELECT",
"Name",
"FROM",
"ship",
"ORDER",
"BY",
"Tonnage",
"ASC"
] | [
"select",
"name",
"from",
"ship",
"order",
"by",
"tonnage",
"asc"
] | [
"what",
"are",
"the",
"names",
"of",
"the",
"ships",
"ordered",
"by",
"ascending",
"tonnage",
"?"
] | [
"what",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"ordered",
"by",
"ascending",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
ship_mission | SELECT TYPE , Nationality FROM ship | What are the type and nationality of ships? | [
"SELECT",
"TYPE",
",",
"Nationality",
"FROM",
"ship"
] | [
"select",
"type",
",",
"nationality",
"from",
"ship"
] | [
"What",
"are",
"the",
"type",
"and",
"nationality",
"of",
"ships",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
ship_mission | SELECT TYPE , Nationality FROM ship | What are the types and nationalities of every ship? | [
"SELECT",
"TYPE",
",",
"Nationality",
"FROM",
"ship"
] | [
"select",
"type",
",",
"nationality",
"from",
"ship"
] | [
"What",
"are",
"the",
"types",
"and",
"nationalities",
"of",
"every",
"ship",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"every",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
ship_mission | SELECT Name FROM ship WHERE Nationality != "United States" | List the name of ships whose nationality is not "United States". | [
"SELECT",
"Name",
"FROM",
"ship",
"WHERE",
"Nationality",
"!",
"=",
"``",
"United",
"States",
"''"
] | [
"select",
"name",
"from",
"ship",
"where",
"nationality",
"!",
"=",
"value"
] | [
"List",
"the",
"name",
"of",
"ships",
"whose",
"nationality",
"is",
"not",
"``",
"United",
"States",
"''",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"not",
"``",
"United",
"States",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
ship_mission | SELECT Name FROM ship WHERE Nationality != "United States" | What are the names of the ships that are not from the United States? | [
"SELECT",
"Name",
"FROM",
"ship",
"WHERE",
"Nationality",
"!",
"=",
"``",
"United",
"States",
"''"
] | [
"select",
"name",
"from",
"ship",
"where",
"nationality",
"!",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"ships",
"that",
"are",
"not",
"from",
"the",
"United",
"States",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"are",
"not",
"from",
"the",
"United",
"States",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
ship_mission | SELECT Name FROM ship WHERE Nationality = "United States" OR Nationality = "United Kingdom" | Show the name of ships whose nationality is either United States or United Kingdom. | [
"SELECT",
"Name",
"FROM",
"ship",
"WHERE",
"Nationality",
"=",
"``",
"United",
"States",
"''",
"OR",
"Nationality",
"=",
"``",
"United",
"Kingdom",
"''"
] | [
"select",
"name",
"from",
"ship",
"where",
"nationality",
"=",
"value",
"or",
"nationality",
"=",
"value"
] | [
"Show",
"the",
"name",
"of",
"ships",
"whose",
"nationality",
"is",
"either",
"United",
"States",
"or",
"United",
"Kingdom",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"either",
"United",
"States",
"or",
"United",
"Kingdom",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
ship_mission | SELECT Name FROM ship WHERE Nationality = "United States" OR Nationality = "United Kingdom" | What are the names of the ships that are from either the US or the UK? | [
"SELECT",
"Name",
"FROM",
"ship",
"WHERE",
"Nationality",
"=",
"``",
"United",
"States",
"''",
"OR",
"Nationality",
"=",
"``",
"United",
"Kingdom",
"''"
] | [
"select",
"name",
"from",
"ship",
"where",
"nationality",
"=",
"value",
"or",
"nationality",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"ships",
"that",
"are",
"from",
"either",
"the",
"US",
"or",
"the",
"UK",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"are",
"from",
"either",
"the",
"US",
"or",
"the",
"UK",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
ship_mission | SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1 | What is the name of the ship with the largest tonnage? | [
"SELECT",
"Name",
"FROM",
"ship",
"ORDER",
"BY",
"Tonnage",
"DESC",
"LIMIT",
"1"
] | [
"select",
"name",
"from",
"ship",
"order",
"by",
"tonnage",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"ship",
"with",
"the",
"largest",
"tonnage",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"largest",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
ship_mission | SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1 | What is the ship with the largest amount of tonnage called? | [
"SELECT",
"Name",
"FROM",
"ship",
"ORDER",
"BY",
"Tonnage",
"DESC",
"LIMIT",
"1"
] | [
"select",
"name",
"from",
"ship",
"order",
"by",
"tonnage",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"ship",
"with",
"the",
"largest",
"amount",
"of",
"tonnage",
"called",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"with",
"the",
"largest",
"amount",
"of",
"<mask>",
"called",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
ship_mission | SELECT TYPE , COUNT(*) FROM ship GROUP BY TYPE | Show different types of ships and the number of ships of each type. | [
"SELECT",
"TYPE",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"ship",
"GROUP",
"BY",
"TYPE"
] | [
"select",
"type",
",",
"count",
"(",
"*",
")",
"from",
"ship",
"group",
"by",
"type"
] | [
"Show",
"different",
"types",
"of",
"ships",
"and",
"the",
"number",
"of",
"ships",
"of",
"each",
"type",
"."
] | [
"Show",
"different",
"<mask>",
"of",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"of",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
ship_mission | SELECT TYPE , COUNT(*) FROM ship GROUP BY TYPE | For each type, how many ships are there? | [
"SELECT",
"TYPE",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"ship",
"GROUP",
"BY",
"TYPE"
] | [
"select",
"type",
",",
"count",
"(",
"*",
")",
"from",
"ship",
"group",
"by",
"type"
] | [
"For",
"each",
"type",
",",
"how",
"many",
"ships",
"are",
"there",
"?"
] | [
"For",
"each",
"<mask>",
",",
"how",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
ship_mission | SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common type of ships. | [
"SELECT",
"TYPE",
"FROM",
"ship",
"GROUP",
"BY",
"TYPE",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"type",
"from",
"ship",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Please",
"show",
"the",
"most",
"common",
"type",
"of",
"ships",
"."
] | [
"Please",
"show",
"the",
"most",
"common",
"<mask>",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
ship_mission | SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | What is the most common type of ships? | [
"SELECT",
"TYPE",
"FROM",
"ship",
"GROUP",
"BY",
"TYPE",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"type",
"from",
"ship",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"most",
"common",
"type",
"of",
"ships",
"?"
] | [
"What",
"is",
"the",
"most",
"common",
"<mask>",
"of",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
ship_mission | SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*) > 2 | List the nations that have more than two ships. | [
"SELECT",
"Nationality",
"FROM",
"ship",
"GROUP",
"BY",
"Nationality",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"2"
] | [
"select",
"nationality",
"from",
"ship",
"group",
"by",
"nationality",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"List",
"the",
"nations",
"that",
"have",
"more",
"than",
"two",
"ships",
"."
] | [
"List",
"the",
"nations",
"that",
"have",
"more",
"than",
"two",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
ship_mission | SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*) > 2 | What are the nations that have more than two ships? | [
"SELECT",
"Nationality",
"FROM",
"ship",
"GROUP",
"BY",
"Nationality",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"2"
] | [
"select",
"nationality",
"from",
"ship",
"group",
"by",
"nationality",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"What",
"are",
"the",
"nations",
"that",
"have",
"more",
"than",
"two",
"ships",
"?"
] | [
"What",
"are",
"the",
"nations",
"that",
"have",
"more",
"than",
"two",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
ship_mission | SELECT TYPE , avg(Tonnage) FROM ship GROUP BY TYPE | Show different types of ships and the average tonnage of ships of each type. | [
"SELECT",
"TYPE",
",",
"avg",
"(",
"Tonnage",
")",
"FROM",
"ship",
"GROUP",
"BY",
"TYPE"
] | [
"select",
"type",
",",
"avg",
"(",
"tonnage",
")",
"from",
"ship",
"group",
"by",
"type"
] | [
"Show",
"different",
"types",
"of",
"ships",
"and",
"the",
"average",
"tonnage",
"of",
"ships",
"of",
"each",
"type",
"."
] | [
"Show",
"different",
"<mask>",
"of",
"<mask>",
"and",
"the",
"average",
"<mask>",
"of",
"<mask>",
"of",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
ship_mission | SELECT TYPE , avg(Tonnage) FROM ship GROUP BY TYPE | For each type, what is the average tonnage? | [
"SELECT",
"TYPE",
",",
"avg",
"(",
"Tonnage",
")",
"FROM",
"ship",
"GROUP",
"BY",
"TYPE"
] | [
"select",
"type",
",",
"avg",
"(",
"tonnage",
")",
"from",
"ship",
"group",
"by",
"type"
] | [
"For",
"each",
"type",
",",
"what",
"is",
"the",
"average",
"tonnage",
"?"
] | [
"For",
"each",
"<mask>",
",",
"what",
"is",
"the",
"average",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
ship_mission | SELECT T1.Code , T1.Fate , T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID | Show codes and fates of missions, and names of ships involved. | [
"SELECT",
"T1.Code",
",",
"T1.Fate",
",",
"T2.Name",
"FROM",
"mission",
"AS",
"T1",
"JOIN",
"ship",
"AS",
"T2",
"ON",
"T1.Ship_ID",
"=",
"T2.Ship_ID"
] | [
"select",
"t1",
".",
"code",
",",
"t1",
".",
"fate",
",",
"t2",
".",
"name",
"from",
"mission",
"as",
"t1",
"join",
"ship",
"as",
"t2",
"on",
"t1",
".",
"ship_id",
"=",
"t2",
".",
"ship_id"
] | [
"Show",
"codes",
"and",
"fates",
"of",
"missions",
",",
"and",
"names",
"of",
"ships",
"involved",
"."
] | [
"Show",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
",",
"and",
"<mask>",
"of",
"<mask>",
"involved",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
ship_mission | SELECT T1.Code , T1.Fate , T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID | What are the mission codes, fates, and names of the ships involved? | [
"SELECT",
"T1.Code",
",",
"T1.Fate",
",",
"T2.Name",
"FROM",
"mission",
"AS",
"T1",
"JOIN",
"ship",
"AS",
"T2",
"ON",
"T1.Ship_ID",
"=",
"T2.Ship_ID"
] | [
"select",
"t1",
".",
"code",
",",
"t1",
".",
"fate",
",",
"t2",
".",
"name",
"from",
"mission",
"as",
"t1",
"join",
"ship",
"as",
"t2",
"on",
"t1",
".",
"ship_id",
"=",
"t2",
".",
"ship_id"
] | [
"What",
"are",
"the",
"mission",
"codes",
",",
"fates",
",",
"and",
"names",
"of",
"the",
"ships",
"involved",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"of",
"the",
"<mask>",
"involved",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
ship_mission | SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928 | Show names of ships involved in a mission launched after 1928. | [
"SELECT",
"T2.Name",
"FROM",
"mission",
"AS",
"T1",
"JOIN",
"ship",
"AS",
"T2",
"ON",
"T1.Ship_ID",
"=",
"T2.Ship_ID",
"WHERE",
"T1.Launched_Year",
">",
"1928"
] | [
"select",
"t2",
".",
"name",
"from",
"mission",
"as",
"t1",
"join",
"ship",
"as",
"t2",
"on",
"t1",
".",
"ship_id",
"=",
"t2",
".",
"ship_id",
"where",
"t1",
".",
"launched_year",
">",
"value"
] | [
"Show",
"names",
"of",
"ships",
"involved",
"in",
"a",
"mission",
"launched",
"after",
"1928",
"."
] | [
"Show",
"<mask>",
"of",
"<mask>",
"involved",
"in",
"a",
"<mask>",
"launched",
"after",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
ship_mission | SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928 | What are the names of ships that were involved in a mission launched after 1928? | [
"SELECT",
"T2.Name",
"FROM",
"mission",
"AS",
"T1",
"JOIN",
"ship",
"AS",
"T2",
"ON",
"T1.Ship_ID",
"=",
"T2.Ship_ID",
"WHERE",
"T1.Launched_Year",
">",
"1928"
] | [
"select",
"t2",
".",
"name",
"from",
"mission",
"as",
"t1",
"join",
"ship",
"as",
"t2",
"on",
"t1",
".",
"ship_id",
"=",
"t2",
".",
"ship_id",
"where",
"t1",
".",
"launched_year",
">",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"ships",
"that",
"were",
"involved",
"in",
"a",
"mission",
"launched",
"after",
"1928",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"that",
"were",
"involved",
"in",
"a",
"<mask>",
"launched",
"after",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
ship_mission | SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = "United States" | Show the distinct fate of missions that involve ships with nationality "United States" | [
"SELECT",
"DISTINCT",
"T1.Fate",
"FROM",
"mission",
"AS",
"T1",
"JOIN",
"ship",
"AS",
"T2",
"ON",
"T1.Ship_ID",
"=",
"T2.Ship_ID",
"WHERE",
"T2.Nationality",
"=",
"``",
"United",
"States",
"''"
] | [
"select",
"distinct",
"t1",
".",
"fate",
"from",
"mission",
"as",
"t1",
"join",
"ship",
"as",
"t2",
"on",
"t1",
".",
"ship_id",
"=",
"t2",
".",
"ship_id",
"where",
"t2",
".",
"nationality",
"=",
"value"
] | [
"Show",
"the",
"distinct",
"fate",
"of",
"missions",
"that",
"involve",
"ships",
"with",
"nationality",
"``",
"United",
"States",
"''"
] | [
"Show",
"the",
"distinct",
"<mask>",
"of",
"<mask>",
"that",
"involve",
"<mask>",
"with",
"<mask>",
"``",
"United",
"States",
"''"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
ship_mission | SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = "United States" | What are the different fates of the mission that involved ships from the United States? | [
"SELECT",
"DISTINCT",
"T1.Fate",
"FROM",
"mission",
"AS",
"T1",
"JOIN",
"ship",
"AS",
"T2",
"ON",
"T1.Ship_ID",
"=",
"T2.Ship_ID",
"WHERE",
"T2.Nationality",
"=",
"``",
"United",
"States",
"''"
] | [
"select",
"distinct",
"t1",
".",
"fate",
"from",
"mission",
"as",
"t1",
"join",
"ship",
"as",
"t2",
"on",
"t1",
".",
"ship_id",
"=",
"t2",
".",
"ship_id",
"where",
"t2",
".",
"nationality",
"=",
"value"
] | [
"What",
"are",
"the",
"different",
"fates",
"of",
"the",
"mission",
"that",
"involved",
"ships",
"from",
"the",
"United",
"States",
"?"
] | [
"What",
"are",
"the",
"different",
"<mask>",
"of",
"the",
"<mask>",
"that",
"involved",
"<mask>",
"from",
"the",
"United",
"States",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
ship_mission | SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission) | List the name of ships that are not involved in any mission | [
"SELECT",
"Name",
"FROM",
"ship",
"WHERE",
"Ship_ID",
"NOT",
"IN",
"(",
"SELECT",
"Ship_ID",
"FROM",
"mission",
")"
] | [
"select",
"name",
"from",
"ship",
"where",
"ship_id",
"not",
"in",
"(",
"select",
"ship_id",
"from",
"mission",
")"
] | [
"List",
"the",
"name",
"of",
"ships",
"that",
"are",
"not",
"involved",
"in",
"any",
"mission"
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"that",
"are",
"not",
"involved",
"in",
"any",
"<mask>"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
ship_mission | SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission) | What are the names of the ships that are not involved in any missions? | [
"SELECT",
"Name",
"FROM",
"ship",
"WHERE",
"Ship_ID",
"NOT",
"IN",
"(",
"SELECT",
"Ship_ID",
"FROM",
"mission",
")"
] | [
"select",
"name",
"from",
"ship",
"where",
"ship_id",
"not",
"in",
"(",
"select",
"ship_id",
"from",
"mission",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"ships",
"that",
"are",
"not",
"involved",
"in",
"any",
"missions",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"are",
"not",
"involved",
"in",
"any",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
ship_mission | SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000 | Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000. | [
"SELECT",
"TYPE",
"FROM",
"ship",
"WHERE",
"Tonnage",
">",
"6000",
"INTERSECT",
"SELECT",
"TYPE",
"FROM",
"ship",
"WHERE",
"Tonnage",
"<",
"4000"
] | [
"select",
"type",
"from",
"ship",
"where",
"tonnage",
">",
"value",
"intersect",
"select",
"type",
"from",
"ship",
"where",
"tonnage",
"<",
"value"
] | [
"Show",
"the",
"types",
"of",
"ships",
"that",
"have",
"both",
"ships",
"with",
"tonnage",
"larger",
"than",
"6000",
"and",
"ships",
"with",
"tonnage",
"smaller",
"than",
"4000",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"both",
"<mask>",
"with",
"<mask>",
"larger",
"than",
"<unk>",
"and",
"<mask>",
"with",
"<mask>",
"smaller",
"than",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
ship_mission | SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000 | What are the types of the ships that have both shiips with tonnage more than 6000 and those with tonnage less than 4000? | [
"SELECT",
"TYPE",
"FROM",
"ship",
"WHERE",
"Tonnage",
">",
"6000",
"INTERSECT",
"SELECT",
"TYPE",
"FROM",
"ship",
"WHERE",
"Tonnage",
"<",
"4000"
] | [
"select",
"type",
"from",
"ship",
"where",
"tonnage",
">",
"value",
"intersect",
"select",
"type",
"from",
"ship",
"where",
"tonnage",
"<",
"value"
] | [
"What",
"are",
"the",
"types",
"of",
"the",
"ships",
"that",
"have",
"both",
"shiips",
"with",
"tonnage",
"more",
"than",
"6000",
"and",
"those",
"with",
"tonnage",
"less",
"than",
"4000",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"have",
"both",
"shiips",
"with",
"<mask>",
"more",
"than",
"<unk>",
"and",
"those",
"with",
"<mask>",
"less",
"than",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
student_1 | SELECT count(*) FROM list | Find the number of students in total. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list"
] | [
"Find",
"the",
"number",
"of",
"students",
"in",
"total",
"."
] | [
"Find",
"the",
"number",
"of",
"students",
"in",
"total",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
student_1 | SELECT count(*) FROM list | How many students are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list"
] | [
"How",
"many",
"students",
"are",
"there",
"?"
] | [
"How",
"many",
"students",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
student_1 | SELECT lastname FROM list WHERE classroom = 111 | Find the last names of students studying in room 111. | [
"SELECT",
"lastname",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"111"
] | [
"select",
"lastname",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"Find",
"the",
"last",
"names",
"of",
"students",
"studying",
"in",
"room",
"111",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"students",
"studying",
"in",
"<mask>",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT lastname FROM list WHERE classroom = 111 | What are the last names of students in room 111? | [
"SELECT",
"lastname",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"111"
] | [
"select",
"lastname",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"What",
"are",
"the",
"last",
"names",
"of",
"students",
"in",
"room",
"111",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"students",
"in",
"<mask>",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT firstname FROM list WHERE classroom = 108 | Find the first names of students studying in room 108. | [
"SELECT",
"firstname",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"108"
] | [
"select",
"firstname",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"Find",
"the",
"first",
"names",
"of",
"students",
"studying",
"in",
"room",
"108",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"students",
"studying",
"in",
"<mask>",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT firstname FROM list WHERE classroom = 108 | What are the first names of students in room 108? | [
"SELECT",
"firstname",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"108"
] | [
"select",
"firstname",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"What",
"are",
"the",
"first",
"names",
"of",
"students",
"in",
"room",
"108",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"students",
"in",
"<mask>",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT firstname FROM list WHERE classroom = 107 | What are the first names of students studying in room 107? | [
"SELECT",
"DISTINCT",
"firstname",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"107"
] | [
"select",
"distinct",
"firstname",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"What",
"are",
"the",
"first",
"names",
"of",
"students",
"studying",
"in",
"room",
"107",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"students",
"studying",
"in",
"<mask>",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT firstname FROM list WHERE classroom = 107 | List the first names of all the students in room 107. | [
"SELECT",
"DISTINCT",
"firstname",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"107"
] | [
"select",
"distinct",
"firstname",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"List",
"the",
"first",
"names",
"of",
"all",
"the",
"students",
"in",
"room",
"107",
"."
] | [
"<mask>",
"the",
"<mask>",
"<mask>",
"of",
"all",
"the",
"students",
"in",
"<mask>",
"<unk>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT classroom , grade FROM list | For each classroom report the grade that is taught in it. Report just the classroom number and the grade number. | [
"SELECT",
"DISTINCT",
"classroom",
",",
"grade",
"FROM",
"list"
] | [
"select",
"distinct",
"classroom",
",",
"grade",
"from",
"list"
] | [
"For",
"each",
"classroom",
"report",
"the",
"grade",
"that",
"is",
"taught",
"in",
"it",
".",
"Report",
"just",
"the",
"classroom",
"number",
"and",
"the",
"grade",
"number",
"."
] | [
"For",
"each",
"classroom",
"report",
"the",
"<mask>",
"that",
"is",
"taught",
"in",
"it",
".",
"Report",
"just",
"the",
"classroom",
"number",
"and",
"the",
"<mask>",
"number",
"."
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
student_1 | SELECT DISTINCT classroom , grade FROM list | What are the grade number and classroom number of each class in the list? | [
"SELECT",
"DISTINCT",
"classroom",
",",
"grade",
"FROM",
"list"
] | [
"select",
"distinct",
"classroom",
",",
"grade",
"from",
"list"
] | [
"What",
"are",
"the",
"grade",
"number",
"and",
"classroom",
"number",
"of",
"each",
"class",
"in",
"the",
"list",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"number",
"and",
"classroom",
"number",
"of",
"each",
"<mask>",
"in",
"the",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
student_1 | SELECT DISTINCT grade FROM list WHERE classroom = 103 | Which grade is studying in classroom 103? | [
"SELECT",
"DISTINCT",
"grade",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"103"
] | [
"select",
"distinct",
"grade",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"Which",
"grade",
"is",
"studying",
"in",
"classroom",
"103",
"?"
] | [
"Which",
"<mask>",
"is",
"studying",
"in",
"classroom",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT grade FROM list WHERE classroom = 103 | Find the grade taught in classroom 103. | [
"SELECT",
"DISTINCT",
"grade",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"103"
] | [
"select",
"distinct",
"grade",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"Find",
"the",
"grade",
"taught",
"in",
"classroom",
"103",
"."
] | [
"Find",
"the",
"<mask>",
"taught",
"in",
"classroom",
"<unk>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT grade FROM list WHERE classroom = 105 | Find the grade studying in room 105. | [
"SELECT",
"DISTINCT",
"grade",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"105"
] | [
"select",
"distinct",
"grade",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"Find",
"the",
"grade",
"studying",
"in",
"room",
"105",
"."
] | [
"Find",
"the",
"<mask>",
"studying",
"in",
"<mask>",
"<unk>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT grade FROM list WHERE classroom = 105 | Which grade is studying in room 105? | [
"SELECT",
"DISTINCT",
"grade",
"FROM",
"list",
"WHERE",
"classroom",
"=",
"105"
] | [
"select",
"distinct",
"grade",
"from",
"list",
"where",
"classroom",
"=",
"value"
] | [
"Which",
"grade",
"is",
"studying",
"in",
"room",
"105",
"?"
] | [
"Which",
"<mask>",
"is",
"studying",
"in",
"<mask>",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT classroom FROM list WHERE grade = 4 | Which classrooms are used by grade 4? | [
"SELECT",
"DISTINCT",
"classroom",
"FROM",
"list",
"WHERE",
"grade",
"=",
"4"
] | [
"select",
"distinct",
"classroom",
"from",
"list",
"where",
"grade",
"=",
"value"
] | [
"Which",
"classrooms",
"are",
"used",
"by",
"grade",
"4",
"?"
] | [
"Which",
"classrooms",
"are",
"used",
"by",
"<mask>",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT classroom FROM list WHERE grade = 4 | Find the classrooms in which grade 4 is studying. | [
"SELECT",
"DISTINCT",
"classroom",
"FROM",
"list",
"WHERE",
"grade",
"=",
"4"
] | [
"select",
"distinct",
"classroom",
"from",
"list",
"where",
"grade",
"=",
"value"
] | [
"Find",
"the",
"classrooms",
"in",
"which",
"grade",
"4",
"is",
"studying",
"."
] | [
"Find",
"the",
"classrooms",
"in",
"which",
"<mask>",
"<unk>",
"is",
"studying",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT classroom FROM list WHERE grade = 5 | Which classrooms are used by grade 5? | [
"SELECT",
"DISTINCT",
"classroom",
"FROM",
"list",
"WHERE",
"grade",
"=",
"5"
] | [
"select",
"distinct",
"classroom",
"from",
"list",
"where",
"grade",
"=",
"value"
] | [
"Which",
"classrooms",
"are",
"used",
"by",
"grade",
"5",
"?"
] | [
"Which",
"classrooms",
"are",
"used",
"by",
"<mask>",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT classroom FROM list WHERE grade = 5 | Show me the classrooms grade 5 is using. | [
"SELECT",
"DISTINCT",
"classroom",
"FROM",
"list",
"WHERE",
"grade",
"=",
"5"
] | [
"select",
"distinct",
"classroom",
"from",
"list",
"where",
"grade",
"=",
"value"
] | [
"Show",
"me",
"the",
"classrooms",
"grade",
"5",
"is",
"using",
"."
] | [
"Show",
"me",
"the",
"classrooms",
"<mask>",
"<unk>",
"is",
"using",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5 | Find the last names of the teachers that teach fifth grade. | [
"SELECT",
"DISTINCT",
"T2.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"grade",
"=",
"5"
] | [
"select",
"distinct",
"t2",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"grade",
"=",
"value"
] | [
"Find",
"the",
"last",
"names",
"of",
"the",
"teachers",
"that",
"teach",
"fifth",
"grade",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"the",
"teachers",
"that",
"teach",
"fifth",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5 | what are the last names of the teachers who teach grade 5? | [
"SELECT",
"DISTINCT",
"T2.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"grade",
"=",
"5"
] | [
"select",
"distinct",
"t2",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"grade",
"=",
"value"
] | [
"what",
"are",
"the",
"last",
"names",
"of",
"the",
"teachers",
"who",
"teach",
"grade",
"5",
"?"
] | [
"what",
"are",
"the",
"<mask>",
"<mask>",
"of",
"the",
"teachers",
"who",
"teach",
"<mask>",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 | Find the first names of the teachers that teach first grade. | [
"SELECT",
"DISTINCT",
"T2.firstname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"grade",
"=",
"1"
] | [
"select",
"distinct",
"t2",
".",
"firstname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"grade",
"=",
"value"
] | [
"Find",
"the",
"first",
"names",
"of",
"the",
"teachers",
"that",
"teach",
"first",
"grade",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"the",
"teachers",
"that",
"teach",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 | What are the first names of the teachers who teach grade 1? | [
"SELECT",
"DISTINCT",
"T2.firstname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"grade",
"=",
"1"
] | [
"select",
"distinct",
"t2",
".",
"firstname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"grade",
"=",
"value"
] | [
"What",
"are",
"the",
"first",
"names",
"of",
"the",
"teachers",
"who",
"teach",
"grade",
"1",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"the",
"teachers",
"who",
"teach",
"<mask>",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT firstname FROM teachers WHERE classroom = 110 | Find the first names of all the teachers that teach in classroom 110. | [
"SELECT",
"firstname",
"FROM",
"teachers",
"WHERE",
"classroom",
"=",
"110"
] | [
"select",
"firstname",
"from",
"teachers",
"where",
"classroom",
"=",
"value"
] | [
"Find",
"the",
"first",
"names",
"of",
"all",
"the",
"teachers",
"that",
"teach",
"in",
"classroom",
"110",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"all",
"the",
"teachers",
"that",
"teach",
"in",
"classroom",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT firstname FROM teachers WHERE classroom = 110 | Which teachers teach in classroom 110? Give me their first names. | [
"SELECT",
"firstname",
"FROM",
"teachers",
"WHERE",
"classroom",
"=",
"110"
] | [
"select",
"firstname",
"from",
"teachers",
"where",
"classroom",
"=",
"value"
] | [
"Which",
"teachers",
"teach",
"in",
"classroom",
"110",
"?",
"Give",
"me",
"their",
"first",
"names",
"."
] | [
"Which",
"teachers",
"teach",
"in",
"classroom",
"<unk>",
"?",
"Give",
"me",
"their",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT lastname FROM teachers WHERE classroom = 109 | Find the last names of teachers teaching in classroom 109. | [
"SELECT",
"lastname",
"FROM",
"teachers",
"WHERE",
"classroom",
"=",
"109"
] | [
"select",
"lastname",
"from",
"teachers",
"where",
"classroom",
"=",
"value"
] | [
"Find",
"the",
"last",
"names",
"of",
"teachers",
"teaching",
"in",
"classroom",
"109",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"teachers",
"teaching",
"in",
"classroom",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT lastname FROM teachers WHERE classroom = 109 | Which teachers teach in classroom 109? Give me their last names. | [
"SELECT",
"lastname",
"FROM",
"teachers",
"WHERE",
"classroom",
"=",
"109"
] | [
"select",
"lastname",
"from",
"teachers",
"where",
"classroom",
"=",
"value"
] | [
"Which",
"teachers",
"teach",
"in",
"classroom",
"109",
"?",
"Give",
"me",
"their",
"last",
"names",
"."
] | [
"Which",
"teachers",
"teach",
"in",
"classroom",
"<unk>",
"?",
"Give",
"me",
"their",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
student_1 | SELECT DISTINCT firstname , lastname FROM teachers | Report the first name and last name of all the teachers. | [
"SELECT",
"DISTINCT",
"firstname",
",",
"lastname",
"FROM",
"teachers"
] | [
"select",
"distinct",
"firstname",
",",
"lastname",
"from",
"teachers"
] | [
"Report",
"the",
"first",
"name",
"and",
"last",
"name",
"of",
"all",
"the",
"teachers",
"."
] | [
"Report",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"the",
"teachers",
"."
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
student_1 | SELECT DISTINCT firstname , lastname FROM teachers | What are the first name and last name of all the teachers? | [
"SELECT",
"DISTINCT",
"firstname",
",",
"lastname",
"FROM",
"teachers"
] | [
"select",
"distinct",
"firstname",
",",
"lastname",
"from",
"teachers"
] | [
"What",
"are",
"the",
"first",
"name",
"and",
"last",
"name",
"of",
"all",
"the",
"teachers",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"the",
"teachers",
"?"
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
student_1 | SELECT DISTINCT firstname , lastname FROM list | Report the first name and last name of all the students. | [
"SELECT",
"DISTINCT",
"firstname",
",",
"lastname",
"FROM",
"list"
] | [
"select",
"distinct",
"firstname",
",",
"lastname",
"from",
"list"
] | [
"Report",
"the",
"first",
"name",
"and",
"last",
"name",
"of",
"all",
"the",
"students",
"."
] | [
"Report",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"the",
"students",
"."
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
student_1 | SELECT DISTINCT firstname , lastname FROM list | Show each student's first name and last name. | [
"SELECT",
"DISTINCT",
"firstname",
",",
"lastname",
"FROM",
"list"
] | [
"select",
"distinct",
"firstname",
",",
"lastname",
"from",
"list"
] | [
"Show",
"each",
"student",
"'s",
"first",
"name",
"and",
"last",
"name",
"."
] | [
"Show",
"each",
"student",
"'s",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
student_1 | SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER" | Find all students taught by OTHA MOYER. Output the first and last names of the students. | [
"SELECT",
"T1.firstname",
",",
"T1.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"OTHA",
"''",
"AND",
"T2.lastname",
"=",
"``",
"MOYER",
"''"
] | [
"select",
"t1",
".",
"firstname",
",",
"t1",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"las... | [
"Find",
"all",
"students",
"taught",
"by",
"OTHA",
"MOYER",
".",
"Output",
"the",
"first",
"and",
"last",
"names",
"of",
"the",
"students",
"."
] | [
"Find",
"all",
"students",
"taught",
"by",
"OTHA",
"MOYER",
".",
"Output",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"students",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mas... |
student_1 | SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER" | Which students study under the teacher named OTHA MOYER? Give me the first and last names of the students. | [
"SELECT",
"T1.firstname",
",",
"T1.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"OTHA",
"''",
"AND",
"T2.lastname",
"=",
"``",
"MOYER",
"''"
] | [
"select",
"t1",
".",
"firstname",
",",
"t1",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"las... | [
"Which",
"students",
"study",
"under",
"the",
"teacher",
"named",
"OTHA",
"MOYER",
"?",
"Give",
"me",
"the",
"first",
"and",
"last",
"names",
"of",
"the",
"students",
"."
] | [
"Which",
"students",
"study",
"under",
"the",
"teacher",
"<mask>",
"OTHA",
"MOYER",
"?",
"Give",
"me",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"students",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mas... |
student_1 | SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "MARROTTE" AND T2.lastname = "KIRK" | Find all students taught by MARROTTE KIRK. Output first and last names of students. | [
"SELECT",
"T1.firstname",
",",
"T1.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"MARROTTE",
"''",
"AND",
"T2.lastname",
"=",
"``",
"KIRK",
"''"
] | [
"select",
"t1",
".",
"firstname",
",",
"t1",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"las... | [
"Find",
"all",
"students",
"taught",
"by",
"MARROTTE",
"KIRK",
".",
"Output",
"first",
"and",
"last",
"names",
"of",
"students",
"."
] | [
"Find",
"all",
"students",
"taught",
"by",
"MARROTTE",
"KIRK",
".",
"Output",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"students",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mas... |
student_1 | SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "MARROTTE" AND T2.lastname = "KIRK" | Which are the first and last names of the students taught by MARROTTE KIRK? | [
"SELECT",
"T1.firstname",
",",
"T1.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"MARROTTE",
"''",
"AND",
"T2.lastname",
"=",
"``",
"KIRK",
"''"
] | [
"select",
"t1",
".",
"firstname",
",",
"t1",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"las... | [
"Which",
"are",
"the",
"first",
"and",
"last",
"names",
"of",
"the",
"students",
"taught",
"by",
"MARROTTE",
"KIRK",
"?"
] | [
"Which",
"are",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"students",
"taught",
"by",
"MARROTTE",
"KIRK",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mas... |
student_1 | SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "EVELINA" AND T1.lastname = "BROMLEY" | Find the first and last name of all the teachers that teach EVELINA BROMLEY. | [
"SELECT",
"T2.firstname",
",",
"T2.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.firstname",
"=",
"``",
"EVELINA",
"''",
"AND",
"T1.lastname",
"=",
"``",
"BROMLEY",
"''"
] | [
"select",
"t2",
".",
"firstname",
",",
"t2",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"t1",
".",
"las... | [
"Find",
"the",
"first",
"and",
"last",
"name",
"of",
"all",
"the",
"teachers",
"that",
"teach",
"EVELINA",
"BROMLEY",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"the",
"teachers",
"that",
"teach",
"EVELINA",
"BROMLEY",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mas... |
student_1 | SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "EVELINA" AND T1.lastname = "BROMLEY" | Which teachers teach the student named EVELINA BROMLEY? Give me the first and last name of the teachers. | [
"SELECT",
"T2.firstname",
",",
"T2.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.firstname",
"=",
"``",
"EVELINA",
"''",
"AND",
"T1.lastname",
"=",
"``",
"BROMLEY",
"''"
] | [
"select",
"t2",
".",
"firstname",
",",
"t2",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"t1",
".",
"las... | [
"Which",
"teachers",
"teach",
"the",
"student",
"named",
"EVELINA",
"BROMLEY",
"?",
"Give",
"me",
"the",
"first",
"and",
"last",
"name",
"of",
"the",
"teachers",
"."
] | [
"Which",
"teachers",
"teach",
"the",
"student",
"<mask>",
"EVELINA",
"BROMLEY",
"?",
"Give",
"me",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"teachers",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mas... |
student_1 | SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "GELL" AND T1.lastname = "TAMI" | Find the last names of all the teachers that teach GELL TAMI. | [
"SELECT",
"T2.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.firstname",
"=",
"``",
"GELL",
"''",
"AND",
"T1.lastname",
"=",
"``",
"TAMI",
"''"
] | [
"select",
"t2",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"t1",
".",
"lastname",
"=",
"value"
] | [
"Find",
"the",
"last",
"names",
"of",
"all",
"the",
"teachers",
"that",
"teach",
"GELL",
"TAMI",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"all",
"the",
"teachers",
"that",
"teach",
"GELL",
"TAMI",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<unk... |
student_1 | SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "GELL" AND T1.lastname = "TAMI" | What are the last names of the teachers who teach the student called GELL TAMI? | [
"SELECT",
"T2.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.firstname",
"=",
"``",
"GELL",
"''",
"AND",
"T1.lastname",
"=",
"``",
"TAMI",
"''"
] | [
"select",
"t2",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"t1",
".",
"lastname",
"=",
"value"
] | [
"What",
"are",
"the",
"last",
"names",
"of",
"the",
"teachers",
"who",
"teach",
"the",
"student",
"called",
"GELL",
"TAMI",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"the",
"teachers",
"who",
"teach",
"the",
"student",
"called",
"GELL",
"TAMI",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<unk... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "LORIA" AND T2.lastname = "ONDERSMA" | How many students does LORIA ONDERSMA teaches? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"LORIA",
"''",
"AND",
"T2.lastname",
"=",
"``",
"ONDERSMA",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"lastname",
"=",
"value"
] | [
"How",
"many",
"students",
"does",
"LORIA",
"ONDERSMA",
"teaches",
"?"
] | [
"How",
"many",
"students",
"does",
"LORIA",
"ONDERSMA",
"teaches",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "LORIA" AND T2.lastname = "ONDERSMA" | Count the number of students the teacher LORIA ONDERSMA teaches. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"LORIA",
"''",
"AND",
"T2.lastname",
"=",
"``",
"ONDERSMA",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"lastname",
"=",
"value"
] | [
"Count",
"the",
"number",
"of",
"students",
"the",
"teacher",
"LORIA",
"ONDERSMA",
"teaches",
"."
] | [
"Count",
"the",
"number",
"of",
"students",
"the",
"teacher",
"LORIA",
"ONDERSMA",
"teaches",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "KAWA" AND T2.lastname = "GORDON" | How many students does KAWA GORDON teaches? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"KAWA",
"''",
"AND",
"T2.lastname",
"=",
"``",
"GORDON",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"lastname",
"=",
"value"
] | [
"How",
"many",
"students",
"does",
"KAWA",
"GORDON",
"teaches",
"?"
] | [
"How",
"many",
"students",
"does",
"KAWA",
"GORDON",
"teaches",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "KAWA" AND T2.lastname = "GORDON" | Find the number of students taught by the teacher KAWA GORDON. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"KAWA",
"''",
"AND",
"T2.lastname",
"=",
"``",
"GORDON",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"lastname",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"students",
"taught",
"by",
"the",
"teacher",
"KAWA",
"GORDON",
"."
] | [
"Find",
"the",
"number",
"of",
"students",
"taught",
"by",
"the",
"teacher",
"KAWA",
"GORDON",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "TARRING" AND T2.lastname = "LEIA" | Find the number of students taught by TARRING LEIA. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"TARRING",
"''",
"AND",
"T2.lastname",
"=",
"``",
"LEIA",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"lastname",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"students",
"taught",
"by",
"TARRING",
"LEIA",
"."
] | [
"Find",
"the",
"number",
"of",
"students",
"taught",
"by",
"TARRING",
"LEIA",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "TARRING" AND T2.lastname = "LEIA" | How many students are taught by teacher TARRING LEIA? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T2.firstname",
"=",
"``",
"TARRING",
"''",
"AND",
"T2.lastname",
"=",
"``",
"LEIA",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t2",
".",
"firstname",
"=",
"value",
"and",
"t2",
".",
"lastname",
"=",
"value"
] | [
"How",
"many",
"students",
"are",
"taught",
"by",
"teacher",
"TARRING",
"LEIA",
"?"
] | [
"How",
"many",
"students",
"are",
"taught",
"by",
"teacher",
"TARRING",
"LEIA",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "CHRISSY" AND T1.lastname = "NABOZNY" | How many teachers does the student named CHRISSY NABOZNY have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.firstname",
"=",
"``",
"CHRISSY",
"''",
"AND",
"T1.lastname",
"=",
"``",
"NABOZNY",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"t1",
".",
"lastname",
"=",
"value"
] | [
"How",
"many",
"teachers",
"does",
"the",
"student",
"named",
"CHRISSY",
"NABOZNY",
"have",
"?"
] | [
"How",
"many",
"teachers",
"does",
"the",
"student",
"<mask>",
"CHRISSY",
"NABOZNY",
"have",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "CHRISSY" AND T1.lastname = "NABOZNY" | Find the number of teachers who teach the student called CHRISSY NABOZNY. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.firstname",
"=",
"``",
"CHRISSY",
"''",
"AND",
"T1.lastname",
"=",
"``",
"NABOZNY",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"t1",
".",
"lastname",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"teachers",
"who",
"teach",
"the",
"student",
"called",
"CHRISSY",
"NABOZNY",
"."
] | [
"Find",
"the",
"number",
"of",
"teachers",
"who",
"teach",
"the",
"student",
"called",
"CHRISSY",
"NABOZNY",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "MADLOCK" AND T1.lastname = "RAY" | How many teachers does the student named MADLOCK RAY have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.firstname",
"=",
"``",
"MADLOCK",
"''",
"AND",
"T1.lastname",
"=",
"``",
"RAY",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"t1",
".",
"lastname",
"=",
"value"
] | [
"How",
"many",
"teachers",
"does",
"the",
"student",
"named",
"MADLOCK",
"RAY",
"have",
"?"
] | [
"How",
"many",
"teachers",
"does",
"the",
"student",
"<mask>",
"MADLOCK",
"RAY",
"have",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "MADLOCK" AND T1.lastname = "RAY" | Find the number of teachers who teach the student called MADLOCK RAY. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.firstname",
"=",
"``",
"MADLOCK",
"''",
"AND",
"T1.lastname",
"=",
"``",
"RAY",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"t1",
".",
"lastname",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"teachers",
"who",
"teach",
"the",
"student",
"called",
"MADLOCK",
"RAY",
"."
] | [
"Find",
"the",
"number",
"of",
"teachers",
"who",
"teach",
"the",
"student",
"called",
"MADLOCK",
"RAY",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<un... |
student_1 | SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER" | Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names. | [
"SELECT",
"DISTINCT",
"T1.firstname",
",",
"T1.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.grade",
"=",
"1",
"EXCEPT",
"SELECT",
"T1.firstname",
",",
"T1.lastname",
"FROM",
"list"... | [
"select",
"distinct",
"t1",
".",
"firstname",
",",
"t1",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"grade",
"=",
"value",
"except",
"selec... | [
"Find",
"all",
"first-grade",
"students",
"who",
"are",
"NOT",
"taught",
"by",
"OTHA",
"MOYER",
".",
"Report",
"their",
"first",
"and",
"last",
"names",
"."
] | [
"Find",
"all",
"<mask>",
"students",
"who",
"are",
"NOT",
"taught",
"by",
"OTHA",
"MOYER",
".",
"Report",
"their",
"<mask>",
"and",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
... |
student_1 | SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER" | What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER? | [
"SELECT",
"DISTINCT",
"T1.firstname",
",",
"T1.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.grade",
"=",
"1",
"EXCEPT",
"SELECT",
"T1.firstname",
",",
"T1.lastname",
"FROM",
"list"... | [
"select",
"distinct",
"t1",
".",
"firstname",
",",
"t1",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"grade",
"=",
"value",
"except",
"selec... | [
"What",
"are",
"the",
"first",
"and",
"last",
"names",
"of",
"the",
"first-grade",
"students",
"who",
"are",
"NOT",
"taught",
"by",
"teacher",
"OTHA",
"MOYER",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"students",
"who",
"are",
"NOT",
"taught",
"by",
"teacher",
"OTHA",
"MOYER",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
... |
student_1 | SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname != "COVIN" AND T2.lastname != "JEROME" | Find the last names of the students in third grade that are not taught by COVIN JEROME. | [
"SELECT",
"DISTINCT",
"T1.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.grade",
"=",
"3",
"AND",
"T2.firstname",
"!",
"=",
"``",
"COVIN",
"''",
"AND",
"T2.lastname",
"!",
"=",
... | [
"select",
"distinct",
"t1",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"grade",
"=",
"value",
"and",
"t2",
".",
"firstname",
"!",
"=",
"v... | [
"Find",
"the",
"last",
"names",
"of",
"the",
"students",
"in",
"third",
"grade",
"that",
"are",
"not",
"taught",
"by",
"COVIN",
"JEROME",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"the",
"students",
"in",
"third",
"<mask>",
"that",
"are",
"not",
"taught",
"by",
"COVIN",
"JEROME",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
... |
student_1 | SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname != "COVIN" AND T2.lastname != "JEROME" | Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students. | [
"SELECT",
"DISTINCT",
"T1.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"WHERE",
"T1.grade",
"=",
"3",
"AND",
"T2.firstname",
"!",
"=",
"``",
"COVIN",
"''",
"AND",
"T2.lastname",
"!",
"=",
... | [
"select",
"distinct",
"t1",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"where",
"t1",
".",
"grade",
"=",
"value",
"and",
"t2",
".",
"firstname",
"!",
"=",
"v... | [
"Which",
"students",
"in",
"third",
"grade",
"are",
"not",
"taught",
"by",
"teacher",
"COVIN",
"JEROME",
"?",
"Give",
"me",
"the",
"last",
"names",
"of",
"the",
"students",
"."
] | [
"Which",
"students",
"in",
"third",
"<mask>",
"are",
"not",
"taught",
"by",
"teacher",
"COVIN",
"JEROME",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"of",
"the",
"students",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
... |
student_1 | SELECT grade , count(DISTINCT classroom) , count(*) FROM list GROUP BY grade | For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade. | [
"SELECT",
"grade",
",",
"count",
"(",
"DISTINCT",
"classroom",
")",
",",
"count",
"(",
"*",
")",
"FROM",
"list",
"GROUP",
"BY",
"grade"
] | [
"select",
"grade",
",",
"count",
"(",
"distinct",
"classroom",
")",
",",
"count",
"(",
"*",
")",
"from",
"list",
"group",
"by",
"grade"
] | [
"For",
"each",
"grade",
",",
"report",
"the",
"grade",
",",
"the",
"number",
"of",
"classrooms",
"in",
"which",
"it",
"is",
"taught",
"and",
"the",
"total",
"number",
"of",
"students",
"in",
"the",
"grade",
"."
] | [
"For",
"each",
"<mask>",
",",
"report",
"the",
"<mask>",
",",
"the",
"number",
"of",
"classrooms",
"in",
"which",
"it",
"is",
"taught",
"and",
"the",
"total",
"number",
"of",
"students",
"in",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"distinct",
"<mask>",
")",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT grade , count(DISTINCT classroom) , count(*) FROM list GROUP BY grade | For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade. | [
"SELECT",
"grade",
",",
"count",
"(",
"DISTINCT",
"classroom",
")",
",",
"count",
"(",
"*",
")",
"FROM",
"list",
"GROUP",
"BY",
"grade"
] | [
"select",
"grade",
",",
"count",
"(",
"distinct",
"classroom",
")",
",",
"count",
"(",
"*",
")",
"from",
"list",
"group",
"by",
"grade"
] | [
"For",
"each",
"grade",
",",
"return",
"the",
"grade",
"number",
",",
"the",
"number",
"of",
"classrooms",
"used",
"for",
"the",
"grade",
",",
"and",
"the",
"total",
"number",
"of",
"students",
"enrolled",
"in",
"the",
"grade",
"."
] | [
"For",
"each",
"<mask>",
",",
"return",
"the",
"<mask>",
"number",
",",
"the",
"number",
"of",
"classrooms",
"used",
"for",
"the",
"<mask>",
",",
"and",
"the",
"total",
"number",
"of",
"students",
"enrolled",
"in",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"distinct",
"<mask>",
")",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT classroom , count(DISTINCT grade) FROM list GROUP BY classroom | For each classroom, report the classroom number and the number of grades using it. | [
"SELECT",
"classroom",
",",
"count",
"(",
"DISTINCT",
"grade",
")",
"FROM",
"list",
"GROUP",
"BY",
"classroom"
] | [
"select",
"classroom",
",",
"count",
"(",
"distinct",
"grade",
")",
"from",
"list",
"group",
"by",
"classroom"
] | [
"For",
"each",
"classroom",
",",
"report",
"the",
"classroom",
"number",
"and",
"the",
"number",
"of",
"grades",
"using",
"it",
"."
] | [
"For",
"each",
"classroom",
",",
"report",
"the",
"classroom",
"number",
"and",
"the",
"number",
"of",
"<mask>",
"using",
"it",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT classroom , count(DISTINCT grade) FROM list GROUP BY classroom | For each classroom, show the classroom number and count the number of distinct grades that use the room. | [
"SELECT",
"classroom",
",",
"count",
"(",
"DISTINCT",
"grade",
")",
"FROM",
"list",
"GROUP",
"BY",
"classroom"
] | [
"select",
"classroom",
",",
"count",
"(",
"distinct",
"grade",
")",
"from",
"list",
"group",
"by",
"classroom"
] | [
"For",
"each",
"classroom",
",",
"show",
"the",
"classroom",
"number",
"and",
"count",
"the",
"number",
"of",
"distinct",
"grades",
"that",
"use",
"the",
"room",
"."
] | [
"For",
"each",
"classroom",
",",
"show",
"the",
"classroom",
"number",
"and",
"count",
"the",
"number",
"of",
"distinct",
"<mask>",
"that",
"use",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1 | Which classroom has the most students? | [
"SELECT",
"classroom",
"FROM",
"list",
"GROUP",
"BY",
"classroom",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"classroom",
"from",
"list",
"group",
"by",
"classroom",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"classroom",
"has",
"the",
"most",
"students",
"?"
] | [
"Which",
"classroom",
"has",
"the",
"most",
"students",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
student_1 | SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1 | Find the classroom that the most students use. | [
"SELECT",
"classroom",
"FROM",
"list",
"GROUP",
"BY",
"classroom",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"classroom",
"from",
"list",
"group",
"by",
"classroom",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"classroom",
"that",
"the",
"most",
"students",
"use",
"."
] | [
"Find",
"the",
"classroom",
"that",
"the",
"most",
"students",
"use",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
student_1 | SELECT classroom , count(*) FROM list GROUP BY classroom | Report the number of students in each classroom. | [
"SELECT",
"classroom",
",",
"count",
"(",
"*",
")",
"FROM",
"list",
"GROUP",
"BY",
"classroom"
] | [
"select",
"classroom",
",",
"count",
"(",
"*",
")",
"from",
"list",
"group",
"by",
"classroom"
] | [
"Report",
"the",
"number",
"of",
"students",
"in",
"each",
"classroom",
"."
] | [
"Report",
"the",
"number",
"of",
"students",
"in",
"each",
"classroom",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT classroom , count(*) FROM list GROUP BY classroom | For each classroom, show the classroom number and find how many students are using it. | [
"SELECT",
"classroom",
",",
"count",
"(",
"*",
")",
"FROM",
"list",
"GROUP",
"BY",
"classroom"
] | [
"select",
"classroom",
",",
"count",
"(",
"*",
")",
"from",
"list",
"group",
"by",
"classroom"
] | [
"For",
"each",
"classroom",
",",
"show",
"the",
"classroom",
"number",
"and",
"find",
"how",
"many",
"students",
"are",
"using",
"it",
"."
] | [
"For",
"each",
"classroom",
",",
"show",
"the",
"classroom",
"number",
"and",
"find",
"how",
"many",
"students",
"are",
"using",
"it",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT classroom , count(*) FROM list WHERE grade = "0" GROUP BY classroom | For each grade 0 classroom, report the total number of students. | [
"SELECT",
"classroom",
",",
"count",
"(",
"*",
")",
"FROM",
"list",
"WHERE",
"grade",
"=",
"``",
"0",
"''",
"GROUP",
"BY",
"classroom"
] | [
"select",
"classroom",
",",
"count",
"(",
"*",
")",
"from",
"list",
"where",
"grade",
"=",
"value",
"group",
"by",
"classroom"
] | [
"For",
"each",
"grade",
"0",
"classroom",
",",
"report",
"the",
"total",
"number",
"of",
"students",
"."
] | [
"For",
"each",
"<mask>",
"<unk>",
"classroom",
",",
"report",
"the",
"total",
"number",
"of",
"students",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT classroom , count(*) FROM list WHERE grade = "0" GROUP BY classroom | For each grade 0 classroom, return the classroom number and the count of students. | [
"SELECT",
"classroom",
",",
"count",
"(",
"*",
")",
"FROM",
"list",
"WHERE",
"grade",
"=",
"``",
"0",
"''",
"GROUP",
"BY",
"classroom"
] | [
"select",
"classroom",
",",
"count",
"(",
"*",
")",
"from",
"list",
"where",
"grade",
"=",
"value",
"group",
"by",
"classroom"
] | [
"For",
"each",
"grade",
"0",
"classroom",
",",
"return",
"the",
"classroom",
"number",
"and",
"the",
"count",
"of",
"students",
"."
] | [
"For",
"each",
"<mask>",
"<unk>",
"classroom",
",",
"return",
"the",
"classroom",
"number",
"and",
"the",
"count",
"of",
"students",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT classroom , count(*) FROM list WHERE grade = "4" GROUP BY classroom | Report the total number of students for each fourth-grade classroom. | [
"SELECT",
"classroom",
",",
"count",
"(",
"*",
")",
"FROM",
"list",
"WHERE",
"grade",
"=",
"``",
"4",
"''",
"GROUP",
"BY",
"classroom"
] | [
"select",
"classroom",
",",
"count",
"(",
"*",
")",
"from",
"list",
"where",
"grade",
"=",
"value",
"group",
"by",
"classroom"
] | [
"Report",
"the",
"total",
"number",
"of",
"students",
"for",
"each",
"fourth-grade",
"classroom",
"."
] | [
"Report",
"the",
"total",
"number",
"of",
"students",
"for",
"each",
"fourth-grade",
"classroom",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT classroom , count(*) FROM list WHERE grade = "4" GROUP BY classroom | For each fourth-grade classroom, show the classroom number and the total number of students using it. | [
"SELECT",
"classroom",
",",
"count",
"(",
"*",
")",
"FROM",
"list",
"WHERE",
"grade",
"=",
"``",
"4",
"''",
"GROUP",
"BY",
"classroom"
] | [
"select",
"classroom",
",",
"count",
"(",
"*",
")",
"from",
"list",
"where",
"grade",
"=",
"value",
"group",
"by",
"classroom"
] | [
"For",
"each",
"fourth-grade",
"classroom",
",",
"show",
"the",
"classroom",
"number",
"and",
"the",
"total",
"number",
"of",
"students",
"using",
"it",
"."
] | [
"For",
"each",
"fourth-grade",
"classroom",
",",
"show",
"the",
"classroom",
"number",
"and",
"the",
"total",
"number",
"of",
"students",
"using",
"it",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count(*) DESC LIMIT 1 | Find the name of the teacher who teaches the largest number of students. | [
"SELECT",
"T2.firstname",
",",
"T2.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"GROUP",
"BY",
"T2.firstname",
",",
"T2.lastname",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1... | [
"select",
"t2",
".",
"firstname",
",",
"t2",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"group",
"by",
"t2",
".",
"firstname",
",",
"t2",
".",
"lastname",
"o... | [
"Find",
"the",
"name",
"of",
"the",
"teacher",
"who",
"teaches",
"the",
"largest",
"number",
"of",
"students",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"teacher",
"who",
"teaches",
"the",
"largest",
"number",
"of",
"students",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
... |
student_1 | SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count(*) DESC LIMIT 1 | Which teacher teaches the most students? Give me the first name and last name of the teacher. | [
"SELECT",
"T2.firstname",
",",
"T2.lastname",
"FROM",
"list",
"AS",
"T1",
"JOIN",
"teachers",
"AS",
"T2",
"ON",
"T1.classroom",
"=",
"T2.classroom",
"GROUP",
"BY",
"T2.firstname",
",",
"T2.lastname",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1... | [
"select",
"t2",
".",
"firstname",
",",
"t2",
".",
"lastname",
"from",
"list",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"classroom",
"=",
"t2",
".",
"classroom",
"group",
"by",
"t2",
".",
"firstname",
",",
"t2",
".",
"lastname",
"o... | [
"Which",
"teacher",
"teaches",
"the",
"most",
"students",
"?",
"Give",
"me",
"the",
"first",
"name",
"and",
"last",
"name",
"of",
"the",
"teacher",
"."
] | [
"Which",
"teacher",
"teaches",
"the",
"most",
"students",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"teacher",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
... |
student_1 | SELECT count(*) , classroom FROM list GROUP BY classroom | Find the number of students in one classroom. | [
"SELECT",
"count",
"(",
"*",
")",
",",
"classroom",
"FROM",
"list",
"GROUP",
"BY",
"classroom"
] | [
"select",
"count",
"(",
"*",
")",
",",
"classroom",
"from",
"list",
"group",
"by",
"classroom"
] | [
"Find",
"the",
"number",
"of",
"students",
"in",
"one",
"classroom",
"."
] | [
"Find",
"the",
"number",
"of",
"students",
"in",
"one",
"classroom",
"."
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
student_1 | SELECT count(*) , classroom FROM list GROUP BY classroom | How many students does one classroom have? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"classroom",
"FROM",
"list",
"GROUP",
"BY",
"classroom"
] | [
"select",
"count",
"(",
"*",
")",
",",
"classroom",
"from",
"list",
"group",
"by",
"classroom"
] | [
"How",
"many",
"students",
"does",
"one",
"classroom",
"have",
"?"
] | [
"How",
"many",
"students",
"does",
"one",
"classroom",
"have",
"?"
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
company_employee | SELECT count(*) FROM company WHERE Headquarters = 'USA' | How many companies are headquartered in the US? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"company",
"WHERE",
"Headquarters",
"=",
"'USA",
"'"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"company",
"where",
"headquarters",
"=",
"value"
] | [
"How",
"many",
"companies",
"are",
"headquartered",
"in",
"the",
"US",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"headquartered",
"in",
"the",
"US",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
company_employee | SELECT Name FROM company ORDER BY Sales_in_Billion ASC | List the names of companies by ascending number of sales. | [
"SELECT",
"Name",
"FROM",
"company",
"ORDER",
"BY",
"Sales_in_Billion",
"ASC"
] | [
"select",
"name",
"from",
"company",
"order",
"by",
"sales_in_billion",
"asc"
] | [
"List",
"the",
"names",
"of",
"companies",
"by",
"ascending",
"number",
"of",
"sales",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"by",
"ascending",
"number",
"of",
"sales",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
company_employee | SELECT Headquarters , Industry FROM company | What are the headquarters and industries of all companies? | [
"SELECT",
"Headquarters",
",",
"Industry",
"FROM",
"company"
] | [
"select",
"headquarters",
",",
"industry",
"from",
"company"
] | [
"What",
"are",
"the",
"headquarters",
"and",
"industries",
"of",
"all",
"companies",
"?"
] | [
"What",
"are",
"the",
"headquarters",
"and",
"<mask>",
"of",
"all",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
company_employee | SELECT Name FROM company WHERE Industry = "Banking" OR Industry = "Retailing" | Show the names of companies in the banking or retailing industry? | [
"SELECT",
"Name",
"FROM",
"company",
"WHERE",
"Industry",
"=",
"``",
"Banking",
"''",
"OR",
"Industry",
"=",
"``",
"Retailing",
"''"
] | [
"select",
"name",
"from",
"company",
"where",
"industry",
"=",
"value",
"or",
"industry",
"=",
"value"
] | [
"Show",
"the",
"names",
"of",
"companies",
"in",
"the",
"banking",
"or",
"retailing",
"industry",
"?"
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"in",
"the",
"banking",
"or",
"retailing",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.