output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Overton Brooks';
## Task Generate a SQL query to answer the following question: `What is the party where the incumbent is overton brooks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the party where the incumbent is overton brooks?`: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 2';
## Task Generate a SQL query to answer the following question: `who athe party where district is louisiana 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `who athe party where district is louisiana 2?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 3';
## Task Generate a SQL query to answer the following question: `who is the candidate where district is louisiana 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the candidate where district is louisiana 3?`: ```sql
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 5';
## Task Generate a SQL query to answer the following question: `what is the minimum number first elected to district louisiana 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the minimum number first elected to district louisiana 5?`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Tom Steed';
## Task Generate a SQL query to answer the following question: `What was the result when incumbent Tom Steed was elected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when incumbent Tom Steed was elected?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Hardie Scott';
## Task Generate a SQL query to answer the following question: `What was the candidates for hardie scott` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the candidates for hardie scott`: ```sql
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 3';
## Task Generate a SQL query to answer the following question: `What is the number of candidates for pennsylvania 3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of candidates for pennsylvania 3`: ```sql
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 21';
## Task Generate a SQL query to answer the following question: `What is the number of candidates for pennsylvania 21` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of candidates for pennsylvania 21`: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1948 AND "incumbent"='William T. Granahan';
## Task Generate a SQL query to answer the following question: `What is the party for first elected 1948 for william t. granahan` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the party for first elected 1948 for william t. granahan`: ```sql
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Cecil R. King';
## Task Generate a SQL query to answer the following question: `How many candidates were there in the race where Cecil R. King is the incumbent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many candidates were there in the race where Cecil R. King is the incumbent?`: ```sql
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1944;
## Task Generate a SQL query to answer the following question: `How many districts have an incumbent first elected in 1944?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many districts have an incumbent first elected in 1944?`: ```sql
SELECT "incumbent" FROM "table1_1342218_13" WHERE "district"='Illinois 17';
## Task Generate a SQL query to answer the following question: `Who was the incumbent in the Illinois 17 district?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342218_13" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the incumbent in the Illinois 17 district?`: ```sql
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Thomas Abernethy';
## Task Generate a SQL query to answer the following question: `How many people on this list are named thomas abernethy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people on this list are named thomas abernethy?`: ```sql
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='W. Arthur Winstead';
## Task Generate a SQL query to answer the following question: `How many times was w. arthur winstead first elected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was w. arthur winstead first elected?`: ```sql
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William M. Colmer';
## Task Generate a SQL query to answer the following question: `How many times was william m. colmer winstead first elected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was william m. colmer winstead first elected?`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Jamie L. Whitten';
## Task Generate a SQL query to answer the following question: `What was the result of the election with jamie l. whitten?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the election with jamie l. whitten?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "first_elected"=1942;
## Task Generate a SQL query to answer the following question: `What candidate was re-elected and was first elected in 1942? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What candidate was re-elected and was first elected in 1942? `: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 9';
## Task Generate a SQL query to answer the following question: `Who are the candidates in the election in the Ohio 9 district? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the candidates in the election in the Ohio 9 district? `: ```sql
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Michael A. Feighan';
## Task Generate a SQL query to answer the following question: `What year was incumbent Michael A. Feighan first elected? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was incumbent Michael A. Feighan first elected? `: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 5';
## Task Generate a SQL query to answer the following question: `What party does the incumbent from the Ohio 5 district belong to? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What party does the incumbent from the Ohio 5 district belong to? `: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 20';
## Task Generate a SQL query to answer the following question: `What party does the incumbent from the Ohio 20 district belong to? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What party does the incumbent from the Ohio 20 district belong to? `: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 7';
## Task Generate a SQL query to answer the following question: `What party does the incumbent from the Ohio 7 district belong to? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What party does the incumbent from the Ohio 7 district belong to? `: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 2';
## Task Generate a SQL query to answer the following question: `Who is the candidate for the district Arkansas 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the candidate for the district Arkansas 2?`: ```sql
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "incumbent"='Wilbur Mills';
## Task Generate a SQL query to answer the following question: `Which district has the incumbent Wilbur Mills and a re-elected result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Which district has the incumbent Wilbur Mills and a re-elected result?`: ```sql
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 2';
## Task Generate a SQL query to answer the following question: `What year was first-elected for the row of Texas 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was first-elected for the row of Texas 2?`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Milton H. West';
## Task Generate a SQL query to answer the following question: `What was the result for the incumbent Milton H. West?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for the incumbent Milton H. West?`: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 2';
## Task Generate a SQL query to answer the following question: `What party is associated with Texas 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What party is associated with Texas 2?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Retired to run for U.S. Senate Democratic hold';
## Task Generate a SQL query to answer the following question: `When the result is retired to run for U.S. Senate Democratic Hold, who is the candidate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `When the result is retired to run for U.S. Senate Democratic Hold, who is the candidate?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "district"='Texas 7';
## Task Generate a SQL query to answer the following question: `What candidate has a result of being re-elected in the Texas 7 District?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What candidate has a result of being re-elected in the Texas 7 District?`: ```sql
SELECT COUNT("party") FROM "table1_1342233_11" WHERE "candidates"='Albert Sidney Camp (D) Unopposed';
## Task Generate a SQL query to answer the following question: `Which party is associated with the candidate Albert Sidney Camp (D) unopposed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Which party is associated with the candidate Albert Sidney Camp (D) unopposed?`: ```sql
SELECT "candidates" FROM "table1_1342233_11" WHERE "incumbent"='Carl Vinson';
## Task Generate a SQL query to answer the following question: `Which district is associated with the incumbent Carl Vinson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Which district is associated with the incumbent Carl Vinson?`: ```sql
SELECT "candidates" FROM "table1_1342233_11" WHERE "district"='Georgia 7';
## Task Generate a SQL query to answer the following question: `Which candidates are associated with the Georgia 7 district?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Which candidates are associated with the Georgia 7 district?`: ```sql
SELECT "candidates" FROM "table1_1342233_11" WHERE "district"='Georgia 4';
## Task Generate a SQL query to answer the following question: `What candidate is associated with the Georgia 4 district?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What candidate is associated with the Georgia 4 district?`: ```sql
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joe B. Bates';
## Task Generate a SQL query to answer the following question: `What year was incumbent joe b. bates first elected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was incumbent joe b. bates first elected?`: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Virgil Chapman';
## Task Generate a SQL query to answer the following question: `What party is incumbent virgil chapman from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What party is incumbent virgil chapman from?`: ```sql
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clair Engle';
## Task Generate a SQL query to answer the following question: `What year was clair engle first elected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was clair engle first elected?`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1943;
## Task Generate a SQL query to answer the following question: `what is the result of the first elected is 1943?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the result of the first elected is 1943?`: ```sql
SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Albert Rains';
## Task Generate a SQL query to answer the following question: `what the the end number where albert rains was running` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what the the end number where albert rains was running`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank W. Boykin';
## Task Generate a SQL query to answer the following question: `what the was the final in which frank w. boykin was running` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what the was the final in which frank w. boykin was running`: ```sql
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Sol Bloom';
## Task Generate a SQL query to answer the following question: `Name the total number of first elected for sol bloom` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of first elected for sol bloom`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ellsworth B. Buck';
## Task Generate a SQL query to answer the following question: `Name the candidates for ellsworth b. buck` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the candidates for ellsworth b. buck`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 35';
## Task Generate a SQL query to answer the following question: `What are the candidates for new york 35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the candidates for new york 35?`: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 20';
## Task Generate a SQL query to answer the following question: `What is the party for new york 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the party for new york 20?`: ```sql
SELECT "result" FROM "table1_1342233_43" WHERE "candidates"='R. Ewing Thomason (D) Unopposed';
## Task Generate a SQL query to answer the following question: `What was the result of the election featuring r. ewing thomason (d) unopposed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_43" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the election featuring r. ewing thomason (d) unopposed?`: ```sql
SELECT "district" FROM "table1_1342233_43" WHERE "incumbent"='Eugene Worley';
## Task Generate a SQL query to answer the following question: `What district is eugene worley from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_43" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What district is eugene worley from?`: ```sql
SELECT COUNT("result") FROM "table1_1342233_6" WHERE "candidates"='Richard J. Welch (R) Unopposed';
## Task Generate a SQL query to answer the following question: ` how many result with candidates being richard j. welch (r) unopposed` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers ` how many result with candidates being richard j. welch (r) unopposed`: ```sql
SELECT "result" FROM "table1_1342233_6" WHERE "incumbent"='Jack Z. Anderson';
## Task Generate a SQL query to answer the following question: `what's the result with incumbent being jack z. anderson` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the result with incumbent being jack z. anderson`: ```sql
SELECT "district" FROM "table1_1342233_6" WHERE "result"='Re-elected' AND "candidates"='Clarence F. Lea (D) Unopposed';
## Task Generate a SQL query to answer the following question: `what's the district with result being re-elected and candidates being clarence f. lea (d) unopposed` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the district with result being re-elected and candidates being clarence f. lea (d) unopposed`: ```sql
SELECT "first_elected" FROM "table1_1342233_6" WHERE "incumbent"='Clair Engle';
## Task Generate a SQL query to answer the following question: `what's the first elected with incumbent being clair engle` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the first elected with incumbent being clair engle`: ```sql
SELECT "candidates" FROM "table1_1342233_6" WHERE "incumbent"='Alfred J. Elliott';
## Task Generate a SQL query to answer the following question: `who is the the candidates with incumbent being alfred j. elliott` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the the candidates with incumbent being alfred j. elliott`: ```sql
SELECT "incumbent" FROM "table1_1342233_6" WHERE "candidates"='Jack Z. Anderson (R) Unopposed';
## Task Generate a SQL query to answer the following question: `who is the the incumbent with candidates being jack z. anderson (r) unopposed` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342233_6" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the the incumbent with candidates being jack z. anderson (r) unopposed`: ```sql
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl Vinson';
## Task Generate a SQL query to answer the following question: `How many parties does incumbent carl vinson represent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many parties does incumbent carl vinson represent?`: ```sql
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Stephen Pace';
## Task Generate a SQL query to answer the following question: `How many parties does incumbent stephen pace represent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many parties does incumbent stephen pace represent?`: ```sql
SELECT "candidates" FROM "table1_1342249_13" WHERE "incumbent"='Noah M. Mason';
## Task Generate a SQL query to answer the following question: `Who were the candidates when Noah M. Mason was incumbent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342249_13" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the candidates when Noah M. Mason was incumbent?`: ```sql
SELECT "first_elected" FROM "table1_1342249_13" WHERE "incumbent"='Leo E. Allen';
## Task Generate a SQL query to answer the following question: `In what year was Leo E. Allen first elected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342249_13" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year was Leo E. Allen first elected?`: ```sql
SELECT "candidates" FROM "table1_1342249_13" WHERE "incumbent"='Sid Simpson';
## Task Generate a SQL query to answer the following question: `Who were the candidates when Sid Simpson was the incumbent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342249_13" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the candidates when Sid Simpson was the incumbent?`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert L. F. Sikes';
## Task Generate a SQL query to answer the following question: `What was the result of Robert L. F. Sikes' election bid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of Robert L. F. Sikes' election bid?`: ```sql
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1940;
## Task Generate a SQL query to answer the following question: `How many districts have an incumbent first elected in 1940?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many districts have an incumbent first elected in 1940?`: ```sql
SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Pat Cannon';
## Task Generate a SQL query to answer the following question: `How many races involve incumbent Pat Cannon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many races involve incumbent Pat Cannon?`: ```sql
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1940;
## Task Generate a SQL query to answer the following question: `Which incumbent was first elected in 1940?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Which incumbent was first elected in 1940?`: ```sql
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 18';
## Task Generate a SQL query to answer the following question: `What is the first electedfor district ohio 18` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first electedfor district ohio 18`: ```sql
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 12';
## Task Generate a SQL query to answer the following question: `What is the incumbent for ohio 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the incumbent for ohio 12?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James R. Domengeaux';
## Task Generate a SQL query to answer the following question: `Who are all of the candidates in the election featuring james r. domengeaux?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are all of the candidates in the election featuring james r. domengeaux?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Harold D. Cooley';
## Task Generate a SQL query to answer the following question: `Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent?`: ```sql
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1923;
## Task Generate a SQL query to answer the following question: `How many partys have a candidate first elected in 1923?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many partys have a candidate first elected in 1923?`: ```sql
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Leon Sacks';
## Task Generate a SQL query to answer the following question: `what was the number of candidates when Leon Sacks was incumbent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what was the number of candidates when Leon Sacks was incumbent?`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 13';
## Task Generate a SQL query to answer the following question: `What was the result in Pennsylvania 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result in Pennsylvania 13?`: ```sql
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 27';
## Task Generate a SQL query to answer the following question: `Who was the incumbent in Pennsylvania 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the incumbent in Pennsylvania 27?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 19';
## Task Generate a SQL query to answer the following question: `Who are the contenders In the New York 19 polling area race?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the contenders In the New York 19 polling area race?`: ```sql
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Taber';
## Task Generate a SQL query to answer the following question: `How many polling areas are there with John Taber as the sitting Representative?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many polling areas are there with John Taber as the sitting Representative?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 29';
## Task Generate a SQL query to answer the following question: `Who are the contenders In the New York 29 polling area race?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the contenders In the New York 29 polling area race?`: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John J. Delaney';
## Task Generate a SQL query to answer the following question: `Which political party is involved where John J. Delaney is the sitting Representative?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Which political party is involved where John J. Delaney is the sitting Representative?`: ```sql
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 10';
## Task Generate a SQL query to answer the following question: `Who is the sitting Representative In the New York 10 polling area race?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the sitting Representative In the New York 10 polling area race?`: ```sql
SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "district"='New York 10';
## Task Generate a SQL query to answer the following question: `How many sitting Representatives are there in the New York 10 polling area?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many sitting Representatives are there in the New York 10 polling area?`: ```sql
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James P. Richards';
## Task Generate a SQL query to answer the following question: `What is the district for james p. richards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the district for james p. richards?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='South Carolina 4';
## Task Generate a SQL query to answer the following question: `What is the candidate for south carolina 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the candidate for south carolina 4?`: ```sql
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='South Carolina 3';
## Task Generate a SQL query to answer the following question: `What is the candidate for south carolina 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the candidate for south carolina 3?`: ```sql
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='South Carolina 4';
## Task Generate a SQL query to answer the following question: `What is the first elected for south carolina 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first elected for south carolina 4?`: ```sql
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Brooks Hays (D) Unopposed';
## Task Generate a SQL query to answer the following question: `How many candidates were in the election featuring brooks hays (d) unopposed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many candidates were in the election featuring brooks hays (d) unopposed?`: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clyde T. Ellis';
## Task Generate a SQL query to answer the following question: `What party does clyde t. ellis represent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What party does clyde t. ellis represent?`: ```sql
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='John J. Phillips (R) 57.6% N. E. West (D) 42.4%';
## Task Generate a SQL query to answer the following question: ` how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers ` how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4%`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='California 10';
## Task Generate a SQL query to answer the following question: `what's the result with dbeingtrict being california 10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the result with dbeingtrict being california 10`: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1926';
## Task Generate a SQL query to answer the following question: `what's the party with first elected being 1926` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the party with first elected being 1926`: ```sql
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "result"='New seat Republican gain';
## Task Generate a SQL query to answer the following question: `what's the incumbent with result being new seat republican gain` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the incumbent with result being new seat republican gain`: ```sql
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e";
## Task Generate a SQL query to answer the following question: `what was the maxiumum for the first elected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what was the maxiumum for the first elected?`: ```sql
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joe Starnes';
## Task Generate a SQL query to answer the following question: `what's the first elected with incumbent being joe starnes` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the first elected with incumbent being joe starnes`: ```sql
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%';
## Task Generate a SQL query to answer the following question: `what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%`: ```sql
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 6';
## Task Generate a SQL query to answer the following question: ` how many party with dbeingtrict being alabama 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers ` how many party with dbeingtrict being alabama 6`: ```sql
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Sam Hobbs';
## Task Generate a SQL query to answer the following question: `what are all the district with incumbent being sam hobbs` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the district with incumbent being sam hobbs`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 1';
## Task Generate a SQL query to answer the following question: `what are all the result with district being alabama 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the result with district being alabama 1`: ```sql
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 5';
## Task Generate a SQL query to answer the following question: `what is the maximum first elected with district being alabama 5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the maximum first elected with district being alabama 5`: ```sql
SELECT "result" FROM "table1_1342270_42" WHERE "district"='Tennessee 6';
## Task Generate a SQL query to answer the following question: `What was the result in the Tennessee 6 district election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342270_42" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result in the Tennessee 6 district election?`: ```sql
SELECT COUNT("district") FROM "table1_1342270_42" WHERE "incumbent"='Estes Kefauver';
## Task Generate a SQL query to answer the following question: `In how many districts was the incumbent Estes Kefauver? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342270_42" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `In how many districts was the incumbent Estes Kefauver? `: ```sql
SELECT MAX("first_elected") FROM "table1_1342270_42";
## Task Generate a SQL query to answer the following question: `What is the latest year any of the incumbents were first elected? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342270_42" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest year any of the incumbents were first elected? `: ```sql
SELECT "result" FROM "table1_1342270_42" WHERE "district"='Tennessee 2';
## Task Generate a SQL query to answer the following question: `What was the result of the Tennessee 2 district election? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1342270_42" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the Tennessee 2 district election? `: ```sql
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert L. Mouton';
## Task Generate a SQL query to answer the following question: `What district is incumbent robert l. mouton from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What district is incumbent robert l. mouton from?`: ```sql
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William Fadjo Cravens';
## Task Generate a SQL query to answer the following question: `William Fadjo Cravens is the only candidate who was first elected in 1939.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `William Fadjo Cravens is the only candidate who was first elected in 1939.`: ```sql
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William Fadjo Cravens';
## Task Generate a SQL query to answer the following question: `William Fadjo Cravens serves the fourth district of Arkansas.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `William Fadjo Cravens serves the fourth district of Arkansas.`: ```sql
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 3';
## Task Generate a SQL query to answer the following question: `what's the party with district being alabama 3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the party with district being alabama 3`: ```sql
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Sam Hobbs (D) 88.2% C. W. McKay (R) 11.8%';
## Task Generate a SQL query to answer the following question: `what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8%`: ```sql