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 |
|---|---|---|---|---|---|---|---|
gas_company | SELECT company , headquarters FROM company ORDER BY market_value DESC | What are the names and headquarters of all companies ordered by descending market value? | [
"SELECT",
"company",
",",
"headquarters",
"FROM",
"company",
"ORDER",
"BY",
"market_value",
"DESC"
] | [
"select",
"company",
",",
"headquarters",
"from",
"company",
"order",
"by",
"market_value",
"desc"
] | [
"What",
"are",
"the",
"names",
"and",
"headquarters",
"of",
"all",
"companies",
"ordered",
"by",
"descending",
"market",
"value",
"?"
] | [
"What",
"are",
"<mask>",
"<mask>",
"and",
"headquarters",
"of",
"all",
"<mask>",
"ordered",
"by",
"descending",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
gas_company | SELECT min(market_value) , max(market_value) , avg(market_value) FROM company | Show minimum, maximum, and average market value for all companies. | [
"SELECT",
"min",
"(",
"market_value",
")",
",",
"max",
"(",
"market_value",
")",
",",
"avg",
"(",
"market_value",
")",
"FROM",
"company"
] | [
"select",
"min",
"(",
"market_value",
")",
",",
"max",
"(",
"market_value",
")",
",",
"avg",
"(",
"market_value",
")",
"from",
"company"
] | [
"Show",
"minimum",
",",
"maximum",
",",
"and",
"average",
"market",
"value",
"for",
"all",
"companies",
"."
] | [
"Show",
"minimum",
",",
"maximum",
",",
"and",
"average",
"<mask>",
"<mask>",
"for",
"all",
"<mask>",
"."
] | [
"select",
"min",
"(",
"<mask>",
")",
",",
"max",
"(",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
gas_company | SELECT min(market_value) , max(market_value) , avg(market_value) FROM company | What is the minimum, maximum, and average market value for every company? | [
"SELECT",
"min",
"(",
"market_value",
")",
",",
"max",
"(",
"market_value",
")",
",",
"avg",
"(",
"market_value",
")",
"FROM",
"company"
] | [
"select",
"min",
"(",
"market_value",
")",
",",
"max",
"(",
"market_value",
")",
",",
"avg",
"(",
"market_value",
")",
"from",
"company"
] | [
"What",
"is",
"the",
"minimum",
",",
"maximum",
",",
"and",
"average",
"market",
"value",
"for",
"every",
"company",
"?"
] | [
"What",
"is",
"<mask>",
"minimum",
",",
"maximum",
",",
"and",
"average",
"<mask>",
"<mask>",
"for",
"every",
"<mask>",
"?"
] | [
"select",
"min",
"(",
"<mask>",
")",
",",
"max",
"(",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
gas_company | SELECT DISTINCT main_industry FROM company | Show all main industry for all companies. | [
"SELECT",
"DISTINCT",
"main_industry",
"FROM",
"company"
] | [
"select",
"distinct",
"main_industry",
"from",
"company"
] | [
"Show",
"all",
"main",
"industry",
"for",
"all",
"companies",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"for",
"all",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
gas_company | SELECT DISTINCT main_industry FROM company | What are the different main industries for all companies? | [
"SELECT",
"DISTINCT",
"main_industry",
"FROM",
"company"
] | [
"select",
"distinct",
"main_industry",
"from",
"company"
] | [
"What",
"are",
"the",
"different",
"main",
"industries",
"for",
"all",
"companies",
"?"
] | [
"What",
"are",
"<mask>",
"different",
"<mask>",
"<mask>",
"for",
"all",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
gas_company | SELECT headquarters , count(*) FROM company GROUP BY headquarters | List all headquarters and the number of companies in each headquarter. | [
"SELECT",
"headquarters",
",",
"count",
"(",
"*",
")",
"FROM",
"company",
"GROUP",
"BY",
"headquarters"
] | [
"select",
"headquarters",
",",
"count",
"(",
"*",
")",
"from",
"company",
"group",
"by",
"headquarters"
] | [
"List",
"all",
"headquarters",
"and",
"the",
"number",
"of",
"companies",
"in",
"each",
"headquarter",
"."
] | [
"List",
"all",
"headquarters",
"and",
"<mask>",
"number",
"of",
"<mask>",
"in",
"each",
"headquarter",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
gas_company | SELECT headquarters , count(*) FROM company GROUP BY headquarters | For each headquarter, what are the headquarter and how many companies are centered there? | [
"SELECT",
"headquarters",
",",
"count",
"(",
"*",
")",
"FROM",
"company",
"GROUP",
"BY",
"headquarters"
] | [
"select",
"headquarters",
",",
"count",
"(",
"*",
")",
"from",
"company",
"group",
"by",
"headquarters"
] | [
"For",
"each",
"headquarter",
",",
"what",
"are",
"the",
"headquarter",
"and",
"how",
"many",
"companies",
"are",
"centered",
"there",
"?"
] | [
"For",
"each",
"headquarter",
",",
"what",
"are",
"<mask>",
"headquarter",
"and",
"how",
"many",
"<mask>",
"are",
"centered",
"there",
"?"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
gas_company | SELECT main_industry , sum(market_value) FROM company GROUP BY main_industry | Show all main industry and total market value in each industry. | [
"SELECT",
"main_industry",
",",
"sum",
"(",
"market_value",
")",
"FROM",
"company",
"GROUP",
"BY",
"main_industry"
] | [
"select",
"main_industry",
",",
"sum",
"(",
"market_value",
")",
"from",
"company",
"group",
"by",
"main_industry"
] | [
"Show",
"all",
"main",
"industry",
"and",
"total",
"market",
"value",
"in",
"each",
"industry",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"and",
"total",
"<mask>",
"<mask>",
"in",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
gas_company | SELECT main_industry , sum(market_value) FROM company GROUP BY main_industry | What are the main indstries and total market value for each industry? | [
"SELECT",
"main_industry",
",",
"sum",
"(",
"market_value",
")",
"FROM",
"company",
"GROUP",
"BY",
"main_industry"
] | [
"select",
"main_industry",
",",
"sum",
"(",
"market_value",
")",
"from",
"company",
"group",
"by",
"main_industry"
] | [
"What",
"are",
"the",
"main",
"indstries",
"and",
"total",
"market",
"value",
"for",
"each",
"industry",
"?"
] | [
"What",
"are",
"<mask>",
"<mask>",
"indstries",
"and",
"total",
"<mask>",
"<mask>",
"for",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
gas_company | SELECT main_industry , count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1 | List the main industry with highest total market value and its number of companies. | [
"SELECT",
"main_industry",
",",
"count",
"(",
"*",
")",
"FROM",
"company",
"GROUP",
"BY",
"main_industry",
"ORDER",
"BY",
"sum",
"(",
"market_value",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"main_industry",
",",
"count",
"(",
"*",
")",
"from",
"company",
"group",
"by",
"main_industry",
"order",
"by",
"sum",
"(",
"market_value",
")",
"desc",
"limit",
"value"
] | [
"List",
"the",
"main",
"industry",
"with",
"highest",
"total",
"market",
"value",
"and",
"its",
"number",
"of",
"companies",
"."
] | [
"List",
"<mask>",
"<mask>",
"<mask>",
"with",
"highest",
"total",
"<mask>",
"<mask>",
"and",
"its",
"number",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"sum",
"(",
"<mask>",
")",
"desc",
"limit",
"<unk>"
] |
gas_company | SELECT main_industry , count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1 | For each main industry, what is the total number of companies for the industry with the highest total market value? | [
"SELECT",
"main_industry",
",",
"count",
"(",
"*",
")",
"FROM",
"company",
"GROUP",
"BY",
"main_industry",
"ORDER",
"BY",
"sum",
"(",
"market_value",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"main_industry",
",",
"count",
"(",
"*",
")",
"from",
"company",
"group",
"by",
"main_industry",
"order",
"by",
"sum",
"(",
"market_value",
")",
"desc",
"limit",
"value"
] | [
"For",
"each",
"main",
"industry",
",",
"what",
"is",
"the",
"total",
"number",
"of",
"companies",
"for",
"the",
"industry",
"with",
"the",
"highest",
"total",
"market",
"value",
"?"
] | [
"For",
"each",
"<mask>",
"<mask>",
",",
"what",
"is",
"<mask>",
"total",
"number",
"of",
"<mask>",
"for",
"<mask>",
"<mask>",
"with",
"<mask>",
"highest",
"total",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"sum",
"(",
"<mask>",
")",
"desc",
"limit",
"<unk>"
] |
gas_company | SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count(*) >= 2 | Show headquarters with at least two companies in the banking industry. | [
"SELECT",
"headquarters",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Banking",
"'",
"GROUP",
"BY",
"headquarters",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"headquarters",
"from",
"company",
"where",
"main_industry",
"=",
"value",
"group",
"by",
"headquarters",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"Show",
"headquarters",
"with",
"at",
"least",
"two",
"companies",
"in",
"the",
"banking",
"industry",
"."
] | [
"Show",
"headquarters",
"with",
"at",
"least",
"two",
"<mask>",
"in",
"<mask>",
"banking",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<unk>"
] |
gas_company | SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count(*) >= 2 | What are the headquarters with at least two companies in the banking industry? | [
"SELECT",
"headquarters",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Banking",
"'",
"GROUP",
"BY",
"headquarters",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"headquarters",
"from",
"company",
"where",
"main_industry",
"=",
"value",
"group",
"by",
"headquarters",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"What",
"are",
"the",
"headquarters",
"with",
"at",
"least",
"two",
"companies",
"in",
"the",
"banking",
"industry",
"?"
] | [
"What",
"are",
"<mask>",
"headquarters",
"with",
"at",
"least",
"two",
"<mask>",
"in",
"<mask>",
"banking",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<unk>"
] |
gas_company | SELECT station_id , LOCATION , manager_name FROM gas_station ORDER BY open_year | Show gas station id, location, and manager_name for all gas stations ordered by open year. | [
"SELECT",
"station_id",
",",
"LOCATION",
",",
"manager_name",
"FROM",
"gas_station",
"ORDER",
"BY",
"open_year"
] | [
"select",
"station_id",
",",
"location",
",",
"manager_name",
"from",
"gas_station",
"order",
"by",
"open_year"
] | [
"Show",
"gas",
"station",
"id",
",",
"location",
",",
"and",
"manager_name",
"for",
"all",
"gas",
"stations",
"ordered",
"by",
"open",
"year",
"."
] | [
"Show",
"<mask>",
"<mask>",
"id",
",",
"<mask>",
",",
"and",
"manager_name",
"for",
"all",
"<mask>",
"<mask>",
"ordered",
"by",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
gas_company | SELECT station_id , LOCATION , manager_name FROM gas_station ORDER BY open_year | What are the gas station ids, locations, and manager names for the gas stations ordered by opening year? | [
"SELECT",
"station_id",
",",
"LOCATION",
",",
"manager_name",
"FROM",
"gas_station",
"ORDER",
"BY",
"open_year"
] | [
"select",
"station_id",
",",
"location",
",",
"manager_name",
"from",
"gas_station",
"order",
"by",
"open_year"
] | [
"What",
"are",
"the",
"gas",
"station",
"ids",
",",
"locations",
",",
"and",
"manager",
"names",
"for",
"the",
"gas",
"stations",
"ordered",
"by",
"opening",
"year",
"?"
] | [
"What",
"are",
"<mask>",
"<mask>",
"<mask>",
"ids",
",",
"<mask>",
",",
"and",
"<mask>",
"<mask>",
"for",
"<mask>",
"<mask>",
"<mask>",
"ordered",
"by",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
gas_company | SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005 | How many gas station are opened between 2000 and 2005? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"gas_station",
"WHERE",
"open_year",
"BETWEEN",
"2000",
"AND",
"2005"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"gas_station",
"where",
"open_year",
"between",
"value",
"and",
"value"
] | [
"How",
"many",
"gas",
"station",
"are",
"opened",
"between",
"2000",
"and",
"2005",
"?"
] | [
"How",
"many",
"<mask>",
"<mask>",
"are",
"<mask>",
"between",
"<unk>",
"and",
"<unk>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"between",
"<unk>",
"and",
"<unk>"
] |
gas_company | SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005 | What is the total number of gas stations that opened between 2000 and 2005? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"gas_station",
"WHERE",
"open_year",
"BETWEEN",
"2000",
"AND",
"2005"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"gas_station",
"where",
"open_year",
"between",
"value",
"and",
"value"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"gas",
"stations",
"that",
"opened",
"between",
"2000",
"and",
"2005",
"?"
] | [
"What",
"is",
"<mask>",
"total",
"number",
"of",
"<mask>",
"<mask>",
"that",
"<mask>",
"between",
"<unk>",
"and",
"<unk>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"between",
"<unk>",
"and",
"<unk>"
] |
gas_company | SELECT LOCATION , count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*) | Show all locations and the number of gas stations in each location ordered by the count. | [
"SELECT",
"LOCATION",
",",
"count",
"(",
"*",
")",
"FROM",
"gas_station",
"GROUP",
"BY",
"LOCATION",
"ORDER",
"BY",
"count",
"(",
"*",
")"
] | [
"select",
"location",
",",
"count",
"(",
"*",
")",
"from",
"gas_station",
"group",
"by",
"location",
"order",
"by",
"count",
"(",
"*",
")"
] | [
"Show",
"all",
"locations",
"and",
"the",
"number",
"of",
"gas",
"stations",
"in",
"each",
"location",
"ordered",
"by",
"the",
"count",
"."
] | [
"Show",
"all",
"<mask>",
"and",
"<mask>",
"number",
"of",
"<mask>",
"<mask>",
"in",
"each",
"<mask>",
"ordered",
"by",
"<mask>",
"count",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")"
] |
gas_company | SELECT LOCATION , count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*) | For each location, how many gas stations are there in order? | [
"SELECT",
"LOCATION",
",",
"count",
"(",
"*",
")",
"FROM",
"gas_station",
"GROUP",
"BY",
"LOCATION",
"ORDER",
"BY",
"count",
"(",
"*",
")"
] | [
"select",
"location",
",",
"count",
"(",
"*",
")",
"from",
"gas_station",
"group",
"by",
"location",
"order",
"by",
"count",
"(",
"*",
")"
] | [
"For",
"each",
"location",
",",
"how",
"many",
"gas",
"stations",
"are",
"there",
"in",
"order",
"?"
] | [
"For",
"each",
"<mask>",
",",
"how",
"many",
"<mask>",
"<mask>",
"are",
"there",
"in",
"order",
"?"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")"
] |
gas_company | SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' | Show all headquarters with both a company in banking industry and a company in Oil and gas. | [
"SELECT",
"headquarters",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Banking",
"'",
"INTERSECT",
"SELECT",
"headquarters",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Oil",
"and",
"gas",
"'"
] | [
"select",
"headquarters",
"from",
"company",
"where",
"main_industry",
"=",
"value",
"intersect",
"select",
"headquarters",
"from",
"company",
"where",
"main_industry",
"=",
"value"
] | [
"Show",
"all",
"headquarters",
"with",
"both",
"a",
"company",
"in",
"banking",
"industry",
"and",
"a",
"company",
"in",
"Oil",
"and",
"gas",
"."
] | [
"Show",
"all",
"headquarters",
"with",
"both",
"a",
"<mask>",
"in",
"banking",
"<mask>",
"and",
"a",
"<mask>",
"in",
"Oil",
"and",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
gas_company | SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' | What are the headquarters that have both a company in the banking and 'oil and gas' industries? | [
"SELECT",
"headquarters",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Banking",
"'",
"INTERSECT",
"SELECT",
"headquarters",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Oil",
"and",
"gas",
"'"
] | [
"select",
"headquarters",
"from",
"company",
"where",
"main_industry",
"=",
"value",
"intersect",
"select",
"headquarters",
"from",
"company",
"where",
"main_industry",
"=",
"value"
] | [
"What",
"are",
"the",
"headquarters",
"that",
"have",
"both",
"a",
"company",
"in",
"the",
"banking",
"and",
"'oil",
"and",
"gas",
"'",
"industries",
"?"
] | [
"What",
"are",
"<mask>",
"headquarters",
"that",
"have",
"both",
"a",
"<mask>",
"in",
"<mask>",
"banking",
"and",
"'oil",
"and",
"<mask>",
"'",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
gas_company | SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking' | Show all headquarters without a company in banking industry. | [
"SELECT",
"headquarters",
"FROM",
"company",
"EXCEPT",
"SELECT",
"headquarters",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Banking",
"'"
] | [
"select",
"headquarters",
"from",
"company",
"except",
"select",
"headquarters",
"from",
"company",
"where",
"main_industry",
"=",
"value"
] | [
"Show",
"all",
"headquarters",
"without",
"a",
"company",
"in",
"banking",
"industry",
"."
] | [
"Show",
"all",
"headquarters",
"without",
"a",
"<mask>",
"in",
"banking",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
gas_company | SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking' | What are the headquarters without companies that are in the banking industry? | [
"SELECT",
"headquarters",
"FROM",
"company",
"EXCEPT",
"SELECT",
"headquarters",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Banking",
"'"
] | [
"select",
"headquarters",
"from",
"company",
"except",
"select",
"headquarters",
"from",
"company",
"where",
"main_industry",
"=",
"value"
] | [
"What",
"are",
"the",
"headquarters",
"without",
"companies",
"that",
"are",
"in",
"the",
"banking",
"industry",
"?"
] | [
"What",
"are",
"<mask>",
"headquarters",
"without",
"<mask>",
"that",
"are",
"in",
"<mask>",
"banking",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
gas_company | SELECT T2.company , count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id | Show the company name with the number of gas station. | [
"SELECT",
"T2.company",
",",
"count",
"(",
"*",
")",
"FROM",
"station_company",
"AS",
"T1",
"JOIN",
"company",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.company_id",
"GROUP",
"BY",
"T1.company_id"
] | [
"select",
"t2",
".",
"company",
",",
"count",
"(",
"*",
")",
"from",
"station_company",
"as",
"t1",
"join",
"company",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"company_id",
"group",
"by",
"t1",
".",
"company_id"
] | [
"Show",
"the",
"company",
"name",
"with",
"the",
"number",
"of",
"gas",
"station",
"."
] | [
"Show",
"<mask>",
"<mask>",
"<mask>",
"with",
"<mask>",
"number",
"of",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
gas_company | SELECT T2.company , count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id | For each company id, what are the companies and how many gas stations does each one operate? | [
"SELECT",
"T2.company",
",",
"count",
"(",
"*",
")",
"FROM",
"station_company",
"AS",
"T1",
"JOIN",
"company",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.company_id",
"GROUP",
"BY",
"T1.company_id"
] | [
"select",
"t2",
".",
"company",
",",
"count",
"(",
"*",
")",
"from",
"station_company",
"as",
"t1",
"join",
"company",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"company_id",
"group",
"by",
"t1",
".",
"company_id"
] | [
"For",
"each",
"company",
"id",
",",
"what",
"are",
"the",
"companies",
"and",
"how",
"many",
"gas",
"stations",
"does",
"each",
"one",
"operate",
"?"
] | [
"For",
"each",
"<mask>",
"id",
",",
"what",
"are",
"<mask>",
"<mask>",
"and",
"how",
"many",
"<mask>",
"<mask>",
"does",
"each",
"one",
"operate",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
gas_company | SELECT company , main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company) | Show company name and main industry without a gas station. | [
"SELECT",
"company",
",",
"main_industry",
"FROM",
"company",
"WHERE",
"company_id",
"NOT",
"IN",
"(",
"SELECT",
"company_id",
"FROM",
"station_company",
")"
] | [
"select",
"company",
",",
"main_industry",
"from",
"company",
"where",
"company_id",
"not",
"in",
"(",
"select",
"company_id",
"from",
"station_company",
")"
] | [
"Show",
"company",
"name",
"and",
"main",
"industry",
"without",
"a",
"gas",
"station",
"."
] | [
"Show",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"without",
"a",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
gas_company | SELECT company , main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company) | What are the main industries of the companies without gas stations and what are the companies? | [
"SELECT",
"company",
",",
"main_industry",
"FROM",
"company",
"WHERE",
"company_id",
"NOT",
"IN",
"(",
"SELECT",
"company_id",
"FROM",
"station_company",
")"
] | [
"select",
"company",
",",
"main_industry",
"from",
"company",
"where",
"company_id",
"not",
"in",
"(",
"select",
"company_id",
"from",
"station_company",
")"
] | [
"What",
"are",
"the",
"main",
"industries",
"of",
"the",
"companies",
"without",
"gas",
"stations",
"and",
"what",
"are",
"the",
"companies",
"?"
] | [
"What",
"are",
"<mask>",
"<mask>",
"<mask>",
"of",
"<mask>",
"<mask>",
"without",
"<mask>",
"<mask>",
"and",
"what",
"are",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
gas_company | SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil' | Show the manager name for gas stations belonging to the ExxonMobil company. | [
"SELECT",
"T3.manager_name",
"FROM",
"station_company",
"AS",
"T1",
"JOIN",
"company",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.company_id",
"JOIN",
"gas_station",
"AS",
"T3",
"ON",
"T1.station_id",
"=",
"T3.station_id",
"WHERE",
"T2.company",
"=",
"'ExxonMobil",... | [
"select",
"t3",
".",
"manager_name",
"from",
"station_company",
"as",
"t1",
"join",
"company",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"company_id",
"join",
"gas_station",
"as",
"t3",
"on",
"t1",
".",
"station_id",
"=",
"t3",
".",
"sta... | [
"Show",
"the",
"manager",
"name",
"for",
"gas",
"stations",
"belonging",
"to",
"the",
"ExxonMobil",
"company",
"."
] | [
"Show",
"<mask>",
"<mask>",
"<mask>",
"for",
"<mask>",
"<mask>",
"belonging",
"to",
"<mask>",
"ExxonMobil",
"<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... |
gas_company | SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil' | What are the names of the managers for gas stations that are operated by the ExxonMobil company? | [
"SELECT",
"T3.manager_name",
"FROM",
"station_company",
"AS",
"T1",
"JOIN",
"company",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.company_id",
"JOIN",
"gas_station",
"AS",
"T3",
"ON",
"T1.station_id",
"=",
"T3.station_id",
"WHERE",
"T2.company",
"=",
"'ExxonMobil",... | [
"select",
"t3",
".",
"manager_name",
"from",
"station_company",
"as",
"t1",
"join",
"company",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"company_id",
"join",
"gas_station",
"as",
"t3",
"on",
"t1",
".",
"station_id",
"=",
"t3",
".",
"sta... | [
"What",
"are",
"the",
"names",
"of",
"the",
"managers",
"for",
"gas",
"stations",
"that",
"are",
"operated",
"by",
"the",
"ExxonMobil",
"company",
"?"
] | [
"What",
"are",
"<mask>",
"<mask>",
"of",
"<mask>",
"<mask>",
"for",
"<mask>",
"<mask>",
"that",
"are",
"operated",
"by",
"<mask>",
"ExxonMobil",
"<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... |
gas_company | SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100 | Show all locations where a gas station for company with market value greater than 100 is located. | [
"SELECT",
"T3.location",
"FROM",
"station_company",
"AS",
"T1",
"JOIN",
"company",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.company_id",
"JOIN",
"gas_station",
"AS",
"T3",
"ON",
"T1.station_id",
"=",
"T3.station_id",
"WHERE",
"T2.market_value",
">",
"100"
] | [
"select",
"t3",
".",
"location",
"from",
"station_company",
"as",
"t1",
"join",
"company",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"company_id",
"join",
"gas_station",
"as",
"t3",
"on",
"t1",
".",
"station_id",
"=",
"t3",
".",
"station... | [
"Show",
"all",
"locations",
"where",
"a",
"gas",
"station",
"for",
"company",
"with",
"market",
"value",
"greater",
"than",
"100",
"is",
"located",
"."
] | [
"Show",
"all",
"<mask>",
"where",
"a",
"<mask>",
"<mask>",
"for",
"<mask>",
"with",
"<mask>",
"<mask>",
"greater",
"than",
"<unk>",
"is",
"located",
"."
] | [
"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... |
gas_company | SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100 | What are the locations that have gas stations owned by a company with a market value greater than 100? | [
"SELECT",
"T3.location",
"FROM",
"station_company",
"AS",
"T1",
"JOIN",
"company",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.company_id",
"JOIN",
"gas_station",
"AS",
"T3",
"ON",
"T1.station_id",
"=",
"T3.station_id",
"WHERE",
"T2.market_value",
">",
"100"
] | [
"select",
"t3",
".",
"location",
"from",
"station_company",
"as",
"t1",
"join",
"company",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"company_id",
"join",
"gas_station",
"as",
"t3",
"on",
"t1",
".",
"station_id",
"=",
"t3",
".",
"station... | [
"What",
"are",
"the",
"locations",
"that",
"have",
"gas",
"stations",
"owned",
"by",
"a",
"company",
"with",
"a",
"market",
"value",
"greater",
"than",
"100",
"?"
] | [
"What",
"are",
"<mask>",
"<mask>",
"that",
"have",
"<mask>",
"<mask>",
"owned",
"by",
"a",
"<mask>",
"with",
"a",
"<mask>",
"<mask>",
"greater",
"than",
"<unk>",
"?"
] | [
"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... |
gas_company | SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1 | Show the manager name with most number of gas stations opened after 2000. | [
"SELECT",
"manager_name",
"FROM",
"gas_station",
"WHERE",
"open_year",
">",
"2000",
"GROUP",
"BY",
"manager_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"manager_name",
"from",
"gas_station",
"where",
"open_year",
">",
"value",
"group",
"by",
"manager_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Show",
"the",
"manager",
"name",
"with",
"most",
"number",
"of",
"gas",
"stations",
"opened",
"after",
"2000",
"."
] | [
"Show",
"<mask>",
"<mask>",
"<mask>",
"with",
"most",
"number",
"of",
"<mask>",
"<mask>",
"<mask>",
"after",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
gas_company | SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1 | What is the name of the manager with the most gas stations that opened after 2000? | [
"SELECT",
"manager_name",
"FROM",
"gas_station",
"WHERE",
"open_year",
">",
"2000",
"GROUP",
"BY",
"manager_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"manager_name",
"from",
"gas_station",
"where",
"open_year",
">",
"value",
"group",
"by",
"manager_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"manager",
"with",
"the",
"most",
"gas",
"stations",
"that",
"opened",
"after",
"2000",
"?"
] | [
"What",
"is",
"<mask>",
"<mask>",
"of",
"<mask>",
"<mask>",
"with",
"<mask>",
"most",
"<mask>",
"<mask>",
"that",
"<mask>",
"after",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
gas_company | SELECT LOCATION FROM gas_station ORDER BY open_year | order all gas station locations by the opening year. | [
"SELECT",
"LOCATION",
"FROM",
"gas_station",
"ORDER",
"BY",
"open_year"
] | [
"select",
"location",
"from",
"gas_station",
"order",
"by",
"open_year"
] | [
"order",
"all",
"gas",
"station",
"locations",
"by",
"the",
"opening",
"year",
"."
] | [
"order",
"all",
"<mask>",
"<mask>",
"<mask>",
"by",
"<mask>",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
gas_company | SELECT LOCATION FROM gas_station ORDER BY open_year | What are the locations of all the gas stations ordered by opening year? | [
"SELECT",
"LOCATION",
"FROM",
"gas_station",
"ORDER",
"BY",
"open_year"
] | [
"select",
"location",
"from",
"gas_station",
"order",
"by",
"open_year"
] | [
"What",
"are",
"the",
"locations",
"of",
"all",
"the",
"gas",
"stations",
"ordered",
"by",
"opening",
"year",
"?"
] | [
"What",
"are",
"<mask>",
"<mask>",
"of",
"all",
"<mask>",
"<mask>",
"<mask>",
"ordered",
"by",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
gas_company | SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion | find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion. | [
"SELECT",
"rank",
",",
"company",
",",
"market_value",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Banking",
"'",
"ORDER",
"BY",
"sales_billion",
",",
"profits_billion"
] | [
"select",
"rank",
",",
"company",
",",
"market_value",
"from",
"company",
"where",
"main_industry",
"=",
"value",
"order",
"by",
"sales_billion",
",",
"profits_billion"
] | [
"find",
"the",
"rank",
",",
"company",
"names",
",",
"market",
"values",
"of",
"the",
"companies",
"in",
"the",
"banking",
"industry",
"order",
"by",
"their",
"sales",
"and",
"profits",
"in",
"billion",
"."
] | [
"find",
"<mask>",
"<mask>",
",",
"<mask>",
"<mask>",
",",
"<mask>",
"<mask>",
"of",
"<mask>",
"<mask>",
"in",
"<mask>",
"banking",
"<mask>",
"order",
"by",
"their",
"sales",
"and",
"profits",
"in",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"order",
"by",
"<mask>",
",",
"<mask>"
] |
gas_company | SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion | What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits? | [
"SELECT",
"rank",
",",
"company",
",",
"market_value",
"FROM",
"company",
"WHERE",
"main_industry",
"=",
"'Banking",
"'",
"ORDER",
"BY",
"sales_billion",
",",
"profits_billion"
] | [
"select",
"rank",
",",
"company",
",",
"market_value",
"from",
"company",
"where",
"main_industry",
"=",
"value",
"order",
"by",
"sales_billion",
",",
"profits_billion"
] | [
"What",
"is",
"the",
"rank",
",",
"company",
",",
"and",
"market",
"value",
"of",
"every",
"comapny",
"in",
"the",
"banking",
"industry",
"ordered",
"by",
"sales",
"and",
"profits",
"?"
] | [
"What",
"is",
"<mask>",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"<mask>",
"of",
"every",
"comapny",
"in",
"<mask>",
"banking",
"<mask>",
"ordered",
"by",
"sales",
"and",
"profits",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"order",
"by",
"<mask>",
",",
"<mask>"
] |
gas_company | SELECT T3.location , T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3 | find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts. | [
"SELECT",
"T3.location",
",",
"T3.Representative_Name",
"FROM",
"station_company",
"AS",
"T1",
"JOIN",
"company",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.company_id",
"JOIN",
"gas_station",
"AS",
"T3",
"ON",
"T1.station_id",
"=",
"T3.station_id",
"ORDER",
"BY",
... | [
"select",
"t3",
".",
"location",
",",
"t3",
".",
"representative_name",
"from",
"station_company",
"as",
"t1",
"join",
"company",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"company_id",
"join",
"gas_station",
"as",
"t3",
"on",
"t1",
".",
... | [
"find",
"the",
"location",
"and",
"Representative",
"name",
"of",
"the",
"gas",
"stations",
"owned",
"by",
"the",
"companies",
"with",
"top",
"3",
"Asset",
"amounts",
"."
] | [
"find",
"<mask>",
"<mask>",
"and",
"Representative",
"<mask>",
"of",
"<mask>",
"<mask>",
"<mask>",
"owned",
"by",
"<mask>",
"<mask>",
"with",
"top",
"<unk>",
"Asset",
"amounts",
"."
] | [
"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... |
gas_company | SELECT T3.location , T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3 | What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets? | [
"SELECT",
"T3.location",
",",
"T3.Representative_Name",
"FROM",
"station_company",
"AS",
"T1",
"JOIN",
"company",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.company_id",
"JOIN",
"gas_station",
"AS",
"T3",
"ON",
"T1.station_id",
"=",
"T3.station_id",
"ORDER",
"BY",
... | [
"select",
"t3",
".",
"location",
",",
"t3",
".",
"representative_name",
"from",
"station_company",
"as",
"t1",
"join",
"company",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"company_id",
"join",
"gas_station",
"as",
"t3",
"on",
"t1",
".",
... | [
"What",
"are",
"the",
"locations",
"and",
"representatives",
"'",
"names",
"of",
"the",
"gas",
"stations",
"owned",
"by",
"the",
"companies",
"with",
"the",
"3",
"largest",
"amounts",
"of",
"assets",
"?"
] | [
"What",
"are",
"<mask>",
"<mask>",
"and",
"<mask>",
"'",
"<mask>",
"of",
"<mask>",
"<mask>",
"<mask>",
"owned",
"by",
"<mask>",
"<mask>",
"with",
"<mask>",
"<unk>",
"largest",
"amounts",
"of",
"assets",
"?"
] | [
"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... |
party_people | SELECT count(*) FROM region | How many regions do we have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"region"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"region"
] | [
"How",
"many",
"regions",
"do",
"we",
"have",
"?"
] | [
"How",
"many",
"<mask>",
"do",
"we",
"have",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
party_people | SELECT count(*) FROM region | Count the number of regions. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"region"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"region"
] | [
"Count",
"the",
"number",
"of",
"regions",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
party_people | SELECT DISTINCT region_name FROM region ORDER BY Label | Show all distinct region names ordered by their labels. | [
"SELECT",
"DISTINCT",
"region_name",
"FROM",
"region",
"ORDER",
"BY",
"Label"
] | [
"select",
"distinct",
"region_name",
"from",
"region",
"order",
"by",
"label"
] | [
"Show",
"all",
"distinct",
"region",
"names",
"ordered",
"by",
"their",
"labels",
"."
] | [
"Show",
"all",
"distinct",
"<mask>",
"<mask>",
"ordered",
"by",
"their",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
party_people | SELECT DISTINCT region_name FROM region ORDER BY Label | What are the different region names, ordered by labels? | [
"SELECT",
"DISTINCT",
"region_name",
"FROM",
"region",
"ORDER",
"BY",
"Label"
] | [
"select",
"distinct",
"region_name",
"from",
"region",
"order",
"by",
"label"
] | [
"What",
"are",
"the",
"different",
"region",
"names",
",",
"ordered",
"by",
"labels",
"?"
] | [
"What",
"are",
"the",
"different",
"<mask>",
"<mask>",
",",
"ordered",
"by",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
party_people | SELECT count(DISTINCT party_name) FROM party | How many parties do we have? | [
"SELECT",
"count",
"(",
"DISTINCT",
"party_name",
")",
"FROM",
"party"
] | [
"select",
"count",
"(",
"distinct",
"party_name",
")",
"from",
"party"
] | [
"How",
"many",
"parties",
"do",
"we",
"have",
"?"
] | [
"How",
"many",
"<mask>",
"do",
"we",
"have",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
party_people | SELECT count(DISTINCT party_name) FROM party | Count the number of different parties. | [
"SELECT",
"count",
"(",
"DISTINCT",
"party_name",
")",
"FROM",
"party"
] | [
"select",
"count",
"(",
"distinct",
"party_name",
")",
"from",
"party"
] | [
"Count",
"the",
"number",
"of",
"different",
"parties",
"."
] | [
"Count",
"the",
"number",
"of",
"different",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
party_people | SELECT minister , took_office , left_office FROM party ORDER BY left_office | Show the ministers and the time they took and left office, listed by the time they left office. | [
"SELECT",
"minister",
",",
"took_office",
",",
"left_office",
"FROM",
"party",
"ORDER",
"BY",
"left_office"
] | [
"select",
"minister",
",",
"took_office",
",",
"left_office",
"from",
"party",
"order",
"by",
"left_office"
] | [
"Show",
"the",
"ministers",
"and",
"the",
"time",
"they",
"took",
"and",
"left",
"office",
",",
"listed",
"by",
"the",
"time",
"they",
"left",
"office",
"."
] | [
"Show",
"the",
"<mask>",
"and",
"the",
"time",
"they",
"took",
"and",
"left",
"<mask>",
",",
"listed",
"by",
"the",
"time",
"they",
"left",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
party_people | SELECT minister , took_office , left_office FROM party ORDER BY left_office | Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office? | [
"SELECT",
"minister",
",",
"took_office",
",",
"left_office",
"FROM",
"party",
"ORDER",
"BY",
"left_office"
] | [
"select",
"minister",
",",
"took_office",
",",
"left_office",
"from",
"party",
"order",
"by",
"left_office"
] | [
"Who",
"are",
"the",
"ministers",
",",
"when",
"did",
"they",
"take",
"office",
",",
"and",
"when",
"did",
"they",
"leave",
"office",
",",
"ordered",
"by",
"when",
"they",
"left",
"office",
"?"
] | [
"Who",
"are",
"the",
"<mask>",
",",
"when",
"did",
"they",
"take",
"<mask>",
",",
"and",
"when",
"did",
"they",
"leave",
"<mask>",
",",
"ordered",
"by",
"when",
"they",
"left",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
party_people | SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959 | Show the minister who took office after 1961 or before 1959. | [
"SELECT",
"minister",
"FROM",
"party",
"WHERE",
"took_office",
">",
"1961",
"OR",
"took_office",
"<",
"1959"
] | [
"select",
"minister",
"from",
"party",
"where",
"took_office",
">",
"value",
"or",
"took_office",
"<",
"value"
] | [
"Show",
"the",
"minister",
"who",
"took",
"office",
"after",
"1961",
"or",
"before",
"1959",
"."
] | [
"Show",
"the",
"<mask>",
"who",
"took",
"<mask>",
"after",
"<unk>",
"or",
"before",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"or",
"<mask>",
"<",
"<unk>"
] |
party_people | SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959 | Who are the ministers who took office after 1961 or before 1959? | [
"SELECT",
"minister",
"FROM",
"party",
"WHERE",
"took_office",
">",
"1961",
"OR",
"took_office",
"<",
"1959"
] | [
"select",
"minister",
"from",
"party",
"where",
"took_office",
">",
"value",
"or",
"took_office",
"<",
"value"
] | [
"Who",
"are",
"the",
"ministers",
"who",
"took",
"office",
"after",
"1961",
"or",
"before",
"1959",
"?"
] | [
"Who",
"are",
"the",
"<mask>",
"who",
"took",
"<mask>",
"after",
"<unk>",
"or",
"before",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"or",
"<mask>",
"<",
"<unk>"
] |
party_people | SELECT minister FROM party WHERE party_name != 'Progress Party' | Show all ministers who do not belong to Progress Party. | [
"SELECT",
"minister",
"FROM",
"party",
"WHERE",
"party_name",
"!",
"=",
"'Progress",
"Party",
"'"
] | [
"select",
"minister",
"from",
"party",
"where",
"party_name",
"!",
"=",
"value"
] | [
"Show",
"all",
"ministers",
"who",
"do",
"not",
"belong",
"to",
"Progress",
"Party",
"."
] | [
"Show",
"all",
"<mask>",
"who",
"do",
"not",
"belong",
"to",
"Progress",
"Party",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
party_people | SELECT minister FROM party WHERE party_name != 'Progress Party' | Which ministers are not a part of the Progress Party? | [
"SELECT",
"minister",
"FROM",
"party",
"WHERE",
"party_name",
"!",
"=",
"'Progress",
"Party",
"'"
] | [
"select",
"minister",
"from",
"party",
"where",
"party_name",
"!",
"=",
"value"
] | [
"Which",
"ministers",
"are",
"not",
"a",
"part",
"of",
"the",
"Progress",
"Party",
"?"
] | [
"Which",
"<mask>",
"are",
"not",
"a",
"part",
"of",
"the",
"Progress",
"Party",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
party_people | SELECT minister , party_name FROM party ORDER BY took_office DESC | Show all ministers and parties they belong to in descending order of the time they took office. | [
"SELECT",
"minister",
",",
"party_name",
"FROM",
"party",
"ORDER",
"BY",
"took_office",
"DESC"
] | [
"select",
"minister",
",",
"party_name",
"from",
"party",
"order",
"by",
"took_office",
"desc"
] | [
"Show",
"all",
"ministers",
"and",
"parties",
"they",
"belong",
"to",
"in",
"descending",
"order",
"of",
"the",
"time",
"they",
"took",
"office",
"."
] | [
"Show",
"all",
"<mask>",
"and",
"<mask>",
"they",
"belong",
"to",
"in",
"descending",
"order",
"of",
"the",
"time",
"they",
"took",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
party_people | SELECT minister , party_name FROM party ORDER BY took_office DESC | Who are the ministers and what parties do they belong to, listed descending by the times they took office? | [
"SELECT",
"minister",
",",
"party_name",
"FROM",
"party",
"ORDER",
"BY",
"took_office",
"DESC"
] | [
"select",
"minister",
",",
"party_name",
"from",
"party",
"order",
"by",
"took_office",
"desc"
] | [
"Who",
"are",
"the",
"ministers",
"and",
"what",
"parties",
"do",
"they",
"belong",
"to",
",",
"listed",
"descending",
"by",
"the",
"times",
"they",
"took",
"office",
"?"
] | [
"Who",
"are",
"the",
"<mask>",
"and",
"what",
"<mask>",
"do",
"they",
"belong",
"to",
",",
"listed",
"descending",
"by",
"the",
"times",
"they",
"took",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
party_people | SELECT minister FROM party ORDER BY left_office DESC LIMIT 1 | Return the minister who left office at the latest time. | [
"SELECT",
"minister",
"FROM",
"party",
"ORDER",
"BY",
"left_office",
"DESC",
"LIMIT",
"1"
] | [
"select",
"minister",
"from",
"party",
"order",
"by",
"left_office",
"desc",
"limit",
"value"
] | [
"Return",
"the",
"minister",
"who",
"left",
"office",
"at",
"the",
"latest",
"time",
"."
] | [
"Return",
"the",
"<mask>",
"who",
"left",
"<mask>",
"at",
"the",
"latest",
"time",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
party_people | SELECT minister FROM party ORDER BY left_office DESC LIMIT 1 | Which minister left office the latest? | [
"SELECT",
"minister",
"FROM",
"party",
"ORDER",
"BY",
"left_office",
"DESC",
"LIMIT",
"1"
] | [
"select",
"minister",
"from",
"party",
"order",
"by",
"left_office",
"desc",
"limit",
"value"
] | [
"Which",
"minister",
"left",
"office",
"the",
"latest",
"?"
] | [
"Which",
"<mask>",
"left",
"<mask>",
"the",
"latest",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
party_people | SELECT T1.member_name , T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id | List member names and their party names. | [
"SELECT",
"T1.member_name",
",",
"T2.party_name",
"FROM",
"Member",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id"
] | [
"select",
"t1",
".",
"member_name",
",",
"t2",
".",
"party_name",
"from",
"member",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id"
] | [
"List",
"member",
"names",
"and",
"their",
"party",
"names",
"."
] | [
"List",
"<mask>",
"<mask>",
"and",
"their",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT T1.member_name , T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id | What are the names of members and their corresponding parties? | [
"SELECT",
"T1.member_name",
",",
"T2.party_name",
"FROM",
"Member",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id"
] | [
"select",
"t1",
".",
"member_name",
",",
"t2",
".",
"party_name",
"from",
"member",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id"
] | [
"What",
"are",
"the",
"names",
"of",
"members",
"and",
"their",
"corresponding",
"parties",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"and",
"their",
"corresponding",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT T2.party_name , count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id | Show all party names and the number of members in each party. | [
"SELECT",
"T2.party_name",
",",
"count",
"(",
"*",
")",
"FROM",
"Member",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"GROUP",
"BY",
"T1.party_id"
] | [
"select",
"t2",
".",
"party_name",
",",
"count",
"(",
"*",
")",
"from",
"member",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party_id"
] | [
"Show",
"all",
"party",
"names",
"and",
"the",
"number",
"of",
"members",
"in",
"each",
"party",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"in",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT T2.party_name , count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id | How many members are in each party? | [
"SELECT",
"T2.party_name",
",",
"count",
"(",
"*",
")",
"FROM",
"Member",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"GROUP",
"BY",
"T1.party_id"
] | [
"select",
"t2",
".",
"party_name",
",",
"count",
"(",
"*",
")",
"from",
"member",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party_id"
] | [
"How",
"many",
"members",
"are",
"in",
"each",
"party",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"in",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1 | What is the name of party with most number of members? | [
"SELECT",
"T2.party_name",
"FROM",
"Member",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"GROUP",
"BY",
"T1.party_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"party_name",
"from",
"member",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"valu... | [
"What",
"is",
"the",
"name",
"of",
"party",
"with",
"most",
"number",
"of",
"members",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"<mask>",
"with",
"most",
"number",
"of",
"<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",
"... |
party_people | SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1 | Return the name of the party with the most members. | [
"SELECT",
"T2.party_name",
"FROM",
"Member",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"GROUP",
"BY",
"T1.party_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"party_name",
"from",
"member",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"valu... | [
"Return",
"the",
"name",
"of",
"the",
"party",
"with",
"the",
"most",
"members",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"the",
"<mask>",
"with",
"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",
"... |
party_people | SELECT T1.party_name , T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id | Show all party names and their region names. | [
"SELECT",
"T1.party_name",
",",
"T2.region_name",
"FROM",
"party",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id"
] | [
"select",
"t1",
".",
"party_name",
",",
"t2",
".",
"region_name",
"from",
"party",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id"
] | [
"Show",
"all",
"party",
"names",
"and",
"their",
"region",
"names",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"and",
"their",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT T1.party_name , T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id | What are the names of parties and their respective regions? | [
"SELECT",
"T1.party_name",
",",
"T2.region_name",
"FROM",
"party",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id"
] | [
"select",
"t1",
".",
"party_name",
",",
"t2",
".",
"region_name",
"from",
"party",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id"
] | [
"What",
"are",
"the",
"names",
"of",
"parties",
"and",
"their",
"respective",
"regions",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"and",
"their",
"respective",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member) | Show names of parties that does not have any members. | [
"SELECT",
"party_name",
"FROM",
"party",
"WHERE",
"party_id",
"NOT",
"IN",
"(",
"SELECT",
"party_id",
"FROM",
"Member",
")"
] | [
"select",
"party_name",
"from",
"party",
"where",
"party_id",
"not",
"in",
"(",
"select",
"party_id",
"from",
"member",
")"
] | [
"Show",
"names",
"of",
"parties",
"that",
"does",
"not",
"have",
"any",
"members",
"."
] | [
"Show",
"<mask>",
"of",
"<mask>",
"that",
"does",
"not",
"have",
"any",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
party_people | SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member) | What are the names of parties that have no members? | [
"SELECT",
"party_name",
"FROM",
"party",
"WHERE",
"party_id",
"NOT",
"IN",
"(",
"SELECT",
"party_id",
"FROM",
"Member",
")"
] | [
"select",
"party_name",
"from",
"party",
"where",
"party_id",
"not",
"in",
"(",
"select",
"party_id",
"from",
"member",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"parties",
"that",
"have",
"no",
"members",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"no",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
party_people | SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1 | Show the member names which are in both the party with id 3 and the party with id 1. | [
"SELECT",
"member_name",
"FROM",
"member",
"WHERE",
"party_id",
"=",
"3",
"INTERSECT",
"SELECT",
"member_name",
"FROM",
"member",
"WHERE",
"party_id",
"=",
"1"
] | [
"select",
"member_name",
"from",
"member",
"where",
"party_id",
"=",
"value",
"intersect",
"select",
"member_name",
"from",
"member",
"where",
"party_id",
"=",
"value"
] | [
"Show",
"the",
"member",
"names",
"which",
"are",
"in",
"both",
"the",
"party",
"with",
"id",
"3",
"and",
"the",
"party",
"with",
"id",
"1",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"which",
"are",
"in",
"both",
"the",
"<mask>",
"with",
"id",
"<unk>",
"and",
"the",
"<mask>",
"with",
"id",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
party_people | SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1 | Which member names are shared among members in the party with the id 3 and the party with the id 1? | [
"SELECT",
"member_name",
"FROM",
"member",
"WHERE",
"party_id",
"=",
"3",
"INTERSECT",
"SELECT",
"member_name",
"FROM",
"member",
"WHERE",
"party_id",
"=",
"1"
] | [
"select",
"member_name",
"from",
"member",
"where",
"party_id",
"=",
"value",
"intersect",
"select",
"member_name",
"from",
"member",
"where",
"party_id",
"=",
"value"
] | [
"Which",
"member",
"names",
"are",
"shared",
"among",
"members",
"in",
"the",
"party",
"with",
"the",
"id",
"3",
"and",
"the",
"party",
"with",
"the",
"id",
"1",
"?"
] | [
"Which",
"<mask>",
"<mask>",
"are",
"shared",
"among",
"<mask>",
"in",
"the",
"<mask>",
"with",
"the",
"id",
"<unk>",
"and",
"the",
"<mask>",
"with",
"the",
"id",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
party_people | SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name != "Progress Party" | Show member names that are not in the Progress Party. | [
"SELECT",
"T1.member_name",
"FROM",
"Member",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"WHERE",
"T2.Party_name",
"!",
"=",
"``",
"Progress",
"Party",
"''"
] | [
"select",
"t1",
".",
"member_name",
"from",
"member",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"where",
"t2",
".",
"party_name",
"!",
"=",
"value"
] | [
"Show",
"member",
"names",
"that",
"are",
"not",
"in",
"the",
"Progress",
"Party",
"."
] | [
"Show",
"<mask>",
"<mask>",
"that",
"are",
"not",
"in",
"the",
"Progress",
"Party",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"!",
"=",
"<unk>"
] |
party_people | SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name != "Progress Party" | Which member names corresponding to members who are not in the Progress Party? | [
"SELECT",
"T1.member_name",
"FROM",
"Member",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"WHERE",
"T2.Party_name",
"!",
"=",
"``",
"Progress",
"Party",
"''"
] | [
"select",
"t1",
".",
"member_name",
"from",
"member",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"where",
"t2",
".",
"party_name",
"!",
"=",
"value"
] | [
"Which",
"member",
"names",
"corresponding",
"to",
"members",
"who",
"are",
"not",
"in",
"the",
"Progress",
"Party",
"?"
] | [
"Which",
"<mask>",
"<mask>",
"corresponding",
"to",
"<mask>",
"who",
"are",
"not",
"in",
"the",
"Progress",
"Party",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"!",
"=",
"<unk>"
] |
party_people | SELECT count(*) FROM party_events | How many party events do we have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"party_events"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"party_events"
] | [
"How",
"many",
"party",
"events",
"do",
"we",
"have",
"?"
] | [
"How",
"many",
"<mask>",
"<mask>",
"do",
"we",
"have",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
party_people | SELECT count(*) FROM party_events | Count the number of party events. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"party_events"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"party_events"
] | [
"Count",
"the",
"number",
"of",
"party",
"events",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
party_people | SELECT T2.party_name , count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id | Show party names and the number of events for each party. | [
"SELECT",
"T2.party_name",
",",
"count",
"(",
"*",
")",
"FROM",
"party_events",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"GROUP",
"BY",
"T1.party_id"
] | [
"select",
"t2",
".",
"party_name",
",",
"count",
"(",
"*",
")",
"from",
"party_events",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party_id"
] | [
"Show",
"party",
"names",
"and",
"the",
"number",
"of",
"events",
"for",
"each",
"party",
"."
] | [
"Show",
"<mask>",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"for",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT T2.party_name , count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id | How many events are there for each party? | [
"SELECT",
"T2.party_name",
",",
"count",
"(",
"*",
")",
"FROM",
"party_events",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"GROUP",
"BY",
"T1.party_id"
] | [
"select",
"t2",
".",
"party_name",
",",
"count",
"(",
"*",
")",
"from",
"party_events",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party_id"
] | [
"How",
"many",
"events",
"are",
"there",
"for",
"each",
"party",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"for",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id | Show all member names who are not in charge of any event. | [
"SELECT",
"member_name",
"FROM",
"member",
"EXCEPT",
"SELECT",
"T1.member_name",
"FROM",
"member",
"AS",
"T1",
"JOIN",
"party_events",
"AS",
"T2",
"ON",
"T1.member_id",
"=",
"T2.member_in_charge_id"
] | [
"select",
"member_name",
"from",
"member",
"except",
"select",
"t1",
".",
"member_name",
"from",
"member",
"as",
"t1",
"join",
"party_events",
"as",
"t2",
"on",
"t1",
".",
"member_id",
"=",
"t2",
".",
"member_in_charge_id"
] | [
"Show",
"all",
"member",
"names",
"who",
"are",
"not",
"in",
"charge",
"of",
"any",
"event",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"who",
"are",
"not",
"in",
"<mask>",
"of",
"any",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id | What are the names of members who are not in charge of any events? | [
"SELECT",
"member_name",
"FROM",
"member",
"EXCEPT",
"SELECT",
"T1.member_name",
"FROM",
"member",
"AS",
"T1",
"JOIN",
"party_events",
"AS",
"T2",
"ON",
"T1.member_id",
"=",
"T2.member_in_charge_id"
] | [
"select",
"member_name",
"from",
"member",
"except",
"select",
"t1",
".",
"member_name",
"from",
"member",
"as",
"t1",
"join",
"party_events",
"as",
"t2",
"on",
"t1",
".",
"member_id",
"=",
"t2",
".",
"member_in_charge_id"
] | [
"What",
"are",
"the",
"names",
"of",
"members",
"who",
"are",
"not",
"in",
"charge",
"of",
"any",
"events",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"are",
"not",
"in",
"<mask>",
"of",
"any",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
party_people | SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count(*) >= 2 | What are the names of parties with at least 2 events? | [
"SELECT",
"T2.party_name",
"FROM",
"party_events",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"GROUP",
"BY",
"T1.party_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"t2",
".",
"party_name",
"from",
"party_events",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"parties",
"with",
"at",
"least",
"2",
"events",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"with",
"at",
"least",
"<unk>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
party_people | SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count(*) >= 2 | Return the names of parties that have two or more events. | [
"SELECT",
"T2.party_name",
"FROM",
"party_events",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.party_id",
"=",
"T2.party_id",
"GROUP",
"BY",
"T1.party_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"t2",
".",
"party_name",
"from",
"party_events",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party_id",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"Return",
"the",
"names",
"of",
"parties",
"that",
"have",
"two",
"or",
"more",
"events",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"two",
"or",
"more",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
party_people | SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1 | What is the name of member in charge of greatest number of events? | [
"SELECT",
"T1.member_name",
"FROM",
"member",
"AS",
"T1",
"JOIN",
"party_events",
"AS",
"T2",
"ON",
"T1.member_id",
"=",
"T2.member_in_charge_id",
"GROUP",
"BY",
"T2.member_in_charge_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"member_name",
"from",
"member",
"as",
"t1",
"join",
"party_events",
"as",
"t2",
"on",
"t1",
".",
"member_id",
"=",
"t2",
".",
"member_in_charge_id",
"group",
"by",
"t2",
".",
"member_in_charge_id",
"order",
"by",
"count",
"(",
"*",
")... | [
"What",
"is",
"the",
"name",
"of",
"member",
"in",
"charge",
"of",
"greatest",
"number",
"of",
"events",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"<mask>",
"in",
"<mask>",
"of",
"greatest",
"number",
"of",
"<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",
"... |
party_people | SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1 | Return the name of the member who is in charge of the most events. | [
"SELECT",
"T1.member_name",
"FROM",
"member",
"AS",
"T1",
"JOIN",
"party_events",
"AS",
"T2",
"ON",
"T1.member_id",
"=",
"T2.member_in_charge_id",
"GROUP",
"BY",
"T2.member_in_charge_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"member_name",
"from",
"member",
"as",
"t1",
"join",
"party_events",
"as",
"t2",
"on",
"t1",
".",
"member_id",
"=",
"t2",
".",
"member_in_charge_id",
"group",
"by",
"t2",
".",
"member_in_charge_id",
"order",
"by",
"count",
"(",
"*",
")... | [
"Return",
"the",
"name",
"of",
"the",
"member",
"who",
"is",
"in",
"charge",
"of",
"the",
"most",
"events",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"is",
"in",
"<mask>",
"of",
"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",
"... |
party_people | SELECT event_name FROM party_events GROUP BY event_name HAVING count(*) > 2 | find the event names that have more than 2 records. | [
"SELECT",
"event_name",
"FROM",
"party_events",
"GROUP",
"BY",
"event_name",
"HAVING",
"count",
"(",
"*",
")",
">",
"2"
] | [
"select",
"event_name",
"from",
"party_events",
"group",
"by",
"event_name",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"find",
"the",
"event",
"names",
"that",
"have",
"more",
"than",
"2",
"records",
"."
] | [
"find",
"the",
"<mask>",
"<mask>",
"that",
"have",
"more",
"than",
"<unk>",
"records",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
party_people | SELECT event_name FROM party_events GROUP BY event_name HAVING count(*) > 2 | Which event names were used more than twice for party events? | [
"SELECT",
"event_name",
"FROM",
"party_events",
"GROUP",
"BY",
"event_name",
"HAVING",
"count",
"(",
"*",
")",
">",
"2"
] | [
"select",
"event_name",
"from",
"party_events",
"group",
"by",
"event_name",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Which",
"event",
"names",
"were",
"used",
"more",
"than",
"twice",
"for",
"party",
"events",
"?"
] | [
"Which",
"<mask>",
"<mask>",
"were",
"used",
"more",
"than",
"twice",
"for",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
party_people | SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = "United Kingdom" AND t3.Event_Name = "Annaual Meeting" | How many Annual Meeting events happened in the United Kingdom region? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"region",
"AS",
"t1",
"JOIN",
"party",
"AS",
"t2",
"ON",
"t1.region_id",
"=",
"t2.region_id",
"JOIN",
"party_events",
"AS",
"t3",
"ON",
"t2.party_id",
"=",
"t3.party_id",
"WHERE",
"t1.region_name",
"=",
"``",
"United... | [
"select",
"count",
"(",
"*",
")",
"from",
"region",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"party_events",
"as",
"t3",
"on",
"t2",
".",
"party_id",
"=",
"t3",
".",
"party_id",
"wher... | [
"How",
"many",
"Annual",
"Meeting",
"events",
"happened",
"in",
"the",
"United",
"Kingdom",
"region",
"?"
] | [
"How",
"many",
"Annual",
"Meeting",
"<mask>",
"happened",
"in",
"the",
"United",
"Kingdom",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<ma... |
party_people | SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = "United Kingdom" AND t3.Event_Name = "Annaual Meeting" | Count the number of Annual Meeting events that took place in the region of the United Kingdom. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"region",
"AS",
"t1",
"JOIN",
"party",
"AS",
"t2",
"ON",
"t1.region_id",
"=",
"t2.region_id",
"JOIN",
"party_events",
"AS",
"t3",
"ON",
"t2.party_id",
"=",
"t3.party_id",
"WHERE",
"t1.region_name",
"=",
"``",
"United... | [
"select",
"count",
"(",
"*",
")",
"from",
"region",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"party_events",
"as",
"t3",
"on",
"t2",
".",
"party_id",
"=",
"t3",
".",
"party_id",
"wher... | [
"Count",
"the",
"number",
"of",
"Annual",
"Meeting",
"events",
"that",
"took",
"place",
"in",
"the",
"region",
"of",
"the",
"United",
"Kingdom",
"."
] | [
"Count",
"the",
"number",
"of",
"Annual",
"Meeting",
"<mask>",
"that",
"took",
"place",
"in",
"the",
"<mask>",
"of",
"the",
"United",
"Kingdom",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<ma... |
pilot_record | SELECT count(*) FROM pilot | How many pilots are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"pilot"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"pilot"
] | [
"How",
"many",
"pilots",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
pilot_record | SELECT Pilot_name FROM pilot ORDER BY Rank ASC | List the names of pilots in ascending order of rank. | [
"SELECT",
"Pilot_name",
"FROM",
"pilot",
"ORDER",
"BY",
"Rank",
"ASC"
] | [
"select",
"pilot_name",
"from",
"pilot",
"order",
"by",
"rank",
"asc"
] | [
"List",
"the",
"names",
"of",
"pilots",
"in",
"ascending",
"order",
"of",
"rank",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"in",
"ascending",
"<mask>",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
pilot_record | SELECT POSITION , Team FROM pilot | What are the positions and teams of pilots? | [
"SELECT",
"POSITION",
",",
"Team",
"FROM",
"pilot"
] | [
"select",
"position",
",",
"team",
"from",
"pilot"
] | [
"What",
"are",
"the",
"positions",
"and",
"teams",
"of",
"pilots",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
pilot_record | SELECT DISTINCT POSITION FROM pilot WHERE Age > 30 | List the distinct positions of pilots older than 30. | [
"SELECT",
"DISTINCT",
"POSITION",
"FROM",
"pilot",
"WHERE",
"Age",
">",
"30"
] | [
"select",
"distinct",
"position",
"from",
"pilot",
"where",
"age",
">",
"value"
] | [
"List",
"the",
"distinct",
"positions",
"of",
"pilots",
"older",
"than",
"30",
"."
] | [
"List",
"the",
"distinct",
"<mask>",
"of",
"<mask>",
"older",
"than",
"<unk>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
pilot_record | SELECT Pilot_name FROM pilot WHERE Team = "Bradley" OR Team = "Fordham" | Show the names of pilots from team "Bradley" or "Fordham". | [
"SELECT",
"Pilot_name",
"FROM",
"pilot",
"WHERE",
"Team",
"=",
"``",
"Bradley",
"''",
"OR",
"Team",
"=",
"``",
"Fordham",
"''"
] | [
"select",
"pilot_name",
"from",
"pilot",
"where",
"team",
"=",
"value",
"or",
"team",
"=",
"value"
] | [
"Show",
"the",
"names",
"of",
"pilots",
"from",
"team",
"``",
"Bradley",
"''",
"or",
"``",
"Fordham",
"''",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"from",
"<mask>",
"``",
"Bradley",
"''",
"or",
"``",
"Fordham",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
pilot_record | SELECT Join_Year FROM pilot ORDER BY Rank ASC LIMIT 1 | What is the joined year of the pilot of the highest rank? | [
"SELECT",
"Join_Year",
"FROM",
"pilot",
"ORDER",
"BY",
"Rank",
"ASC",
"LIMIT",
"1"
] | [
"select",
"join_year",
"from",
"pilot",
"order",
"by",
"rank",
"asc",
"limit",
"value"
] | [
"What",
"is",
"the",
"joined",
"year",
"of",
"the",
"pilot",
"of",
"the",
"highest",
"rank",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"of",
"the",
"highest",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc",
"limit",
"<unk>"
] |
pilot_record | SELECT Nationality , COUNT(*) FROM pilot GROUP BY Nationality | What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality. | [
"SELECT",
"Nationality",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"pilot",
"GROUP",
"BY",
"Nationality"
] | [
"select",
"nationality",
",",
"count",
"(",
"*",
")",
"from",
"pilot",
"group",
"by",
"nationality"
] | [
"What",
"are",
"the",
"different",
"nationalities",
"of",
"pilots",
"?",
"Show",
"each",
"nationality",
"and",
"the",
"number",
"of",
"pilots",
"of",
"each",
"nationality",
"."
] | [
"What",
"are",
"the",
"different",
"<mask>",
"of",
"<mask>",
"?",
"Show",
"each",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"of",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
pilot_record | SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 | Show the most common nationality of pilots. | [
"SELECT",
"Nationality",
"FROM",
"pilot",
"GROUP",
"BY",
"Nationality",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"nationality",
"from",
"pilot",
"group",
"by",
"nationality",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Show",
"the",
"most",
"common",
"nationality",
"of",
"pilots",
"."
] | [
"Show",
"the",
"most",
"common",
"<mask>",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
pilot_record | SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005 | Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000. | [
"SELECT",
"POSITION",
"FROM",
"pilot",
"WHERE",
"Join_Year",
"<",
"2000",
"INTERSECT",
"SELECT",
"POSITION",
"FROM",
"pilot",
"WHERE",
"Join_Year",
">",
"2005"
] | [
"select",
"position",
"from",
"pilot",
"where",
"join_year",
"<",
"value",
"intersect",
"select",
"position",
"from",
"pilot",
"where",
"join_year",
">",
"value"
] | [
"Show",
"the",
"pilot",
"positions",
"that",
"have",
"both",
"pilots",
"joining",
"after",
"year",
"2005",
"and",
"pilots",
"joining",
"before",
"2000",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"that",
"have",
"both",
"<mask>",
"<mask>",
"after",
"<mask>",
"<unk>",
"and",
"<mask>",
"<mask>",
"before",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
pilot_record | SELECT T3.Pilot_name , T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID | Show the names of pilots and models of aircrafts they have flied with. | [
"SELECT",
"T3.Pilot_name",
",",
"T2.Model",
"FROM",
"pilot_record",
"AS",
"T1",
"JOIN",
"aircraft",
"AS",
"T2",
"ON",
"T1.Aircraft_ID",
"=",
"T2.Aircraft_ID",
"JOIN",
"pilot",
"AS",
"T3",
"ON",
"T1.Pilot_ID",
"=",
"T3.Pilot_ID"
] | [
"select",
"t3",
".",
"pilot_name",
",",
"t2",
".",
"model",
"from",
"pilot_record",
"as",
"t1",
"join",
"aircraft",
"as",
"t2",
"on",
"t1",
".",
"aircraft_id",
"=",
"t2",
".",
"aircraft_id",
"join",
"pilot",
"as",
"t3",
"on",
"t1",
".",
"pilot_id",
"="... | [
"Show",
"the",
"names",
"of",
"pilots",
"and",
"models",
"of",
"aircrafts",
"they",
"have",
"flied",
"with",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"they",
"have",
"flied",
"with",
"."
] | [
"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... |
pilot_record | SELECT T3.Pilot_name , T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank | Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot. | [
"SELECT",
"T3.Pilot_name",
",",
"T2.Fleet_Series",
"FROM",
"pilot_record",
"AS",
"T1",
"JOIN",
"aircraft",
"AS",
"T2",
"ON",
"T1.Aircraft_ID",
"=",
"T2.Aircraft_ID",
"JOIN",
"pilot",
"AS",
"T3",
"ON",
"T1.Pilot_ID",
"=",
"T3.Pilot_ID",
"ORDER",
"BY",
"T3.Rank"
] | [
"select",
"t3",
".",
"pilot_name",
",",
"t2",
".",
"fleet_series",
"from",
"pilot_record",
"as",
"t1",
"join",
"aircraft",
"as",
"t2",
"on",
"t1",
".",
"aircraft_id",
"=",
"t2",
".",
"aircraft_id",
"join",
"pilot",
"as",
"t3",
"on",
"t1",
".",
"pilot_id"... | [
"Show",
"the",
"names",
"of",
"pilots",
"and",
"fleet",
"series",
"of",
"the",
"aircrafts",
"they",
"have",
"flied",
"with",
"in",
"ascending",
"order",
"of",
"the",
"rank",
"of",
"the",
"pilot",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"they",
"have",
"flied",
"with",
"in",
"ascending",
"<mask>",
"of",
"the",
"<mask>",
"of",
"the",
"<mask>",
"."
] | [
"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... |
pilot_record | SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID WHERE T3.Age < 34 | Show the fleet series of the aircrafts flied by pilots younger than 34 | [
"SELECT",
"T2.Fleet_Series",
"FROM",
"pilot_record",
"AS",
"T1",
"JOIN",
"aircraft",
"AS",
"T2",
"ON",
"T1.Aircraft_ID",
"=",
"T2.Aircraft_ID",
"JOIN",
"pilot",
"AS",
"T3",
"ON",
"T1.Pilot_ID",
"=",
"T3.Pilot_ID",
"WHERE",
"T3.Age",
"<",
"34"
] | [
"select",
"t2",
".",
"fleet_series",
"from",
"pilot_record",
"as",
"t1",
"join",
"aircraft",
"as",
"t2",
"on",
"t1",
".",
"aircraft_id",
"=",
"t2",
".",
"aircraft_id",
"join",
"pilot",
"as",
"t3",
"on",
"t1",
".",
"pilot_id",
"=",
"t3",
".",
"pilot_id",
... | [
"Show",
"the",
"fleet",
"series",
"of",
"the",
"aircrafts",
"flied",
"by",
"pilots",
"younger",
"than",
"34"
] | [
"Show",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"flied",
"by",
"<mask>",
"younger",
"than",
"<unk>"
] | [
"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... |
pilot_record | SELECT T2.Pilot_name , COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name | Show the names of pilots and the number of records they have. | [
"SELECT",
"T2.Pilot_name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"pilot_record",
"AS",
"T1",
"JOIN",
"pilot",
"AS",
"T2",
"ON",
"T1.pilot_ID",
"=",
"T2.pilot_ID",
"GROUP",
"BY",
"T2.Pilot_name"
] | [
"select",
"t2",
".",
"pilot_name",
",",
"count",
"(",
"*",
")",
"from",
"pilot_record",
"as",
"t1",
"join",
"pilot",
"as",
"t2",
"on",
"t1",
".",
"pilot_id",
"=",
"t2",
".",
"pilot_id",
"group",
"by",
"t2",
".",
"pilot_name"
] | [
"Show",
"the",
"names",
"of",
"pilots",
"and",
"the",
"number",
"of",
"records",
"they",
"have",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"they",
"have",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
pilot_record | SELECT T2.Pilot_name , COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*) > 1 | Show names of pilots that have more than one record. | [
"SELECT",
"T2.Pilot_name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"pilot_record",
"AS",
"T1",
"JOIN",
"pilot",
"AS",
"T2",
"ON",
"T1.pilot_ID",
"=",
"T2.pilot_ID",
"GROUP",
"BY",
"T2.Pilot_name",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"1"
] | [
"select",
"t2",
".",
"pilot_name",
",",
"count",
"(",
"*",
")",
"from",
"pilot_record",
"as",
"t1",
"join",
"pilot",
"as",
"t2",
"on",
"t1",
".",
"pilot_id",
"=",
"t2",
".",
"pilot_id",
"group",
"by",
"t2",
".",
"pilot_name",
"having",
"count",
"(",
... | [
"Show",
"names",
"of",
"pilots",
"that",
"have",
"more",
"than",
"one",
"record",
"."
] | [
"Show",
"<mask>",
"of",
"<mask>",
"that",
"have",
"more",
"than",
"one",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
... |
pilot_record | SELECT Pilot_name FROM pilot WHERE Pilot_ID NOT IN (SELECT Pilot_ID FROM pilot_record) | List the names of pilots that do not have any record. | [
"SELECT",
"Pilot_name",
"FROM",
"pilot",
"WHERE",
"Pilot_ID",
"NOT",
"IN",
"(",
"SELECT",
"Pilot_ID",
"FROM",
"pilot_record",
")"
] | [
"select",
"pilot_name",
"from",
"pilot",
"where",
"pilot_id",
"not",
"in",
"(",
"select",
"pilot_id",
"from",
"pilot_record",
")"
] | [
"List",
"the",
"names",
"of",
"pilots",
"that",
"do",
"not",
"have",
"any",
"record",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"that",
"do",
"not",
"have",
"any",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
cre_Doc_Control_Systems | SELECT document_status_code FROM Ref_Document_Status; | What document status codes do we have? | [
"SELECT",
"document_status_code",
"FROM",
"Ref_Document_Status",
";"
] | [
"select",
"document_status_code",
"from",
"ref_document_status"
] | [
"What",
"document",
"status",
"codes",
"do",
"we",
"have",
"?"
] | [
"What",
"<mask>",
"<mask>",
"<mask>",
"do",
"we",
"have",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
cre_Doc_Control_Systems | SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = "working"; | What is the description of document status code 'working'? | [
"SELECT",
"document_status_description",
"FROM",
"Ref_Document_Status",
"WHERE",
"document_status_code",
"=",
"``",
"working",
"''",
";"
] | [
"select",
"document_status_description",
"from",
"ref_document_status",
"where",
"document_status_code",
"=",
"value"
] | [
"What",
"is",
"the",
"description",
"of",
"document",
"status",
"code",
"'working",
"'",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"<mask>",
"<mask>",
"<mask>",
"'working",
"'",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.