cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent first elected in 1944?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the incumbent first elected in 1944?`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1944;
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the politician first elected in 1942?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the politician first elected in 1942?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1942;
```
## Task
Generate a SQL query to answer the following question:
`what's the result for district ohio 2`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_1342013_34" (
  "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 for district ohio 2`:
```sql
                SELECT "result" FROM "table1_1342013_34" WHERE "district"='Ohio 2';
```
## Task
Generate a SQL query to answer the following question:
`who is the the incumbent with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_1342013_34" (
  "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 john m. vorys (r) 61.5% jacob f. myers (d) 38.5%`:
```sql
                SELECT "incumbent" FROM "table1_1342013_34" WHERE "candidates"='John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%';
```
## Task
Generate a SQL query to answer the following question:
`who is the the incumbent with district being ohio 2`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_1342013_34" (
  "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 district being ohio 2`:
```sql
                SELECT "incumbent" FROM "table1_1342013_34" WHERE "district"='Ohio 2';
```
## Task
Generate a SQL query to answer the following question:
`what's the result with incumbent being william h. ayres`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_1342013_34" (
  "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 william h. ayres`:
```sql
                SELECT "result" FROM "table1_1342013_34" WHERE "incumbent"='William H. Ayres';
```
## Task
Generate a SQL query to answer the following question:
` how many party with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_1342013_34" (
  "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 candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%`:
```sql
                SELECT COUNT("party") FROM "table1_1342013_34" WHERE "candidates"='John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%';
```
## Task
Generate a SQL query to answer the following question:
`what district is Brooks Hays 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 `what district is Brooks Hays in`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Brooks Hays';
```
## Task
Generate a SQL query to answer the following question:
`Omar Burleson was the incumbent in what 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 `Omar Burleson was the incumbent in what district? `:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Omar Burleson';
```
## Task
Generate a SQL query to answer the following question:
`In what district was incumbent first elected in 1938? `

### 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 was incumbent first elected in 1938? `:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1938;
```
## Task
Generate a SQL query to answer the following question:
`Name the party for the pennsylvania 25`

### 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 the pennsylvania 25`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 25';
```
## Task
Generate a SQL query to answer the following question:
`Name the minumim first elected for alvin bush`

### 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 minumim first elected for alvin bush`:
```sql
                SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Alvin Bush';
```
## Task
Generate a SQL query to answer the following question:
`What is the incumbent for pennsylvania 15`

### 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 pennsylvania 15`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 15';
```
## Task
Generate a SQL query to answer the following question:
`What are the candidates for noah m. mason?`

### 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 noah m. mason?`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Noah M. Mason';
```
## Task
Generate a SQL query to answer the following question:
`What is the candidates for fred e. busbey?`

### 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 candidates for fred e. busbey?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Fred E. Busbey';
```
## Task
Generate a SQL query to answer the following question:
`What is the incumbent for 1932?`

### 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 1932?`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1932;
```
## Task
Generate a SQL query to answer the following question:
` how many first elected with incumbent being charles edward bennett`

### 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 first elected with incumbent being charles edward bennett`:
```sql
                SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Charles Edward Bennett';
```
## Task
Generate a SQL query to answer the following question:
`who is the the incumbent with dbeingtrict being florida 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 the incumbent with dbeingtrict being florida 2`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Florida 2';
```
## Task
Generate a SQL query to answer the following question:
`what's the result with candidates being charles edward bennett (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 `what's the result with candidates being charles edward bennett (d) unopposed`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Charles Edward Bennett (D) Unopposed';
```
## Task
Generate a SQL query to answer the following question:
`what's the result with dbeingtrict being florida 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's the result with dbeingtrict being florida 4`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Florida 4';
```
## Task
Generate a SQL query to answer the following question:
` how many party with candidates being charles edward bennett (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 party with candidates being charles edward bennett (d) unopposed`:
```sql
                SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Charles Edward Bennett (D) Unopposed';
```
## Task
Generate a SQL query to answer the following question:
` how many first elected with incumbent being william c. lantaff`

### 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 first elected with incumbent being william c. lantaff`:
```sql
                SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William C. Lantaff';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the election when Tic Forrester ran as 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 `What was the result of the election when Tic Forrester ran as an incumbent?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Tic Forrester';
```
## Task
Generate a SQL query to answer the following question:
`What was the final result for Craig Hosmer?`

### 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 final result for Craig Hosmer?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Craig Hosmer';
```
## Task
Generate a SQL query to answer the following question:
`What district does Harlan Hagen 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 district does Harlan Hagen represent?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Harlan Hagen';
```
## Task
Generate a SQL query to answer the following question:
`Who was the candidate in the election in the Louisiana 2 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 candidate in the election in the Louisiana 2 district? `:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 2';
```
## Task
Generate a SQL query to answer the following question:
`What candidate was re-elected in the Louisiana 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 `What candidate was re-elected in the Louisiana 5 district? `:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "district"='Louisiana 5';
```
## Task
Generate a SQL query to answer the following question:
`What party's candidate was re-elected in the Louisiana 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 `What party's candidate was re-elected in the Louisiana 6 district?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "district"='Louisiana 6';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the election where Hale Boggs 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 in the election where Hale Boggs was the incumbent? `:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Hale Boggs';
```
## Task
Generate a SQL query to answer the following question:
`what is the channel width that overlaps channels 1,3-6?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "b_802_11_channel_to_frequency_map" (
  "channel" real,
  "center_frequency" text,
  "frequency_delta" text,
  "channel_width" text,
  "overlaps_channels" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the channel width that overlaps channels 1,3-6?`:
```sql
                SELECT "channel_width" FROM "b_802_11_channel_to_frequency_map" WHERE "overlaps_channels"='1,3-6';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for mississippi 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 `Name the result for mississippi 2`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Mississippi 2';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of candidates for 1941`

### 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 candidates for 1941`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1941;
```
## Task
Generate a SQL query to answer the following question:
`Name the candidates for result of lost renomination democratic loss`

### 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 result of lost renomination democratic loss`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Lost renomination Democratic loss';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for first elected of 1920`

### 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 first elected of 1920`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1920;
```
## Task
Generate a SQL query to answer the following question:
`In the District Tennessee 7 what is the number of 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 the District Tennessee 7 what is the number of first elected?`:
```sql
                SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 7';
```
## Task
Generate a SQL query to answer the following question:
`What is the candidates  result that is tom j. murray (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 `What is the candidates  result that is tom j. murray (d) unopposed?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Tom J. Murray (D) Unopposed';
```
## Task
Generate a SQL query to answer the following question:
`For the Republican party what are the names of the incumbents?`

### 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 `For the Republican party what are the names of the incumbents?`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "party"='Republican';
```
## Task
Generate a SQL query to answer the following question:
`How many parties match the canididates listed as howard baker, sr. (r) 68.9% boyd w. cox (d) 31.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 parties match the canididates listed as howard baker, sr. (r) 68.9% boyd w. cox (d) 31.1%?`:
```sql
                SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Howard Baker, Sr. (R) 68.9% Boyd W. Cox (D) 31.1%';
```
## Task
Generate a SQL query to answer the following question:
`Which district had Paul B. Dague as 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 `Which district had Paul B. Dague as the incumbent?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Paul B. Dague';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the election where the incumbent was first elected in 1942? `

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in the election where the incumbent was first elected in 1942? `:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1942';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the election in the Texas 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the election in the Texas 3 district? `:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 3';
```
## Task
Generate a SQL query to answer the following question:
`What party did incumbent Wright Patman 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party did incumbent Wright Patman belong to? `:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Wright Patman';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the election in the Texas 4 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the election in the Texas 4 district? `:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 4';
```
## Task
Generate a SQL query to answer the following question:
`What party did the re-elected incumbent of the Texas 11 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party did the re-elected incumbent of the Texas 11 district belong to?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "district"='Texas 11';
```
## Task
Generate a SQL query to answer the following question:
`List all those first elected in the California 22 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all those first elected in the California 22 voting district.`:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='California 22';
```
## Task
Generate a SQL query to answer the following question:
`Who was the first elected incumbent in the 1946 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the first elected incumbent in the 1946 election?`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1946';
```
## Task
Generate a SQL query to answer the following question:
`How many results does the California 29 voting district have?`

### 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 results does the California 29 voting district have?`:
```sql
                SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "district"='California 29';
```
## Task
Generate a SQL query to answer the following question:
`Which party had Clair Engle as 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party had Clair Engle as an incumbent?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clair Engle';
```
## Task
Generate a SQL query to answer the following question:
`What party does sid simpson 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 sid simpson represent?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Sid Simpson';
```
## Task
Generate a SQL query to answer the following question:
`How many candidates ran against barratt o'hara?`

### 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 against barratt o'hara?`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Barratt O''Hara';
```
## Task
Generate a SQL query to answer the following question:
`What year was incumbent barratt o'hara 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 barratt o'hara first elected?`:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Barratt O''Hara';
```
## Task
Generate a SQL query to answer the following question:
`How many results for minimum first elected incumbent Noble Jones Gregory?`

### 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 for minimum first elected incumbent Noble Jones Gregory?`:
```sql
                SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Noble Jones Gregory';
```
## Task
Generate a SQL query to answer the following question:
`How many results for incumbent Noble Jones Gregory?`

### 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 for incumbent Noble Jones Gregory?`:
```sql
                SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Noble Jones Gregory';
```
## Task
Generate a SQL query to answer the following question:
`Who is the candidate wehre district is louisiana 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 `Who is the candidate wehre district is louisiana 1?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the party where the incumbent is overton brooks?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party where the incumbent is overton brooks?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Overton Brooks';
```
## Task
Generate a SQL query to answer the following question:
`who athe party where district is louisiana 2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `who athe party where district is louisiana 2?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 2';
```
## Task
Generate a SQL query to answer the following question:
`who is the candidate where district is louisiana 3?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the candidate where district is louisiana 3?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 3';
```
## Task
Generate a SQL query to answer the following question:
`what is the minimum number first elected to district louisiana 5?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum number first elected to district louisiana 5?`:
```sql
                SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 5';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when incumbent Tom Steed was elected?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when incumbent Tom Steed was elected?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Tom Steed';
```
## Task
Generate a SQL query to answer the following question:
`What was the candidates for hardie scott`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the candidates for hardie scott`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Hardie Scott';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of candidates for pennsylvania 3`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of candidates for pennsylvania 3`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 3';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of candidates for pennsylvania 21`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of candidates for pennsylvania 21`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 21';
```
## Task
Generate a SQL query to answer the following question:
`What is the party for first elected 1948 for william t. granahan`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party for first elected 1948 for william t. granahan`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1948 AND "incumbent"='William T. Granahan';
```
## Task
Generate a SQL query to answer the following question:
`How many candidates were there in the race where Cecil R. King is the incumbent?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many candidates were there in the race where Cecil R. King is the incumbent?`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Cecil R. King';
```
## Task
Generate a SQL query to answer the following question:
`How many districts have an incumbent first elected in 1944?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts have an incumbent first elected in 1944?`:
```sql
                SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1944;
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent in the Illinois 17 district?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_1342218_13" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent in the Illinois 17 district?`:
```sql
                SELECT "incumbent" FROM "table1_1342218_13" WHERE "district"='Illinois 17';
```
## Task
Generate a SQL query to answer the following question:
`How many people on this list are named thomas abernethy?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people on this list are named thomas abernethy?`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Thomas Abernethy';
```
## Task
Generate a SQL query to answer the following question:
`How many times was w. arthur winstead first elected?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was w. arthur winstead first elected?`:
```sql
                SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='W. Arthur Winstead';
```
## Task
Generate a SQL query to answer the following question:
`How many times was william m. colmer winstead first elected?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was william m. colmer winstead first elected?`:
```sql
                SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William M. Colmer';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the election with jamie l. whitten?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the election with jamie l. whitten?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Jamie L. Whitten';
```
## Task
Generate a SQL query to answer the following question:
`What candidate was re-elected and was first elected in 1942? `

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What candidate was re-elected and was first elected in 1942? `:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "first_elected"=1942;
```
## Task
Generate a SQL query to answer the following question:
`Who are the candidates in the election in the Ohio 9 district? `

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the candidates in the election in the Ohio 9 district? `:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 9';
```
## Task
Generate a SQL query to answer the following question:
`What year was incumbent Michael A. Feighan first elected? `

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was incumbent Michael A. Feighan first elected? `:
```sql
                SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Michael A. Feighan';
```
## Task
Generate a SQL query to answer the following question:
`What party does the incumbent from the Ohio 5 district belong to? `

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party does the incumbent from the Ohio 5 district belong to? `:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 5';
```