cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many times was the incumbent mike capuano`

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

CREATE TABLE "massachusetts" (
  "district" 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 the incumbent mike capuano`:
```sql
                SELECT COUNT("result") FROM "massachusetts" WHERE "incumbent"='Mike Capuano';
```
## Task
Generate a SQL query to answer the following question:
`Who were the candidates when Barney Frank was the incumbent?`

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

CREATE TABLE "massachusetts" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the candidates when Barney Frank was the incumbent?`:
```sql
                SELECT "candidates" FROM "massachusetts" WHERE "incumbent"='Barney Frank';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest year someone was first elected from Massachusetts 3`

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

CREATE TABLE "massachusetts" (
  "district" 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 earliest year someone was first elected from Massachusetts 3`:
```sql
                SELECT MIN("first_elected") FROM "massachusetts" WHERE "district"='Massachusetts 3';
```
## Task
Generate a SQL query to answer the following question:
`What party did incumbent Albert Wynn belong to? `

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

CREATE TABLE "maryland" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party did incumbent Albert Wynn belong to? `:
```sql
                SELECT "party" FROM "maryland" WHERE "incumbent"='Albert Wynn';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the election in the Maryland 7 district? `

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

CREATE TABLE "maryland" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the election in the Maryland 7 district? `:
```sql
                SELECT "results" FROM "maryland" WHERE "district"='Maryland 7';
```
## Task
Generate a SQL query to answer the following question:
`How many candidates ran in the election where Wayne Gilchrest was the incumbent?`

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

CREATE TABLE "maryland" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many candidates ran in the election where Wayne Gilchrest was the incumbent?`:
```sql
                SELECT COUNT("candidates") FROM "maryland" WHERE "incumbent"='Wayne Gilchrest';
```
## Task
Generate a SQL query to answer the following question:
`What were the results in the election where Albert Wynn was the incumbent? `

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

CREATE TABLE "maryland" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results in the election where Albert Wynn was the incumbent? `:
```sql
                SELECT "results" FROM "maryland" WHERE "incumbent"='Albert Wynn';
```
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the Maryland 5 district election? `

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

CREATE TABLE "maryland" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the candidates in the Maryland 5 district election? `:
```sql
                SELECT "candidates" FROM "maryland" WHERE "district"='Maryland 5';
```
## Task
Generate a SQL query to answer the following question:
`What district is Henry Hyde in`

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

CREATE TABLE "table1_1341423_13" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is Henry Hyde in`:
```sql
                SELECT "district" FROM "table1_1341423_13" WHERE "incumbent"='Henry Hyde';
```
## Task
Generate a SQL query to answer the following question:
`What year was Luis Gutierrez election`

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

CREATE TABLE "table1_1341423_13" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Luis Gutierrez election`:
```sql
                SELECT MIN("first_elected") FROM "table1_1341423_13" WHERE "incumbent"='Luis Gutierrez';
```
## Task
Generate a SQL query to answer the following question:
`Which district is Joe Moakley?`

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

CREATE TABLE "massachusetts" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which district is Joe Moakley?`:
```sql
                SELECT "district" FROM "massachusetts" WHERE "incumbent"='Joe Moakley';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest first elected?`

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

CREATE TABLE "massachusetts" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest first elected?`:
```sql
                SELECT MIN("first_elected") FROM "massachusetts";
```
## Task
Generate a SQL query to answer the following question:
`Name the first election for john mchugh`

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the first election for john mchugh`:
```sql
                SELECT COUNT("first_elected") FROM "new_york" WHERE "incumbent"='John McHugh';
```
## Task
Generate a SQL query to answer the following question:
`Name the results for district new york 24`

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the results for district new york 24`:
```sql
                SELECT "results" FROM "new_york" WHERE "district"='New York 24';
```
## Task
Generate a SQL query to answer the following question:
`Name the district for carolyn mccarthy`

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the district for carolyn mccarthy`:
```sql
                SELECT "district" FROM "new_york" WHERE "incumbent"='Carolyn McCarthy';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of party for new york 29`

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of party for new york 29`:
```sql
                SELECT COUNT("party") FROM "new_york" WHERE "district"='New York 29';
```
## Task
Generate a SQL query to answer the following question:
`Which party does the incumbent first elected in 1994 belong to?`

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

CREATE TABLE "michigan" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party does the incumbent first elected in 1994 belong to?`:
```sql
                SELECT "party" FROM "michigan" WHERE "first_elected"=1994;
```
## Task
Generate a SQL query to answer the following question:
`How many districts have Bart Stupak as the incumbent?`

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

CREATE TABLE "michigan" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts have Bart Stupak as the incumbent?`:
```sql
                SELECT COUNT("district") FROM "michigan" WHERE "incumbent"='Bart Stupak';
```
## Task
Generate a SQL query to answer the following question:
`Who was elected in 1972`

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

CREATE TABLE "ohio" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was elected in 1972`:
```sql
                SELECT "incumbent" FROM "ohio" WHERE "first_elected"=1972;
```
## Task
Generate a SQL query to answer the following question:
`what is the earliest first elected with the results re-elected in the district south carolina 3?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the earliest first elected with the results re-elected in the district south carolina 3?`:
```sql
                SELECT MAX("first_elected") FROM "south_carolina" WHERE "results"='Re-elected' AND "district"='South Carolina 3';
```
## Task
Generate a SQL query to answer the following question:
`what is the party with the incumbent jim demint?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the party with the incumbent jim demint?`:
```sql
                SELECT "party" FROM "south_carolina" WHERE "incumbent"='Jim DeMint';
```
## Task
Generate a SQL query to answer the following question:
`what is the party for the district south carolina 4?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the party for the district south carolina 4?`:
```sql
                SELECT "party" FROM "south_carolina" WHERE "district"='South Carolina 4';
```
## Task
Generate a SQL query to answer the following question:
`what is the party when candidates is jim demint (r) 80%?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the party when candidates is jim demint (r) 80%?`:
```sql
                SELECT "party" FROM "south_carolina" WHERE "candidates"='Jim DeMint (R) 80%';
```
## Task
Generate a SQL query to answer the following question:
`who are the candidates when the incumbent is lindsey graham?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `who are the candidates when the incumbent is lindsey graham?`:
```sql
                SELECT "candidates" FROM "south_carolina" WHERE "incumbent"='Lindsey Graham';
```
## Task
Generate a SQL query to answer the following question:
`What was the results when the incumbent was ernest istook?`

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

CREATE TABLE "oklahoma" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the results when the incumbent was ernest istook?`:
```sql
                SELECT "results" FROM "oklahoma" WHERE "incumbent"='Ernest Istook';
```
## Task
Generate a SQL query to answer the following question:
`What was the results for the district oklahoma 3?`

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

CREATE TABLE "oklahoma" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the results for the district oklahoma 3?`:
```sql
                SELECT "results" FROM "oklahoma" WHERE "district"='Oklahoma 3';
```
## Task
Generate a SQL query to answer the following question:
`How many party were listed for district oklahoma 5?`

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

CREATE TABLE "oklahoma" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many party were listed for district oklahoma 5?`:
```sql
                SELECT COUNT("party") FROM "oklahoma" WHERE "district"='Oklahoma 5';
```
## Task
Generate a SQL query to answer the following question:
`What is the party when the candidates were ernest istook (r) 69% garland mcwatters (d) 28%?`

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

CREATE TABLE "oklahoma" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party when the candidates were ernest istook (r) 69% garland mcwatters (d) 28%?`:
```sql
                SELECT "party" FROM "oklahoma" WHERE "candidates"='Ernest Istook (R) 69% Garland McWatters (D) 28%';
```
## Task
Generate a SQL query to answer the following question:
`when was the first elected for districk oklahoma 1?`

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

CREATE TABLE "oklahoma" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the first elected for districk oklahoma 1?`:
```sql
                SELECT "first_elected" FROM "oklahoma" WHERE "district"='Oklahoma 1';
```
## Task
Generate a SQL query to answer the following question:
`What were the results for the district oklahoma 5?`

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

CREATE TABLE "oklahoma" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results for the district oklahoma 5?`:
```sql
                SELECT "results" FROM "oklahoma" WHERE "district"='Oklahoma 5';
```
## Task
Generate a SQL query to answer the following question:
`How many parties is the incumbent Bob Brady a member of?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many parties is the incumbent Bob Brady a member of?`:
```sql
                SELECT COUNT("party") FROM "pennsylvania" WHERE "incumbent"='Bob Brady';
```
## Task
Generate a SQL query to answer the following question:
`How many candidates were there in the district won by Joe Hoeffel?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many candidates were there in the district won by Joe Hoeffel?`:
```sql
                SELECT COUNT("candidates") FROM "pennsylvania" WHERE "incumbent"='Joe Hoeffel';
```
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in district Pennsylvania 3?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the candidates in district Pennsylvania 3?`:
```sql
                SELECT "candidates" FROM "pennsylvania" WHERE "district"='Pennsylvania 3';
```
## Task
Generate a SQL query to answer the following question:
`What's the first elected year of the district whose incumbent is Jim Greenwood?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the first elected year of the district whose incumbent is Jim Greenwood?`:
```sql
                SELECT MAX("first_elected") FROM "pennsylvania" WHERE "incumbent"='Jim Greenwood';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the election featuring incumbent norman sisisky?`

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

CREATE TABLE "table1_1341423_46" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the election featuring incumbent norman sisisky?`:
```sql
                SELECT "results" FROM "table1_1341423_46" WHERE "incumbent"='Norman Sisisky';
```
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the district first elected in 1998 whose incumbent ended up being Paul Ryan?`

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

CREATE TABLE "wisconsin" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the candidates in the district first elected in 1998 whose incumbent ended up being Paul Ryan?`:
```sql
                SELECT "candidates" FROM "wisconsin" WHERE "first_elected"=1998 AND "incumbent"='Paul Ryan';
```
## Task
Generate a SQL query to answer the following question:
`Who ran in the district elections won by Tom Petri?`

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

CREATE TABLE "wisconsin" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who ran in the district elections won by Tom Petri?`:
```sql
                SELECT "candidates" FROM "wisconsin" WHERE "incumbent"='Tom Petri';
```
## Task
Generate a SQL query to answer the following question:
`When was the first election in the district whose incumbent is Ron Kind?`

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

CREATE TABLE "wisconsin" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the first election in the district whose incumbent is Ron Kind?`:
```sql
                SELECT MIN("first_elected") FROM "wisconsin" WHERE "incumbent"='Ron Kind';
```
## Task
Generate a SQL query to answer the following question:
`What year was the first election in the district whose election now was won by Ron Kind?`

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

CREATE TABLE "wisconsin" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the first election in the district whose election now was won by Ron Kind?`:
```sql
                SELECT MIN("first_elected") FROM "wisconsin" WHERE "incumbent"='Ron Kind';
```
## Task
Generate a SQL query to answer the following question:
`Name the first elected for texas 6 district`

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

CREATE TABLE "texas" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the first elected for texas 6 district`:
```sql
                SELECT "first_elected" FROM "texas" WHERE "district"='Texas 6';
```
## Task
Generate a SQL query to answer the following question:
`Name the incumbent for texas 22 district`

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

CREATE TABLE "texas" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incumbent for texas 22 district`:
```sql
                SELECT "incumbent" FROM "texas" WHERE "district"='Texas 22';
```
## Task
Generate a SQL query to answer the following question:
`How did the election in the Florida 14 district end?`

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

CREATE TABLE "florida" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did the election in the Florida 14 district end?`:
```sql
                SELECT "results" FROM "florida" WHERE "district"='Florida 14';
```
## Task
Generate a SQL query to answer the following question:
`Who's the incumbent of Florida 12 district?`

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

CREATE TABLE "florida" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the incumbent of Florida 12 district?`:
```sql
                SELECT "incumbent" FROM "florida" WHERE "district"='Florida 12';
```
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent of Florida 9?`

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

CREATE TABLE "florida" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the incumbent of Florida 9?`:
```sql
                SELECT "incumbent" FROM "florida" WHERE "district"='Florida 9';
```
## Task
Generate a SQL query to answer the following question:
`Who's the incumbent in Florida 6?`

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

CREATE TABLE "florida" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the incumbent in Florida 6?`:
```sql
                SELECT "incumbent" FROM "florida" WHERE "district"='Florida 6';
```
## Task
Generate a SQL query to answer the following question:
`What party does Bill McCollum belong to?`

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

CREATE TABLE "florida" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party does Bill McCollum belong to?`:
```sql
                SELECT "party" FROM "florida" WHERE "incumbent"='Bill McCollum';
```
## Task
Generate a SQL query to answer the following question:
`What are the results in the county with Peter Deutsch as a candidate?`

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

CREATE TABLE "florida" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results in the county with Peter Deutsch as a candidate?`:
```sql
                SELECT "results" FROM "florida" WHERE "incumbent"='Peter Deutsch';
```
## Task
Generate a SQL query to answer the following question:
`How did the election end for Robert Wexler?`

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

CREATE TABLE "florida" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did the election end for Robert Wexler?`:
```sql
                SELECT "results" FROM "florida" WHERE "incumbent"='Robert Wexler';
```
## Task
Generate a SQL query to answer the following question:
`What party was the winner in the district Maryland 6?`

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

CREATE TABLE "maryland" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party was the winner in the district Maryland 6?`:
```sql
                SELECT "party" FROM "maryland" WHERE "district"='Maryland 6';
```
## Task
Generate a SQL query to answer the following question:
`Who run for office in district Maryland 3?`

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

CREATE TABLE "maryland" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who run for office in district Maryland 3?`:
```sql
                SELECT "candidates" FROM "maryland" WHERE "district"='Maryland 3';
```
## Task
Generate a SQL query to answer the following question:
`List the candidates in district Maryland 1 where the republican party won.`

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

CREATE TABLE "maryland" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the candidates in district Maryland 1 where the republican party won.`:
```sql
                SELECT "candidates" FROM "maryland" WHERE "party"='Republican' AND "district"='Maryland 1';
```
## Task
Generate a SQL query to answer the following question:
`When did the elections take place in district Maryland 2?`

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

CREATE TABLE "maryland" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the elections take place in district Maryland 2?`:
```sql
                SELECT MIN("first_elected") FROM "maryland" WHERE "district"='Maryland 2';
```
## Task
Generate a SQL query to answer the following question:
`What party is Frank Lobiondo a member of?`

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

CREATE TABLE "new_jersey" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party is Frank Lobiondo a member of?`:
```sql
                SELECT "party" FROM "new_jersey" WHERE "incumbent"='Frank LoBiondo';
```
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the district whose incumbent is Bill Pascrell?`

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

CREATE TABLE "new_jersey" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the candidates in the district whose incumbent is Bill Pascrell?`:
```sql
                SELECT "candidates" FROM "new_jersey" WHERE "incumbent"='Bill Pascrell';
```
## Task
Generate a SQL query to answer the following question:
`What is the party of the district incumbent Jim Saxton?`

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

CREATE TABLE "new_jersey" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party of the district incumbent Jim Saxton?`:
```sql
                SELECT "party" FROM "new_jersey" WHERE "incumbent"='Jim Saxton';
```
## Task
Generate a SQL query to answer the following question:
`What party is John McHugh a member of?`

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party is John McHugh a member of?`:
```sql
                SELECT "party" FROM "new_york" WHERE "incumbent"='John McHugh';
```
## Task
Generate a SQL query to answer the following question:
`What's the party elected in the district that first elected in 1990?`

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the party elected in the district that first elected in 1990?`:
```sql
                SELECT "party" FROM "new_york" WHERE "first_elected"='1990';
```
## Task
Generate a SQL query to answer the following question:
`What's the first elected year of the district that Ed Towns is an incumbent of?`

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the first elected year of the district that Ed Towns is an incumbent of?`:
```sql
                SELECT "first_elected" FROM "new_york" WHERE "incumbent"='Ed Towns';
```
## Task
Generate a SQL query to answer the following question:
`How many elections have resulted in retired democratic hold?`

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many elections have resulted in retired democratic hold?`:
```sql
                SELECT COUNT("party") FROM "new_york" WHERE "results"='Retired Democratic hold';
```
## Task
Generate a SQL query to answer the following question:
`What were the candidates in the district that first elected in 1980?`

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the candidates in the district that first elected in 1980?`:
```sql
                SELECT "candidates" FROM "new_york" WHERE "first_elected"='1980';
```
## Task
Generate a SQL query to answer the following question:
`When was Chaka Fattah first elected in the Pennsylvania 2 district? `

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Chaka Fattah first elected in the Pennsylvania 2 district? `:
```sql
                SELECT "first_elected" FROM "pennsylvania" WHERE "district"='Pennsylvania 2';
```
## Task
Generate a SQL query to answer the following question:
`How many incumbents were first elected in 1984? `

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many incumbents were first elected in 1984? `:
```sql
                SELECT COUNT("incumbent") FROM "pennsylvania" WHERE "first_elected"='1984';
```
## Task
Generate a SQL query to answer the following question:
`When was incumbent Bud Shuster first elected? `

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was incumbent Bud Shuster first elected? `:
```sql
                SELECT "first_elected" FROM "pennsylvania" WHERE "incumbent"='Bud Shuster';
```
## Task
Generate a SQL query to answer the following question:
`How many candidates ran in the election where Mike Doyle was the incumbent? `

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many candidates ran in the election where Mike Doyle was the incumbent? `:
```sql
                SELECT COUNT("candidates") FROM "pennsylvania" WHERE "incumbent"='Mike Doyle';
```
## Task
Generate a SQL query to answer the following question:
`Incumbent Tim Holden belonged to what party? `

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Incumbent Tim Holden belonged to what party? `:
```sql
                SELECT "party" FROM "pennsylvania" WHERE "incumbent"='Tim Holden';
```
## Task
Generate a SQL query to answer the following question:
`In what district was Tim Holden the incumbent? `

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what district was Tim Holden the incumbent? `:
```sql
                SELECT "district" FROM "pennsylvania" WHERE "incumbent"='Tim Holden';
```
## Task
Generate a SQL query to answer the following question:
`Which incumbent was first elected in 1984?`

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

CREATE TABLE "tennessee" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which incumbent was first elected in 1984?`:
```sql
                SELECT "incumbent" FROM "tennessee" WHERE "first_elected"=1984;
```
## Task
Generate a SQL query to answer the following question:
`When was the incumbent in the Tennessee 4 district first elected? `

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

CREATE TABLE "tennessee" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the incumbent in the Tennessee 4 district first elected? `:
```sql
                SELECT "first_elected" FROM "tennessee" WHERE "district"='Tennessee 4';
```
## Task
Generate a SQL query to answer the following question:
`Who are the candidates in the Tennessee 3 district election? `

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

CREATE TABLE "tennessee" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the candidates in the Tennessee 3 district election? `:
```sql
                SELECT "candidates" FROM "tennessee" WHERE "district"='Tennessee 3';
```
## Task
Generate a SQL query to answer the following question:
`What year was Bob Clement first elected? `

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

CREATE TABLE "tennessee" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Bob Clement first elected? `:
```sql
                SELECT MIN("first_elected") FROM "tennessee" WHERE "incumbent"='Bob Clement';
```
## Task
Generate a SQL query to answer the following question:
`List all the candidates for the seat where the incumbent is Sam Gibbons?`

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

CREATE TABLE "florida" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all the candidates for the seat where the incumbent is Sam Gibbons?`:
```sql
                SELECT "candidates" FROM "florida" WHERE "incumbent"='Sam Gibbons';
```
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in district Wisconsin 4?`

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

CREATE TABLE "wisconsin" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the candidates in district Wisconsin 4?`:
```sql
                SELECT "candidates" FROM "wisconsin" WHERE "district"='Wisconsin 4';
```
## Task
Generate a SQL query to answer the following question:
`Who's the incumbent in the district that first elected in 1969?`

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

CREATE TABLE "wisconsin" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the incumbent in the district that first elected in 1969?`:
```sql
                SELECT "incumbent" FROM "wisconsin" WHERE "first_elected"=1969;
```
## Task
Generate a SQL query to answer the following question:
`Who's the incumbent of district Wisconsin 5?`

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

CREATE TABLE "wisconsin" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the incumbent of district Wisconsin 5?`:
```sql
                SELECT "incumbent" FROM "wisconsin" WHERE "district"='Wisconsin 5';
```
## Task
Generate a SQL query to answer the following question:
`How many districts does gary condit represent?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts does gary condit represent?`:
```sql
                SELECT COUNT("district") FROM "california" WHERE "incumbent"='Gary Condit';
```
## Task
Generate a SQL query to answer the following question:
`What party was first elected in 1974?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party was first elected in 1974?`:
```sql
                SELECT "party" FROM "california" WHERE "first_elected"=1974;
```
## Task
Generate a SQL query to answer the following question:
`What district is bill thomas from?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is bill thomas from?`:
```sql
                SELECT "district" FROM "california" WHERE "incumbent"='Bill Thomas';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent of district Georgia 2?`

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

CREATE TABLE "georgia" (
  "district" 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 of district Georgia 2?`:
```sql
                SELECT "incumbent" FROM "georgia" WHERE "district"='Georgia 2';
```
## Task
Generate a SQL query to answer the following question:
`What district is Mac Collins an incumbent in?`

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

CREATE TABLE "georgia" (
  "district" 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 Mac Collins an incumbent in?`:
```sql
                SELECT "district" FROM "georgia" WHERE "incumbent"='Mac Collins';
```
## Task
Generate a SQL query to answer the following question:
`What's the first elected year of the district who's been the last one to do so?`

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

CREATE TABLE "georgia" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the first elected year of the district who's been the last one to do so?`:
```sql
                SELECT MAX("first_elected") FROM "georgia";
```
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the district where Charlie Norwood is the incumbent?`

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

CREATE TABLE "georgia" (
  "district" 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 district where Charlie Norwood is the incumbent?`:
```sql
                SELECT "candidates" FROM "georgia" WHERE "incumbent"='Charlie Norwood';
```
## Task
Generate a SQL query to answer the following question:
`Which result did the Republican have with the incumbent, Billy Tauzin?`

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

CREATE TABLE "louisiana" (
  "district" 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 result did the Republican have with the incumbent, Billy Tauzin?`:
```sql
                SELECT "result" FROM "louisiana" WHERE "party"='Republican' AND "incumbent"='Billy Tauzin';
```