question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the traditional way to write the name of the district who's area is 2331?
CREATE TABLE table_1300525_1 (traditional VARCHAR, area VARCHAR)
SELECT traditional FROM table_1300525_1 WHERE area = 2331
What is the capital of the district who's simplified name is 信州区?
CREATE TABLE table_1300525_1 (pinyin VARCHAR, simplified VARCHAR)
SELECT COUNT(pinyin) FROM table_1300525_1 WHERE simplified = "信州区"
How many people live in the district who's capital is héngfēng xiàn?
CREATE TABLE table_1300525_1 (population VARCHAR, pinyin VARCHAR)
SELECT population FROM table_1300525_1 WHERE pinyin = "Héngfēng Xiàn"
What is the density of yushan county?
CREATE TABLE table_1300525_1 (density VARCHAR, english_name VARCHAR)
SELECT COUNT(density) FROM table_1300525_1 WHERE english_name = "Yushan County"
How many gold medals does the Choctawhatchee High School have?
CREATE TABLE table_1305623_12 (gold_medals INTEGER, ensemble VARCHAR)
SELECT MAX(gold_medals) FROM table_1305623_12 WHERE ensemble = "Choctawhatchee High School"
How many gold medals does each school who has a total of 1 medal have?
CREATE TABLE table_1305623_12 (gold_medals VARCHAR, total_medals VARCHAR)
SELECT gold_medals FROM table_1305623_12 WHERE total_medals = 1
What is the time for stage ss18?
CREATE TABLE table_13050822_2 (time VARCHAR, stage VARCHAR)
SELECT time FROM table_13050822_2 WHERE stage = "SS18"
Name the length for stage ss22
CREATE TABLE table_13050822_2 (length VARCHAR, stage VARCHAR)
SELECT length FROM table_13050822_2 WHERE stage = "SS22"
What is the number of leg for ss17
CREATE TABLE table_13050822_2 (leg VARCHAR, stage VARCHAR)
SELECT COUNT(leg) FROM table_13050822_2 WHERE stage = "SS17"
What is the leg for c. atkinson
CREATE TABLE table_13050822_2 (leg VARCHAR, rally_leader VARCHAR)
SELECT leg FROM table_13050822_2 WHERE rally_leader = "C. Atkinson"
What's the smallest number of bronze medals that any one if the ensembles has?
CREATE TABLE table_1305623_6 (bronze_medals INTEGER)
SELECT MIN(bronze_medals) FROM table_1305623_6
What is the rev of the 2003-2004 Mustang Cobra?
CREATE TABLE table_1310499_1 (rev VARCHAR, application VARCHAR)
SELECT rev FROM table_1310499_1 WHERE application = "2003-2004 Mustang Cobra"
What is the rev for all of the Aston Martin applications?
CREATE TABLE table_1310499_1 (rev VARCHAR, application VARCHAR)
SELECT rev FROM table_1310499_1 WHERE application = "Aston Martin"
What is the 3rd ratio for tag number 1386-000-017 and input splines of 26?
CREATE TABLE table_1310499_1 (input_splines VARCHAR, tag_id VARCHAR)
SELECT 3 AS rd FROM table_1310499_1 WHERE input_splines = 26 AND tag_id = "1386-000-017"
What is the 2nd ratio of 1996-2002 Dodge Viper?
CREATE TABLE table_1310499_1 (application VARCHAR)
SELECT 2 AS nd FROM table_1310499_1 WHERE application = "1996-2002 Dodge Viper"
Whose address of operation was the Echirax Concession?
CREATE TABLE table_13150274_1 (client VARCHAR, area_of_operation VARCHAR)
SELECT client FROM table_13150274_1 WHERE area_of_operation = "EchiraX Concession"
When was the operation in Field 103 executed?
CREATE TABLE table_13150274_1 (years_of_operation VARCHAR, area_of_operation VARCHAR)
SELECT years_of_operation FROM table_13150274_1 WHERE area_of_operation = "Field 103"
In what country is the El Hamada area of operation?
CREATE TABLE table_13150274_1 (country VARCHAR, area_of_operation VARCHAR)
SELECT country FROM table_13150274_1 WHERE area_of_operation = "El Hamada"
What is the total number for 3rd place for ducati xerox?
CREATE TABLE table_13196576_2 (team VARCHAR)
SELECT COUNT(3 AS rd_pl) FROM table_13196576_2 WHERE team = "Ducati Xerox"
Who is J.E. Armstrong when W.H. Archer is D.M. Lawson?
CREATE TABLE table_1320857_1 (je_armstrong VARCHAR, wh_archer VARCHAR)
SELECT je_armstrong FROM table_1320857_1 WHERE wh_archer = "D.M. Lawson"
What are the fa.brill when w.h. archer is known as r. newman?
CREATE TABLE table_1320857_1 (fa_brill VARCHAR, wh_archer VARCHAR)
SELECT fa_brill FROM table_1320857_1 WHERE wh_archer = "R. Newman"
Who is h.l birkett if w.h. archer is r. cochrane?
CREATE TABLE table_1320857_1 (hl_birkett VARCHAR, wh_archer VARCHAR)
SELECT hl_birkett FROM table_1320857_1 WHERE wh_archer = "R. Cochrane"
Who is h.t. brewer when j.e. armstrong is a.j. wilson?
CREATE TABLE table_1320857_1 (ht_brewer VARCHAR, je_armstrong VARCHAR)
SELECT ht_brewer FROM table_1320857_1 WHERE je_armstrong = "A.J. Wilson"
Who is h.t. brewer when je armstrong is c.p. greeks?
CREATE TABLE table_1320857_1 (ht_brewer VARCHAR, je_armstrong VARCHAR)
SELECT ht_brewer FROM table_1320857_1 WHERE je_armstrong = "C.P. Greeks"
What was the air date of part 2 of the episode whose part 1 was aired on January 31, 2008?
CREATE TABLE table_13241993_3 (part_2 VARCHAR, part_1 VARCHAR)
SELECT part_2 FROM table_13241993_3 WHERE part_1 = "January 31, 2008"
What's the name of the episode whose part 3 aired on February 7, 2008?
CREATE TABLE table_13241993_3 (title VARCHAR, part_3 VARCHAR)
SELECT title FROM table_13241993_3 WHERE part_3 = "February 7, 2008"
What's the air date of part 1 of the episode whose part 2 aired on December 2, 2007?
CREATE TABLE table_13241993_3 (part_1 VARCHAR, part_2 VARCHAR)
SELECT part_1 FROM table_13241993_3 WHERE part_2 = "December 2, 2007"
How many part 6 parts are there in the episode number 5?
CREATE TABLE table_13241993_3 (part_6 VARCHAR, episode__number VARCHAR)
SELECT COUNT(part_6) FROM table_13241993_3 WHERE episode__number = 5
Name the record with opponent atlanta falcons
CREATE TABLE table_13258823_2 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_13258823_2 WHERE opponent = "Atlanta Falcons"
Name the number of opponent with arrowhead stadium
CREATE TABLE table_13258823_2 (opponent VARCHAR, game_site VARCHAR)
SELECT COUNT(opponent) FROM table_13258823_2 WHERE game_site = "Arrowhead Stadium"
Name the date with the record of 1-0
CREATE TABLE table_13258823_2 (date VARCHAR, record VARCHAR)
SELECT date FROM table_13258823_2 WHERE record = "1-0"
Name the record for september 15, 1985
CREATE TABLE table_13258823_2 (record VARCHAR, date VARCHAR)
SELECT record FROM table_13258823_2 WHERE date = "September 15, 1985"
What's the series number of the episode that's written by Elizabeth Devine?
CREATE TABLE table_13273629_2 (no_in_series INTEGER, written_by VARCHAR)
SELECT MIN(no_in_series) FROM table_13273629_2 WHERE written_by = "Elizabeth Devine"
When was the episode directed by Carey Meyer aired for the first time?
CREATE TABLE table_13273629_2 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT original_air_date FROM table_13273629_2 WHERE directed_by = "Carey Meyer"
who is the the office with incumbent being ramon r. jimenez, jr.
CREATE TABLE table_1331313_1 (office VARCHAR, incumbent VARCHAR)
SELECT office FROM table_1331313_1 WHERE incumbent = "Ramon R. Jimenez, Jr."
how many office with department being department of justice kagawaran ng katarungan
CREATE TABLE table_1331313_1 (office VARCHAR, department VARCHAR)
SELECT COUNT(office) FROM table_1331313_1 WHERE department = "department of Justice Kagawaran ng Katarungan"
what's the department with acronym being deped (ked)
CREATE TABLE table_1331313_1 (department VARCHAR, acronym VARCHAR)
SELECT department FROM table_1331313_1 WHERE acronym = "DepEd (KEd)"
what's the department with incumbent being enrique ona
CREATE TABLE table_1331313_1 (department VARCHAR, incumbent VARCHAR)
SELECT department FROM table_1331313_1 WHERE incumbent = "Enrique Ona"
what's the acronym with department being department of finance kagawaran ng pananalapi
CREATE TABLE table_1331313_1 (acronym VARCHAR, department VARCHAR)
SELECT acronym FROM table_1331313_1 WHERE department = "department of Finance Kagawaran ng Pananalapi"
What's the season number of the episode watched by 0.57 million US viewers?
CREATE TABLE table_13336122_7 (no_in_season INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(no_in_season) FROM table_13336122_7 WHERE us_viewers__million_ = "0.57"
How many episodes were seen by 0.67 million US viewers on their original air dates?
CREATE TABLE table_13336122_7 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(original_air_date) FROM table_13336122_7 WHERE us_viewers__million_ = "0.67"
What episode was directed by David Duchovny?
CREATE TABLE table_13336122_7 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_13336122_7 WHERE directed_by = "David Duchovny"
How much is the purse ( $ ) when the margin of victory is 1 stroke?
CREATE TABLE table_13388681_1 (purse___$__ VARCHAR, margin_of_victory VARCHAR)
SELECT purse___$__ FROM table_13388681_1 WHERE margin_of_victory = "1 stroke"
What is the number of "to par" in Mexico with a winning score of 67-67-69-70=273?
CREATE TABLE table_13388681_1 (to_par VARCHAR, country VARCHAR, winning_score VARCHAR)
SELECT to_par FROM table_13388681_1 WHERE country = "Mexico" AND winning_score = 67 - 67 - 69 - 70 = 273
what's the 3rd day with finbeingh position being 16th
CREATE TABLE table_1340667_3 (finish_position VARCHAR)
SELECT 3 AS rd_day FROM table_1340667_3 WHERE finish_position = "16th"
what are all the result for New York 6 district
CREATE TABLE table_1341395_33 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341395_33 WHERE district = "New York 6"
Who were the candidates when gregory w. meeks was the incumbent
CREATE TABLE table_1341395_33 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341395_33 WHERE incumbent = "Gregory W. Meeks"
what are all the result for New York 16 district
CREATE TABLE table_1341395_33 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341395_33 WHERE district = "New York 16"
what are all the result for New York 7 district
CREATE TABLE table_1341395_33 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341395_33 WHERE district = "New York 7"
What party was Kevin Brady?
CREATE TABLE table_1341395_44 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341395_44 WHERE incumbent = "Kevin Brady"
What district has Ron Paul?
CREATE TABLE table_1341395_44 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341395_44 WHERE incumbent = "Ron Paul"
What party does jim ramstad represent?
CREATE TABLE table_1341423_23 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341423_23 WHERE incumbent = "Jim Ramstad"
What year was incumbent jim ramstad first elected?
CREATE TABLE table_1341423_23 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341423_23 WHERE incumbent = "Jim Ramstad"
What was the result when incumbent gil gutknecht ran?
CREATE TABLE table_1341423_23 (results VARCHAR, incumbent VARCHAR)
SELECT results FROM table_1341423_23 WHERE incumbent = "Gil Gutknecht"
When was the incumbent Sherrod Brown first elected?
CREATE TABLE table_1341453_37 (first_elected INTEGER, incumbent VARCHAR)
SELECT MAX(first_elected) FROM table_1341453_37 WHERE incumbent = "Sherrod Brown"
What was the result of the election in which the incumbent was first elected in 1984?
CREATE TABLE table_1341453_37 (results VARCHAR, first_elected VARCHAR)
SELECT results FROM table_1341453_37 WHERE first_elected = 1984
Which incumbent was first elected in 1972?
CREATE TABLE table_1341453_37 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1341453_37 WHERE first_elected = 1972
Tony P. Hall was the incumbent in the race between what two candidates?
CREATE TABLE table_1341453_37 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341453_37 WHERE incumbent = "Tony P. Hall"
In which district is the incumbent Marcia C. Kaptur?
CREATE TABLE table_1341453_37 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341453_37 WHERE incumbent = "Marcia C. Kaptur"
What is the earliest year where the result of the election was a retired republican hold?
CREATE TABLE table_1341472_40 (first_elected INTEGER, result VARCHAR)
SELECT MIN(first_elected) FROM table_1341472_40 WHERE result = "Retired Republican hold"
What party is thomas foglietta from?
CREATE TABLE table_1341472_40 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341472_40 WHERE incumbent = "Thomas Foglietta"
who is the the opponent with district being ohio12
CREATE TABLE table_1341522_38 (opponent VARCHAR, district VARCHAR)
SELECT opponent FROM table_1341522_38 WHERE district = "Ohio12"
what's the party with opponent being mike oxley (r) unopposed
CREATE TABLE table_1341522_38 (party VARCHAR, opponent VARCHAR)
SELECT party FROM table_1341522_38 WHERE opponent = "Mike Oxley (R) unopposed"
what's the party with opponent being marcy kaptur (d) 75.3% randy whitman (r) 24.7%
CREATE TABLE table_1341522_38 (party VARCHAR, opponent VARCHAR)
SELECT party FROM table_1341522_38 WHERE opponent = "Marcy Kaptur (D) 75.3% Randy Whitman (R) 24.7%"
what's the party with opponent being deborah pryce (r) 70.7% bill buckel (d) 29.1%
CREATE TABLE table_1341522_38 (party VARCHAR, opponent VARCHAR)
SELECT party FROM table_1341522_38 WHERE opponent = "Deborah Pryce (R) 70.7% Bill Buckel (D) 29.1%"
how many status with first elected being 1968
CREATE TABLE table_1341522_38 (status VARCHAR, first_elected VARCHAR)
SELECT COUNT(status) FROM table_1341522_38 WHERE first_elected = 1968
what's the first elected with opponent being ralph regula (r) 75.0% j. michael finn (d) 25.0%
CREATE TABLE table_1341522_38 (first_elected VARCHAR, opponent VARCHAR)
SELECT first_elected FROM table_1341522_38 WHERE opponent = "Ralph Regula (R) 75.0% J. Michael Finn (D) 25.0%"
What district first elected in 1978?
CREATE TABLE table_1341472_51 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1341472_51 WHERE first_elected = 1978
What district was incumbent Jerry Kleczka in?
CREATE TABLE table_1341472_51 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341472_51 WHERE incumbent = "Jerry Kleczka"
How many districts had results related to incumbent Toby Roth?
CREATE TABLE table_1341472_51 (result VARCHAR, incumbent VARCHAR)
SELECT COUNT(result) FROM table_1341472_51 WHERE incumbent = "Toby Roth"
Who were the candidates in district Wisconsin 1?
CREATE TABLE table_1341472_51 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341472_51 WHERE district = "Wisconsin 1"
Name the district of lawrence j. smith
CREATE TABLE table_1341549_10 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341549_10 WHERE incumbent = "Lawrence J. Smith"
Name the incumbent for 1954
CREATE TABLE table_1341549_10 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1341549_10 WHERE first_elected = "1954"
What party was Lane Evans?
CREATE TABLE table_1341568_14 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341568_14 WHERE incumbent = "Lane Evans"
What district had elections in 1964?
CREATE TABLE table_1341568_14 (district VARCHAR, elected VARCHAR)
SELECT district FROM table_1341568_14 WHERE elected = 1964
Who was Henry Hyde's opponent in the race?
CREATE TABLE table_1341568_14 (opponent VARCHAR, incumbent VARCHAR)
SELECT opponent FROM table_1341568_14 WHERE incumbent = "Henry Hyde"
What Republican incumbent was elected in 1974?
CREATE TABLE table_1341568_14 (incumbent VARCHAR, elected VARCHAR, party VARCHAR)
SELECT incumbent FROM table_1341568_14 WHERE elected = 1974 AND party = "Republican"
what's party with result being retired to run for u. s. senate republican hold
CREATE TABLE table_1341577_10 (party VARCHAR, result VARCHAR)
SELECT party FROM table_1341577_10 WHERE result = "Retired to run for U. S. Senate Republican hold"
what's result with incumbent being connie mack
CREATE TABLE table_1341577_10 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341577_10 WHERE incumbent = "Connie Mack"
what's district with candidates being lawrence j. smith (d) 69.4% joseph smith (r) 30.6%
CREATE TABLE table_1341577_10 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_1341577_10 WHERE candidates = "Lawrence J. Smith (D) 69.4% Joseph Smith (R) 30.6%"
what's incumbent with district being florida 5
CREATE TABLE table_1341577_10 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341577_10 WHERE district = "Florida 5"
what's result of first elected being 1980
CREATE TABLE table_1341577_10 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1341577_10 WHERE first_elected = 1980
How many parties is Tom Foley a member of?
CREATE TABLE table_1341568_48 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_1341568_48 WHERE incumbent = "Tom Foley"
What was the result of the election in the district whose incumbent is Tom Foley?
CREATE TABLE table_1341568_48 (status VARCHAR, incumbent VARCHAR)
SELECT status FROM table_1341568_48 WHERE incumbent = "Tom Foley"
How many results have the two candidates Gene Taylor (r) 67.0% Ken Young (d) 33.0%?
CREATE TABLE table_1341586_26 (result VARCHAR, candidates VARCHAR)
SELECT COUNT(result) FROM table_1341586_26 WHERE candidates = "Gene Taylor (R) 67.0% Ken Young (D) 33.0%"
Which candidates are from the Missouri 3 district?
CREATE TABLE table_1341586_26 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341586_26 WHERE district = "Missouri 3"
What is the result for barney frank?
CREATE TABLE table_1341598_22 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341598_22 WHERE incumbent = "Barney Frank"
What is the number of results for james shannon?
CREATE TABLE table_1341598_22 (result VARCHAR, incumbent VARCHAR)
SELECT COUNT(result) FROM table_1341598_22 WHERE incumbent = "James Shannon"
What is the minimum first elected for ed markey?
CREATE TABLE table_1341598_22 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341598_22 WHERE incumbent = "Ed Markey"
What was the result of the election featuring ike skelton?
CREATE TABLE table_1341604_26 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341604_26 WHERE incumbent = "Ike Skelton"
What district is incumbent ike skelton from?
CREATE TABLE table_1341604_26 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341604_26 WHERE incumbent = "Ike Skelton"
What year was ike skelton first elected?
CREATE TABLE table_1341604_26 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341604_26 WHERE incumbent = "Ike Skelton"
what is the district where the result is re-elected and the incumbent is richard kelly?
CREATE TABLE table_1341663_10 (district VARCHAR, result VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341663_10 WHERE result = "Re-elected" AND incumbent = "Richard Kelly"
what is the district where the candidates are charles edward bennett (d) unopposed?
CREATE TABLE table_1341663_10 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_1341663_10 WHERE candidates = "Charles Edward Bennett (D) Unopposed"
who are the candidates where the incumbent is sam m. gibbons?
CREATE TABLE table_1341663_10 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341663_10 WHERE incumbent = "Sam M. Gibbons"
how many times was the candidates dan mica (d) 55.3% bill james (r) 44.7%?
CREATE TABLE table_1341663_10 (incumbent VARCHAR, candidates VARCHAR)
SELECT COUNT(incumbent) FROM table_1341663_10 WHERE candidates = "Dan Mica (D) 55.3% Bill James (R) 44.7%"
what was the result where the candidates are sam m. gibbons (d) unopposed?
CREATE TABLE table_1341663_10 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_1341663_10 WHERE candidates = "Sam M. Gibbons (D) Unopposed"
who is the incumbent where the district is florida 9?
CREATE TABLE table_1341663_10 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341663_10 WHERE district = "Florida 9"
What is Phil Crane, democrat or republican
CREATE TABLE table_1341663_14 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341663_14 WHERE incumbent = "Phil Crane"
What year was Frank Annunzio elected
CREATE TABLE table_1341663_14 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341663_14 WHERE incumbent = "Frank Annunzio"