text
stringlengths
411
1.74k
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "status" text, "opponent" text );. Question: "who is the the opponent with district being ohio12". [/INST] SELECT "opponent" FROM "ohio" WHERE "district"='Ohio12';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "status" text, "opponent" text );. Question: "what's the party with opponent being mike oxley (r) unopposed". [/INST] SELECT "party" FROM "ohio" WHERE "opponent"='Mike Oxley (R) unopposed';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "status" text, "opponent" text );. Question: "what's the party with opponent being marcy kaptur (d) 75.3% randy whitman (r) 24.7%". [/INST] SELECT "party" FROM "ohio" WHERE "opponent"='Marcy Kaptur (D) 75.3% Randy Whitman (R) 24.7%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "status" text, "opponent" text );. Question: "what's the party with opponent being deborah pryce (r) 70.7% bill buckel (d) 29.1%". [/INST] SELECT "party" FROM "ohio" WHERE "opponent"='Deborah Pryce (R) 70.7% Bill Buckel (D) 29.1%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "status" text, "opponent" text );. Question: " how many status with first elected being 1968". [/INST] SELECT COUNT("status") FROM "ohio" WHERE "first_elected"=1968;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "status" text, "opponent" text );. 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 "ohio" WHERE "opponent"='Ralph Regula (R) 75.0% J. Michael Finn (D) 25.0%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wisconsin" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What district first elected in 1978?". [/INST] SELECT "district" FROM "wisconsin" WHERE "first_elected"=1978;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wisconsin" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What district was incumbent Jerry Kleczka in?". [/INST] SELECT "district" FROM "wisconsin" WHERE "incumbent"='Jerry Kleczka';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wisconsin" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "How many districts had results related to incumbent Toby Roth?". [/INST] SELECT COUNT("result") FROM "wisconsin" WHERE "incumbent"='Toby Roth';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wisconsin" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Who were the candidates in district Wisconsin 1?". [/INST] SELECT "candidates" FROM "wisconsin" WHERE "district"='Wisconsin 1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "florida" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the district of lawrence j. smith". [/INST] SELECT "district" FROM "florida" WHERE "incumbent"='Lawrence J. Smith';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "florida" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the incumbent for 1954". [/INST] SELECT "incumbent" FROM "florida" WHERE "first_elected"='1954';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "illinois" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "opponent" text );. Question: "What party was Lane Evans?". [/INST] SELECT "party" FROM "illinois" WHERE "incumbent"='Lane Evans';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "illinois" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "opponent" text );. Question: "What district had elections in 1964?". [/INST] SELECT "district" FROM "illinois" WHERE "elected"=1964;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "illinois" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "opponent" text );. Question: "Who was Henry Hyde's opponent in the race?". [/INST] SELECT "opponent" FROM "illinois" WHERE "incumbent"='Henry Hyde';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "illinois" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "opponent" text );. Question: "What Republican incumbent was elected in 1974?". [/INST] SELECT "incumbent" FROM "illinois" WHERE "elected"=1974 AND "party"='Republican';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 result being retired to run for u. s. senate republican hold". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "result"='Retired to run for U. S. Senate Republican hold';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "what's result with incumbent being connie mack". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Connie Mack';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 lawrence j. smith (d) 69.4% joseph smith (r) 30.6%". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Lawrence J. Smith (D) 69.4% Joseph Smith (R) 30.6%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "what's incumbent with district being florida 5". [/INST] SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Florida 5';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "what's result of first elected being 1980". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1980;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "opponent" text );. Question: "How many parties is Tom Foley a member of?". [/INST] SELECT COUNT("party") FROM "washington" WHERE "incumbent"='Tom Foley';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "opponent" text );. Question: "What was the result of the election in the district whose incumbent is Tom Foley?". [/INST] SELECT "status" FROM "washington" WHERE "incumbent"='Tom Foley';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "How many results have the two candidates Gene Taylor (r) 67.0% Ken Young (d) 33.0%?". [/INST] SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Gene Taylor (R) 67.0% Ken Young (D) 33.0%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Which candidates are from the Missouri 3 district?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Missouri 3';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 barney frank?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Barney Frank';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 number of results for james shannon?". [/INST] SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James Shannon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 minimum first elected for ed markey?". [/INST] SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ed Markey';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 featuring ike skelton?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ike Skelton';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 ike skelton from?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ike Skelton';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 ike skelton first elected?". [/INST] SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ike Skelton';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 district where the result is re-elected and the incumbent is richard kelly?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "incumbent"='Richard Kelly';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 district where the candidates are charles edward bennett (d) unopposed?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Charles Edward Bennett (D) Unopposed';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "who are the candidates where the incumbent is sam m. gibbons?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Sam M. Gibbons';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 dan mica (d) 55.3% bill james (r) 44.7%?". [/INST] SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Dan Mica (D) 55.3% Bill James (R) 44.7%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 where the candidates are sam m. gibbons (d) unopposed?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Sam M. Gibbons (D) Unopposed';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 where the district is florida 9?". [/INST] SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Florida 9';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What is Phil Crane, democrat or republican ". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Phil Crane';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 Frank Annunzio elected". [/INST] SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank Annunzio';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 does Ed Jones represent?". [/INST] SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ed Jones';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 year of the first election of the district whose incumbent is Edwin E. Willis?". [/INST] SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edwin E. Willis';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 F. Edward Hebert the incumbent in?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='F. Edward Hebert';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 district whose incumbent is Joe Waggonner?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joe Waggonner';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 that Otto Passman is the incumbent of?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Otto Passman';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 district that has a republican?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "party"='Republican';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What party is incumbent thomas j. lane from?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Thomas J. Lane';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 last year that someone is first elected in this table?". [/INST] SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: " how many party with candidates being alton lennon (d) 89.0% c. dana malpass (r) 11.0%". [/INST] SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Alton Lennon (D) 89.0% C. Dana Malpass (R) 11.0%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: " how many first elected with district being north carolina 2". [/INST] SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='North Carolina 2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 incumbent with district being north carolina 6". [/INST] SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='North Carolina 6';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 party with incumbent being herbert covington bonner". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Herbert Covington Bonner';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 incumbent being lawrence h. fountain". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Lawrence H. Fountain';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 candidates with party being democratic and dbeingtrict being north carolina 1". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "party"='Democratic' AND "district"='North Carolina 1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 of incumbent john shelley?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Shelley';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What candidates ran in the election that included john shelley?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Shelley';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 of the incumbent clyde doyle?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clyde Doyle';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 california 2?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='California 2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 of the incumbent harry r. sheppard?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Harry R. Sheppard';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1342013_31" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What party did Frank J. Becker represent?". [/INST] SELECT "party" FROM "table1_1342013_31" WHERE "incumbent"='Frank J. Becker';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1342013_31" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What number of party had a candidate resigned when appointed judge democratic hold?". [/INST] SELECT COUNT("party") FROM "table1_1342013_31" WHERE "result"='Resigned when appointed judge Democratic hold';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1342013_31" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What district did incumbent Ralph A. Gamble represent?". [/INST] SELECT "district" FROM "table1_1342013_31" WHERE "incumbent"='Ralph A. Gamble';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 candidate in the election of percy priest (d) 90.8% robert m. donihi (r) 9.2%?". [/INST] SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Percy Priest (D) 90.8% Robert M. Donihi (R) 9.2%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 tom j. murray from?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Tom J. Murray';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 in the election when james patrick sutton was incumbent?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James Patrick Sutton';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 Albert Rains as their representative?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Albert Rains';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Carl Elliott is a member of which party?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl Elliott';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "How many were first elected when the incumbent was Morgan M. Moulder?". [/INST] SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Morgan M. Moulder';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "In what year was Phil J. Welch first elected?". [/INST] SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Phil J. Welch';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 Dewey Short associated with?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Dewey Short';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 Dewey Short associated with?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Dewey Short';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 district with Republican party in place?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "party"='Republican';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Who ran for office in the Alabama 1 district?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 first elected william m. wheeler (d) unopposed?". [/INST] SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "candidates"='William M. Wheeler (D) Unopposed';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What district does incumbent james c. davis represent?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James C. Davis';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 melvin price from?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Melvin Price';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 sid simpson from?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Sid Simpson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 election in the Tennessee 9 district? ". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 9';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 Tennessee 3 district incumbent first elected? ". [/INST] SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 3';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "What district was Harold Earthman the incumbent in? ". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Harold Earthman';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1342249_32" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the result for new york 1". [/INST] SELECT "result" FROM "table1_1342249_32" WHERE "district"='New York 1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1342249_32" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the first elected for lost renomination democratic loss". [/INST] SELECT "first_elected" FROM "table1_1342249_32" WHERE "result"='Lost renomination Democratic loss';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "How many results have Jere Cooper as incumbent?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Jere Cooper';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1342256_13" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Who won the election of 1942 in the district Illinois 13?". [/INST] SELECT "incumbent" FROM "table1_1342256_13" WHERE "district"='Illinois 13';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Who ran for the House in the 1924 election?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1924;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 Stephen Pace elected?". [/INST] SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Stephen Pace';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "How many incumbents were elected in the 1926 election?". [/INST] SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1926;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 Noble Jones Gregory was incumbent?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Noble Jones Gregory';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1342338_6" ( "district" text, "incumbent" text, "party" text, "elected" real, "result" text, "candidates" text );. Question: "What is the district for harry lane englebright?". [/INST] SELECT "district" FROM "table1_1342338_6" WHERE "incumbent"='Harry Lane Englebright';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1342338_6" ( "district" text, "incumbent" text, "party" text, "elected" real, "result" text, "candidates" text );. Question: "What is the result for california 2?". [/INST] SELECT "result" FROM "table1_1342338_6" WHERE "district"='California 2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1342338_6" ( "district" text, "incumbent" text, "party" text, "elected" real, "result" text, "candidates" text );. Question: "What is the party for richard j. welch?". [/INST] SELECT "party" FROM "table1_1342338_6" WHERE "incumbent"='Richard J. Welch';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "How many winners were there in the race of 1922". [/INST] SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1922;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 incumbent when henry e. barbour ran?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Henry E. Barbour';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: " how many party with incumbent being whitmell p. martin". [/INST] SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Whitmell P. Martin';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 incumbent being james o'connor". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James O''Connor';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: " how many incumbent with first elected being 1924". [/INST] SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1924;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Name the incumbent for kentucky 9". [/INST] SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Kentucky 9';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Name the party or first elected is 1920". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1920;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 candidates for first elected 1914". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1914;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 for incumbent Cordell Hull?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Cordell Hull';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Cordell Hull is the incumbent in how many districts?". [/INST] SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Cordell Hull';</s>