text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What is the incumbent for 1974? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1974;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: To what party does Cardiss Collins belong? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Cardiss Collins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who was the candidate in the Virginia 3 district election? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the result of the election in the Virginia 3 district? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who were the candidates when Lamar S. Smith was incumbent? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Lamar S. Smith';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What party did Beau Boulter represent? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Beau Boulter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who were the candidates when Jack Fields was the incumbent? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Jack Fields';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the final result for Les Aspin? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Les Aspin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who were the candidates that ran when Jim Moody was up for reelection after 1982? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1982;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: In the district called Tennessee 6, how many in total of first elected are there? <|assistant|> SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Which party is associated with the person who was first elected in 1982? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1982;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many candidates are listed all together for the incumbent named bob clement? <|assistant|> SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Bob Clement';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the results for the candidates listed as bart gordon (d) 76.5% wallace embry (r) 23.5%? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Bart Gordon (D) 76.5% Wallace Embry (R) 23.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who is the incumbent that is listed with the candidates listed as marilyn lloyd (d) 57.4% harold w. coker (r) 42.6%? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Marilyn Lloyd (D) 57.4% Harold W. Coker (R) 42.6%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: In what district would you find the candidates listed as jim cooper (d) unopposed? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Jim Cooper (D) Unopposed';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: who is the incumbent with candidates being bud shuster (r) unopposed <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Bud Shuster (R) Unopposed';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: who is the incumbent with candidates being tom ridge (r) 80.9% joylyn blackwell (d) 19.1% <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what's district with candidates being curt weldon (r) 61.3% bill spingler (d) 38.7% <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Curt Weldon (R) 61.3% Bill Spingler (D) 38.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what's party with district being pennsylvania 21 <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what is the maximum first elected with incumbent being gus yatron <|assistant|> SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Gus Yatron';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what's the district with first elected being 1972 <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1972;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: how many district with incumbent being lindy boggs <|assistant|> SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Lindy Boggs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what's the result with candidates being billy tauzin (d) unopposed <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Billy Tauzin (D) Unopposed';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: how many candidates with result being retired to run for u. s. senate republican hold <|assistant|> SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "result"='Retired to run for U. S. Senate Republican hold';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what's the result with district being louisiana 2 <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: who is the the candidates with first elected being 1977 <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1977;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What happened to the incombent who was elected in 1980? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1980;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How did the election end for Terry L. Bruce? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Terry L. Bruce';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What party was Tony P. Hall affiliated with? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Tony P. Hall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Name number first elected for tennessee 2? <|assistant|> SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Name the candidates in 1964 <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1964;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many districts have Mac Sweeney as incumbent? <|assistant|> SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Mac Sweeney';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who are all the candidates vying for Henry B. Gonzalez' seat? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Henry B. Gonzalez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Name all the candidates vying for Albert Bustamante's seat. <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Albert Bustamante';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: In what district was the incumbent Michael Bilirakis? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Michael Bilirakis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who is the candidate in election where the incumbent was first elected in 1980? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1980;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What party does incumbent Charles Edward Bennett belong to? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Charles Edward Bennett';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the result of the election in the Florida 18 district? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Florida 18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: In what district is the incumbent Lawrence J. Smith? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Lawrence J. Smith';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: where is the district where the incumbent is del latta? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Del Latta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what is the party for district ohio 11? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: who were the candidates for district ohio 6? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What is the party for District Georgia 9? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Georgia 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Which district shows a first elected of 1980? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1980;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What is the party for the incumbent Wyche Fowler? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Wyche Fowler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who are shown as candidates when George Darden is the incumbent? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='George Darden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What district has Dan Crane as incumbent? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Dan Crane';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: In which district is Robert W. Edgar the incumbent? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert W. Edgar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: To which party does Robert W. Edgar belong? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert W. Edgar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What district is incumbent jack hightower from? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Jack Hightower';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What year were the election results tom loeffler (r) 80.6% joe sullivan (d) 19.4%? <|assistant|> SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Tom Loeffler (R) 80.6% Joe Sullivan (D) 19.4%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What incumbent won the district of texas 22? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who's the incumbent of the Louisiana 1 district? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who were the candidates in the Louisiana 4 district? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who's the incumbent in the district first elected in 1976? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1976;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341604_22" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what's the incumbent with district being massachusetts 2 <|assistant|> SELECT "incumbent" FROM "table1_1341604_22" WHERE "district"='Massachusetts 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341604_22" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what's the party with candidates being silvio conte (r) unopposed <|assistant|> SELECT "party" FROM "table1_1341604_22" WHERE "candidates"='Silvio Conte (R) Unopposed';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341604_22" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what's the first elected with incumbent being joseph d. early <|assistant|> SELECT "first_elected" FROM "table1_1341604_22" WHERE "incumbent"='Joseph D. Early';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341604_22" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: who is the the incumbent with dbeingtrict being massachusetts 2 <|assistant|> SELECT "incumbent" FROM "table1_1341604_22" WHERE "district"='Massachusetts 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341604_22" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: what's the party with dbeingtrict being massachusetts 3 <|assistant|> SELECT "party" FROM "table1_1341604_22" WHERE "district"='Massachusetts 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341604_39" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many candidates won the election in the district whose incumbent is Bud Shuster? <|assistant|> SELECT COUNT("candidates") FROM "table1_1341604_39" WHERE "incumbent"='Bud Shuster';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341604_39" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What are the candidates in the district whose incumbent is Gus Yatron? <|assistant|> SELECT "candidates" FROM "table1_1341604_39" WHERE "incumbent"='Gus Yatron';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341604_39" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What's the winning party in the Pennsylvania 6 district? <|assistant|> SELECT "party" FROM "table1_1341604_39" WHERE "district"='Pennsylvania 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What candidate is a member of the Republican party? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "party"='Republican';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What district is Ray Musto the incumbent of? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ray Musto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many parties does the incumbent Donald A. Bailey a member of? <|assistant|> SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Donald A. Bailey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the outcome of the election in Pennsylvania 6 district? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Where was Al Gore elected <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Al Gore';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Election results of 1976 <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1976;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the incumbent for missouri 1? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Missouri 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the result of the election when someone was first elected in 1960? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1960;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What year was incumbent phil crane first elected? <|assistant|> SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Phil Crane';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What candidates were featured in the 1974 election? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1974;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What year was Jerry Huckaby first elected? <|assistant|> SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Jerry Huckaby';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What other cadidate ran against Dave Treen? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Dave Treen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What year was the earliest first elected? <|assistant|> SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What district did Dave Treen serve? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Dave Treen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many sitting politicians were originally elected in 1972? <|assistant|> SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1972;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: In the Georgia 6 district, what is the elected party? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Georgia 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: In the race involving Billy Lee Evans as the seated Representative, was he elected again? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Billy Lee Evans';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Which district has Ronald "bo" Ginn as the seated Representative? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ronald \"Bo\" Ginn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many parties are there in races involving Dawson Mathis? <|assistant|> SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Dawson Mathis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Which district is republican? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "party"='Republican';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Name the result when the incumbent was george h. mahon <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='George H. Mahon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the incumbent of texas 3? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the incumbent for texas 19? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Which district has candidates is dick gephardt (d) 81.9% lee buchschacher (r) 18.1%? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What is the result for the district missouri 2? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Missouri 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: When was the first elected for district missouri 7? <|assistant|> SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Missouri 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: When was the earliest first election? <|assistant|> SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many times was the candidates dick gephardt (d) 81.9% lee buchschacher (r) 18.1%? <|assistant|> SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341663_33" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What district did S. William Green belong to? <|assistant|> SELECT "district" FROM "table1_1341663_33" WHERE "incumbent"='S. William Green';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341663_33" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What district did the Democratic party incumbent Stephen J. Solarz get first elected to in 1974? <|assistant|> SELECT "district" FROM "table1_1341663_33" WHERE "party"='Democratic' AND "first_elected"=1974 AND "incumbent"='Stephen J. Solarz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341663_33" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: When was Stephen J. Solarz first elected? <|assistant|> SELECT MIN("first_elected") FROM "table1_1341663_33" WHERE "incumbent"='Stephen J. Solarz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341663_33" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who were the candidates when Shirley Chisholm was the incumbent? <|assistant|> SELECT "candidates" FROM "table1_1341663_33" WHERE "incumbent"='Shirley Chisholm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341663_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What is the district that has Bob Wilson as an incumbent? <|assistant|> SELECT "district" FROM "table1_1341663_6" WHERE "incumbent"='Bob Wilson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341663_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many outcomes were there in the elections in California 38? <|assistant|> SELECT COUNT("result") FROM "table1_1341663_6" WHERE "district"='California 38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341663_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What district is Charles H. Wilson the incumbent of? <|assistant|> SELECT "district" FROM "table1_1341663_6" WHERE "incumbent"='Charles H. Wilson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341663_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What party was the winning one in the elections in the California 30 district? <|assistant|> SELECT "party" FROM "table1_1341663_6" WHERE "district"='California 30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many times did an election feature the result robert l. leggett (d) 50.2% albert dehr (r) 49.8%? <|assistant|> SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Robert L. Leggett (D) 50.2% Albert Dehr (R) 49.8%';<|endoftext|>