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