cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What wast the percent cut for the nation with an 80% full gas storage?`

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

CREATE TABLE "table1_21690339_1" (
  "country" text,
  "pct_of_imports_from_russia" text,
  "pct_cut" text,
  "diversification" text,
  "gas_storage" text,
  "alternative_fuel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What wast the percent cut for the nation with an 80% full gas storage?`:
```sql
                SELECT "pct_cut" FROM "table1_21690339_1" WHERE "gas_storage"='80% full';
```
## Task
Generate a SQL query to answer the following question:
`What was the gas storage status for the nation that had "yes" for alternative fuel?`

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

CREATE TABLE "table1_21690339_1" (
  "country" text,
  "pct_of_imports_from_russia" text,
  "pct_cut" text,
  "diversification" text,
  "gas_storage" text,
  "alternative_fuel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the gas storage status for the nation that had "yes" for alternative fuel?`:
```sql
                SELECT "gas_storage" FROM "table1_21690339_1" WHERE "alternative_fuel"='Yes';
```
## Task
Generate a SQL query to answer the following question:
`What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative?`

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

CREATE TABLE "table1_21690339_1" (
  "country" text,
  "pct_of_imports_from_russia" text,
  "pct_cut" text,
  "diversification" text,
  "gas_storage" text,
  "alternative_fuel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative?`:
```sql
                SELECT "pct_cut" FROM "table1_21690339_1" WHERE "alternative_fuel"='Fuel oil stocks need only for industry';
```
## Task
Generate a SQL query to answer the following question:
`What country had 20% imports from russia?`

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

CREATE TABLE "table1_21690339_1" (
  "country" text,
  "pct_of_imports_from_russia" text,
  "pct_cut" text,
  "diversification" text,
  "gas_storage" text,
  "alternative_fuel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country had 20% imports from russia?`:
```sql
                SELECT "country" FROM "table1_21690339_1" WHERE "pct_of_imports_from_russia"='20%';
```
## Task
Generate a SQL query to answer the following question:
`What country had a 100% cut?`

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

CREATE TABLE "table1_21690339_1" (
  "country" text,
  "pct_of_imports_from_russia" text,
  "pct_cut" text,
  "diversification" text,
  "gas_storage" text,
  "alternative_fuel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country had a 100% cut?`:
```sql
                SELECT "country" FROM "table1_21690339_1" WHERE "pct_cut"='100%';
```
## Task
Generate a SQL query to answer the following question:
`What network garnered 2.74 million viewers for Supernatural?`

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

CREATE TABLE "ratings" (
  "season" real,
  "network" text,
  "timeslot" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank_rank_denotes_the_relative_position_of_the_television_series_with_respect_to_other_prime_time_shows_on_the_cw_fox_nbc_cbs_and_abc" text,
  "viewers_in_millions" text,
  "rating_rating_is_the_percentage_of_all_households_tuned_into_the_program" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network garnered 2.74 million viewers for Supernatural?`:
```sql
                SELECT "network" FROM "ratings" WHERE "viewers_in_millions"='2.74';
```
## Task
Generate a SQL query to answer the following question:
`What season had 2.52 million viewers?`

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

CREATE TABLE "ratings" (
  "season" real,
  "network" text,
  "timeslot" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank_rank_denotes_the_relative_position_of_the_television_series_with_respect_to_other_prime_time_shows_on_the_cw_fox_nbc_cbs_and_abc" text,
  "viewers_in_millions" text,
  "rating_rating_is_the_percentage_of_all_households_tuned_into_the_program" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season had 2.52 million viewers?`:
```sql
                SELECT "tv_season" FROM "ratings" WHERE "viewers_in_millions"='2.52';
```
## Task
Generate a SQL query to answer the following question:
`What is the category for trains numbered 16609/16610?`

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

CREATE TABLE "important_originating_express_trains" (
  "train_no" text,
  "train_name" text,
  "destination" text,
  "category" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the category for trains numbered 16609/16610?`:
```sql
                SELECT "category" FROM "important_originating_express_trains" WHERE "train_no"='16609/16610';
```
## Task
Generate a SQL query to answer the following question:
`What trains have a category of express and a weekly frequency?`

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

CREATE TABLE "important_originating_express_trains" (
  "train_no" text,
  "train_name" text,
  "destination" text,
  "category" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What trains have a category of express and a weekly frequency?`:
```sql
                SELECT "train_name" FROM "important_originating_express_trains" WHERE "category"='Express' AND "frequency"='Weekly';
```
## Task
Generate a SQL query to answer the following question:
`What is the train name that has a destination of Tuticorin?`

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

CREATE TABLE "important_originating_express_trains" (
  "train_no" text,
  "train_name" text,
  "destination" text,
  "category" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the train name that has a destination of Tuticorin?`:
```sql
                SELECT "train_name" FROM "important_originating_express_trains" WHERE "destination"='Tuticorin';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of trains numbered 12671/12672?`

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

CREATE TABLE "important_originating_express_trains" (
  "train_no" text,
  "train_name" text,
  "destination" text,
  "category" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of trains numbered 12671/12672?`:
```sql
                SELECT "frequency" FROM "important_originating_express_trains" WHERE "train_no"='12671/12672';
```
## Task
Generate a SQL query to answer the following question:
`How many destinations have a weekly frequency and are named AC Express?`

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

CREATE TABLE "important_originating_express_trains" (
  "train_no" text,
  "train_name" text,
  "destination" text,
  "category" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many destinations have a weekly frequency and are named AC Express?`:
```sql
                SELECT COUNT("destination") FROM "important_originating_express_trains" WHERE "frequency"='Weekly' AND "train_name"='AC Express';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of frequencies that have a destination of Jaipur?`

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

CREATE TABLE "important_originating_express_trains" (
  "train_no" text,
  "train_name" text,
  "destination" text,
  "category" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of frequencies that have a destination of Jaipur?`:
```sql
                SELECT COUNT("frequency") FROM "important_originating_express_trains" WHERE "destination"='Jaipur';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick # for player david grannis?`

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

CREATE TABLE "draft_picks" (
  "round_num" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick # for player david grannis?`:
```sql
                SELECT MAX("pick_num") FROM "draft_picks" WHERE "player"='David Grannis';
```
## Task
Generate a SQL query to answer the following question:
`Which player belongs to deerfield academy (Massachusetts) college/junior/club team?`

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

CREATE TABLE "draft_picks" (
  "round_num" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player belongs to deerfield academy (Massachusetts) college/junior/club team?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "college_junior_club_team"='Deerfield Academy (Massachusetts)';
```
## Task
Generate a SQL query to answer the following question:
`Which nationality is kitchener rangers (ohl) college/junior/club team?`

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

CREATE TABLE "draft_picks" (
  "round_num" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality is kitchener rangers (ohl) college/junior/club team?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "college_junior_club_team"='Kitchener Rangers (OHL)';
```
## Task
Generate a SQL query to answer the following question:
`Which nationality is player Brian Wilks?`

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

CREATE TABLE "draft_picks" (
  "round_num" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality is player Brian Wilks?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "player"='Brian Wilks';
```
## Task
Generate a SQL query to answer the following question:
`How many positions is player Tom Glavine?`

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

CREATE TABLE "draft_picks" (
  "round_num" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions is player Tom Glavine?`:
```sql
                SELECT COUNT("position") FROM "draft_picks" WHERE "player"='Tom Glavine';
```
## Task
Generate a SQL query to answer the following question:
`who directed the production code 2t5710?`

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

CREATE TABLE "table1_21726793_1" (
  "no" 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 the production code 2t5710?`:
```sql
                SELECT "directed_by" FROM "table1_21726793_1" WHERE "production_code"='2T5710';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number o production code where us viewers is 2.76?`

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

CREATE TABLE "table1_21726793_1" (
  "no" 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 is the total number o production code where us viewers is 2.76?`:
```sql
                SELECT COUNT("production_code") FROM "table1_21726793_1" WHERE "u_s_viewers_million"='2.76';
```
## Task
Generate a SQL query to answer the following question:
`who wrote the no 2?`

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

CREATE TABLE "table1_21726793_1" (
  "no" 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 wrote the no 2?`:
```sql
                SELECT "written_by" FROM "table1_21726793_1" WHERE "no"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the maac in the macc tournament results is quarterfinals?`

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

CREATE TABLE "year_by_year_statistics" (
  "year" text,
  "maac" text,
  "overall" text,
  "regular_season_results" text,
  "maac_tournament_result" text,
  "ncaa_seed" text,
  "ncaa_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maac in the macc tournament results is quarterfinals?`:
```sql
                SELECT "maac" FROM "year_by_year_statistics" WHERE "maac_tournament_result"='Quarterfinals';
```
## Task
Generate a SQL query to answer the following question:
`What is the maac when the overall is 26-8?`

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

CREATE TABLE "year_by_year_statistics" (
  "year" text,
  "maac" text,
  "overall" text,
  "regular_season_results" text,
  "maac_tournament_result" text,
  "ncaa_seed" text,
  "ncaa_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maac when the overall is 26-8?`:
```sql
                SELECT "maac" FROM "year_by_year_statistics" WHERE "overall"='26-8';
```
## Task
Generate a SQL query to answer the following question:
`How many maac are there that have 14th as the ncaa and the overall is 20-10?`

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

CREATE TABLE "year_by_year_statistics" (
  "year" text,
  "maac" text,
  "overall" text,
  "regular_season_results" text,
  "maac_tournament_result" text,
  "ncaa_seed" text,
  "ncaa_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many maac are there that have 14th as the ncaa and the overall is 20-10?`:
```sql
                SELECT COUNT("maac") FROM "year_by_year_statistics" WHERE "ncaa_seed"='14th' AND "overall"='20-10';
```
## Task
Generate a SQL query to answer the following question:
`How many overall in the year 2010-2011?`

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

CREATE TABLE "year_by_year_statistics" (
  "year" text,
  "maac" text,
  "overall" text,
  "regular_season_results" text,
  "maac_tournament_result" text,
  "ncaa_seed" text,
  "ncaa_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many overall in the year 2010-2011?`:
```sql
                SELECT COUNT("overall") FROM "year_by_year_statistics" WHERE "year"='2010-2011';
```
## Task
Generate a SQL query to answer the following question:
`In which year is the overall 29-4?`

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

CREATE TABLE "year_by_year_statistics" (
  "year" text,
  "maac" text,
  "overall" text,
  "regular_season_results" text,
  "maac_tournament_result" text,
  "ncaa_seed" text,
  "ncaa_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year is the overall 29-4?`:
```sql
                SELECT "year" FROM "year_by_year_statistics" WHERE "overall"='29-4';
```
## Task
Generate a SQL query to answer the following question:
`What is the regular season results for the year 2011-2012?`

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

CREATE TABLE "year_by_year_statistics" (
  "year" text,
  "maac" text,
  "overall" text,
  "regular_season_results" text,
  "maac_tournament_result" text,
  "ncaa_seed" text,
  "ncaa_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the regular season results for the year 2011-2012?`:
```sql
                SELECT "regular_season_results" FROM "year_by_year_statistics" WHERE "year"='2011-2012';
```
## Task
Generate a SQL query to answer the following question:
`How many drivers had a time of 3:09:45?`

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

CREATE TABLE "table1_2175858_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers had a time of 3:09:45?`:
```sql
                SELECT COUNT("driver") FROM "table1_2175858_1" WHERE "race_time"='3:09:45';
```
## Task
Generate a SQL query to answer the following question:
`How many drivers drove 300 laps at average speed of 103.594?`

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

CREATE TABLE "table1_2175858_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers drove 300 laps at average speed of 103.594?`:
```sql
                SELECT COUNT("driver") FROM "table1_2175858_1" WHERE "laps"='300' AND "average_speed_mph"='103.594';
```
## Task
Generate a SQL query to answer the following question:
`How many dates had an average speed of 102.003?`

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

CREATE TABLE "table1_2175858_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates had an average speed of 102.003?`:
```sql
                SELECT COUNT("date") FROM "table1_2175858_1" WHERE "average_speed_mph"='102.003';
```
## Task
Generate a SQL query to answer the following question:
`How many laps were driven in 2009?`

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

CREATE TABLE "table1_2175858_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were driven in 2009?`:
```sql
                SELECT "laps" FROM "table1_2175858_1" WHERE "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`How many laps were completed in the race with time of 3:03:50?`

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

CREATE TABLE "table1_2175858_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were completed in the race with time of 3:03:50?`:
```sql
                SELECT "laps" FROM "table1_2175858_1" WHERE "race_time"='3:03:50';
```
## Task
Generate a SQL query to answer the following question:
`How many miles were driven with the average speed at 116.81?`

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

CREATE TABLE "table1_2175858_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many miles were driven with the average speed at 116.81?`:
```sql
                SELECT "miles_km" FROM "table1_2175858_1" WHERE "average_speed_mph"='116.81';
```
## Task
Generate a SQL query to answer the following question:
`What was the season number for production code E2110?`

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

CREATE TABLE "table1_21781578_2" (
  "season_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the season number for production code E2110?`:
```sql
                SELECT "season_no" FROM "table1_21781578_2" WHERE "production_code"='E2110';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date for season number 2?`

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

CREATE TABLE "table1_21781578_2" (
  "season_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date for season number 2?`:
```sql
                SELECT "original_air_date" FROM "table1_21781578_2" WHERE "season_no"=2;
```
## Task
Generate a SQL query to answer the following question:
`What was the season number episode directed by John David Coles?`

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

CREATE TABLE "table1_21781578_2" (
  "season_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the season number episode directed by John David Coles?`:
```sql
                SELECT "season_no" FROM "table1_21781578_2" WHERE "directed_by"='John David Coles';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102?`

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

CREATE TABLE "table1_21781578_2" (
  "season_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_21781578_2" WHERE "directed_by"='Steve Shill' AND "production_code"='E2102';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of season number entries that had US Viewers of 12.30 million?`

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

CREATE TABLE "table1_21781578_2" (
  "season_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of season number entries that had US Viewers of 12.30 million?`:
```sql
                SELECT COUNT("season_no") FROM "table1_21781578_2" WHERE "u_s_viewers_millions"='12.30';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game in week 3?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game in week 3?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`What was the final score when the game was @ roughriders?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score when the game was @ roughriders?`:
```sql
                SELECT "final_score" FROM "regular_season" WHERE "opponent"='@ Roughriders';
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of weeks where the game played Ivor Wynne Stadium?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of weeks where the game played Ivor Wynne Stadium?`:
```sql
                SELECT COUNT("week") FROM "regular_season" WHERE "location"='Ivor Wynne Stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the location for when the opponent was @ roughriders?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location for when the opponent was @ roughriders?`:
```sql
                SELECT "location" FROM "regular_season" WHERE "opponent"='@ Roughriders';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score when the attendance was 25598?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score when the attendance was 25598?`:
```sql
                SELECT "final_score" FROM "regular_season" WHERE "attendance"=25598;
```
## Task
Generate a SQL query to answer the following question:
`What location was the game on October 6?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location was the game on October 6?`:
```sql
                SELECT "location" FROM "regular_season" WHERE "date"='October 6';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest rating with 11.2 million viewers?`

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

CREATE TABLE "nielsen_ratings" (
  "season" text,
  "timeslot_times_listed_are_eastern_time" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" real,
  "viewers_in_millions_of_households" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest rating with 11.2 million viewers?`:
```sql
                SELECT MIN("ranking") FROM "nielsen_ratings" WHERE "viewers_in_millions_of_households"='11.2';
```
## Task
Generate a SQL query to answer the following question:
`When did was the start of the season that ended May 19, 1997?`

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

CREATE TABLE "nielsen_ratings" (
  "season" text,
  "timeslot_times_listed_are_eastern_time" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" real,
  "viewers_in_millions_of_households" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did was the start of the season that ended May 19, 1997?`:
```sql
                SELECT "season_premiere" FROM "nielsen_ratings" WHERE "season_finale"='May 19, 1997';
```
## Task
Generate a SQL query to answer the following question:
`When did the season finale ranked at 73 first air?`

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

CREATE TABLE "nielsen_ratings" (
  "season" text,
  "timeslot_times_listed_are_eastern_time" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" real,
  "viewers_in_millions_of_households" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the season finale ranked at 73 first air?`:
```sql
                SELECT "season_finale" FROM "nielsen_ratings" WHERE "ranking"=73;
```
## Task
Generate a SQL query to answer the following question:
`Which season received 10.2 million viewers?`

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

CREATE TABLE "nielsen_ratings" (
  "season" text,
  "timeslot_times_listed_are_eastern_time" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" real,
  "viewers_in_millions_of_households" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season received 10.2 million viewers?`:
```sql
                SELECT COUNT("tv_season") FROM "nielsen_ratings" WHERE "viewers_in_millions_of_households"='10.2';
```
## Task
Generate a SQL query to answer the following question:
`When 19/05/2002 is the date of withdrawn what is the name?`

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

CREATE TABLE "names_and_fleet_details" (
  "original_number" text,
  "uic_number" text,
  "name" text,
  "constructer" text,
  "constructor_number" real,
  "year" real,
  "withdrawn" text,
  "kilometers_worked" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 19/05/2002 is the date of withdrawn what is the name?`:
```sql
                SELECT "name" FROM "names_and_fleet_details" WHERE "withdrawn"='19/05/2002';
```
## Task
Generate a SQL query to answer the following question:
`When "virgen del perpetuo socorro" is the name what is the highest year?`

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

CREATE TABLE "names_and_fleet_details" (
  "original_number" text,
  "uic_number" text,
  "name" text,
  "constructer" text,
  "constructor_number" real,
  "year" real,
  "withdrawn" text,
  "kilometers_worked" real
);
### SQL
Given the database schema, here is the SQL query that answers `When "virgen del perpetuo socorro" is the name what is the highest year?`:
```sql
                SELECT MAX("year") FROM "names_and_fleet_details" WHERE "name"='\"Virgen del Perpetuo Socorro\"';
```
## Task
Generate a SQL query to answer the following question:
`When 2008 t is the original number what is the lowest year?`

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

CREATE TABLE "names_and_fleet_details" (
  "original_number" text,
  "uic_number" text,
  "name" text,
  "constructer" text,
  "constructor_number" real,
  "year" real,
  "withdrawn" text,
  "kilometers_worked" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 2008 t is the original number what is the lowest year?`:
```sql
                SELECT MIN("year") FROM "names_and_fleet_details" WHERE "original_number"='2008 T';
```
## Task
Generate a SQL query to answer the following question:
`When "virgen de gracia" is the name what is the date of withdrawn?`

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

CREATE TABLE "names_and_fleet_details" (
  "original_number" text,
  "uic_number" text,
  "name" text,
  "constructer" text,
  "constructor_number" real,
  "year" real,
  "withdrawn" text,
  "kilometers_worked" real
);
### SQL
Given the database schema, here is the SQL query that answers `When "virgen de gracia" is the name what is the date of withdrawn?`:
```sql
                SELECT "withdrawn" FROM "names_and_fleet_details" WHERE "name"='\"Virgen de Gracia\"';
```
## Task
Generate a SQL query to answer the following question:
`When  9/07/1999 is the date of withdrawn what is the original number?`

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

CREATE TABLE "names_and_fleet_details" (
  "original_number" text,
  "uic_number" text,
  "name" text,
  "constructer" text,
  "constructor_number" real,
  "year" real,
  "withdrawn" text,
  "kilometers_worked" real
);
### SQL
Given the database schema, here is the SQL query that answers `When  9/07/1999 is the date of withdrawn what is the original number?`:
```sql
                SELECT "original_number" FROM "names_and_fleet_details" WHERE "withdrawn"='9/07/1999';
```
## Task
Generate a SQL query to answer the following question:
`WHO WAS THE STAGE WINNER IN THE STAGE WHERE MICHAEL ALBASINI WON THE METAS VOLANTES CLASSIFICATION?`

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

CREATE TABLE "jersey_progress" (
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "metas_volantes_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHO WAS THE STAGE WINNER IN THE STAGE WHERE MICHAEL ALBASINI WON THE METAS VOLANTES CLASSIFICATION?`:
```sql
                SELECT "stage_winner" FROM "jersey_progress" WHERE "metas_volantes_classification"='Michael Albasini';
```
## Task
Generate a SQL query to answer the following question:
`Who got the mountains classification when Michael Albasini won the stage?`

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

CREATE TABLE "jersey_progress" (
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "metas_volantes_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got the mountains classification when Michael Albasini won the stage?`:
```sql
                SELECT "mountains_classification" FROM "jersey_progress" WHERE "metas_volantes_classification"='Michael Albasini';
```
## Task
Generate a SQL query to answer the following question:
`How many people were present at the July 10 game?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were present at the July 10 game?`:
```sql
                SELECT "attendance" FROM "regular_season" WHERE "date"='July 10';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game played on July 10?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of the game played on July 10?`:
```sql
                SELECT "final_score" FROM "regular_season" WHERE "date"='July 10';
```
## Task
Generate a SQL query to answer the following question:
`What's the record achieved in the gamed played at BC Place Stadium?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the record achieved in the gamed played at BC Place Stadium?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "location"='BC Place Stadium';
```
## Task
Generate a SQL query to answer the following question:
`During what week was the July 10 game played?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `During what week was the July 10 game played?`:
```sql
                SELECT "week" FROM "regular_season" WHERE "date"='July 10';
```
## Task
Generate a SQL query to answer the following question:
`When was the game on Taylor Field played?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game on Taylor Field played?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "location"='Taylor Field';
```
## Task
Generate a SQL query to answer the following question:
`Who placed fourth when the winner was Greg Hancock?`

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

CREATE TABLE "calendar" (
  "round" real,
  "date" text,
  "city_and_venue" text,
  "winner" text,
  "runner_up" text,
  "3rd_placed" text,
  "4th_placed" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who placed fourth when the winner was Greg Hancock?`:
```sql
                SELECT "4th_placed" FROM "calendar" WHERE "winner"='Greg Hancock';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up on September 11?`

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

CREATE TABLE "calendar" (
  "round" real,
  "date" text,
  "city_and_venue" text,
  "winner" text,
  "runner_up" text,
  "3rd_placed" text,
  "4th_placed" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up on September 11?`:
```sql
                SELECT "runner_up" FROM "calendar" WHERE "date"='September 11';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds were on July 10?`

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

CREATE TABLE "calendar" (
  "round" real,
  "date" text,
  "city_and_venue" text,
  "winner" text,
  "runner_up" text,
  "3rd_placed" text,
  "4th_placed" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were on July 10?`:
```sql
                SELECT COUNT("round") FROM "calendar" WHERE "date"='July 10';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of years for 18.5`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of years for 18.5`:
```sql
                SELECT COUNT("year") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='18.5';
```
## Task
Generate a SQL query to answer the following question:
`Name the max top 5 for avg finish being 27.6`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max top 5 for avg finish being 27.6`:
```sql
                SELECT MAX("top_5") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='27.6';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of wins for 30 starts`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of wins for 30 starts`:
```sql
                SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "starts"=30;
```
## Task
Generate a SQL query to answer the following question:
`Name the year for  donlavey racing bill davis racing`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for  donlavey racing bill davis racing`:
```sql
                SELECT "year" FROM "nascar_sprint_cup_series" WHERE "team_s"='Donlavey Racing Bill Davis Racing';
```
## Task
Generate a SQL query to answer the following question:
`Name the starts for 23.7`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the starts for 23.7`:
```sql
                SELECT "starts" FROM "nascar_sprint_cup_series" WHERE "avg_start"='23.7';
```
## Task
Generate a SQL query to answer the following question:
`Name the position for 23.7 avg start`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for 23.7 avg start`:
```sql
                SELECT COUNT("position") FROM "nascar_sprint_cup_series" WHERE "avg_start"='23.7';
```
## Task
Generate a SQL query to answer the following question:
`What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?`

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

CREATE TABLE "full_time_entries" (
  "team" text,
  "car_s" text,
  "num" real,
  "driver_s" text,
  "primary_sponsor_s" text,
  "listed_owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?`:
```sql
                SELECT MIN("num") FROM "full_time_entries" WHERE "car_s"='Chevrolet Monte Carlo' AND "listed_owner_s"='Teresa Earnhardt' AND "driver_s"='Paul Menard';
```
## Task
Generate a SQL query to answer the following question:
`What type of car does Jeff Fuller drive?`

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

CREATE TABLE "full_time_entries" (
  "team" text,
  "car_s" text,
  "num" real,
  "driver_s" text,
  "primary_sponsor_s" text,
  "listed_owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of car does Jeff Fuller drive?`:
```sql
                SELECT "car_s" FROM "full_time_entries" WHERE "driver_s"='Jeff Fuller';
```
## Task
Generate a SQL query to answer the following question:
`How many cars does Gregg Mixon own?`

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

CREATE TABLE "full_time_entries" (
  "team" text,
  "car_s" text,
  "num" real,
  "driver_s" text,
  "primary_sponsor_s" text,
  "listed_owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many cars does Gregg Mixon own?`:
```sql
                SELECT COUNT("car_s") FROM "full_time_entries" WHERE "listed_owner_s"='Gregg Mixon';
```
## Task
Generate a SQL query to answer the following question:
`Who is Wayne Day's crew chief?`

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

CREATE TABLE "full_time_entries" (
  "team" text,
  "car_s" text,
  "num" real,
  "driver_s" text,
  "primary_sponsor_s" text,
  "listed_owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Wayne Day's crew chief?`:
```sql
                SELECT "crew_chief" FROM "full_time_entries" WHERE "listed_owner_s"='Wayne Day';
```
## Task
Generate a SQL query to answer the following question:
`What number is on the car that Geoffrey Bodine drives?`

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

CREATE TABLE "full_time_entries" (
  "team" text,
  "car_s" text,
  "num" real,
  "driver_s" text,
  "primary_sponsor_s" text,
  "listed_owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number is on the car that Geoffrey Bodine drives?`:
```sql
                SELECT MIN("num") FROM "full_time_entries" WHERE "driver_s"='Geoffrey Bodine';
```