cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many precincts are in the county where G. Hager received 19 (20%) votes?`

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

CREATE TABLE "u_s_house_district_11" (
  "county" text,
  "precincts" text,
  "e_greenberg" text,
  "g_hager" text,
  "t_wyka" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many precincts are in the county where G. Hager received 19 (20%) votes?`:
```sql
                SELECT "precincts" FROM "u_s_house_district_11" WHERE "g_hager"='19 (20%)';
```
## Task
Generate a SQL query to answer the following question:
`Name the slope length for 1966 groundstation`

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

CREATE TABLE "skilift_system" (
  "name_or_route" text,
  "type" text,
  "elevation_groundstation" real,
  "elevation_mountainstation" real,
  "slope_length" real,
  "capacity_in_persons_hour" real,
  "construction_year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the slope length for 1966 groundstation`:
```sql
                SELECT COUNT("slope_length") FROM "skilift_system" WHERE "elevation_groundstation"=1966;
```
## Task
Generate a SQL query to answer the following question:
`Name the name or route for slope length being 336`

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

CREATE TABLE "skilift_system" (
  "name_or_route" text,
  "type" text,
  "elevation_groundstation" real,
  "elevation_mountainstation" real,
  "slope_length" real,
  "capacity_in_persons_hour" real,
  "construction_year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name or route for slope length being 336`:
```sql
                SELECT "name_or_route" FROM "skilift_system" WHERE "slope_length"=336;
```
## Task
Generate a SQL query to answer the following question:
`Name the slope length for gondola`

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

CREATE TABLE "skilift_system" (
  "name_or_route" text,
  "type" text,
  "elevation_groundstation" real,
  "elevation_mountainstation" real,
  "slope_length" real,
  "capacity_in_persons_hour" real,
  "construction_year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the slope length for gondola`:
```sql
                SELECT MIN("slope_length") FROM "skilift_system" WHERE "type"='gondola';
```
## Task
Generate a SQL query to answer the following question:
`Name the least capacity for persons hour for 1983`

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

CREATE TABLE "skilift_system" (
  "name_or_route" text,
  "type" text,
  "elevation_groundstation" real,
  "elevation_mountainstation" real,
  "slope_length" real,
  "capacity_in_persons_hour" real,
  "construction_year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least capacity for persons hour for 1983`:
```sql
                SELECT MIN("capacity_in_persons_hour") FROM "skilift_system" WHERE "construction_year_s"='1983';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player of the round with 80 fixtures? `

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text,
  "player_of_the_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player of the round with 80 fixtures? `:
```sql
                SELECT "player_of_the_round" FROM "calendar" WHERE "number_of_fixtures"=80;
```
## Task
Generate a SQL query to answer the following question:
`How many categories of new entries this round are there for the fourth round proper? `

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text,
  "player_of_the_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many categories of new entries this round are there for the fourth round proper? `:
```sql
                SELECT COUNT("new_entries_this_round") FROM "calendar" WHERE "round"='Fourth Round Proper';
```
## Task
Generate a SQL query to answer the following question:
`How many runner-ups were there when the show went to Japan?`

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

CREATE TABLE "table1_178242_7" (
  "season" text,
  "the_mole" text,
  "winner" text,
  "runner_up" text,
  "international_destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runner-ups were there when the show went to Japan?`:
```sql
                SELECT COUNT("runner_up") FROM "table1_178242_7" WHERE "international_destination"='Japan';
```
## Task
Generate a SQL query to answer the following question:
`How many won the prize when Regina was the runner-up?`

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

CREATE TABLE "table1_178242_7" (
  "season" text,
  "the_mole" text,
  "winner" text,
  "runner_up" text,
  "international_destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many won the prize when Regina was the runner-up?`:
```sql
                SELECT COUNT("winner") FROM "table1_178242_7" WHERE "runner_up"='Regina';
```
## Task
Generate a SQL query to answer the following question:
`Which season is it when Milouska was the show's mole ?`

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

CREATE TABLE "table1_178242_7" (
  "season" text,
  "the_mole" text,
  "winner" text,
  "runner_up" text,
  "international_destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season is it when Milouska was the show's mole ?`:
```sql
                SELECT "season" FROM "table1_178242_7" WHERE "the_mole"='Milouska';
```
## Task
Generate a SQL query to answer the following question:
`What were the requirements for the role played by Robert Austin in the original production?`

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

CREATE TABLE "characters" (
  "actor_in_original_production" text,
  "actor_required" text,
  "game_plan" text,
  "flat_spin" text,
  "role_play" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the requirements for the role played by Robert Austin in the original production?`:
```sql
                SELECT "actor_required" FROM "characters" WHERE "actor_in_original_production"='Robert Austin';
```
## Task
Generate a SQL query to answer the following question:
`What actor played the "female, older" role in the original production?`

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

CREATE TABLE "characters" (
  "actor_in_original_production" text,
  "actor_required" text,
  "game_plan" text,
  "flat_spin" text,
  "role_play" text
);
### SQL
Given the database schema, here is the SQL query that answers `What actor played the "female, older" role in the original production?`:
```sql
                SELECT "actor_in_original_production" FROM "characters" WHERE "actor_required"='Female, older';
```
## Task
Generate a SQL query to answer the following question:
`What FlatSpin actor played the same role as Robert Austin?`

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

CREATE TABLE "characters" (
  "actor_in_original_production" text,
  "actor_required" text,
  "game_plan" text,
  "flat_spin" text,
  "role_play" text
);
### SQL
Given the database schema, here is the SQL query that answers `What FlatSpin actor played the same role as Robert Austin?`:
```sql
                SELECT "flat_spin" FROM "characters" WHERE "actor_in_original_production"='Robert Austin';
```
## Task
Generate a SQL query to answer the following question:
`How many RolePlay actors played the role requiring a "male, younger" actor?`

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

CREATE TABLE "characters" (
  "actor_in_original_production" text,
  "actor_required" text,
  "game_plan" text,
  "flat_spin" text,
  "role_play" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many RolePlay actors played the role requiring a "male, younger" actor?`:
```sql
                SELECT COUNT("role_play") FROM "characters" WHERE "actor_required"='Male, younger';
```
## Task
Generate a SQL query to answer the following question:
`How many RolePlay actors played the same role as FlatSpin's Tracy Taylor?`

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

CREATE TABLE "characters" (
  "actor_in_original_production" text,
  "actor_required" text,
  "game_plan" text,
  "flat_spin" text,
  "role_play" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many RolePlay actors played the same role as FlatSpin's Tracy Taylor?`:
```sql
                SELECT COUNT("role_play") FROM "characters" WHERE "flat_spin"='Tracy Taylor';
```
## Task
Generate a SQL query to answer the following question:
`What RolePlay actor played the same role Alison Pargeter played in the original production?`

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

CREATE TABLE "characters" (
  "actor_in_original_production" text,
  "actor_required" text,
  "game_plan" text,
  "flat_spin" text,
  "role_play" text
);
### SQL
Given the database schema, here is the SQL query that answers `What RolePlay actor played the same role Alison Pargeter played in the original production?`:
```sql
                SELECT "role_play" FROM "characters" WHERE "actor_in_original_production"='Alison Pargeter';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the church in Stavang?`

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

CREATE TABLE "churches_in_flora" (
  "parish_prestegjeld" text,
  "sub_parish_sokn" text,
  "church_name" text,
  "year_built" text,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the church in Stavang?`:
```sql
                SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='Stavang';
```
## Task
Generate a SQL query to answer the following question:
`What's the sub-parish (sokn) of Eikefjord?`

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

CREATE TABLE "churches_in_flora" (
  "parish_prestegjeld" text,
  "sub_parish_sokn" text,
  "church_name" text,
  "year_built" text,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sub-parish (sokn) of Eikefjord?`:
```sql
                SELECT "sub_parish_sokn" FROM "churches_in_flora" WHERE "location_of_the_church"='Eikefjord';
```
## Task
Generate a SQL query to answer the following question:
`On how many locations is there a church named Askrova Bedehuskapell, built in 1957?`

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

CREATE TABLE "churches_in_flora" (
  "parish_prestegjeld" text,
  "sub_parish_sokn" text,
  "church_name" text,
  "year_built" text,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many locations is there a church named Askrova Bedehuskapell, built in 1957?`:
```sql
                SELECT COUNT("location_of_the_church") FROM "churches_in_flora" WHERE "year_built"='1957' AND "church_name"='Askrova bedehuskapell';
```
## Task
Generate a SQL query to answer the following question:
`In what parish is the Askrova Bedehuskapell church?`

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

CREATE TABLE "churches_in_flora" (
  "parish_prestegjeld" text,
  "sub_parish_sokn" text,
  "church_name" text,
  "year_built" text,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what parish is the Askrova Bedehuskapell church?`:
```sql
                SELECT "parish_prestegjeld" FROM "churches_in_flora" WHERE "church_name"='Askrova bedehuskapell';
```
## Task
Generate a SQL query to answer the following question:
`Which channel has the host Art Rooijakkers?`

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

CREATE TABLE "table1_178242_1" (
  "country_region" text,
  "name" text,
  "host_s" text,
  "channel" text,
  "premiere_aired" text,
  "seasons" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which channel has the host Art Rooijakkers?`:
```sql
                SELECT "channel" FROM "table1_178242_1" WHERE "host_s"='Art Rooijakkers';
```
## Task
Generate a SQL query to answer the following question:
`When did the program air on Vier?`

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

CREATE TABLE "table1_178242_1" (
  "country_region" text,
  "name" text,
  "host_s" text,
  "channel" text,
  "premiere_aired" text,
  "seasons" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the program air on Vier?`:
```sql
                SELECT "premiere_aired" FROM "table1_178242_1" WHERE "channel"='VIER';
```
## Task
Generate a SQL query to answer the following question:
`What is the title that aired from 17 may 2008 – 21 june 2008 on Nederland 3?`

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

CREATE TABLE "table1_178242_1" (
  "country_region" text,
  "name" text,
  "host_s" text,
  "channel" text,
  "premiere_aired" text,
  "seasons" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title that aired from 17 may 2008 – 21 june 2008 on Nederland 3?`:
```sql
                SELECT "name" FROM "table1_178242_1" WHERE "channel"='Nederland 3' AND "premiere_aired"='17 May 2008 – 21 June 2008';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons did the show run in Poland?`

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

CREATE TABLE "table1_178242_1" (
  "country_region" text,
  "name" text,
  "host_s" text,
  "channel" text,
  "premiere_aired" text,
  "seasons" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did the show run in Poland?`:
```sql
                SELECT "seasons" FROM "table1_178242_1" WHERE "country_region"='Poland';
```
## Task
Generate a SQL query to answer the following question:
`When 4744 is the avg. trips per mile (x1000) what is the current stock?`

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

CREATE TABLE "table1_17839_1" (
  "name" text,
  "map_colour" text,
  "first_operated" real,
  "type" text,
  "length" text,
  "no_sta" real,
  "current_stock" text,
  "future_stock" text,
  "trips_per_annum_1000" real,
  "avg_trips_per_mile_1000" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 4744 is the avg. trips per mile (x1000) what is the current stock?`:
```sql
                SELECT "current_stock" FROM "table1_17839_1" WHERE "avg_trips_per_mile_1000"=4744;
```
## Task
Generate a SQL query to answer the following question:
`When green is the map colour what is the future stock?`

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

CREATE TABLE "table1_17839_1" (
  "name" text,
  "map_colour" text,
  "first_operated" real,
  "type" text,
  "length" text,
  "no_sta" real,
  "current_stock" text,
  "future_stock" text,
  "trips_per_annum_1000" real,
  "avg_trips_per_mile_1000" real
);
### SQL
Given the database schema, here is the SQL query that answers `When green is the map colour what is the future stock?`:
```sql
                SELECT "future_stock" FROM "table1_17839_1" WHERE "map_colour"='Green';
```
## Task
Generate a SQL query to answer the following question:
`When turquoise is the map colour how many avg. trips per mile (×1000)  are there?`

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

CREATE TABLE "table1_17839_1" (
  "name" text,
  "map_colour" text,
  "first_operated" real,
  "type" text,
  "length" text,
  "no_sta" real,
  "current_stock" text,
  "future_stock" text,
  "trips_per_annum_1000" real,
  "avg_trips_per_mile_1000" real
);
### SQL
Given the database schema, here is the SQL query that answers `When turquoise is the map colour how many avg. trips per mile (×1000)  are there?`:
```sql
                SELECT COUNT("avg_trips_per_mile_1000") FROM "table1_17839_1" WHERE "map_colour"='Turquoise';
```
## Task
Generate a SQL query to answer the following question:
`When turquoise is the map colour what is the length?`

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

CREATE TABLE "table1_17839_1" (
  "name" text,
  "map_colour" text,
  "first_operated" real,
  "type" text,
  "length" text,
  "no_sta" real,
  "current_stock" text,
  "future_stock" text,
  "trips_per_annum_1000" real,
  "avg_trips_per_mile_1000" real
);
### SQL
Given the database schema, here is the SQL query that answers `When turquoise is the map colour what is the length?`:
```sql
                SELECT "length" FROM "table1_17839_1" WHERE "map_colour"='Turquoise';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year a division was established?`

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

CREATE TABLE "table1_1784514_1" (
  "voivodeship_after_1569" text,
  "capital" text,
  "year_established" real,
  "number_of_powiats" text,
  "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year a division was established?`:
```sql
                SELECT MAX("year_established") FROM "table1_1784514_1";
```
## Task
Generate a SQL query to answer the following question:
`How many powiats have mstsislaw as a capital?`

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

CREATE TABLE "table1_1784514_1" (
  "voivodeship_after_1569" text,
  "capital" text,
  "year_established" real,
  "number_of_powiats" text,
  "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many powiats have mstsislaw as a capital?`:
```sql
                SELECT "number_of_powiats" FROM "table1_1784514_1" WHERE "capital"='Mstsislaw';
```
## Task
Generate a SQL query to answer the following question:
`How many capitals had brest litovsk voivodeship as voivodeship after 1569?`

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

CREATE TABLE "table1_1784514_1" (
  "voivodeship_after_1569" text,
  "capital" text,
  "year_established" real,
  "number_of_powiats" text,
  "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many capitals had brest litovsk voivodeship as voivodeship after 1569?`:
```sql
                SELECT COUNT("capital") FROM "table1_1784514_1" WHERE "voivodeship_after_1569"='Brest Litovsk Voivodeship';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year established that had 5 powiats?`

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

CREATE TABLE "table1_1784514_1" (
  "voivodeship_after_1569" text,
  "capital" text,
  "year_established" real,
  "number_of_powiats" text,
  "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year established that had 5 powiats?`:
```sql
                SELECT MAX("year_established") FROM "table1_1784514_1" WHERE "number_of_powiats"='5 powiats';
```
## Task
Generate a SQL query to answer the following question:
`In what parish is the sub-parish fortun? `

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

CREATE TABLE "churches_in_luster" (
  "parish_prestegjeld" text,
  "sub_parish_sogn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what parish is the sub-parish fortun? `:
```sql
                SELECT "parish_prestegjeld" FROM "churches_in_luster" WHERE "sub_parish_sogn"='Fortun';
```
## Task
Generate a SQL query to answer the following question:
`What is the sub-parish of the church located in Fortun? `

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

CREATE TABLE "churches_in_luster" (
  "parish_prestegjeld" text,
  "sub_parish_sogn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sub-parish of the church located in Fortun? `:
```sql
                SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "location_of_the_church"='Fortun';
```
## Task
Generate a SQL query to answer the following question:
`What is the year that the oldest church was built in Jostedal? `

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

CREATE TABLE "churches_in_luster" (
  "parish_prestegjeld" text,
  "sub_parish_sogn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year that the oldest church was built in Jostedal? `:
```sql
                SELECT MIN("year_built") FROM "churches_in_luster" WHERE "location_of_the_church"='Jostedal';
```
## Task
Generate a SQL query to answer the following question:
`What parishes are in Solvorn? `

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

CREATE TABLE "churches_in_luster" (
  "parish_prestegjeld" text,
  "sub_parish_sogn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `What parishes are in Solvorn? `:
```sql
                SELECT "parish_prestegjeld" FROM "churches_in_luster" WHERE "location_of_the_church"='Solvorn';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of parish for vilnes kyrkje`

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

CREATE TABLE "table1_178399_1" (
  "parish_prestegjeld" text,
  "sub_parish_sokn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of parish for vilnes kyrkje`:
```sql
                SELECT COUNT("parish_prestegjeld") FROM "table1_178399_1" WHERE "church_name"='Vilnes kyrkje';
```
## Task
Generate a SQL query to answer the following question:
`Name the parish for 1908`

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

CREATE TABLE "table1_178399_1" (
  "parish_prestegjeld" text,
  "sub_parish_sokn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the parish for 1908`:
```sql
                SELECT "parish_prestegjeld" FROM "table1_178399_1" WHERE "year_built"=1908;
```
## Task
Generate a SQL query to answer the following question:
`Name the maximum year built for holmedal kyrkje`

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

CREATE TABLE "table1_178399_1" (
  "parish_prestegjeld" text,
  "sub_parish_sokn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the maximum year built for holmedal kyrkje`:
```sql
                SELECT MAX("year_built") FROM "table1_178399_1" WHERE "church_name"='Holmedal kyrkje';
```
## Task
Generate a SQL query to answer the following question:
`What is the week where the game site is Shea Stadium?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week where the game site is Shea Stadium?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "game_site"='Shea Stadium';
```
## Task
Generate a SQL query to answer the following question:
`For week 6, what were the results?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `For week 6, what were the results?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=6;
```
## Task
Generate a SQL query to answer the following question:
`In how many weeks was the game played on November 3 played?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In how many weeks was the game played on November 3 played?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "date"='November 3';
```
## Task
Generate a SQL query to answer the following question:
`What is the broadcast date when 8.3 million viewers watched?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the broadcast date when 8.3 million viewers watched?`:
```sql
                SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "viewers_in_millions"='8.3';
```
## Task
Generate a SQL query to answer the following question:
`What is the broadcast date of the episode with run time 25:12?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the broadcast date of the episode with run time 25:12?`:
```sql
                SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "run_time"='25:12';
```
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched the episode that runs 25:55 minutes?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many million viewers watched the episode that runs 25:55 minutes?`:
```sql
                SELECT "viewers_in_millions" FROM "serial_details_by_episode" WHERE "run_time"='25:55';
```
## Task
Generate a SQL query to answer the following question:
`How many dances did Warren & Kym have?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dances did Warren & Kym have?`:
```sql
                SELECT "number_of_dances" FROM "average_score_chart" WHERE "couple"='Warren & Kym';
```
## Task
Generate a SQL query to answer the following question:
`What are the total points for the team that averages 17.8?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total points for the team that averages 17.8?`:
```sql
                SELECT "total_points" FROM "average_score_chart" WHERE "average"='17.8';
```
## Task
Generate a SQL query to answer the following question:
`What is average for Cody & Julianne?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is average for Cody & Julianne?`:
```sql
                SELECT "average" FROM "average_score_chart" WHERE "couple"='Cody & Julianne';
```
## Task
Generate a SQL query to answer the following question:
`what is the division southwest when division south was kožuf and division east was osogovo`

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

CREATE TABLE "winners" (
  "season" text,
  "division_north" text,
  "division_south" text,
  "division_east" text,
  "division_west" text,
  "division_southwest" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the division southwest when division south was kožuf and division east was osogovo`:
```sql
                SELECT "division_southwest" FROM "winners" WHERE "division_south"='Kožuf' AND "division_east"='Osogovo';
```
## Task
Generate a SQL query to answer the following question:
`what is the division north in 2007–08`

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

CREATE TABLE "winners" (
  "season" text,
  "division_north" text,
  "division_south" text,
  "division_east" text,
  "division_west" text,
  "division_southwest" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the division north in 2007–08`:
```sql
                SELECT "division_north" FROM "winners" WHERE "season"='2007–08';
```
## Task
Generate a SQL query to answer the following question:
`what is the division north when division south was kožuf and division southwest was ilinden velmej`

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

CREATE TABLE "winners" (
  "season" text,
  "division_north" text,
  "division_south" text,
  "division_east" text,
  "division_west" text,
  "division_southwest" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the division north when division south was kožuf and division southwest was ilinden velmej`:
```sql
                SELECT "division_north" FROM "winners" WHERE "division_south"='Kožuf' AND "division_southwest"='Ilinden Velmej';
```
## Task
Generate a SQL query to answer the following question:
`how many division southwest was there when  division east was babi`

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

CREATE TABLE "winners" (
  "season" text,
  "division_north" text,
  "division_south" text,
  "division_east" text,
  "division_west" text,
  "division_southwest" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many division southwest was there when  division east was babi`:
```sql
                SELECT COUNT("division_southwest") FROM "winners" WHERE "division_east"='Babi';
```
## Task
Generate a SQL query to answer the following question:
`what is the division east when division north was milano`

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

CREATE TABLE "winners" (
  "season" text,
  "division_north" text,
  "division_south" text,
  "division_east" text,
  "division_west" text,
  "division_southwest" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the division east when division north was milano`:
```sql
                SELECT "division_east" FROM "winners" WHERE "division_north"='Milano';
```
## Task
Generate a SQL query to answer the following question:
`who co-wrote Season 2, Episode 3?`

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

CREATE TABLE "table1_17901155_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_u_s_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `who co-wrote Season 2, Episode 3?`:
```sql
                SELECT "written_by" FROM "table1_17901155_3" WHERE "no_in_season"=3;
```
## Task
Generate a SQL query to answer the following question:
`what is the series # for the episode directed by Kelly Sandefur?`

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

CREATE TABLE "table1_17901155_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_u_s_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the series # for the episode directed by Kelly Sandefur?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_17901155_3" WHERE "directed_by"='Kelly Sandefur';
```
## Task
Generate a SQL query to answer the following question:
`how many production codes were there for the episode that was 32 in the series?`

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

CREATE TABLE "table1_17901155_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_u_s_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many production codes were there for the episode that was 32 in the series?`:
```sql
                SELECT COUNT("prod_code") FROM "table1_17901155_3" WHERE "no_in_series"=32;
```
## Task
Generate a SQL query to answer the following question:
`What year was the film Milagros submitted?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the film Milagros submitted?`:
```sql
                SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='Milagros';
```
## Task
Generate a SQL query to answer the following question:
`How many years was the film The Blossoming of Maximo Oliveros entered?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the film The Blossoming of Maximo Oliveros entered?`:
```sql
                SELECT COUNT("year_ceremony") FROM "submissions" WHERE "film_title_used_in_nomination"='The Blossoming of Maximo Oliveros';
```
## Task
Generate a SQL query to answer the following question:
`How many directors were there for the film with the original title of The Moises Padilla Story?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors were there for the film with the original title of The Moises Padilla Story?`:
```sql
                SELECT COUNT("director") FROM "submissions" WHERE "original_title"='The Moises Padilla Story';
```
## Task
Generate a SQL query to answer the following question:
`What spacecraft was launched from the LC34 launch complex? `

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

CREATE TABLE "spaceports_with_achieved_vertical_launch" (
  "spaceport" text,
  "launch_complex" text,
  "launcher" text,
  "spacecraft" text,
  "flights" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What spacecraft was launched from the LC34 launch complex? `:
```sql
                SELECT "spacecraft" FROM "spaceports_with_achieved_vertical_launch" WHERE "launch_complex"='LC34';
```
## Task
Generate a SQL query to answer the following question:
`What spacecrafts had 22 orbital flights? `

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

CREATE TABLE "spaceports_with_achieved_vertical_launch" (
  "spaceport" text,
  "launch_complex" text,
  "launcher" text,
  "spacecraft" text,
  "flights" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What spacecrafts had 22 orbital flights? `:
```sql
                SELECT "spacecraft" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='22 Orbital';
```
## Task
Generate a SQL query to answer the following question:
`What launcher had spacecrafts that did 37 orbital flights? `

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

CREATE TABLE "spaceports_with_achieved_vertical_launch" (
  "spaceport" text,
  "launch_complex" text,
  "launcher" text,
  "spacecraft" text,
  "flights" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What launcher had spacecrafts that did 37 orbital flights? `:
```sql
                SELECT "launcher" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='37 Orbital';
```
## Task
Generate a SQL query to answer the following question:
`What years had 134 orbital flights? `

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

CREATE TABLE "spaceports_with_achieved_vertical_launch" (
  "spaceport" text,
  "launch_complex" text,
  "launcher" text,
  "spacecraft" text,
  "flights" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years had 134 orbital flights? `:
```sql
                SELECT "years" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='134 Orbital';
```
## Task
Generate a SQL query to answer the following question:
`In what country did the  "amsterdam's futuristic floating city" project take place?`

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

CREATE TABLE "table1_1792122_11" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "country" text,
  "project" text,
  "status_at_production" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what country did the  "amsterdam's futuristic floating city" project take place?`:
```sql
                SELECT "country" FROM "table1_1792122_11" WHERE "title"='\"Amsterdam''s Futuristic Floating City\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the London Aquatics Centre project at the time of production?`

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

CREATE TABLE "table1_1792122_11" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "country" text,
  "project" text,
  "status_at_production" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the London Aquatics Centre project at the time of production?`:
```sql
                SELECT "status_at_production" FROM "table1_1792122_11" WHERE "project"='London Aquatics Centre';
```
## Task
Generate a SQL query to answer the following question:
`What was the original are date of series number 71?`

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

CREATE TABLE "table1_1792122_11" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "country" text,
  "project" text,
  "status_at_production" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original are date of series number 71?`:
```sql
                SELECT "original_air_date" FROM "table1_1792122_11" WHERE "no_in_series"=71;
```
## Task
Generate a SQL query to answer the following question:
`What series number was the "rebuilding new york city's subway" project?`

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

CREATE TABLE "table1_1792122_11" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "country" text,
  "project" text,
  "status_at_production" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series number was the "rebuilding new york city's subway" project?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_1792122_11" WHERE "title"='\"Rebuilding New York City''s Subway\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the "azerbaijan's amazing transformation" project at the time of production?`

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

CREATE TABLE "table1_1792122_11" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "country" text,
  "project" text,
  "status_at_production" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the "azerbaijan's amazing transformation" project at the time of production?`:
```sql
                SELECT "status_at_production" FROM "table1_1792122_11" WHERE "title"='\"Azerbaijan''s Amazing Transformation\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the length for a diameter totaling 450 mm?`

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

CREATE TABLE "onshore_pipelines" (
  "name_year_commissioned" text,
  "owner_operator" text,
  "length" text,
  "maximum_diameter" text,
  "from_to" text,
  "licence_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length for a diameter totaling 450 mm?`:
```sql
                SELECT "length" FROM "onshore_pipelines" WHERE "maximum_diameter"='450 mm';
```
## Task
Generate a SQL query to answer the following question:
`What is Esperance pipeline co total diameter?`

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

CREATE TABLE "onshore_pipelines" (
  "name_year_commissioned" text,
  "owner_operator" text,
  "length" text,
  "maximum_diameter" text,
  "from_to" text,
  "licence_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Esperance pipeline co total diameter?`:
```sql
                SELECT "maximum_diameter" FROM "onshore_pipelines" WHERE "owner_operator"='Esperance Pipeline Co';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent for december 8`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for december 8`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='December 8';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of weeks for october 26`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of weeks for october 26`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "date"='October 26';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance record for week 6?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance record for week 6?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "week"=6;
```
## Task
Generate a SQL query to answer the following question:
`For game site Schaefer Stadium, what were the results?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For game site Schaefer Stadium, what were the results?`:
```sql
                SELECT "result" FROM "schedule" WHERE "game_site"='Schaefer Stadium';
```
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager when the incoming manager was joão pereira?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manage" text,
  "manner" text,
  "date_of_vacancy" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the outgoing manager when the incoming manager was joão pereira?`:
```sql
                SELECT "outgoing_manage" FROM "managerial_changes" WHERE "incoming_manager"='João Pereira';
```