cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## 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 20';
```
## 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 "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 7';
```
## 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 "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 2';
```
## 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 "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:
`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 "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 2';
```
## 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 "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Milton H. West';
```
## 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 "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 2';
```
## 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"='Retired to run for U.S. Senate Democratic hold';
```
## 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 "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:
`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 COUNT("party") FROM "table1_1342233_11" WHERE "candidates"='Albert Sidney Camp (D) Unopposed';
```
## 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 "incumbent"='Carl Vinson';
```
## 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 7';
```
## 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 "candidates" FROM "table1_1342233_11" WHERE "district"='Georgia 4';
```
## 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 "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 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 "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Virgil Chapman';
```
## 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 "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clair Engle';
```
## 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 "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1943;
```
## 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 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 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 "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank W. Boykin';
```
## 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 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 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 "incumbent"='Ellsworth B. Buck';
```
## 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 "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 35';
```
## 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 "party" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 20';
```
## 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 "result" FROM "table1_1342233_43" WHERE "candidates"='R. Ewing Thomason (D) Unopposed';
```
## 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 "district" FROM "table1_1342233_43" WHERE "incumbent"='Eugene Worley';
```
## 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 COUNT("result") FROM "table1_1342233_6" WHERE "candidates"='Richard J. Welch (R) Unopposed';
```
## 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 "result" FROM "table1_1342233_6" WHERE "incumbent"='Jack Z. Anderson';
```
## 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 "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 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 "first_elected" FROM "table1_1342233_6" WHERE "incumbent"='Clair Engle';
```
## 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 "candidates" FROM "table1_1342233_6" WHERE "incumbent"='Alfred J. Elliott';
```
## 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 "incumbent" FROM "table1_1342233_6" WHERE "candidates"='Jack Z. Anderson (R) Unopposed';
```
## 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"='Carl Vinson';
```
## 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 COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Stephen Pace';
```
## 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 "candidates" FROM "table1_1342249_13" WHERE "incumbent"='Noah M. Mason';
```
## 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 "first_elected" FROM "table1_1342249_13" WHERE "incumbent"='Leo E. Allen';
```
## 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 "candidates" FROM "table1_1342249_13" WHERE "incumbent"='Sid Simpson';
```
## 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 "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert L. F. Sikes';
```
## 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("district") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1940;
```
## 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 COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Pat Cannon';
```
## 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 "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1940;
```
## 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 "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 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 "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 12';
```
## 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"='James R. Domengeaux';
```
## 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 "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Harold D. Cooley';
```
## 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("party") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1923;
```
## 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 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 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 "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 13';
```
## 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 "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 27';
```
## 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 "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 19';
```
## 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 COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Taber';
```
## 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 "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 29';
```
## 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 "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John J. Delaney';
```
## 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 "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 COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "district"='New York 10';
```
## 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 "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 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 4';
```
## 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 "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 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 "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='South Carolina 4';
```
## 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 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:
`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 "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clyde T. Ellis';
```
## 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 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:
`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 "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 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 "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 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 "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 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 MAX("first_elected") FROM "united_states_house_of_representatives_e";
```
## 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 "incumbent"='Joe Starnes';
```
## 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 "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:
` 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 COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 6';
```
## 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 "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 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 "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 1';
```
## 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 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 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 "result" FROM "table1_1342270_42" WHERE "district"='Tennessee 6';
```
## 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 COUNT("district") FROM "table1_1342270_42" WHERE "incumbent"='Estes Kefauver';
```
## 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 MAX("first_elected") FROM "table1_1342270_42";
```
## 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 "result" FROM "table1_1342270_42" WHERE "district"='Tennessee 2';
```