cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the winner in the Louisiana 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 `Who was the winner in the Louisiana 7 district?`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 7';
```
## Task
Generate a SQL query to answer the following question:
`what's party with district being tennessee 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 party with district being tennessee 3`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 3';
```
## Task
Generate a SQL query to answer the following question:
`how many party with district being tennessee 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 `how many party with district being tennessee 1`:
```sql
                SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 1';
```
## Task
Generate a SQL query to answer the following question:
`what's party with district  being tennessee 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 party with district  being tennessee 3`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 3';
```
## Task
Generate a SQL query to answer the following question:
` how many incumbent with district  being tennessee 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 ` how many incumbent with district  being tennessee 5`:
```sql
                SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 5';
```
## Task
Generate a SQL query to answer the following question:
`what's incumbent with district being tennessee 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's incumbent with district being tennessee 5`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 5';
```
## Task
Generate a SQL query to answer the following question:
`Who ran in the race for Jack Brooks' seat?`

### 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 ran in the race for Jack Brooks' seat?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Jack Brooks';
```
## Task
Generate a SQL query to answer the following question:
`which section did seymour halpern run in`

### 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 section did seymour halpern run in`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Seymour Halpern';
```
## Task
Generate a SQL query to answer the following question:
`What district is incumbent albert w. johnson 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 albert w. johnson from?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Albert W. Johnson';
```
## Task
Generate a SQL query to answer the following question:
`How many times was frank m. clark 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 times was frank m. clark the incumbent?`:
```sql
                SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank M. Clark';
```
## Task
Generate a SQL query to answer the following question:
`What district is incumbent elmer j. holland 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 elmer j. holland from?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Elmer J. Holland';
```
## Task
Generate a SQL query to answer the following question:
`To which party does Frank T. Bow belong?`

### 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 `To which party does Frank T. Bow belong?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank T. Bow';
```
## Task
Generate a SQL query to answer the following question:
`Who ran in the race for the seat of incumbent Carl W. Rich?`

### 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 ran in the race for the seat of incumbent Carl W. Rich?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl W. Rich';
```
## Task
Generate a SQL query to answer the following question:
`In which district is the incumbent Carl W. Rich?`

### 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 `In which district is the incumbent Carl W. Rich?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl W. Rich';
```
## Task
Generate a SQL query to answer the following question:
`Name the candidates where incumbent Carl Vinson is?`

### 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 where incumbent Carl Vinson is?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl Vinson';
```
## Task
Generate a SQL query to answer the following question:
`Name the candidates for massachusetts 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 `Name the candidates for massachusetts 8`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Massachusetts 8';
```
## Task
Generate a SQL query to answer the following question:
`What candidates were in the election when a republican was re-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 candidates were in the election when a republican was re-elected?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "party"='Republican';
```
## Task
Generate a SQL query to answer the following question:
`What district is incumbent frank chelf 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 frank chelf from?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank Chelf';
```
## Task
Generate a SQL query to answer the following question:
`How many districts represented Edwin E. Willis?`

### 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 represented Edwin E. Willis?`:
```sql
                SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edwin E. Willis';
```
## Task
Generate a SQL query to answer the following question:
`Who were all the candidates when the first elected year was 1961?`

### 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 were all the candidates when the first elected year was 1961?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1961;
```
## Task
Generate a SQL query to answer the following question:
`What party did Hale Boggs 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 did Hale Boggs belong to?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Hale Boggs';
```
## Task
Generate a SQL query to answer the following question:
`what is the political affiliation of the texas 12 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 is the political affiliation of the texas 12 district`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 12';
```
## Task
Generate a SQL query to answer the following question:
`how many voted in the texas 6 section`

### 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 voted in the texas 6 section`:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 6';
```
## Task
Generate a SQL query to answer the following question:
`what is the political affiliation of ray roberts`

### 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 political affiliation of ray roberts`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ray Roberts';
```
## Task
Generate a SQL query to answer the following question:
`What district featured an election between  james a. byrne (d) 59.3% joseph r. burns (r) 40.7%?`

### 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 featured an election between  james a. byrne (d) 59.3% joseph r. burns (r) 40.7%?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%';
```
## Task
Generate a SQL query to answer the following question:
`Name the candidates for massachusetts 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 `Name the candidates for massachusetts 6`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Massachusetts 6';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for massachusetts 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 `Name the result for massachusetts 3`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Massachusetts 3';
```
## Task
Generate a SQL query to answer the following question:
`Name the candidate 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 `Name the candidate first elected in 1942`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1942;
```
## Task
Generate a SQL query to answer the following question:
`Name the party for massachusetts 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 `Name the party for massachusetts 3`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Massachusetts 3';
```
## Task
Generate a SQL query to answer the following question:
`What district is incumbent albert rains 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 albert rains from?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Albert Rains';
```
## Task
Generate a SQL query to answer the following question:
`How many candidates represent the district of kenneth a. roberts?`

### 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 represent the district of kenneth a. roberts?`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Kenneth A. Roberts';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent in the Arkansas 2 district election? `

### 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 the Arkansas 2 district election? `:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 2';
```
## Task
Generate a SQL query to answer the following question:
`When was Dale Alford first elected in the Arkansas 5 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 `When was Dale Alford first elected in the Arkansas 5 district? `:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 5';
```
## Task
Generate a SQL query to answer the following question:
`When was James William Trimble first elected in the Arkansas 3 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 `When was James William Trimble first elected in the Arkansas 3 district? `:
```sql
                SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 3';
```
## Task
Generate a SQL query to answer the following question:
`When party did the incumbent in the Arkansas 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 `When party did the incumbent in the Arkansas 5 district belong to? `:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 5';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the Arkansas 5 district election? `

### 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 the Arkansas 5 district election? `:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 5';
```
## Task
Generate a SQL query to answer the following question:
`What party did the incumbent in the Arkansas 2 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 did the incumbent in the Arkansas 2 district belong to? `:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 2';
```
## Task
Generate a SQL query to answer the following question:
`How many candidates were there in the election for William Jennings Bryan Dorn's seat?`

### 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 election for William Jennings Bryan Dorn's seat?`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William Jennings Bryan Dorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year that a candidate was 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 is the earliest year that a candidate was first elected?`:
```sql
                SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e";
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the election in which Lindley Beckworth was 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 `What was the result of the election in which Lindley Beckworth was the incumbent?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Lindley Beckworth';
```
## Task
Generate a SQL query to answer the following question:
`Which incumbent was first elected in 1936? `

### 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 1936? `:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1936;
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the election in which Walter E. Rogers was 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 `What was the result of the election in which Walter E. Rogers was the incumbent? `:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Walter E. Rogers';
```
## Task
Generate a SQL query to answer the following question:
`When was Paul Rogers 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 `When was Paul Rogers first elected?`:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Paul Rogers';
```
## Task
Generate a SQL query to answer the following question:
`Which district is James A. Haley 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 `Which district is James A. Haley from?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James A. Haley';
```
## Task
Generate a SQL query to answer the following question:
`What year were the latest elections?`

### 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 were the latest elections?`:
```sql
                SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e";
```
## Task
Generate a SQL query to answer the following question:
`In what district is the incumbent John Bell Williams?`

### 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 `In what district is the incumbent John Bell Williams?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Bell Williams';
```
## Task
Generate a SQL query to answer the following question:
`In what year was John Bell Williams 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 `In what year was John Bell Williams first elected?`:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Bell Williams';
```
## Task
Generate a SQL query to answer the following question:
`How many districts have W. Arthur Winstead as elected official?`

### 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 W. Arthur Winstead as elected official?`:
```sql
                SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='W. Arthur Winstead';
```
## Task
Generate a SQL query to answer the following question:
`What is the district for carl vinson?`

### 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 carl vinson?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl Vinson';
```
## Task
Generate a SQL query to answer the following question:
`What is the most first elected for james c. davis?`

### 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 most first elected for james c. davis?`:
```sql
                SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James C. Davis';
```
## Task
Generate a SQL query to answer the following question:
`What is the first elected for georgia 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 georgia 4?`:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Georgia 4';
```
## Task
Generate a SQL query to answer the following question:
`which affiliation does edwin e. willis affiliate with`

### 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 affiliation does edwin e. willis affiliate with`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edwin E. Willis';
```
## Task
Generate a SQL query to answer the following question:
`which affiliation is james h. morrison part of`

### 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 affiliation is james h. morrison part of`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James H. Morrison';
```
## Task
Generate a SQL query to answer the following question:
`Who is the candidate that was first elected in 1914?`

### 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 that was first elected in 1914?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1914;
```
## Task
Generate a SQL query to answer the following question:
`In which district is the incumbent Carl Vinson?`

### 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 `In which district is the incumbent Carl Vinson?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl Vinson';
```
## Task
Generate a SQL query to answer the following question:
`Name the candidates for l. mendel rivers`

### 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 l. mendel rivers`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='L. Mendel Rivers';
```
## Task
Generate a SQL query to answer the following question:
`Name the result 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 `Name the result for south carolina 4`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='South Carolina 4';
```
## Task
Generate a SQL query to answer the following question:
`Name the candidates 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 `Name the candidates 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:
`Name the incumbent for first elected 1956`

### 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 incumbent for first elected 1956`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1956;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of party with the incubent james william trimble`

### 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 number of party with the incubent james william trimble`:
```sql
                SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James William Trimble';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for 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 `What is the result for first elected in 1944`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1944;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of party in the arkansas 1 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 is the number of party in the arkansas 1 district`:
```sql
                SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 1';
```
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent in the Alabama 6 voting 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 is the incumbent in the Alabama 6 voting district?`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 6';
```
## Task
Generate a SQL query to answer the following question:
`Which candidates were in the election where Frank W. Boykin was an 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 `Which candidates were in the election where Frank W. Boykin was an incumbent?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank W. Boykin';
```
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the election where the incumbent is George M. Grant?`

### 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 were the candidates in the election where the incumbent is George M. Grant?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='George M. Grant';
```
## Task
Generate a SQL query to answer the following question:
`Which candidates ran in the Alabama 6 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 `Which candidates ran in the Alabama 6 district?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year listed with the Alabama 4 voting 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 is the latest year listed with the Alabama 4 voting district?`:
```sql
                SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 4';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when incumbent Fred E. Busbey 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 Fred E. Busbey was elected?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Fred E. Busbey';
```
## Task
Generate a SQL query to answer the following question:
`How many results are listed for the election where Noah M. Mason 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 `How many results are listed for the election where Noah M. Mason was elected?`:
```sql
                SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Noah M. Mason';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when Leo E. Allen 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 Leo E. Allen was elected?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Leo E. Allen';
```
## Task
Generate a SQL query to answer the following question:
`Which party had a person who has been in the seat since 1914?`

### 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 party had a person who has been in the seat since 1914?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1914;
```
## Task
Generate a SQL query to answer the following question:
`Name all the candidates listed in the race where the incumbent is Prince Hulon Preston, Jr.`

### 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 listed in the race where the incumbent is Prince Hulon Preston, Jr.`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Prince Hulon Preston, Jr.';
```
## Task
Generate a SQL query to answer the following question:
`How many candidates ran in the race where the incumbent is J. L. Pilcher?`

### 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 ran in the race where the incumbent is J. L. Pilcher?`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='J. L. Pilcher';
```
## Task
Generate a SQL query to answer the following question:
`John W. Heselton was first elected in what year?`

### 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 `John W. Heselton was first elected in what year?`:
```sql
                SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John W. Heselton';
```
## Task
Generate a SQL query to answer the following question:
`Thomas J. Lane is the incumbent of how many parties?`

### 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 `Thomas J. Lane is the incumbent of how many parties?`:
```sql
                SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Thomas J. Lane';
```