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