cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the result of the ballot that had a 52.49% yes vote percentage?`

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

CREATE TABLE "1930_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the ballot that had a 52.49% yes vote percentage?`:
```sql
                SELECT "passed" FROM "1930_general_election" WHERE "pct_yes"='52.49%';
```
## Task
Generate a SQL query to answer the following question:
`List the total number of constitutional amendments for a five cent gasoline tax bill.`

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

CREATE TABLE "1928_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the total number of constitutional amendments for a five cent gasoline tax bill.`:
```sql
                SELECT COUNT("const_amd") FROM "1928_general_election" WHERE "description"='Five Cent Gasoline Tax Bill';
```
## Task
Generate a SQL query to answer the following question:
`What type of proposal is measure number 3?`

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

CREATE TABLE "1928_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of proposal is measure number 3?`:
```sql
                SELECT "type" FROM "1928_general_election" WHERE "meas_num"=3;
```
## Task
Generate a SQL query to answer the following question:
`How many yes votes did the measure that got 60.39% yes votes get?`

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

CREATE TABLE "1932_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many yes votes did the measure that got 60.39% yes votes get?`:
```sql
                SELECT "yes_votes" FROM "1932_general_election" WHERE "pct_yes"='60.39%';
```
## Task
Generate a SQL query to answer the following question:
`What is the description of the measure that got 39.57% yes votes?`

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

CREATE TABLE "1932_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the description of the measure that got 39.57% yes votes?`:
```sql
                SELECT "description" FROM "1932_general_election" WHERE "pct_yes"='39.57%';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the tax supervising and conservation bill?`

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

CREATE TABLE "1932_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the tax supervising and conservation bill?`:
```sql
                SELECT MIN("meas_num") FROM "1932_general_election" WHERE "description"='Tax Supervising and Conservation Bill';
```
## Task
Generate a SQL query to answer the following question:
`How many ballot measures had a percentage yes of 52.11%?`

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

CREATE TABLE "1954_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many ballot measures had a percentage yes of 52.11%?`:
```sql
                SELECT COUNT("passed") FROM "1954_general_election" WHERE "pct_yes"='52.11%';
```
## Task
Generate a SQL query to answer the following question:
`What is the measure where the yes% is 44.06%?`

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

CREATE TABLE "1954_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the measure where the yes% is 44.06%?`:
```sql
                SELECT "description" FROM "1954_general_election" WHERE "pct_yes"='44.06%';
```
## Task
Generate a SQL query to answer the following question:
`How many measures had a yes vote of 216545?`

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

CREATE TABLE "1954_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many measures had a yes vote of 216545?`:
```sql
                SELECT COUNT("passed") FROM "1954_general_election" WHERE "yes_votes"=216545;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest measure number?`

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

CREATE TABLE "1954_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest measure number?`:
```sql
                SELECT MAX("meas_num") FROM "1954_general_election";
```
## Task
Generate a SQL query to answer the following question:
`What was the percentage of yes votes for the measure where the no votes number 199174?`

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

CREATE TABLE "1962_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage of yes votes for the measure where the no votes number 199174?`:
```sql
                SELECT "pct_yes" FROM "1962_general_election" WHERE "no_votes"=199174;
```
## Task
Generate a SQL query to answer the following question:
`How many types are there for the measure where there were 312680 yes votes?`

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

CREATE TABLE "1962_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many types are there for the measure where there were 312680 yes votes?`:
```sql
                SELECT COUNT("type") FROM "1962_general_election" WHERE "yes_votes"=312680;
```
## Task
Generate a SQL query to answer the following question:
`How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?`

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

CREATE TABLE "1962_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?`:
```sql
                SELECT COUNT("no_votes") FROM "1962_general_election" WHERE "description"='Forest Rehabilitation Debt Limit Amendment';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of measure that voted on the Power Development Debt Limit Amendment?`

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

CREATE TABLE "1962_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of measure that voted on the Power Development Debt Limit Amendment?`:
```sql
                SELECT "type" FROM "1962_general_election" WHERE "description"='Power Development Debt Limit Amendment';
```
## Task
Generate a SQL query to answer the following question:
`What vote passed for the measure with the description, authorizing state acceptance of certain gifts? `

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

CREATE TABLE "1956_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What vote passed for the measure with the description, authorizing state acceptance of certain gifts? `:
```sql
                SELECT "passed" FROM "1956_general_election" WHERE "description"='Authorizing State Acceptance of Certain Gifts';
```
## Task
Generate a SQL query to answer the following question:
`How many votes passed are listed on the measure that had 390338 yes votes? `

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

CREATE TABLE "1956_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes passed are listed on the measure that had 390338 yes votes? `:
```sql
                SELECT COUNT("passed") FROM "1956_general_election" WHERE "yes_votes"=390338;
```
## Task
Generate a SQL query to answer the following question:
`What was the type when there were 175932 yes votes? `

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

CREATE TABLE "1956_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the type when there were 175932 yes votes? `:
```sql
                SELECT "type" FROM "1956_general_election" WHERE "yes_votes"=175932;
```
## Task
Generate a SQL query to answer the following question:
`What is the aggregate number of yes votes where no votes is littler than 299939.1619948521 and % yes is 66.49%`

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

CREATE TABLE "1958_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aggregate number of yes votes where no votes is littler than 299939.1619948521 and % yes is 66.49%`:
```sql
                SELECT COUNT("yes_votes") FROM "1958_general_election" WHERE "no_votes"<299939.1619948521 AND "pct_yes"='66.49%';
```
## Task
Generate a SQL query to answer the following question:
`What is the description of the measure that got 78.27% yes votes?`

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

CREATE TABLE "1970_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the description of the measure that got 78.27% yes votes?`:
```sql
                SELECT "description" FROM "1970_general_election" WHERE "pct_yes"='78.27%';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest measure number?`

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

CREATE TABLE "1970_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest measure number?`:
```sql
                SELECT MAX("meas_num") FROM "1970_general_election";
```
## Task
Generate a SQL query to answer the following question:
`How many measures numbered 8 were a constitutional ammendment?`

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

CREATE TABLE "1970_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many measures numbered 8 were a constitutional ammendment?`:
```sql
                SELECT COUNT("const_amd") FROM "1970_general_election" WHERE "meas_num"=8;
```
## Task
Generate a SQL query to answer the following question:
`How many type classifications are given to the measure with the description, calling convention to revise state constitution? `

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

CREATE TABLE "1910_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many type classifications are given to the measure with the description, calling convention to revise state constitution? `:
```sql
                SELECT COUNT("type") FROM "1910_general_election" WHERE "description"='Calling Convention to revise State Constitution';
```
## Task
Generate a SQL query to answer the following question:
`What is the yes percentage in the measure that had 35270 yes votes? `

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

CREATE TABLE "1910_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the yes percentage in the measure that had 35270 yes votes? `:
```sql
                SELECT "pct_yes" FROM "1910_general_election" WHERE "yes_votes"=35270;
```
## Task
Generate a SQL query to answer the following question:
`Was the constitution amended for the measure with description , to annex part of Washington county to multnomah? `

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

CREATE TABLE "1910_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the constitution amended for the measure with description , to annex part of Washington county to multnomah? `:
```sql
                SELECT "const_amd" FROM "1910_general_election" WHERE "description"='To Annex Part of Washington County to Multnomah';
```
## Task
Generate a SQL query to answer the following question:
`When the no votes was 322682, what was the max meas. number?`

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

CREATE TABLE "may_1970_primary_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the no votes was 322682, what was the max meas. number?`:
```sql
                SELECT MAX("meas_num") FROM "may_1970_primary_election" WHERE "no_votes"=322682;
```
## Task
Generate a SQL query to answer the following question:
`Was the constitution amended on the measure described as authorizes bonds for water development fund? `

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

CREATE TABLE "may_1974_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the constitution amended on the measure described as authorizes bonds for water development fund? `:
```sql
                SELECT "const_amd" FROM "may_1974_election" WHERE "description"='Authorizes bonds for water development fund';
```
## Task
Generate a SQL query to answer the following question:
`How yes votes were there for measure 4? `

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

CREATE TABLE "may_1974_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How yes votes were there for measure 4? `:
```sql
                SELECT MAX("yes_votes") FROM "may_1974_election" WHERE "meas_num"=4;
```
## Task
Generate a SQL query to answer the following question:
`Was the constitution amended when the percentage of yes votes was 69.82%?`

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

CREATE TABLE "may_1974_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the constitution amended when the percentage of yes votes was 69.82%?`:
```sql
                SELECT "const_amd" FROM "may_1974_election" WHERE "pct_yes"='69.82%';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest measure number? `

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

CREATE TABLE "may_1974_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest measure number? `:
```sql
                SELECT MIN("meas_num") FROM "may_1974_election";
```
## Task
Generate a SQL query to answer the following question:
`What was the type of ballot measures if the % of yes vote is 32.47%?`

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

CREATE TABLE "1914_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the type of ballot measures if the % of yes vote is 32.47%?`:
```sql
                SELECT "type" FROM "1914_general_election" WHERE "pct_yes"='32.47%';
```
## Task
Generate a SQL query to answer the following question:
`What was the type of ballot measure with the description of Department of Industry and Public Works Amendment?`

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

CREATE TABLE "1914_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the type of ballot measure with the description of Department of Industry and Public Works Amendment?`:
```sql
                SELECT "type" FROM "1914_general_election" WHERE "description"='Department of Industry and Public Works Amendment';
```
## Task
Generate a SQL query to answer the following question:
`How many data are there under NO vote with a description of $1500 tax exemption amendment?`

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

CREATE TABLE "1914_general_election" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many data are there under NO vote with a description of $1500 tax exemption amendment?`:
```sql
                SELECT COUNT("no_votes") FROM "1914_general_election" WHERE "description"='$1500 Tax Exemption Amendment';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage of yes when there were 218846 yes votes`

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

CREATE TABLE "table1_256286_61" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of yes when there were 218846 yes votes`:
```sql
                SELECT "pct_yes" FROM "table1_256286_61" WHERE "yes_votes"=218846;
```
## Task
Generate a SQL query to answer the following question:
`How many type catagories are listed when the percentage of yes is 68.91%?`

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

CREATE TABLE "table1_256286_61" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many type catagories are listed when the percentage of yes is 68.91%?`:
```sql
                SELECT COUNT("type") FROM "table1_256286_61" WHERE "pct_yes"='68.91%';
```
## Task
Generate a SQL query to answer the following question:
`What is the type when yes votes are 546255? `

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

CREATE TABLE "table1_256286_61" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type when yes votes are 546255? `:
```sql
                SELECT "type" FROM "table1_256286_61" WHERE "yes_votes"=546255;
```
## Task
Generate a SQL query to answer the following question:
`What is the measure number for the bill described as obscenity and sexual conduct bill? `

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

CREATE TABLE "table1_256286_61" (
  "meas_num" real,
  "passed" text,
  "yes_votes" real,
  "no_votes" real,
  "pct_yes" text,
  "const_amd" text,
  "type" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the measure number for the bill described as obscenity and sexual conduct bill? `:
```sql
                SELECT "meas_num" FROM "table1_256286_61" WHERE "description"='Obscenity and sexual conduct bill';
```
## Task
Generate a SQL query to answer the following question:
`How many points did art renner have?`

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

CREATE TABLE "individual_scoring_totals" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did art renner have?`:
```sql
                SELECT COUNT("points") FROM "individual_scoring_totals" WHERE "player"='Art Renner';
```
## Task
Generate a SQL query to answer the following question:
`How many touchdowns did bill culligan have?`

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

CREATE TABLE "individual_scoring_totals" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns did bill culligan have?`:
```sql
                SELECT COUNT("touchdowns") FROM "individual_scoring_totals" WHERE "player"='Bill Culligan';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of touchdowns by a player?`

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

CREATE TABLE "individual_scoring_totals" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of touchdowns by a player?`:
```sql
                SELECT MAX("touchdowns") FROM "individual_scoring_totals";
```
## Task
Generate a SQL query to answer the following question:
`How many points did robert stenberg have?`

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

CREATE TABLE "individual_scoring_totals" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did robert stenberg have?`:
```sql
                SELECT MIN("points") FROM "individual_scoring_totals" WHERE "player"='Robert Stenberg';
```
## Task
Generate a SQL query to answer the following question:
`Where was the quake that began at 14:07?`

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

CREATE TABLE "table_of_earthquakes" (
  "date" text,
  "origin_time" text,
  "epicentre_lat_s" text,
  "epicentre_long_e" text,
  "local_magnitude" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the quake that began at 14:07?`:
```sql
                SELECT "location" FROM "table_of_earthquakes" WHERE "origin_time"='14:07';
```
## Task
Generate a SQL query to answer the following question:
`What was the epicenter latitude for the quake that started at 17:09?`

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

CREATE TABLE "table_of_earthquakes" (
  "date" text,
  "origin_time" text,
  "epicentre_lat_s" text,
  "epicentre_long_e" text,
  "local_magnitude" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the epicenter latitude for the quake that started at 17:09?`:
```sql
                SELECT "epicentre_lat_s" FROM "table_of_earthquakes" WHERE "origin_time"='17:09';
```
## Task
Generate a SQL query to answer the following question:
`When "pants on fire" is the title what is the air date?`

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

CREATE TABLE "table1_25649467_2" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When "pants on fire" is the title what is the air date?`:
```sql
                SELECT "original_air_date" FROM "table1_25649467_2" WHERE "title"='\"Pants on Fire\"';
```
## Task
Generate a SQL query to answer the following question:
`When "the charlotte letter" is the title what is the air date?`

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

CREATE TABLE "table1_25649467_2" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When "the charlotte letter" is the title what is the air date?`:
```sql
                SELECT "original_air_date" FROM "table1_25649467_2" WHERE "title"='\"The Charlotte Letter\"';
```
## Task
Generate a SQL query to answer the following question:
`When "the 37-year itch" is the title what is the lowest series number?`

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

CREATE TABLE "table1_25649467_2" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When "the 37-year itch" is the title what is the lowest series number?`:
```sql
                SELECT MIN("series_num") FROM "table1_25649467_2" WHERE "title"='\"The 37-Year Itch\"';
```
## Task
Generate a SQL query to answer the following question:
`When 12 is the season number how many series numbers are there?`

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

CREATE TABLE "table1_25649467_2" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 12 is the season number how many series numbers are there?`:
```sql
                SELECT COUNT("series_num") FROM "table1_25649467_2" WHERE "season_num"=12;
```
## Task
Generate a SQL query to answer the following question:
`Who had the mountains classification when borut božič was the winner?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "sprint_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the mountains classification when borut božič was the winner?`:
```sql
                SELECT "mountains_classification" FROM "classification_leadership" WHERE "winner"='Borut Božič';
```
## Task
Generate a SQL query to answer the following question:
`What was the team classification where andré greipel was the winner and had the points classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "sprint_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team classification where andré greipel was the winner and had the points classification?`:
```sql
                SELECT "team_classification" FROM "classification_leadership" WHERE "winner"='André Greipel' AND "points_classification"='André Greipel';
```
## Task
Generate a SQL query to answer the following question:
`How many stages are there?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "sprint_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stages are there?`:
```sql
                SELECT MAX("stage") FROM "classification_leadership";
```
## Task
Generate a SQL query to answer the following question:
`How many sprint classifications are there where marco frapporti is the winner?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "sprint_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sprint classifications are there where marco frapporti is the winner?`:
```sql
                SELECT COUNT("sprint_classification") FROM "classification_leadership" WHERE "winner"='Marco Frapporti';
```
## Task
Generate a SQL query to answer the following question:
`Who was the second couple for the episode having an ITV1 ranking of 29?`

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

CREATE TABLE "series_1" (
  "num" real,
  "airdate" text,
  "no_of_couples" real,
  "first_couple" text,
  "second_couple" text,
  "third_couple" text,
  "fourth_couple" text,
  "viewers_millions" text,
  "itv1_weekly_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the second couple for the episode having an ITV1 ranking of 29?`:
```sql
                SELECT "second_couple" FROM "series_1" WHERE "itv1_weekly_ranking"=29;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum ITV1 weekly ranking?`

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

CREATE TABLE "series_1" (
  "num" real,
  "airdate" text,
  "no_of_couples" real,
  "first_couple" text,
  "second_couple" text,
  "third_couple" text,
  "fourth_couple" text,
  "viewers_millions" text,
  "itv1_weekly_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum ITV1 weekly ranking?`:
```sql
                SELECT MAX("itv1_weekly_ranking") FROM "series_1";
```
## Task
Generate a SQL query to answer the following question:
`What was the number of viewers for the episode having a fourth couple of Tony and Jamie?`

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

CREATE TABLE "series_1" (
  "num" real,
  "airdate" text,
  "no_of_couples" real,
  "first_couple" text,
  "second_couple" text,
  "third_couple" text,
  "fourth_couple" text,
  "viewers_millions" text,
  "itv1_weekly_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of viewers for the episode having a fourth couple of Tony and Jamie?`:
```sql
                SELECT "viewers_millions" FROM "series_1" WHERE "fourth_couple"='Tony and Jamie';
```
## Task
Generate a SQL query to answer the following question:
`Who was the first couple in the episode having a fourth couple of Sammy and Nat?`

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

CREATE TABLE "series_1" (
  "num" real,
  "airdate" text,
  "no_of_couples" real,
  "first_couple" text,
  "second_couple" text,
  "third_couple" text,
  "fourth_couple" text,
  "viewers_millions" text,
  "itv1_weekly_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the first couple in the episode having a fourth couple of Sammy and Nat?`:
```sql
                SELECT "first_couple" FROM "series_1" WHERE "fourth_couple"='Sammy and Nat';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum ITV1 ranking for the episode having viewership of 5.42 million?`

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

CREATE TABLE "series_1" (
  "num" real,
  "airdate" text,
  "no_of_couples" real,
  "first_couple" text,
  "second_couple" text,
  "third_couple" text,
  "fourth_couple" text,
  "viewers_millions" text,
  "itv1_weekly_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum ITV1 ranking for the episode having viewership of 5.42 million?`:
```sql
                SELECT MIN("itv1_weekly_ranking") FROM "series_1" WHERE "viewers_millions"='5.42';
```
## Task
Generate a SQL query to answer the following question:
`What episode number in the series was viewed by 13.66 million people in the U.S.?`

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

CREATE TABLE "table1_25668962_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" 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 episode number in the series was viewed by 13.66 million people in the U.S.?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_25668962_1" WHERE "u_s_viewers_million"='13.66';
```
## Task
Generate a SQL query to answer the following question:
`How many million U.S. viewers watched the epiode with a production code of 1arc12?`

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

CREATE TABLE "table1_25668962_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" 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 `How many million U.S. viewers watched the epiode with a production code of 1arc12?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_25668962_1" WHERE "production_code"='1ARC12';
```
## Task
Generate a SQL query to answer the following question:
`How many million U.S. viewers watched the episode with a production code of 1arc03?`

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

CREATE TABLE "table1_25668962_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" 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 `How many million U.S. viewers watched the episode with a production code of 1arc03?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_25668962_1" WHERE "production_code"='1ARC03';
```
## Task
Generate a SQL query to answer the following question:
`How many million U.S. viewers watched episode number 6 in the series?`

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

CREATE TABLE "table1_25668962_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" 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 `How many million U.S. viewers watched episode number 6 in the series?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_25668962_1" WHERE "no_in_series"=6;
```
## Task
Generate a SQL query to answer the following question:
`Who directed episode number 18 in the series?`

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

CREATE TABLE "table1_25668962_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" 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 `Who directed episode number 18 in the series?`:
```sql
                SELECT "directed_by" FROM "table1_25668962_1" WHERE "no_in_series"=18;
```
## Task
Generate a SQL query to answer the following question:
`How many episode numbers are there on the show whose first couple was Stuart and Pegah>?`

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

CREATE TABLE "series_2" (
  "num" real,
  "airdate" text,
  "no_of_couples" real,
  "1st_couple" text,
  "2nd_couple" text,
  "3rd_couple" text,
  "4th_couple" text,
  "viewers_millions" text,
  "itv1_weekly_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episode numbers are there on the show whose first couple was Stuart and Pegah>?`:
```sql
                SELECT COUNT("num") FROM "series_2" WHERE "1st_couple"='Stuart and Pegah';
```
## Task
Generate a SQL query to answer the following question:
`Who were the 3rd couple that were viewed by 4.89 million viewers? `

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

CREATE TABLE "series_2" (
  "num" real,
  "airdate" text,
  "no_of_couples" real,
  "1st_couple" text,
  "2nd_couple" text,
  "3rd_couple" text,
  "4th_couple" text,
  "viewers_millions" text,
  "itv1_weekly_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the 3rd couple that were viewed by 4.89 million viewers? `:
```sql
                SELECT "3rd_couple" FROM "series_2" WHERE "viewers_millions"='4.89';
```
## Task
Generate a SQL query to answer the following question:
`What location(s) did patrick mckenna lead the most laps?`

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

CREATE TABLE "race_calendar_and_results" (
  "rnd" text,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "supporting" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location(s) did patrick mckenna lead the most laps?`:
```sql
                SELECT "location" FROM "race_calendar_and_results" WHERE "most_laps_led"='Patrick McKenna';
```
## Task
Generate a SQL query to answer the following question:
`How many races went for 10 rounds?`

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

CREATE TABLE "race_calendar_and_results" (
  "rnd" text,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "supporting" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races went for 10 rounds?`:
```sql
                SELECT COUNT("fastest_lap") FROM "race_calendar_and_results" WHERE "rnd"='10';
```
## Task
Generate a SQL query to answer the following question:
`Who had the most laps led in monterey, california when scott rarick won the race?`

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

CREATE TABLE "race_calendar_and_results" (
  "rnd" text,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "supporting" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most laps led in monterey, california when scott rarick won the race?`:
```sql
                SELECT "most_laps_led" FROM "race_calendar_and_results" WHERE "location"='Monterey, California' AND "winning_driver"='Scott Rarick';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning team when mikhail goikhberg was the winning driver?`

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

CREATE TABLE "race_calendar_and_results" (
  "rnd" text,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "supporting" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning team when mikhail goikhberg was the winning driver?`:
```sql
                SELECT "winning_team" FROM "race_calendar_and_results" WHERE "winning_driver"='Mikhail Goikhberg';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with the production code 10?`

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

CREATE TABLE "table1_25679312_2" (
  "series_num" real,
  "episode_title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with the production code 10?`:
```sql
                SELECT "directed_by" FROM "table1_25679312_2" WHERE "prod_code"=10;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with production code 2?`

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

CREATE TABLE "table1_25679312_2" (
  "series_num" real,
  "episode_title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with production code 2?`:
```sql
                SELECT "written_by" FROM "table1_25679312_2" WHERE "prod_code"=2;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with production code 5?`

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

CREATE TABLE "table1_25679312_2" (
  "series_num" real,
  "episode_title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with production code 5?`:
```sql
                SELECT "written_by" FROM "table1_25679312_2" WHERE "prod_code"=5;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of finishes for 15 entries 15 and  l'esprit d'equipe`

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

CREATE TABLE "history" (
  "edition" text,
  "class" text,
  "legs" real,
  "in_port_races" text,
  "entries" text,
  "start" text,
  "finish" text,
  "winning_yacht" text,
  "winning_skipper" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of finishes for 15 entries 15 and  l'esprit d'equipe`:
```sql
                SELECT COUNT("finish") FROM "history" WHERE "entries"='15' AND "winning_yacht"='L''Esprit d''Equipe';
```
## Task
Generate a SQL query to answer the following question:
`Name the most legs for steinlager 2`

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

CREATE TABLE "history" (
  "edition" text,
  "class" text,
  "legs" real,
  "in_port_races" text,
  "entries" text,
  "start" text,
  "finish" text,
  "winning_yacht" text,
  "winning_skipper" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most legs for steinlager 2`:
```sql
                SELECT MAX("legs") FROM "history" WHERE "winning_yacht"='Steinlager 2';
```
## Task
Generate a SQL query to answer the following question:
`Name the wininng yacht for 14 entries`

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

CREATE TABLE "history" (
  "edition" text,
  "class" text,
  "legs" real,
  "in_port_races" text,
  "entries" text,
  "start" text,
  "finish" text,
  "winning_yacht" text,
  "winning_skipper" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the wininng yacht for 14 entries`:
```sql
                SELECT "winning_yacht" FROM "history" WHERE "entries"='14';
```