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 |
|---|---|---|---|---|---|---|---|
storm_record | SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1 | List name, dates active, and number of deaths for all storms with at least 1 death. | [
"SELECT",
"name",
",",
"dates_active",
",",
"number_deaths",
"FROM",
"storm",
"WHERE",
"number_deaths",
">",
"=",
"1"
] | [
"select",
"name",
",",
"dates_active",
",",
"number_deaths",
"from",
"storm",
"where",
"number_deaths",
">",
"=",
"value"
] | [
"List",
"name",
",",
"dates",
"active",
",",
"and",
"number",
"of",
"deaths",
"for",
"all",
"storms",
"with",
"at",
"least",
"1",
"death",
"."
] | [
"List",
"<mask>",
",",
"dates",
"<mask>",
",",
"and",
"<mask>",
"of",
"deaths",
"for",
"all",
"<mask>",
"with",
"at",
"least",
"<unk>",
"death",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"=",
"<unk>"
] |
storm_record | SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1 | What are the names, dates active, and number of deaths for storms that had 1 or more death? | [
"SELECT",
"name",
",",
"dates_active",
",",
"number_deaths",
"FROM",
"storm",
"WHERE",
"number_deaths",
">",
"=",
"1"
] | [
"select",
"name",
",",
"dates_active",
",",
"number_deaths",
"from",
"storm",
"where",
"number_deaths",
">",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
",",
"dates",
"active",
",",
"and",
"number",
"of",
"deaths",
"for",
"storms",
"that",
"had",
"1",
"or",
"more",
"death",
"?"
] | [
"What",
"are",
"the",
"<mask>",
",",
"dates",
"<mask>",
",",
"and",
"<mask>",
"of",
"deaths",
"for",
"<mask>",
"that",
"had",
"<unk>",
"or",
"more",
"death",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"=",
"<unk>"
] |
storm_record | SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000 | Show the average and maximum damage for all storms with max speed higher than 1000. | [
"SELECT",
"avg",
"(",
"damage_millions_USD",
")",
",",
"max",
"(",
"damage_millions_USD",
")",
"FROM",
"storm",
"WHERE",
"max_speed",
">",
"1000"
] | [
"select",
"avg",
"(",
"damage_millions_usd",
")",
",",
"max",
"(",
"damage_millions_usd",
")",
"from",
"storm",
"where",
"max_speed",
">",
"value"
] | [
"Show",
"the",
"average",
"and",
"maximum",
"damage",
"for",
"all",
"storms",
"with",
"max",
"speed",
"higher",
"than",
"1000",
"."
] | [
"Show",
"the",
"average",
"and",
"maximum",
"<mask>",
"for",
"all",
"<mask>",
"with",
"<mask>",
"<mask>",
"higher",
"than",
"<unk>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
storm_record | SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000 | What is the average and maximum damage in millions for storms that had a max speed over 1000? | [
"SELECT",
"avg",
"(",
"damage_millions_USD",
")",
",",
"max",
"(",
"damage_millions_USD",
")",
"FROM",
"storm",
"WHERE",
"max_speed",
">",
"1000"
] | [
"select",
"avg",
"(",
"damage_millions_usd",
")",
",",
"max",
"(",
"damage_millions_usd",
")",
"from",
"storm",
"where",
"max_speed",
">",
"value"
] | [
"What",
"is",
"the",
"average",
"and",
"maximum",
"damage",
"in",
"millions",
"for",
"storms",
"that",
"had",
"a",
"max",
"speed",
"over",
"1000",
"?"
] | [
"What",
"is",
"the",
"average",
"and",
"maximum",
"<mask>",
"in",
"millions",
"for",
"<mask>",
"that",
"had",
"a",
"<mask>",
"<mask>",
"over",
"<unk>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
storm_record | SELECT sum(number_deaths) , sum(damage_millions_USD) FROM storm WHERE max_speed > (SELECT avg(max_speed) FROM storm) | What is the total number of deaths and damage for all storms with a max speed greater than the average? | [
"SELECT",
"sum",
"(",
"number_deaths",
")",
",",
"sum",
"(",
"damage_millions_USD",
")",
"FROM",
"storm",
"WHERE",
"max_speed",
">",
"(",
"SELECT",
"avg",
"(",
"max_speed",
")",
"FROM",
"storm",
")"
] | [
"select",
"sum",
"(",
"number_deaths",
")",
",",
"sum",
"(",
"damage_millions_usd",
")",
"from",
"storm",
"where",
"max_speed",
">",
"(",
"select",
"avg",
"(",
"max_speed",
")",
"from",
"storm",
")"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"deaths",
"and",
"damage",
"for",
"all",
"storms",
"with",
"a",
"max",
"speed",
"greater",
"than",
"the",
"average",
"?"
] | [
"What",
"is",
"the",
"total",
"<mask>",
"of",
"deaths",
"and",
"<mask>",
"for",
"all",
"<mask>",
"with",
"a",
"<mask>",
"<mask>",
"greater",
"than",
"the",
"average",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
")"
] |
storm_record | SELECT sum(number_deaths) , sum(damage_millions_USD) FROM storm WHERE max_speed > (SELECT avg(max_speed) FROM storm) | Return the total number of deaths and total damange in millions for storms that had a max speed greater than the average. | [
"SELECT",
"sum",
"(",
"number_deaths",
")",
",",
"sum",
"(",
"damage_millions_USD",
")",
"FROM",
"storm",
"WHERE",
"max_speed",
">",
"(",
"SELECT",
"avg",
"(",
"max_speed",
")",
"FROM",
"storm",
")"
] | [
"select",
"sum",
"(",
"number_deaths",
")",
",",
"sum",
"(",
"damage_millions_usd",
")",
"from",
"storm",
"where",
"max_speed",
">",
"(",
"select",
"avg",
"(",
"max_speed",
")",
"from",
"storm",
")"
] | [
"Return",
"the",
"total",
"number",
"of",
"deaths",
"and",
"total",
"damange",
"in",
"millions",
"for",
"storms",
"that",
"had",
"a",
"max",
"speed",
"greater",
"than",
"the",
"average",
"."
] | [
"Return",
"the",
"total",
"<mask>",
"of",
"deaths",
"and",
"total",
"damange",
"in",
"millions",
"for",
"<mask>",
"that",
"had",
"a",
"<mask>",
"<mask>",
"greater",
"than",
"the",
"average",
"."
] | [
"select",
"sum",
"(",
"<mask>",
")",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
")"
] |
storm_record | SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC | List name and damage for all storms in a descending order of max speed. | [
"SELECT",
"name",
",",
"damage_millions_USD",
"FROM",
"storm",
"ORDER",
"BY",
"max_speed",
"DESC"
] | [
"select",
"name",
",",
"damage_millions_usd",
"from",
"storm",
"order",
"by",
"max_speed",
"desc"
] | [
"List",
"name",
"and",
"damage",
"for",
"all",
"storms",
"in",
"a",
"descending",
"order",
"of",
"max",
"speed",
"."
] | [
"List",
"<mask>",
"and",
"<mask>",
"for",
"all",
"<mask>",
"in",
"a",
"descending",
"order",
"of",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
storm_record | SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC | What are the names and damage in millions for storms, ordered by their max speeds descending? | [
"SELECT",
"name",
",",
"damage_millions_USD",
"FROM",
"storm",
"ORDER",
"BY",
"max_speed",
"DESC"
] | [
"select",
"name",
",",
"damage_millions_usd",
"from",
"storm",
"order",
"by",
"max_speed",
"desc"
] | [
"What",
"are",
"the",
"names",
"and",
"damage",
"in",
"millions",
"for",
"storms",
",",
"ordered",
"by",
"their",
"max",
"speeds",
"descending",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"in",
"millions",
"for",
"<mask>",
",",
"ordered",
"by",
"their",
"<mask>",
"<mask>",
"descending",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
storm_record | SELECT count(DISTINCT region_id) FROM affected_region | How many regions are affected? | [
"SELECT",
"count",
"(",
"DISTINCT",
"region_id",
")",
"FROM",
"affected_region"
] | [
"select",
"count",
"(",
"distinct",
"region_id",
")",
"from",
"affected_region"
] | [
"How",
"many",
"regions",
"are",
"affected",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"affected",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
storm_record | SELECT count(DISTINCT region_id) FROM affected_region | Count the number of different affected regions. | [
"SELECT",
"count",
"(",
"DISTINCT",
"region_id",
")",
"FROM",
"affected_region"
] | [
"select",
"count",
"(",
"distinct",
"region_id",
")",
"from",
"affected_region"
] | [
"Count",
"the",
"number",
"of",
"different",
"affected",
"regions",
"."
] | [
"Count",
"the",
"<mask>",
"of",
"different",
"affected",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
storm_record | SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region) | Show the name for regions not affected. | [
"SELECT",
"region_name",
"FROM",
"region",
"WHERE",
"region_id",
"NOT",
"IN",
"(",
"SELECT",
"region_id",
"FROM",
"affected_region",
")"
] | [
"select",
"region_name",
"from",
"region",
"where",
"region_id",
"not",
"in",
"(",
"select",
"region_id",
"from",
"affected_region",
")"
] | [
"Show",
"the",
"name",
"for",
"regions",
"not",
"affected",
"."
] | [
"Show",
"the",
"<mask>",
"for",
"<mask>",
"not",
"affected",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
storm_record | SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region) | What are the names of regions that were not affected? | [
"SELECT",
"region_name",
"FROM",
"region",
"WHERE",
"region_id",
"NOT",
"IN",
"(",
"SELECT",
"region_id",
"FROM",
"affected_region",
")"
] | [
"select",
"region_name",
"from",
"region",
"where",
"region_id",
"not",
"in",
"(",
"select",
"region_id",
"from",
"affected_region",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"regions",
"that",
"were",
"not",
"affected",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"that",
"were",
"not",
"affected",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
storm_record | SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id | Show the name for regions and the number of storms for each region. | [
"SELECT",
"T1.region_name",
",",
"count",
"(",
"*",
")",
"FROM",
"region",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"GROUP",
"BY",
"T1.region_id"
] | [
"select",
"t1",
".",
"region_name",
",",
"count",
"(",
"*",
")",
"from",
"region",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"group",
"by",
"t1",
".",
"region_id"
] | [
"Show",
"the",
"name",
"for",
"regions",
"and",
"the",
"number",
"of",
"storms",
"for",
"each",
"region",
"."
] | [
"Show",
"the",
"<mask>",
"for",
"<mask>",
"and",
"the",
"<mask>",
"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>"
] |
storm_record | SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id | How many storms occured in each region? | [
"SELECT",
"T1.region_name",
",",
"count",
"(",
"*",
")",
"FROM",
"region",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"GROUP",
"BY",
"T1.region_id"
] | [
"select",
"t1",
".",
"region_name",
",",
"count",
"(",
"*",
")",
"from",
"region",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"group",
"by",
"t1",
".",
"region_id"
] | [
"How",
"many",
"storms",
"occured",
"in",
"each",
"region",
"?"
] | [
"How",
"many",
"<mask>",
"occured",
"in",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
storm_record | SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id | List the name for storms and the number of affected regions for each storm. | [
"SELECT",
"T1.name",
",",
"count",
"(",
"*",
")",
"FROM",
"storm",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.storm_id",
"=",
"T2.storm_id",
"GROUP",
"BY",
"T1.storm_id"
] | [
"select",
"t1",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"storm",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"storm_id",
"=",
"t2",
".",
"storm_id",
"group",
"by",
"t1",
".",
"storm_id"
] | [
"List",
"the",
"name",
"for",
"storms",
"and",
"the",
"number",
"of",
"affected",
"regions",
"for",
"each",
"storm",
"."
] | [
"List",
"the",
"<mask>",
"for",
"<mask>",
"and",
"the",
"<mask>",
"of",
"affected",
"<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>"
] |
storm_record | SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id | How many regions were affected by each storm? | [
"SELECT",
"T1.name",
",",
"count",
"(",
"*",
")",
"FROM",
"storm",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.storm_id",
"=",
"T2.storm_id",
"GROUP",
"BY",
"T1.storm_id"
] | [
"select",
"t1",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"storm",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"storm_id",
"=",
"t2",
".",
"storm_id",
"group",
"by",
"t1",
".",
"storm_id"
] | [
"How",
"many",
"regions",
"were",
"affected",
"by",
"each",
"storm",
"?"
] | [
"How",
"many",
"<mask>",
"were",
"affected",
"by",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
storm_record | SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1 | What is the storm name and max speed which affected the greatest number of regions? | [
"SELECT",
"T1.name",
",",
"T1.max_speed",
"FROM",
"storm",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.storm_id",
"=",
"T2.storm_id",
"GROUP",
"BY",
"T1.storm_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"max_speed",
"from",
"storm",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"storm_id",
"=",
"t2",
".",
"storm_id",
"group",
"by",
"t1",
".",
"storm_id",
"order",
"by",
"count",
"(",
... | [
"What",
"is",
"the",
"storm",
"name",
"and",
"max",
"speed",
"which",
"affected",
"the",
"greatest",
"number",
"of",
"regions",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"which",
"affected",
"the",
"greatest",
"<mask>",
"of",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"coun... |
storm_record | SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1 | Return the name and max speed of the storm that affected the most regions. | [
"SELECT",
"T1.name",
",",
"T1.max_speed",
"FROM",
"storm",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.storm_id",
"=",
"T2.storm_id",
"GROUP",
"BY",
"T1.storm_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"max_speed",
"from",
"storm",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"storm_id",
"=",
"t2",
".",
"storm_id",
"group",
"by",
"t1",
".",
"storm_id",
"order",
"by",
"count",
"(",
... | [
"Return",
"the",
"name",
"and",
"max",
"speed",
"of",
"the",
"storm",
"that",
"affected",
"the",
"most",
"regions",
"."
] | [
"Return",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"that",
"affected",
"the",
"most",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"coun... |
storm_record | SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region) | Show the name of storms which don't have affected region in record. | [
"SELECT",
"name",
"FROM",
"storm",
"WHERE",
"storm_id",
"NOT",
"IN",
"(",
"SELECT",
"storm_id",
"FROM",
"affected_region",
")"
] | [
"select",
"name",
"from",
"storm",
"where",
"storm_id",
"not",
"in",
"(",
"select",
"storm_id",
"from",
"affected_region",
")"
] | [
"Show",
"the",
"name",
"of",
"storms",
"which",
"do",
"n't",
"have",
"affected",
"region",
"in",
"record",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"which",
"do",
"n't",
"have",
"affected",
"<mask>",
"in",
"record",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
storm_record | SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region) | What are the names of storms that did not affect any regions? | [
"SELECT",
"name",
"FROM",
"storm",
"WHERE",
"storm_id",
"NOT",
"IN",
"(",
"SELECT",
"storm_id",
"FROM",
"affected_region",
")"
] | [
"select",
"name",
"from",
"storm",
"where",
"storm_id",
"not",
"in",
"(",
"select",
"storm_id",
"from",
"affected_region",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"storms",
"that",
"did",
"not",
"affect",
"any",
"regions",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"that",
"did",
"not",
"affect",
"any",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
storm_record | SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10 | Show storm name with at least two regions and 10 cities affected. | [
"SELECT",
"T1.name",
"FROM",
"storm",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.storm_id",
"=",
"T2.storm_id",
"GROUP",
"BY",
"T1.storm_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2",
"INTERSECT",
"SELECT",
"T1.name",
"FROM",
"storm"... | [
"select",
"t1",
".",
"name",
"from",
"storm",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"storm_id",
"=",
"t2",
".",
"storm_id",
"group",
"by",
"t1",
".",
"storm_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value",
"inte... | [
"Show",
"storm",
"name",
"with",
"at",
"least",
"two",
"regions",
"and",
"10",
"cities",
"affected",
"."
] | [
"Show",
"<mask>",
"<mask>",
"with",
"at",
"least",
"two",
"<mask>",
"and",
"<unk>",
"<mask>",
"affected",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
storm_record | SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10 | What are the names of storms that both affected two or more regions and affected a total of 10 or more cities? | [
"SELECT",
"T1.name",
"FROM",
"storm",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.storm_id",
"=",
"T2.storm_id",
"GROUP",
"BY",
"T1.storm_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2",
"INTERSECT",
"SELECT",
"T1.name",
"FROM",
"storm"... | [
"select",
"t1",
".",
"name",
"from",
"storm",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"storm_id",
"=",
"t2",
".",
"storm_id",
"group",
"by",
"t1",
".",
"storm_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value",
"inte... | [
"What",
"are",
"the",
"names",
"of",
"storms",
"that",
"both",
"affected",
"two",
"or",
"more",
"regions",
"and",
"affected",
"a",
"total",
"of",
"10",
"or",
"more",
"cities",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"that",
"both",
"affected",
"two",
"or",
"more",
"<mask>",
"and",
"affected",
"a",
"total",
"of",
"<unk>",
"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... |
storm_record | SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 | Show all storm names except for those with at least two affected regions. | [
"SELECT",
"name",
"FROM",
"storm",
"EXCEPT",
"SELECT",
"T1.name",
"FROM",
"storm",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.storm_id",
"=",
"T2.storm_id",
"GROUP",
"BY",
"T1.storm_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"name",
"from",
"storm",
"except",
"select",
"t1",
".",
"name",
"from",
"storm",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"storm_id",
"=",
"t2",
".",
"storm_id",
"group",
"by",
"t1",
".",
"storm_id",
"having",
"count"... | [
"Show",
"all",
"storm",
"names",
"except",
"for",
"those",
"with",
"at",
"least",
"two",
"affected",
"regions",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"except",
"for",
"those",
"with",
"at",
"least",
"two",
"affected",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<ma... |
storm_record | SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 | What are the names of storms that did not affect two or more regions? | [
"SELECT",
"name",
"FROM",
"storm",
"EXCEPT",
"SELECT",
"T1.name",
"FROM",
"storm",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.storm_id",
"=",
"T2.storm_id",
"GROUP",
"BY",
"T1.storm_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"name",
"from",
"storm",
"except",
"select",
"t1",
".",
"name",
"from",
"storm",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"storm_id",
"=",
"t2",
".",
"storm_id",
"group",
"by",
"t1",
".",
"storm_id",
"having",
"count"... | [
"What",
"are",
"the",
"names",
"of",
"storms",
"that",
"did",
"not",
"affect",
"two",
"or",
"more",
"regions",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"that",
"did",
"not",
"affect",
"two",
"or",
"more",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<ma... |
storm_record | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10 | What are the region names affected by the storm with a number of deaths of least 10? | [
"SELECT",
"T2.region_name",
"FROM",
"affected_region",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"JOIN",
"storm",
"AS",
"T3",
"ON",
"T1.storm_id",
"=",
"T3.storm_id",
"WHERE",
"T3.number_deaths",
">",
"=",
"10"
] | [
"select",
"t2",
".",
"region_name",
"from",
"affected_region",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"storm",
"as",
"t3",
"on",
"t1",
".",
"storm_id",
"=",
"t3",
".",
"storm_id",
"w... | [
"What",
"are",
"the",
"region",
"names",
"affected",
"by",
"the",
"storm",
"with",
"a",
"number",
"of",
"deaths",
"of",
"least",
"10",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"affected",
"by",
"the",
"<mask>",
"with",
"a",
"<mask>",
"of",
"deaths",
"of",
"least",
"<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... |
storm_record | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10 | Return the names of the regions affected by storms that had a death count of at least 10. | [
"SELECT",
"T2.region_name",
"FROM",
"affected_region",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"JOIN",
"storm",
"AS",
"T3",
"ON",
"T1.storm_id",
"=",
"T3.storm_id",
"WHERE",
"T3.number_deaths",
">",
"=",
"10"
] | [
"select",
"t2",
".",
"region_name",
"from",
"affected_region",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"storm",
"as",
"t3",
"on",
"t1",
".",
"storm_id",
"=",
"t3",
".",
"storm_id",
"w... | [
"Return",
"the",
"names",
"of",
"the",
"regions",
"affected",
"by",
"storms",
"that",
"had",
"a",
"death",
"count",
"of",
"at",
"least",
"10",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"the",
"<mask>",
"affected",
"by",
"<mask>",
"that",
"had",
"a",
"death",
"count",
"of",
"at",
"least",
"<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... |
storm_record | SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark' | Show all storm names affecting region "Denmark". | [
"SELECT",
"T3.name",
"FROM",
"affected_region",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"JOIN",
"storm",
"AS",
"T3",
"ON",
"T1.storm_id",
"=",
"T3.storm_id",
"WHERE",
"T2.region_name",
"=",
"'Denmark",
"'"
] | [
"select",
"t3",
".",
"name",
"from",
"affected_region",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"storm",
"as",
"t3",
"on",
"t1",
".",
"storm_id",
"=",
"t3",
".",
"storm_id",
"where",
... | [
"Show",
"all",
"storm",
"names",
"affecting",
"region",
"``",
"Denmark",
"''",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"affecting",
"<mask>",
"``",
"Denmark",
"''",
"."
] | [
"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... |
storm_record | SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark' | What are the names of the storms that affected Denmark? | [
"SELECT",
"T3.name",
"FROM",
"affected_region",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"JOIN",
"storm",
"AS",
"T3",
"ON",
"T1.storm_id",
"=",
"T3.storm_id",
"WHERE",
"T2.region_name",
"=",
"'Denmark",
"'"
] | [
"select",
"t3",
".",
"name",
"from",
"affected_region",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"storm",
"as",
"t3",
"on",
"t1",
".",
"storm_id",
"=",
"t3",
".",
"storm_id",
"where",
... | [
"What",
"are",
"the",
"names",
"of",
"the",
"storms",
"that",
"affected",
"Denmark",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"affected",
"Denmark",
"?"
] | [
"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... |
storm_record | SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*) >= 2 | Show the region name with at least two storms. | [
"SELECT",
"T1.region_name",
"FROM",
"region",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"GROUP",
"BY",
"T1.region_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"t1",
".",
"region_name",
"from",
"region",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"group",
"by",
"t1",
".",
"region_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"valu... | [
"Show",
"the",
"region",
"name",
"with",
"at",
"least",
"two",
"storms",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"with",
"at",
"least",
"two",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
storm_record | SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*) >= 2 | What are the names of regions with two or more storms? | [
"SELECT",
"T1.region_name",
"FROM",
"region",
"AS",
"T1",
"JOIN",
"affected_region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"GROUP",
"BY",
"T1.region_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"t1",
".",
"region_name",
"from",
"region",
"as",
"t1",
"join",
"affected_region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"group",
"by",
"t1",
".",
"region_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"valu... | [
"What",
"are",
"the",
"names",
"of",
"regions",
"with",
"two",
"or",
"more",
"storms",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"with",
"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... |
storm_record | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1 | Find the names of the regions which were affected by the storm that killed the greatest number of people. | [
"SELECT",
"T2.region_name",
"FROM",
"affected_region",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"JOIN",
"storm",
"AS",
"T3",
"ON",
"T1.storm_id",
"=",
"T3.storm_id",
"ORDER",
"BY",
"T3.Number_Deaths",
"DESC",
"LIMIT",
... | [
"select",
"t2",
".",
"region_name",
"from",
"affected_region",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"storm",
"as",
"t3",
"on",
"t1",
".",
"storm_id",
"=",
"t3",
".",
"storm_id",
"o... | [
"Find",
"the",
"names",
"of",
"the",
"regions",
"which",
"were",
"affected",
"by",
"the",
"storm",
"that",
"killed",
"the",
"greatest",
"number",
"of",
"people",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"which",
"were",
"affected",
"by",
"the",
"<mask>",
"that",
"killed",
"the",
"greatest",
"<mask>",
"of",
"people",
"."
] | [
"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... |
storm_record | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1 | What are the names of regions that were affected by the storm in which the most people died? | [
"SELECT",
"T2.region_name",
"FROM",
"affected_region",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"JOIN",
"storm",
"AS",
"T3",
"ON",
"T1.storm_id",
"=",
"T3.storm_id",
"ORDER",
"BY",
"T3.Number_Deaths",
"DESC",
"LIMIT",
... | [
"select",
"t2",
".",
"region_name",
"from",
"affected_region",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"storm",
"as",
"t3",
"on",
"t1",
".",
"storm_id",
"=",
"t3",
".",
"storm_id",
"o... | [
"What",
"are",
"the",
"names",
"of",
"regions",
"that",
"were",
"affected",
"by",
"the",
"storm",
"in",
"which",
"the",
"most",
"people",
"died",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"that",
"were",
"affected",
"by",
"the",
"<mask>",
"in",
"which",
"the",
"most",
"people",
"died",
"?"
] | [
"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... |
storm_record | SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T... | Find the name of the storm that affected both Afghanistan and Albania regions. | [
"SELECT",
"T3.Name",
"FROM",
"affected_region",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"JOIN",
"storm",
"AS",
"T3",
"ON",
"T1.storm_id",
"=",
"T3.storm_id",
"WHERE",
"T2.Region_name",
"=",
"'Afghanistan",
"'",
"INTER... | [
"select",
"t3",
".",
"name",
"from",
"affected_region",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"storm",
"as",
"t3",
"on",
"t1",
".",
"storm_id",
"=",
"t3",
".",
"storm_id",
"where",
... | [
"Find",
"the",
"name",
"of",
"the",
"storm",
"that",
"affected",
"both",
"Afghanistan",
"and",
"Albania",
"regions",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"affected",
"both",
"Afghanistan",
"and",
"Albania",
"<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... |
storm_record | SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T... | What are the names of the storms that affected both the regions of Afghanistan and Albania? | [
"SELECT",
"T3.Name",
"FROM",
"affected_region",
"AS",
"T1",
"JOIN",
"region",
"AS",
"T2",
"ON",
"T1.region_id",
"=",
"T2.region_id",
"JOIN",
"storm",
"AS",
"T3",
"ON",
"T1.storm_id",
"=",
"T3.storm_id",
"WHERE",
"T2.Region_name",
"=",
"'Afghanistan",
"'",
"INTER... | [
"select",
"t3",
".",
"name",
"from",
"affected_region",
"as",
"t1",
"join",
"region",
"as",
"t2",
"on",
"t1",
".",
"region_id",
"=",
"t2",
".",
"region_id",
"join",
"storm",
"as",
"t3",
"on",
"t1",
".",
"storm_id",
"=",
"t3",
".",
"storm_id",
"where",
... | [
"What",
"are",
"the",
"names",
"of",
"the",
"storms",
"that",
"affected",
"both",
"the",
"regions",
"of",
"Afghanistan",
"and",
"Albania",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"affected",
"both",
"the",
"<mask>",
"of",
"Afghanistan",
"and",
"Albania",
"?"
] | [
"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... |
election | SELECT count(*) FROM county | How many counties are there in total? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"county"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"county"
] | [
"How",
"many",
"counties",
"are",
"there",
"in",
"total",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"in",
"total",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
election | SELECT count(*) FROM county | Count the total number of counties. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"county"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"county"
] | [
"Count",
"the",
"total",
"number",
"of",
"counties",
"."
] | [
"Count",
"the",
"total",
"number",
"of",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
election | SELECT County_name , Population FROM county | Show the county name and population of all counties. | [
"SELECT",
"County_name",
",",
"Population",
"FROM",
"county"
] | [
"select",
"county_name",
",",
"population",
"from",
"county"
] | [
"Show",
"the",
"county",
"name",
"and",
"population",
"of",
"all",
"counties",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"of",
"all",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
election | SELECT County_name , Population FROM county | What are the name and population of each county? | [
"SELECT",
"County_name",
",",
"Population",
"FROM",
"county"
] | [
"select",
"county_name",
",",
"population",
"from",
"county"
] | [
"What",
"are",
"the",
"name",
"and",
"population",
"of",
"each",
"county",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
election | SELECT avg(Population) FROM county | Show the average population of all counties. | [
"SELECT",
"avg",
"(",
"Population",
")",
"FROM",
"county"
] | [
"select",
"avg",
"(",
"population",
")",
"from",
"county"
] | [
"Show",
"the",
"average",
"population",
"of",
"all",
"counties",
"."
] | [
"Show",
"the",
"average",
"<mask>",
"of",
"all",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
election | SELECT avg(Population) FROM county | On average how large is the population of the counties? | [
"SELECT",
"avg",
"(",
"Population",
")",
"FROM",
"county"
] | [
"select",
"avg",
"(",
"population",
")",
"from",
"county"
] | [
"On",
"average",
"how",
"large",
"is",
"the",
"population",
"of",
"the",
"counties",
"?"
] | [
"On",
"average",
"how",
"large",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
election | SELECT max(Population) , min(Population) FROM county | Return the maximum and minimum population among all counties. | [
"SELECT",
"max",
"(",
"Population",
")",
",",
"min",
"(",
"Population",
")",
"FROM",
"county"
] | [
"select",
"max",
"(",
"population",
")",
",",
"min",
"(",
"population",
")",
"from",
"county"
] | [
"Return",
"the",
"maximum",
"and",
"minimum",
"population",
"among",
"all",
"counties",
"."
] | [
"Return",
"the",
"maximum",
"and",
"minimum",
"<mask>",
"among",
"all",
"<mask>",
"."
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
election | SELECT max(Population) , min(Population) FROM county | What are the maximum and minimum population of the counties? | [
"SELECT",
"max",
"(",
"Population",
")",
",",
"min",
"(",
"Population",
")",
"FROM",
"county"
] | [
"select",
"max",
"(",
"population",
")",
",",
"min",
"(",
"population",
")",
"from",
"county"
] | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"population",
"of",
"the",
"counties",
"?"
] | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"<mask>",
"of",
"the",
"<mask>",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
election | SELECT DISTINCT District FROM election | Show all the distinct districts for elections. | [
"SELECT",
"DISTINCT",
"District",
"FROM",
"election"
] | [
"select",
"distinct",
"district",
"from",
"election"
] | [
"Show",
"all",
"the",
"distinct",
"districts",
"for",
"elections",
"."
] | [
"Show",
"all",
"the",
"distinct",
"<mask>",
"for",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
election | SELECT DISTINCT District FROM election | What are the distinct districts for elections? | [
"SELECT",
"DISTINCT",
"District",
"FROM",
"election"
] | [
"select",
"distinct",
"district",
"from",
"election"
] | [
"What",
"are",
"the",
"distinct",
"districts",
"for",
"elections",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"for",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
election | SELECT Zip_code FROM county WHERE County_name = "Howard" | Show the zip code of the county with name "Howard". | [
"SELECT",
"Zip_code",
"FROM",
"county",
"WHERE",
"County_name",
"=",
"``",
"Howard",
"''"
] | [
"select",
"zip_code",
"from",
"county",
"where",
"county_name",
"=",
"value"
] | [
"Show",
"the",
"zip",
"code",
"of",
"the",
"county",
"with",
"name",
"``",
"Howard",
"''",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"with",
"<mask>",
"``",
"Howard",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
election | SELECT Zip_code FROM county WHERE County_name = "Howard" | What is the zip code the county named "Howard" is located in? | [
"SELECT",
"Zip_code",
"FROM",
"county",
"WHERE",
"County_name",
"=",
"``",
"Howard",
"''"
] | [
"select",
"zip_code",
"from",
"county",
"where",
"county_name",
"=",
"value"
] | [
"What",
"is",
"the",
"zip",
"code",
"the",
"county",
"named",
"``",
"Howard",
"''",
"is",
"located",
"in",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"the",
"<mask>",
"<mask>",
"``",
"Howard",
"''",
"is",
"located",
"in",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
election | SELECT Delegate FROM election WHERE District = 1 | Show the delegate from district 1 in election. | [
"SELECT",
"Delegate",
"FROM",
"election",
"WHERE",
"District",
"=",
"1"
] | [
"select",
"delegate",
"from",
"election",
"where",
"district",
"=",
"value"
] | [
"Show",
"the",
"delegate",
"from",
"district",
"1",
"in",
"election",
"."
] | [
"Show",
"the",
"<mask>",
"from",
"<mask>",
"<unk>",
"in",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
election | SELECT Delegate FROM election WHERE District = 1 | Who is the delegate of district 1 in the elections? | [
"SELECT",
"Delegate",
"FROM",
"election",
"WHERE",
"District",
"=",
"1"
] | [
"select",
"delegate",
"from",
"election",
"where",
"district",
"=",
"value"
] | [
"Who",
"is",
"the",
"delegate",
"of",
"district",
"1",
"in",
"the",
"elections",
"?"
] | [
"Who",
"is",
"the",
"<mask>",
"of",
"<mask>",
"<unk>",
"in",
"the",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
election | SELECT Delegate , Committee FROM election | Show the delegate and committee information of elections. | [
"SELECT",
"Delegate",
",",
"Committee",
"FROM",
"election"
] | [
"select",
"delegate",
",",
"committee",
"from",
"election"
] | [
"Show",
"the",
"delegate",
"and",
"committee",
"information",
"of",
"elections",
"."
] | [
"Show",
"the",
"<mask>",
"and",
"<mask>",
"information",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
election | SELECT Delegate , Committee FROM election | What are the delegate and committee information for each election record? | [
"SELECT",
"Delegate",
",",
"Committee",
"FROM",
"election"
] | [
"select",
"delegate",
",",
"committee",
"from",
"election"
] | [
"What",
"are",
"the",
"delegate",
"and",
"committee",
"information",
"for",
"each",
"election",
"record",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"information",
"for",
"each",
"<mask>",
"record",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
election | SELECT count(DISTINCT Governor) FROM party | How many distinct governors are there? | [
"SELECT",
"count",
"(",
"DISTINCT",
"Governor",
")",
"FROM",
"party"
] | [
"select",
"count",
"(",
"distinct",
"governor",
")",
"from",
"party"
] | [
"How",
"many",
"distinct",
"governors",
"are",
"there",
"?"
] | [
"How",
"many",
"distinct",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
election | SELECT count(DISTINCT Governor) FROM party | Count the number of distinct governors. | [
"SELECT",
"count",
"(",
"DISTINCT",
"Governor",
")",
"FROM",
"party"
] | [
"select",
"count",
"(",
"distinct",
"governor",
")",
"from",
"party"
] | [
"Count",
"the",
"number",
"of",
"distinct",
"governors",
"."
] | [
"Count",
"the",
"number",
"of",
"distinct",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
election | SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = "Democratic" | Show the lieutenant governor and comptroller from the democratic party. | [
"SELECT",
"Lieutenant_Governor",
",",
"Comptroller",
"FROM",
"party",
"WHERE",
"Party",
"=",
"``",
"Democratic",
"''"
] | [
"select",
"lieutenant_governor",
",",
"comptroller",
"from",
"party",
"where",
"party",
"=",
"value"
] | [
"Show",
"the",
"lieutenant",
"governor",
"and",
"comptroller",
"from",
"the",
"democratic",
"party",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"from",
"the",
"democratic",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
election | SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = "Democratic" | Who are the lieutenant governor and comptroller from the democratic party? | [
"SELECT",
"Lieutenant_Governor",
",",
"Comptroller",
"FROM",
"party",
"WHERE",
"Party",
"=",
"``",
"Democratic",
"''"
] | [
"select",
"lieutenant_governor",
",",
"comptroller",
"from",
"party",
"where",
"party",
"=",
"value"
] | [
"Who",
"are",
"the",
"lieutenant",
"governor",
"and",
"comptroller",
"from",
"the",
"democratic",
"party",
"?"
] | [
"Who",
"are",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"from",
"the",
"democratic",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
election | SELECT DISTINCT YEAR FROM party WHERE Governor = "Eliot Spitzer" | In which distinct years was the governor "Eliot Spitzer"? | [
"SELECT",
"DISTINCT",
"YEAR",
"FROM",
"party",
"WHERE",
"Governor",
"=",
"``",
"Eliot",
"Spitzer",
"''"
] | [
"select",
"distinct",
"year",
"from",
"party",
"where",
"governor",
"=",
"value"
] | [
"In",
"which",
"distinct",
"years",
"was",
"the",
"governor",
"``",
"Eliot",
"Spitzer",
"''",
"?"
] | [
"In",
"which",
"distinct",
"<mask>",
"was",
"the",
"<mask>",
"``",
"Eliot",
"Spitzer",
"''",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
election | SELECT DISTINCT YEAR FROM party WHERE Governor = "Eliot Spitzer" | Find the distinct years when the governor was named "Eliot Spitzer". | [
"SELECT",
"DISTINCT",
"YEAR",
"FROM",
"party",
"WHERE",
"Governor",
"=",
"``",
"Eliot",
"Spitzer",
"''"
] | [
"select",
"distinct",
"year",
"from",
"party",
"where",
"governor",
"=",
"value"
] | [
"Find",
"the",
"distinct",
"years",
"when",
"the",
"governor",
"was",
"named",
"``",
"Eliot",
"Spitzer",
"''",
"."
] | [
"Find",
"the",
"distinct",
"<mask>",
"when",
"the",
"<mask>",
"was",
"<mask>",
"``",
"Eliot",
"Spitzer",
"''",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
election | SELECT * FROM election | Show all the information about election. | [
"SELECT",
"*",
"FROM",
"election"
] | [
"select",
"*",
"from",
"election"
] | [
"Show",
"all",
"the",
"information",
"about",
"election",
"."
] | [
"Show",
"all",
"the",
"information",
"about",
"<mask>",
"."
] | [
"select",
"*",
"from",
"<mask>"
] |
election | SELECT * FROM election | Return all the information for each election record. | [
"SELECT",
"*",
"FROM",
"election"
] | [
"select",
"*",
"from",
"election"
] | [
"Return",
"all",
"the",
"information",
"for",
"each",
"election",
"record",
"."
] | [
"Return",
"all",
"the",
"information",
"for",
"each",
"<mask>",
"record",
"."
] | [
"select",
"*",
"from",
"<mask>"
] |
election | SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District | Show the delegates and the names of county they belong to. | [
"SELECT",
"T2.Delegate",
",",
"T1.County_name",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District"
] | [
"select",
"t2",
".",
"delegate",
",",
"t1",
".",
"county_name",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district"
] | [
"Show",
"the",
"delegates",
"and",
"the",
"names",
"of",
"county",
"they",
"belong",
"to",
"."
] | [
"Show",
"the",
"<mask>",
"and",
"the",
"<mask>",
"of",
"<mask>",
"they",
"belong",
"to",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
election | SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District | What are the delegate and name of the county they belong to, for each county? | [
"SELECT",
"T2.Delegate",
",",
"T1.County_name",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District"
] | [
"select",
"t2",
".",
"delegate",
",",
"t1",
".",
"county_name",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district"
] | [
"What",
"are",
"the",
"delegate",
"and",
"name",
"of",
"the",
"county",
"they",
"belong",
"to",
",",
"for",
"each",
"county",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"they",
"belong",
"to",
",",
"for",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
election | SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 | Which delegates are from counties with population smaller than 100000? | [
"SELECT",
"T2.Delegate",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"WHERE",
"T1.Population",
"<",
"100000"
] | [
"select",
"t2",
".",
"delegate",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"where",
"t1",
".",
"population",
"<",
"value"
] | [
"Which",
"delegates",
"are",
"from",
"counties",
"with",
"population",
"smaller",
"than",
"100000",
"?"
] | [
"Which",
"<mask>",
"are",
"from",
"<mask>",
"with",
"<mask>",
"smaller",
"than",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>"
] |
election | SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 | Find the delegates who are from counties with population below 100000. | [
"SELECT",
"T2.Delegate",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"WHERE",
"T1.Population",
"<",
"100000"
] | [
"select",
"t2",
".",
"delegate",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"where",
"t1",
".",
"population",
"<",
"value"
] | [
"Find",
"the",
"delegates",
"who",
"are",
"from",
"counties",
"with",
"population",
"below",
"100000",
"."
] | [
"Find",
"the",
"<mask>",
"who",
"are",
"from",
"<mask>",
"with",
"<mask>",
"below",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>"
] |
election | SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000 | How many distinct delegates are from counties with population larger than 50000? | [
"SELECT",
"count",
"(",
"DISTINCT",
"T2.Delegate",
")",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"WHERE",
"T1.Population",
">",
"50000"
] | [
"select",
"count",
"(",
"distinct",
"t2",
".",
"delegate",
")",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"where",
"t1",
".",
"population",
">",
"value"
] | [
"How",
"many",
"distinct",
"delegates",
"are",
"from",
"counties",
"with",
"population",
"larger",
"than",
"50000",
"?"
] | [
"How",
"many",
"distinct",
"<mask>",
"are",
"from",
"<mask>",
"with",
"<mask>",
"larger",
"than",
"<unk>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
election | SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000 | Count the number of distinct delegates who are from counties with population above 50000. | [
"SELECT",
"count",
"(",
"DISTINCT",
"T2.Delegate",
")",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"WHERE",
"T1.Population",
">",
"50000"
] | [
"select",
"count",
"(",
"distinct",
"t2",
".",
"delegate",
")",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"where",
"t1",
".",
"population",
">",
"value"
] | [
"Count",
"the",
"number",
"of",
"distinct",
"delegates",
"who",
"are",
"from",
"counties",
"with",
"population",
"above",
"50000",
"."
] | [
"Count",
"the",
"number",
"of",
"distinct",
"<mask>",
"who",
"are",
"from",
"<mask>",
"with",
"<mask>",
"above",
"<unk>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
election | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations" | What are the names of the county that the delegates on "Appropriations" committee belong to? | [
"SELECT",
"T1.County_name",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"WHERE",
"T2.Committee",
"=",
"``",
"Appropriations",
"''"
] | [
"select",
"t1",
".",
"county_name",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"where",
"t2",
".",
"committee",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"county",
"that",
"the",
"delegates",
"on",
"``",
"Appropriations",
"''",
"committee",
"belong",
"to",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"the",
"<mask>",
"on",
"``",
"Appropriations",
"''",
"<mask>",
"belong",
"to",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
election | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations" | Which county do the delegates on "Appropriations" committee belong to? Give me the county names. | [
"SELECT",
"T1.County_name",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"WHERE",
"T2.Committee",
"=",
"``",
"Appropriations",
"''"
] | [
"select",
"t1",
".",
"county_name",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"where",
"t2",
".",
"committee",
"=",
"value"
] | [
"Which",
"county",
"do",
"the",
"delegates",
"on",
"``",
"Appropriations",
"''",
"committee",
"belong",
"to",
"?",
"Give",
"me",
"the",
"county",
"names",
"."
] | [
"Which",
"<mask>",
"do",
"the",
"<mask>",
"on",
"``",
"Appropriations",
"''",
"<mask>",
"belong",
"to",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
election | SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID | Show the delegates and the names of the party they belong to. | [
"SELECT",
"T1.Delegate",
",",
"T2.Party",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID"
] | [
"select",
"t1",
".",
"delegate",
",",
"t2",
".",
"party",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id"
] | [
"Show",
"the",
"delegates",
"and",
"the",
"names",
"of",
"the",
"party",
"they",
"belong",
"to",
"."
] | [
"Show",
"the",
"<mask>",
"and",
"the",
"<mask>",
"of",
"the",
"<mask>",
"they",
"belong",
"to",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
election | SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID | For each delegate, find the names of the party they are part of. | [
"SELECT",
"T1.Delegate",
",",
"T2.Party",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID"
] | [
"select",
"t1",
".",
"delegate",
",",
"t2",
".",
"party",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id"
] | [
"For",
"each",
"delegate",
",",
"find",
"the",
"names",
"of",
"the",
"party",
"they",
"are",
"part",
"of",
"."
] | [
"For",
"each",
"<mask>",
",",
"find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"they",
"are",
"part",
"of",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
election | SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 | Who were the governors of the parties associated with delegates from district 1? | [
"SELECT",
"T2.Governor",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T1.District",
"=",
"1"
] | [
"select",
"t2",
".",
"governor",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t1",
".",
"district",
"=",
"value"
] | [
"Who",
"were",
"the",
"governors",
"of",
"the",
"parties",
"associated",
"with",
"delegates",
"from",
"district",
"1",
"?"
] | [
"Who",
"were",
"the",
"<mask>",
"of",
"the",
"<mask>",
"associated",
"with",
"<mask>",
"from",
"<mask>",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
election | SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 | Find the parties associated with the delegates from district 1. Who served as governors of the parties? | [
"SELECT",
"T2.Governor",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T1.District",
"=",
"1"
] | [
"select",
"t2",
".",
"governor",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t1",
".",
"district",
"=",
"value"
] | [
"Find",
"the",
"parties",
"associated",
"with",
"the",
"delegates",
"from",
"district",
"1.",
"Who",
"served",
"as",
"governors",
"of",
"the",
"parties",
"?"
] | [
"Find",
"the",
"<mask>",
"associated",
"with",
"the",
"<mask>",
"from",
"<mask>",
"1.",
"Who",
"served",
"as",
"<mask>",
"of",
"the",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
election | SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 | Who were the comptrollers of the parties associated with the delegates from district 1 or district 2? | [
"SELECT",
"T2.Comptroller",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T1.District",
"=",
"1",
"OR",
"T1.District",
"=",
"2"
] | [
"select",
"t2",
".",
"comptroller",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t1",
".",
"district",
"=",
"value",
"or",
"t1",
".",
"district",
"=",
"value"
] | [
"Who",
"were",
"the",
"comptrollers",
"of",
"the",
"parties",
"associated",
"with",
"the",
"delegates",
"from",
"district",
"1",
"or",
"district",
"2",
"?"
] | [
"Who",
"were",
"the",
"<mask>",
"of",
"the",
"<mask>",
"associated",
"with",
"the",
"<mask>",
"from",
"<mask>",
"<unk>",
"or",
"<mask>",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
".",
"<mask>",
"=",
"<unk>... |
election | SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 | Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties? | [
"SELECT",
"T2.Comptroller",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T1.District",
"=",
"1",
"OR",
"T1.District",
"=",
"2"
] | [
"select",
"t2",
".",
"comptroller",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t1",
".",
"district",
"=",
"value",
"or",
"t1",
".",
"district",
"=",
"value"
] | [
"Find",
"the",
"parties",
"associated",
"with",
"the",
"delegates",
"from",
"district",
"1",
"or",
"2.",
"Who",
"served",
"as",
"comptrollers",
"of",
"the",
"parties",
"?"
] | [
"Find",
"the",
"<mask>",
"associated",
"with",
"the",
"<mask>",
"from",
"<mask>",
"<unk>",
"or",
"2.",
"Who",
"served",
"as",
"<mask>",
"of",
"the",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
".",
"<mask>",
"=",
"<unk>... |
election | SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" | Return all the committees that have delegates from Democratic party. | [
"SELECT",
"T1.Committee",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T2.Party",
"=",
"``",
"Democratic",
"''"
] | [
"select",
"t1",
".",
"committee",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t2",
".",
"party",
"=",
"value"
] | [
"Return",
"all",
"the",
"committees",
"that",
"have",
"delegates",
"from",
"Democratic",
"party",
"."
] | [
"Return",
"all",
"the",
"<mask>",
"that",
"have",
"<mask>",
"from",
"Democratic",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
election | SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" | Which committees have delegates from the Democratic party? | [
"SELECT",
"T1.Committee",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T2.Party",
"=",
"``",
"Democratic",
"''"
] | [
"select",
"t1",
".",
"committee",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t2",
".",
"party",
"=",
"value"
] | [
"Which",
"committees",
"have",
"delegates",
"from",
"the",
"Democratic",
"party",
"?"
] | [
"Which",
"<mask>",
"have",
"<mask>",
"from",
"the",
"Democratic",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
election | SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id | Show the name of each county along with the corresponding number of delegates from that county. | [
"SELECT",
"T1.County_name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"GROUP",
"BY",
"T1.County_id"
] | [
"select",
"t1",
".",
"county_name",
",",
"count",
"(",
"*",
")",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"group",
"by",
"t1",
".",
"county_id"
] | [
"Show",
"the",
"name",
"of",
"each",
"county",
"along",
"with",
"the",
"corresponding",
"number",
"of",
"delegates",
"from",
"that",
"county",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"each",
"<mask>",
"along",
"with",
"the",
"corresponding",
"number",
"of",
"<mask>",
"from",
"that",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
election | SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id | For each county, find the name of the county and the number of delegates from that county. | [
"SELECT",
"T1.County_name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"GROUP",
"BY",
"T1.County_id"
] | [
"select",
"t1",
".",
"county_name",
",",
"count",
"(",
"*",
")",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"group",
"by",
"t1",
".",
"county_id"
] | [
"For",
"each",
"county",
",",
"find",
"the",
"name",
"of",
"the",
"county",
"and",
"the",
"number",
"of",
"delegates",
"from",
"that",
"county",
"."
] | [
"For",
"each",
"<mask>",
",",
"find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"from",
"that",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
election | SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party | Show the name of each party and the corresponding number of delegates from that party. | [
"SELECT",
"T2.Party",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"GROUP",
"BY",
"T1.Party"
] | [
"select",
"t2",
".",
"party",
",",
"count",
"(",
"*",
")",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party"
] | [
"Show",
"the",
"name",
"of",
"each",
"party",
"and",
"the",
"corresponding",
"number",
"of",
"delegates",
"from",
"that",
"party",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"each",
"<mask>",
"and",
"the",
"corresponding",
"number",
"of",
"<mask>",
"from",
"that",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
election | SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party | For each party, return the name of the party and the number of delegates from that party. | [
"SELECT",
"T2.Party",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"GROUP",
"BY",
"T1.Party"
] | [
"select",
"t2",
".",
"party",
",",
"count",
"(",
"*",
")",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party"
] | [
"For",
"each",
"party",
",",
"return",
"the",
"name",
"of",
"the",
"party",
"and",
"the",
"number",
"of",
"delegates",
"from",
"that",
"party",
"."
] | [
"For",
"each",
"<mask>",
",",
"return",
"the",
"<mask>",
"of",
"the",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"from",
"that",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
election | SELECT County_name FROM county ORDER BY Population ASC | Return the names of all counties sorted by population in ascending order. | [
"SELECT",
"County_name",
"FROM",
"county",
"ORDER",
"BY",
"Population",
"ASC"
] | [
"select",
"county_name",
"from",
"county",
"order",
"by",
"population",
"asc"
] | [
"Return",
"the",
"names",
"of",
"all",
"counties",
"sorted",
"by",
"population",
"in",
"ascending",
"order",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"all",
"<mask>",
"sorted",
"by",
"<mask>",
"in",
"ascending",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
election | SELECT County_name FROM county ORDER BY Population ASC | Sort the names of all counties in ascending order of population. | [
"SELECT",
"County_name",
"FROM",
"county",
"ORDER",
"BY",
"Population",
"ASC"
] | [
"select",
"county_name",
"from",
"county",
"order",
"by",
"population",
"asc"
] | [
"Sort",
"the",
"names",
"of",
"all",
"counties",
"in",
"ascending",
"order",
"of",
"population",
"."
] | [
"Sort",
"the",
"<mask>",
"of",
"all",
"<mask>",
"in",
"ascending",
"order",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
election | SELECT County_name FROM county ORDER BY County_name DESC | Return the names of all counties sorted by county name in descending alphabetical order. | [
"SELECT",
"County_name",
"FROM",
"county",
"ORDER",
"BY",
"County_name",
"DESC"
] | [
"select",
"county_name",
"from",
"county",
"order",
"by",
"county_name",
"desc"
] | [
"Return",
"the",
"names",
"of",
"all",
"counties",
"sorted",
"by",
"county",
"name",
"in",
"descending",
"alphabetical",
"order",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"all",
"<mask>",
"sorted",
"by",
"<mask>",
"<mask>",
"in",
"descending",
"alphabetical",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
election | SELECT County_name FROM county ORDER BY County_name DESC | Sort the names of all counties in descending alphabetical order. | [
"SELECT",
"County_name",
"FROM",
"county",
"ORDER",
"BY",
"County_name",
"DESC"
] | [
"select",
"county_name",
"from",
"county",
"order",
"by",
"county_name",
"desc"
] | [
"Sort",
"the",
"names",
"of",
"all",
"counties",
"in",
"descending",
"alphabetical",
"order",
"."
] | [
"Sort",
"the",
"<mask>",
"of",
"all",
"<mask>",
"in",
"descending",
"alphabetical",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
election | SELECT County_name FROM county ORDER BY Population DESC LIMIT 1 | Show the name of the county with the biggest population. | [
"SELECT",
"County_name",
"FROM",
"county",
"ORDER",
"BY",
"Population",
"DESC",
"LIMIT",
"1"
] | [
"select",
"county_name",
"from",
"county",
"order",
"by",
"population",
"desc",
"limit",
"value"
] | [
"Show",
"the",
"name",
"of",
"the",
"county",
"with",
"the",
"biggest",
"population",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"biggest",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
election | SELECT County_name FROM county ORDER BY Population DESC LIMIT 1 | Which county has the largest population? Give me the name of the county. | [
"SELECT",
"County_name",
"FROM",
"county",
"ORDER",
"BY",
"Population",
"DESC",
"LIMIT",
"1"
] | [
"select",
"county_name",
"from",
"county",
"order",
"by",
"population",
"desc",
"limit",
"value"
] | [
"Which",
"county",
"has",
"the",
"largest",
"population",
"?",
"Give",
"me",
"the",
"name",
"of",
"the",
"county",
"."
] | [
"Which",
"<mask>",
"has",
"the",
"largest",
"<mask>",
"?",
"Give",
"me",
"the",
"<mask>",
"of",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
election | SELECT County_name FROM county ORDER BY Population ASC LIMIT 3 | Show the 3 counties with the smallest population. | [
"SELECT",
"County_name",
"FROM",
"county",
"ORDER",
"BY",
"Population",
"ASC",
"LIMIT",
"3"
] | [
"select",
"county_name",
"from",
"county",
"order",
"by",
"population",
"asc",
"limit",
"value"
] | [
"Show",
"the",
"3",
"counties",
"with",
"the",
"smallest",
"population",
"."
] | [
"Show",
"the",
"<unk>",
"<mask>",
"with",
"the",
"smallest",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc",
"limit",
"<unk>"
] |
election | SELECT County_name FROM county ORDER BY Population ASC LIMIT 3 | What are the 3 counties that have the smallest population? Give me the county names. | [
"SELECT",
"County_name",
"FROM",
"county",
"ORDER",
"BY",
"Population",
"ASC",
"LIMIT",
"3"
] | [
"select",
"county_name",
"from",
"county",
"order",
"by",
"population",
"asc",
"limit",
"value"
] | [
"What",
"are",
"the",
"3",
"counties",
"that",
"have",
"the",
"smallest",
"population",
"?",
"Give",
"me",
"the",
"county",
"names",
"."
] | [
"What",
"are",
"the",
"<unk>",
"<mask>",
"that",
"have",
"the",
"smallest",
"<mask>",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc",
"limit",
"<unk>"
] |
election | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2 | Show the names of counties that have at least two delegates. | [
"SELECT",
"T1.County_name",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"GROUP",
"BY",
"T1.County_id",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"t1",
".",
"county_name",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"group",
"by",
"t1",
".",
"county_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"Show",
"the",
"names",
"of",
"counties",
"that",
"have",
"at",
"least",
"two",
"delegates",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"at",
"least",
"two",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
election | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2 | Which counties have two or more delegates? Give me the county names. | [
"SELECT",
"T1.County_name",
"FROM",
"county",
"AS",
"T1",
"JOIN",
"election",
"AS",
"T2",
"ON",
"T1.County_id",
"=",
"T2.District",
"GROUP",
"BY",
"T1.County_id",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"t1",
".",
"county_name",
"from",
"county",
"as",
"t1",
"join",
"election",
"as",
"t2",
"on",
"t1",
".",
"county_id",
"=",
"t2",
".",
"district",
"group",
"by",
"t1",
".",
"county_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"Which",
"counties",
"have",
"two",
"or",
"more",
"delegates",
"?",
"Give",
"me",
"the",
"county",
"names",
"."
] | [
"Which",
"<mask>",
"have",
"two",
"or",
"more",
"<mask>",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
election | SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2 | Show the name of the party that has at least two records. | [
"SELECT",
"Party",
"FROM",
"party",
"GROUP",
"BY",
"Party",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"party",
"from",
"party",
"group",
"by",
"party",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"Show",
"the",
"name",
"of",
"the",
"party",
"that",
"has",
"at",
"least",
"two",
"records",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"at",
"least",
"two",
"records",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<unk>"
] |
election | SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2 | Which party has two or more records? | [
"SELECT",
"Party",
"FROM",
"party",
"GROUP",
"BY",
"Party",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"party",
"from",
"party",
"group",
"by",
"party",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"Which",
"party",
"has",
"two",
"or",
"more",
"records",
"?"
] | [
"Which",
"<mask>",
"has",
"two",
"or",
"more",
"records",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<unk>"
] |
election | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1 | Show the name of the party that has the most delegates. | [
"SELECT",
"T2.Party",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"GROUP",
"BY",
"T1.Party",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"party",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Show",
"the",
"name",
"of",
"the",
"party",
"that",
"has",
"the",
"most",
"delegates",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"the",
"most",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
election | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1 | Which party has the largest number of delegates? | [
"SELECT",
"T2.Party",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"GROUP",
"BY",
"T1.Party",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"party",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"group",
"by",
"t1",
".",
"party",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"party",
"has",
"the",
"largest",
"number",
"of",
"delegates",
"?"
] | [
"Which",
"<mask>",
"has",
"the",
"largest",
"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",
"... |
election | SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1 | Show the people that have been governor the most times. | [
"SELECT",
"Governor",
"FROM",
"party",
"GROUP",
"BY",
"Governor",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"governor",
"from",
"party",
"group",
"by",
"governor",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Show",
"the",
"people",
"that",
"have",
"been",
"governor",
"the",
"most",
"times",
"."
] | [
"Show",
"the",
"people",
"that",
"have",
"been",
"<mask>",
"the",
"most",
"times",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
election | SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1 | Which people severed as governor most frequently? | [
"SELECT",
"Governor",
"FROM",
"party",
"GROUP",
"BY",
"Governor",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"governor",
"from",
"party",
"group",
"by",
"governor",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"people",
"severed",
"as",
"governor",
"most",
"frequently",
"?"
] | [
"Which",
"people",
"severed",
"as",
"<mask>",
"most",
"frequently",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
election | SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1 | Show the people that have been comptroller the most times and the corresponding number of times. | [
"SELECT",
"Comptroller",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"party",
"GROUP",
"BY",
"Comptroller",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"comptroller",
",",
"count",
"(",
"*",
")",
"from",
"party",
"group",
"by",
"comptroller",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Show",
"the",
"people",
"that",
"have",
"been",
"comptroller",
"the",
"most",
"times",
"and",
"the",
"corresponding",
"number",
"of",
"times",
"."
] | [
"Show",
"the",
"people",
"that",
"have",
"been",
"<mask>",
"the",
"most",
"times",
"and",
"the",
"corresponding",
"number",
"of",
"times",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
election | SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1 | Which people severed as comptroller most frequently? Give me the name of the person and the frequency count. | [
"SELECT",
"Comptroller",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"party",
"GROUP",
"BY",
"Comptroller",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"comptroller",
",",
"count",
"(",
"*",
")",
"from",
"party",
"group",
"by",
"comptroller",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"people",
"severed",
"as",
"comptroller",
"most",
"frequently",
"?",
"Give",
"me",
"the",
"name",
"of",
"the",
"person",
"and",
"the",
"frequency",
"count",
"."
] | [
"Which",
"people",
"severed",
"as",
"<mask>",
"most",
"frequently",
"?",
"Give",
"me",
"the",
"<mask>",
"of",
"the",
"person",
"and",
"the",
"frequency",
"count",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
election | SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election) | What are the names of parties that do not have delegates in election? | [
"SELECT",
"Party",
"FROM",
"party",
"WHERE",
"Party_ID",
"NOT",
"IN",
"(",
"SELECT",
"Party",
"FROM",
"election",
")"
] | [
"select",
"party",
"from",
"party",
"where",
"party_id",
"not",
"in",
"(",
"select",
"party",
"from",
"election",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"parties",
"that",
"do",
"not",
"have",
"delegates",
"in",
"election",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"that",
"do",
"not",
"have",
"<mask>",
"in",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
election | SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election) | Which parties did not have any delegates in elections? | [
"SELECT",
"Party",
"FROM",
"party",
"WHERE",
"Party_ID",
"NOT",
"IN",
"(",
"SELECT",
"Party",
"FROM",
"election",
")"
] | [
"select",
"party",
"from",
"party",
"where",
"party_id",
"not",
"in",
"(",
"select",
"party",
"from",
"election",
")"
] | [
"Which",
"parties",
"did",
"not",
"have",
"any",
"delegates",
"in",
"elections",
"?"
] | [
"Which",
"<mask>",
"did",
"not",
"have",
"any",
"<mask>",
"in",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
election | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters" | What are the names of parties that have both delegates on "Appropriations" committee and | [
"SELECT",
"T2.Party",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T1.Committee",
"=",
"``",
"Appropriations",
"''",
"INTERSECT",
"SELECT",
"T2.Party",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"par... | [
"select",
"t2",
".",
"party",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t1",
".",
"committee",
"=",
"value",
"intersect",
"select",
"t2",
".",
"party",
"from",
"election... | [
"What",
"are",
"the",
"names",
"of",
"parties",
"that",
"have",
"both",
"delegates",
"on",
"``",
"Appropriations",
"''",
"committee",
"and"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"both",
"<mask>",
"on",
"``",
"Appropriations",
"''",
"<mask>",
"and"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
election | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters" | Which parties have delegates in both the "Appropriations" committee and the "Economic Matters" committee? | [
"SELECT",
"T2.Party",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T1.Committee",
"=",
"``",
"Appropriations",
"''",
"INTERSECT",
"SELECT",
"T2.Party",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"par... | [
"select",
"t2",
".",
"party",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t1",
".",
"committee",
"=",
"value",
"intersect",
"select",
"t2",
".",
"party",
"from",
"election... | [
"Which",
"parties",
"have",
"delegates",
"in",
"both",
"the",
"``",
"Appropriations",
"''",
"committee",
"and",
"the",
"``",
"Economic",
"Matters",
"''",
"committee",
"?"
] | [
"Which",
"<mask>",
"have",
"<mask>",
"in",
"both",
"the",
"``",
"Appropriations",
"''",
"<mask>",
"and",
"the",
"``",
"Economic",
"Matters",
"''",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.