cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`who are the candidates for district new york 10?`

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

CREATE TABLE "table1_2668347_14" (
  "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 are the candidates for district new york 10?`:
```sql
                SELECT "candidates" FROM "table1_2668347_14" WHERE "district"='New York 10';
```
## Task
Generate a SQL query to answer the following question:
`how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%?`

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

CREATE TABLE "table1_2668347_14" (
  "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 times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%?`:
```sql
                SELECT COUNT("party") FROM "table1_2668347_14" WHERE "candidates"='Thomas H. Hubbard (DR) 51.5% Simeon Ford (F) 48.4%';
```
## Task
Generate a SQL query to answer the following question:
`what is the district when the party is federalist and first elected is 1814?`

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

CREATE TABLE "table1_2668347_14" (
  "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 is the district when the party is federalist and first elected is 1814?`:
```sql
                SELECT "district" FROM "table1_2668347_14" WHERE "party"='Federalist' AND "first_elected"='1814';
```
## Task
Generate a SQL query to answer the following question:
`Name the candidates for pennsylvania 14`

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

CREATE TABLE "table1_2668347_17" (
  "district" 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 pennsylvania 14`:
```sql
                SELECT "candidates" FROM "table1_2668347_17" WHERE "district"='Pennsylvania 14';
```
## Task
Generate a SQL query to answer the following question:
`Name the incumbent for jacob spangler (dr) 67.1% jacob hay (f) 32.9%`

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

CREATE TABLE "table1_2668347_17" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incumbent for jacob spangler (dr) 67.1% jacob hay (f) 32.9%`:
```sql
                SELECT "incumbent" FROM "table1_2668347_17" WHERE "candidates"='Jacob Spangler (DR) 67.1% Jacob Hay (F) 32.9%';
```
## Task
Generate a SQL query to answer the following question:
`Name the most first elected`

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

CREATE TABLE "table1_2668347_17" (
  "district" 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 most first elected`:
```sql
                SELECT MAX("first_elected") FROM "table1_2668347_17";
```
## Task
Generate a SQL query to answer the following question:
`Name the number of candidates for  samuel d. ingham`

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

CREATE TABLE "table1_2668347_17" (
  "district" 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  samuel d. ingham`:
```sql
                SELECT COUNT("candidates") FROM "table1_2668347_17" WHERE "incumbent"='Samuel D. Ingham';
```
## Task
Generate a SQL query to answer the following question:
`Which district did William A. Burwell (Dr) 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 `Which district did William A. Burwell (Dr) belong to? `:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='William A. Burwell (DR)';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the district represented by Thomas R. Gold?`

### Database Schema
This query will run on a 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 district represented by Thomas R. Gold?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Thomas R. Gold';
```
## Task
Generate a SQL query to answer the following question:
`Who is every incumbent when Kentucky 2 is the 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 `Who is every incumbent when Kentucky 2 is the district?`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Kentucky 2';
```
## Task
Generate a SQL query to answer the following question:
`Who is first elected when Kentucky 6 is the 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 `Who is first elected when Kentucky 6 is the district?`:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Kentucky 6';
```
## Task
Generate a SQL query to answer the following question:
`What is every district for incumbent Joseph Desha?`

### Database Schema
This query will run on a 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 is every district for incumbent Joseph Desha?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joseph Desha';
```
## Task
Generate a SQL query to answer the following question:
`Which party experienced a result of lost re-election democratic-republican hold?`

### Database Schema
This query will run on a 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 experienced a result of lost re-election democratic-republican hold?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "result"='Lost re-election Democratic-Republican hold';
```
## Task
Generate a SQL query to answer the following question:
`How many districts have John C. Calhoun 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts have John C. Calhoun as the incumbent?`:
```sql
                SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John C. Calhoun';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent in the Kentucky 8 district? `

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

CREATE TABLE "table1_2668367_7" (
  "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 incumbent in the Kentucky 8 district? `:
```sql
                SELECT "incumbent" FROM "table1_2668367_7" WHERE "district"='Kentucky 8';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the election in the Kentucky 8 district? `

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

CREATE TABLE "table1_2668367_7" (
  "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 in the Kentucky 8 district? `:
```sql
                SELECT "result" FROM "table1_2668367_7" WHERE "district"='Kentucky 8';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the election in the Kentucky 1 district? `

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

CREATE TABLE "table1_2668367_7" (
  "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 in the Kentucky 1 district? `:
```sql
                SELECT "result" FROM "table1_2668367_7" WHERE "district"='Kentucky 1';
```
## Task
Generate a SQL query to answer the following question:
`What district had an election with incumbent john smilie?`

### Database Schema
This query will run on a 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 district had an election with incumbent john smilie?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Smilie';
```
## Task
Generate a SQL query to answer the following question:
`How many districts first elected someone in 1808 and had george smith 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts first elected someone in 1808 and had george smith as the incumbent?`:
```sql
                SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1808' AND "incumbent"='George Smith';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent in Virginia 3?`

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

CREATE TABLE "table1_2668374_18" (
  "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 incumbent in Virginia 3?`:
```sql
                SELECT "incumbent" FROM "table1_2668374_18" WHERE "district"='Virginia 3';
```
## Task
Generate a SQL query to answer the following question:
`What incumbent was a federalist that was first elected in 1803?`

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

CREATE TABLE "table1_2668374_18" (
  "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 incumbent was a federalist that was first elected in 1803?`:
```sql
                SELECT "incumbent" FROM "table1_2668374_18" WHERE "party"='Federalist' AND "first_elected"='1803';
```
## Task
Generate a SQL query to answer the following question:
`How many parties were first elected in 1805?`

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

CREATE TABLE "table1_2668374_18" (
  "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 parties were first elected in 1805?`:
```sql
                SELECT COUNT("party") FROM "table1_2668374_18" WHERE "first_elected"='1805';
```
## Task
Generate a SQL query to answer the following question:
`What district was John Dawson from?`

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

CREATE TABLE "table1_2668374_18" (
  "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 district was John Dawson from?`:
```sql
                SELECT "district" FROM "table1_2668374_18" WHERE "incumbent"='John Dawson';
```
## Task
Generate a SQL query to answer the following question:
`Who were the running candidates when Samuel Riker was the incumbent?`

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

CREATE TABLE "table1_2668374_10" (
  "district" 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 running candidates when Samuel Riker was the incumbent?`:
```sql
                SELECT "candidates" FROM "table1_2668374_10" WHERE "incumbent"='Samuel Riker';
```
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the district where the incumbent was Nathaniel Macon?`

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

CREATE TABLE "table1_2668367_14" (
  "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 were the candidates in the district where the incumbent was Nathaniel Macon?`:
```sql
                SELECT "candidates" FROM "table1_2668367_14" WHERE "incumbent"='Nathaniel Macon';
```
## Task
Generate a SQL query to answer the following question:
`What party did the incumbent Joseph Pearson belong to?`

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

CREATE TABLE "table1_2668367_14" (
  "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 incumbent Joseph Pearson belong to?`:
```sql
                SELECT "party" FROM "table1_2668367_14" WHERE "incumbent"='Joseph Pearson';
```
## Task
Generate a SQL query to answer the following question:
`How many incumbents are there in Pennsylvania 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many incumbents are there in Pennsylvania 5?`:
```sql
                SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 5';
```
## Task
Generate a SQL query to answer the following question:
`What are the parties listed for Pennsylvania 8?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the parties listed for Pennsylvania 8?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 8';
```
## Task
Generate a SQL query to answer the following question:
`Name the incumbent for candidates Joseph Hiester (dr) 83.2% Roswell Wells (f) 16.8%.`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incumbent for candidates Joseph Hiester (dr) 83.2% Roswell Wells (f) 16.8%.`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Joseph Hiester (DR) 83.2% Roswell Wells (F) 16.8%';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for Andrew Gregg?`

### Database Schema
This query will run on a 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 for Andrew Gregg?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Andrew Gregg';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for Pennsylvania 8?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for Pennsylvania 8?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 8';
```
## Task
Generate a SQL query to answer the following question:
`What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 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 incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "first_elected"='1797' AND "district"='Virginia 5';
```
## Task
Generate a SQL query to answer the following question:
`When was the incumbent first elected in the district where the result was a democratic-republican gain? `

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the incumbent first elected in the district where the result was a democratic-republican gain? `:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "result"='Democratic-Republican gain';
```
## Task
Generate a SQL query to answer the following question:
`In what district was the incumbent Edwin Gray? `

### Database Schema
This query will run on a 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 `In what district was the incumbent Edwin Gray? `:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edwin Gray';
```
## Task
Generate a SQL query to answer the following question:
`When was the incumbent from the Virginia 10 district 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" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the incumbent from the Virginia 10 district first elected? `:
```sql
                SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 10';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for walter jones (dr) 99.0% henry lee (f) 1.0%`

### Database Schema
This query will run on a 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 `Name the result for walter jones (dr) 99.0% henry lee (f) 1.0%`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Walter Jones (DR) 99.0% Henry Lee (F) 1.0%';
```
## Task
Generate a SQL query to answer the following question:
`Name the district for matthew clay`

### Database Schema
This query will run on a 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 `Name the district for matthew clay`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Matthew Clay';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of first elected for john smith`

### Database Schema
This query will run on a 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 `Name the number of first elected for john smith`:
```sql
                SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Smith';
```
## Task
Generate a SQL query to answer the following question:
`Name the incumbent for virginia 18`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incumbent for virginia 18`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 18';
```
## Task
Generate a SQL query to answer the following question:
`Name the district for  john randolph (dr)`

### Database Schema
This query will run on a 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 `Name the district for  john randolph (dr)`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='John Randolph (DR)';
```
## Task
Generate a SQL query to answer the following question:
`Name the incumbent for virginia 4`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incumbent for virginia 4`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 4';
```
## Task
Generate a SQL query to answer the following question:
`When was the earliest person elected?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the earliest person elected?`:
```sql
                SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e";
```
## Task
Generate a SQL query to answer the following question:
`What party was re-elected to Virginia 12?`

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

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

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest first elected?`:
```sql
                SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e";
```
## Task
Generate a SQL query to answer the following question:
`How many times were the candidates leven powell (f) 63.8% roger west (dr) 36.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 `How many times were the candidates leven powell (f) 63.8% roger west (dr) 36.4%?`:
```sql
                SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Leven Powell (F) 63.8% Roger West (DR) 36.4%';
```
## Task
Generate a SQL query to answer the following question:
`What is the district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Leven Powell (F) 63.8% Roger West (DR) 36.4%';
```
## Task
Generate a SQL query to answer the following question:
`What is the district with the incumbent john nicholas?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the district with the incumbent john nicholas?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Nicholas';
```
## Task
Generate a SQL query to answer the following question:
`How many were in district virginia 6?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in district virginia 6?`:
```sql
                SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 6';
```
## Task
Generate a SQL query to answer the following question:
`If the district is Virginia 8, who 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 `If the district is Virginia 8, who is the Incumbent?`:
```sql
                SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 8';
```
## Task
Generate a SQL query to answer the following question:
`If the district is Virginia 17, who are the candidates?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the district is Virginia 17, who are the candidates?`:
```sql
                SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 17';
```
## Task
Generate a SQL query to answer the following question:
`In how many different parts was the incumbent Abraham B. Venable?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many different parts was the incumbent Abraham B. Venable?`:
```sql
                SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Abraham B. Venable';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the mount panorama circuit?`

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

CREATE TABLE "table1_26686908_2" (
  "rd" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "championship" text,
  "challenge" text,
  "production" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the mount panorama circuit?`:
```sql
                SELECT "date" FROM "table1_26686908_2" WHERE "circuit"='Mount Panorama Circuit';
```
## Task
Generate a SQL query to answer the following question:
`What was the location for the date 7–10 october?`

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

CREATE TABLE "table1_26686908_2" (
  "rd" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "championship" text,
  "challenge" text,
  "production" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location for the date 7–10 october?`:
```sql
                SELECT "city_state" FROM "table1_26686908_2" WHERE "date"='7–10 October';
```
## Task
Generate a SQL query to answer the following question:
`Who handled production for the race when the championship went to david wall and challenge was jordan ormsby?`

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

CREATE TABLE "table1_26686908_2" (
  "rd" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "championship" text,
  "challenge" text,
  "production" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who handled production for the race when the championship went to david wall and challenge was jordan ormsby?`:
```sql
                SELECT "production" FROM "table1_26686908_2" WHERE "championship"='David Wall' AND "challenge"='Jordan Ormsby';
```
## Task
Generate a SQL query to answer the following question:
`Which city and state hosted the adelaide street circuit?`

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

CREATE TABLE "table1_26686908_2" (
  "rd" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "championship" text,
  "challenge" text,
  "production" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city and state hosted the adelaide street circuit?`:
```sql
                SELECT "city_state" FROM "table1_26686908_2" WHERE "circuit"='Adelaide Street Circuit';
```
## Task
Generate a SQL query to answer the following question:
`Which circuit was held on 25–28 march?`

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

CREATE TABLE "table1_26686908_2" (
  "rd" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "championship" text,
  "challenge" text,
  "production" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit was held on 25–28 march?`:
```sql
                SELECT "circuit" FROM "table1_26686908_2" WHERE "date"='25–28 March';
```
## Task
Generate a SQL query to answer the following question:
`How many productions are shown for rd 2?`

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

CREATE TABLE "table1_26686908_2" (
  "rd" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "championship" text,
  "challenge" text,
  "production" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many productions are shown for rd 2?`:
```sql
                SELECT COUNT("production") FROM "table1_26686908_2" WHERE "rd"='Rd 2';
```
## Task
Generate a SQL query to answer the following question:
`Name the writers for 46 in series`

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

CREATE TABLE "table1_26702078_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the writers for 46 in series`:
```sql
                SELECT "writer_s" FROM "table1_26702078_1" WHERE "no_in_series"=46;
```
## Task
Generate a SQL query to answer the following question:
`Name the production code for 60 number in series`

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

CREATE TABLE "table1_26702078_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the production code for 60 number in series`:
```sql
                SELECT "production_code" FROM "table1_26702078_1" WHERE "no_in_series"=60;
```
## Task
Generate a SQL query to answer the following question:
`what is the title of the episode with the director pamela fryman and the production code 2alh07?`

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

CREATE TABLE "table1_26701861_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title of the episode with the director pamela fryman and the production code 2alh07?`:
```sql
                SELECT "title" FROM "table1_26701861_1" WHERE "director"='Pamela Fryman' AND "production_code"='2ALH07';
```
## Task
Generate a SQL query to answer the following question:
`Which occurence has the matrix sim marked as 0.925?`

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

CREATE TABLE "promoter" (
  "detailed_family_information" text,
  "from" real,
  "to" real,
  "anchor" real,
  "orientation" text,
  "conserved_in_mus_musculus" text,
  "matrix_sim" text,
  "sequence" text,
  "occurrence" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which occurence has the matrix sim marked as 0.925?`:
```sql
                SELECT "occurrence" FROM "promoter" WHERE "matrix_sim"='0.925';
```
## Task
Generate a SQL query to answer the following question:
`What is the detailed family information where the sequence is aagtact?`

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

CREATE TABLE "promoter" (
  "detailed_family_information" text,
  "from" real,
  "to" real,
  "anchor" real,
  "orientation" text,
  "conserved_in_mus_musculus" text,
  "matrix_sim" text,
  "sequence" text,
  "occurrence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the detailed family information where the sequence is aagtact?`:
```sql
                SELECT COUNT("detailed_family_information") FROM "promoter" WHERE "sequence"='aAGTAct';
```
## Task
Generate a SQL query to answer the following question:
`What occurence has 0.925 listed as the matrix sim?`

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

CREATE TABLE "promoter" (
  "detailed_family_information" text,
  "from" real,
  "to" real,
  "anchor" real,
  "orientation" text,
  "conserved_in_mus_musculus" text,
  "matrix_sim" text,
  "sequence" text,
  "occurrence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What occurence has 0.925 listed as the matrix sim?`:
```sql
                SELECT MAX("occurrence") FROM "promoter" WHERE "matrix_sim"='0.925';
```
## Task
Generate a SQL query to answer the following question:
`What is the number listed in from for the Krueppel Like Transcription Factors?`

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

CREATE TABLE "promoter" (
  "detailed_family_information" text,
  "from" real,
  "to" real,
  "anchor" real,
  "orientation" text,
  "conserved_in_mus_musculus" text,
  "matrix_sim" text,
  "sequence" text,
  "occurrence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number listed in from for the Krueppel Like Transcription Factors?`:
```sql
                SELECT MIN("from") FROM "promoter" WHERE "detailed_family_information"='Krueppel like transcription factors';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number listed in the from category? `

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

CREATE TABLE "promoter" (
  "detailed_family_information" text,
  "from" real,
  "to" real,
  "anchor" real,
  "orientation" text,
  "conserved_in_mus_musculus" text,
  "matrix_sim" text,
  "sequence" text,
  "occurrence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number listed in the from category? `:
```sql
                SELECT MIN("from") FROM "promoter";
```
## Task
Generate a SQL query to answer the following question:
`What is the conserved in mus musculus listing for sequence aagtact?`

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

CREATE TABLE "promoter" (
  "detailed_family_information" text,
  "from" real,
  "to" real,
  "anchor" real,
  "orientation" text,
  "conserved_in_mus_musculus" text,
  "matrix_sim" text,
  "sequence" text,
  "occurrence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the conserved in mus musculus listing for sequence aagtact?`:
```sql
                SELECT "conserved_in_mus_musculus" FROM "promoter" WHERE "sequence"='aAGTAct';
```
## Task
Generate a SQL query to answer the following question:
`What is the nt identity when the species is drosophilia melanogaster?`

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

CREATE TABLE "orthologs" (
  "species" text,
  "common_name" text,
  "protein_name" text,
  "accession_number" text,
  "nt_length" text,
  "nt_identity" text,
  "aa_length" text,
  "aa_identity" text,
  "e_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nt identity when the species is drosophilia melanogaster?`:
```sql
                SELECT "nt_identity" FROM "orthologs" WHERE "species"='Drosophilia melanogaster';
```
## Task
Generate a SQL query to answer the following question:
`What is the protein name when aa length is 202 aa?`

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

CREATE TABLE "orthologs" (
  "species" text,
  "common_name" text,
  "protein_name" text,
  "accession_number" text,
  "nt_length" text,
  "nt_identity" text,
  "aa_length" text,
  "aa_identity" text,
  "e_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the protein name when aa length is 202 aa?`:
```sql
                SELECT "protein_name" FROM "orthologs" WHERE "aa_length"='202 aa';
```
## Task
Generate a SQL query to answer the following question:
`What is the protein name when the e-value is 2.50e-41?`

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

CREATE TABLE "orthologs" (
  "species" text,
  "common_name" text,
  "protein_name" text,
  "accession_number" text,
  "nt_length" text,
  "nt_identity" text,
  "aa_length" text,
  "aa_identity" text,
  "e_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the protein name when the e-value is 2.50e-41?`:
```sql
                SELECT "protein_name" FROM "orthologs" WHERE "e_value"='2.50E-41';
```
## Task
Generate a SQL query to answer the following question:
`What is the aa length when the protein name is c11orf73?`

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

CREATE TABLE "orthologs" (
  "species" text,
  "common_name" text,
  "protein_name" text,
  "accession_number" text,
  "nt_length" text,
  "nt_identity" text,
  "aa_length" text,
  "aa_identity" text,
  "e_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aa length when the protein name is c11orf73?`:
```sql
                SELECT "aa_length" FROM "orthologs" WHERE "protein_name"='C11orf73';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the accession number xp_001843282?`

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

CREATE TABLE "orthologs" (
  "species" text,
  "common_name" text,
  "protein_name" text,
  "accession_number" text,
  "nt_length" text,
  "nt_identity" text,
  "aa_length" text,
  "aa_identity" text,
  "e_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the accession number xp_001843282?`:
```sql
                SELECT COUNT("common_name") FROM "orthologs" WHERE "accession_number"='XP_001843282';
```
## Task
Generate a SQL query to answer the following question:
`How many titles have U.S. viewers 1.66 million.`

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

CREATE TABLE "table1_26736040_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles have U.S. viewers 1.66 million.`:
```sql
                SELECT COUNT("title") FROM "table1_26736040_1" WHERE "u_s_viewers_millions"='1.66';
```
## Task
Generate a SQL query to answer the following question:
`What is every title when U.S. viewers is 1.04 million.`

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

CREATE TABLE "table1_26736040_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every title when U.S. viewers is 1.04 million.`:
```sql
                SELECT "title" FROM "table1_26736040_1" WHERE "u_s_viewers_millions"='1.04';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number in series with director as Phil Abraham?`

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

CREATE TABLE "table1_26736040_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number in series with director as Phil Abraham?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_26736040_1" WHERE "directed_by"='Phil Abraham';
```