cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What number truck is owned by Stephen Germain?`

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

CREATE TABLE "drivers_teams" (
  "team" text,
  "truck_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 truck is owned by Stephen Germain?`:
```sql
                SELECT "num" FROM "drivers_teams" WHERE "listed_owner_s"='Stephen Germain';
```
## Task
Generate a SQL query to answer the following question:
`What team is sponsored by d3 Outdoors?`

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

CREATE TABLE "drivers_teams" (
  "team" text,
  "truck_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 team is sponsored by d3 Outdoors?`:
```sql
                SELECT "team" FROM "drivers_teams" WHERE "primary_sponsor_s"='D3 Outdoors';
```
## Task
Generate a SQL query to answer the following question:
`How many teams does Jeff Wyler own?`

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

CREATE TABLE "drivers_teams" (
  "team" text,
  "truck_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 teams does Jeff Wyler own?`:
```sql
                SELECT COUNT("team") FROM "drivers_teams" WHERE "listed_owner_s"='Jeff Wyler';
```
## Task
Generate a SQL query to answer the following question:
`Who is the primary sponsor for crew cheif Rick Ren's team?`

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

CREATE TABLE "drivers_teams" (
  "team" text,
  "truck_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 the primary sponsor for crew cheif Rick Ren's team?`:
```sql
                SELECT "primary_sponsor_s" FROM "drivers_teams" WHERE "crew_chief"='Rick Ren';
```
## Task
Generate a SQL query to answer the following question:
`Who sponsors owner Bobby Dotter's team?`

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

CREATE TABLE "drivers_teams" (
  "team" text,
  "truck_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 sponsors owner Bobby Dotter's team?`:
```sql
                SELECT "primary_sponsor_s" FROM "drivers_teams" WHERE "listed_owner_s"='Bobby Dotter';
```
## Task
Generate a SQL query to answer the following question:
`What's the price of the team whose captain is Sanath Jayasuriya?`

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

CREATE TABLE "franchises" (
  "team" text,
  "province" text,
  "owner_s" text,
  "price" text,
  "captain" text,
  "head_coach" text,
  "icon_player" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the price of the team whose captain is Sanath Jayasuriya?`:
```sql
                SELECT "price" FROM "franchises" WHERE "captain"='Sanath Jayasuriya';
```
## Task
Generate a SQL query to answer the following question:
`What team is from the Eastern province?`

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

CREATE TABLE "franchises" (
  "team" text,
  "province" text,
  "owner_s" text,
  "price" text,
  "captain" text,
  "head_coach" text,
  "icon_player" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is from the Eastern province?`:
```sql
                SELECT "team" FROM "franchises" WHERE "province"='Eastern';
```
## Task
Generate a SQL query to answer the following question:
`Who's the head coach of the team with a price of $3.22 million?`

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

CREATE TABLE "franchises" (
  "team" text,
  "province" text,
  "owner_s" text,
  "price" text,
  "captain" text,
  "head_coach" text,
  "icon_player" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the head coach of the team with a price of $3.22 million?`:
```sql
                SELECT "head_coach" FROM "franchises" WHERE "price"='$3.22 million';
```
## Task
Generate a SQL query to answer the following question:
`In how many teams is Waqar Younis the head coach?`

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

CREATE TABLE "franchises" (
  "team" text,
  "province" text,
  "owner_s" text,
  "price" text,
  "captain" text,
  "head_coach" text,
  "icon_player" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many teams is Waqar Younis the head coach?`:
```sql
                SELECT COUNT("team") FROM "franchises" WHERE "head_coach"='Waqar Younis';
```
## Task
Generate a SQL query to answer the following question:
`What province does the Ruhuna Royals team come from?`

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

CREATE TABLE "franchises" (
  "team" text,
  "province" text,
  "owner_s" text,
  "price" text,
  "captain" text,
  "head_coach" text,
  "icon_player" text
);
### SQL
Given the database schema, here is the SQL query that answers `What province does the Ruhuna Royals team come from?`:
```sql
                SELECT "province" FROM "franchises" WHERE "team"='Ruhuna Royals';
```
## Task
Generate a SQL query to answer the following question:
`When was Alexey Kuleshov born?`

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

CREATE TABLE "team_roster_season_2009_2010" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Alexey Kuleshov born?`:
```sql
                SELECT "birth_date" FROM "team_roster_season_2009_2010" WHERE "player"='Alexey Kuleshov';
```
## Task
Generate a SQL query to answer the following question:
`What is the trigger pack on the Colt 602 with the a1 rear sight type? `

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

CREATE TABLE "summary" (
  "colt_model_no" text,
  "military_designation" text,
  "barrel_length" text,
  "barrel" text,
  "handguard_type" text,
  "buttstock_type" text,
  "pistol_grip_type" text,
  "lower_receiver_type" text,
  "upper_receiver_type" text,
  "rear_sight_type" text,
  "front_sight_type" text,
  "muzzle_device" text,
  "forward_assist" text,
  "case_deflector" text,
  "bayonet_lug" text,
  "trigger_pack" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the trigger pack on the Colt 602 with the a1 rear sight type? `:
```sql
                SELECT "trigger_pack" FROM "summary" WHERE "rear_sight_type"='A1' AND "colt_model_no"='602';
```
## Task
Generate a SQL query to answer the following question:
`How many case deflectors are there for the Colt 646? `

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

CREATE TABLE "summary" (
  "colt_model_no" text,
  "military_designation" text,
  "barrel_length" text,
  "barrel" text,
  "handguard_type" text,
  "buttstock_type" text,
  "pistol_grip_type" text,
  "lower_receiver_type" text,
  "upper_receiver_type" text,
  "rear_sight_type" text,
  "front_sight_type" text,
  "muzzle_device" text,
  "forward_assist" text,
  "case_deflector" text,
  "bayonet_lug" text,
  "trigger_pack" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many case deflectors are there for the Colt 646? `:
```sql
                SELECT COUNT("case_deflector") FROM "summary" WHERE "colt_model_no"='646';
```
## Task
Generate a SQL query to answer the following question:
`What is the rear sight type on the model with the acr muzzle brake device? `

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

CREATE TABLE "summary" (
  "colt_model_no" text,
  "military_designation" text,
  "barrel_length" text,
  "barrel" text,
  "handguard_type" text,
  "buttstock_type" text,
  "pistol_grip_type" text,
  "lower_receiver_type" text,
  "upper_receiver_type" text,
  "rear_sight_type" text,
  "front_sight_type" text,
  "muzzle_device" text,
  "forward_assist" text,
  "case_deflector" text,
  "bayonet_lug" text,
  "trigger_pack" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rear sight type on the model with the acr muzzle brake device? `:
```sql
                SELECT "rear_sight_type" FROM "summary" WHERE "muzzle_device"='ACR muzzle brake';
```
## Task
Generate a SQL query to answer the following question:
`Which muzzle devices are on the Colt 603? `

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

CREATE TABLE "summary" (
  "colt_model_no" text,
  "military_designation" text,
  "barrel_length" text,
  "barrel" text,
  "handguard_type" text,
  "buttstock_type" text,
  "pistol_grip_type" text,
  "lower_receiver_type" text,
  "upper_receiver_type" text,
  "rear_sight_type" text,
  "front_sight_type" text,
  "muzzle_device" text,
  "forward_assist" text,
  "case_deflector" text,
  "bayonet_lug" text,
  "trigger_pack" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which muzzle devices are on the Colt 603? `:
```sql
                SELECT "muzzle_device" FROM "summary" WHERE "colt_model_no"='603';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US watched the episode with season number 8?`

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

CREATE TABLE "table1_19925114_1" (
  "no_in_series" real,
  "no_in_season" 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 `How many millions of people in the US watched the episode with season number 8?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_19925114_1" WHERE "no_in_season"=8;
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had the series number of 38?`

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

CREATE TABLE "table1_19925114_1" (
  "no_in_series" real,
  "no_in_season" 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 `How many episodes had the series number of 38?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_19925114_1" WHERE "no_in_series"=38;
```
## Task
Generate a SQL query to answer the following question:
`How many different numbers of people in the US who'd seen the episode with a season number 8 are there?`

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

CREATE TABLE "table1_19925114_1" (
  "no_in_series" real,
  "no_in_season" 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 `How many different numbers of people in the US who'd seen the episode with a season number 8 are there?`:
```sql
                SELECT COUNT("u_s_viewers_millions") FROM "table1_19925114_1" WHERE "no_in_season"=8;
```
## Task
Generate a SQL query to answer the following question:
`Name the rufus guest for 15 december 2008`

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

CREATE TABLE "series_1" (
  "episode" text,
  "first_broadcast" text,
  "rufus_guest" text,
  "marcus_guest" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rufus guest for 15 december 2008`:
```sql
                SELECT COUNT("rufus_guest") FROM "series_1" WHERE "first_broadcast"='15 December 2008';
```
## Task
Generate a SQL query to answer the following question:
`Name the winner for jason byrne`

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

CREATE TABLE "series_1" (
  "episode" text,
  "first_broadcast" text,
  "rufus_guest" text,
  "marcus_guest" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winner for jason byrne`:
```sql
                SELECT "winner" FROM "series_1" WHERE "marcus_guest"='Jason Byrne';
```
## Task
Generate a SQL query to answer the following question:
`Name the rufus guest for episode 1x07`

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

CREATE TABLE "series_1" (
  "episode" text,
  "first_broadcast" text,
  "rufus_guest" text,
  "marcus_guest" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rufus guest for episode 1x07`:
```sql
                SELECT "rufus_guest" FROM "series_1" WHERE "episode"='1x07';
```
## Task
Generate a SQL query to answer the following question:
`Name the winner for 26 january 2009`

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

CREATE TABLE "series_1" (
  "episode" text,
  "first_broadcast" text,
  "rufus_guest" text,
  "marcus_guest" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winner for 26 january 2009`:
```sql
                SELECT "winner" FROM "series_1" WHERE "first_broadcast"='26 January 2009';
```
## Task
Generate a SQL query to answer the following question:
`When was episode 2x11 aired for the first time?`

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

CREATE TABLE "table1_19930660_2" (
  "episode" text,
  "first_broadcast" text,
  "rufus_guest" text,
  "marcus_guest" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was episode 2x11 aired for the first time?`:
```sql
                SELECT "first_broadcast" FROM "table1_19930660_2" WHERE "episode"='2x11';
```
## Task
Generate a SQL query to answer the following question:
`Who won the episode in which Sean Lock was Rufus's guest?`

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

CREATE TABLE "table1_19930660_2" (
  "episode" text,
  "first_broadcast" text,
  "rufus_guest" text,
  "marcus_guest" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the episode in which Sean Lock was Rufus's guest?`:
```sql
                SELECT "winner" FROM "table1_19930660_2" WHERE "rufus_guest"='Sean Lock';
```
## Task
Generate a SQL query to answer the following question:
`When was the episode 2x10 aired for the first time?`

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

CREATE TABLE "table1_19930660_2" (
  "episode" text,
  "first_broadcast" text,
  "rufus_guest" text,
  "marcus_guest" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the episode 2x10 aired for the first time?`:
```sql
                SELECT "first_broadcast" FROM "table1_19930660_2" WHERE "episode"='2x10';
```
## Task
Generate a SQL query to answer the following question:
`Who was Marcus's guest in the episode when Rufus's guest was Rory McGrath?`

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

CREATE TABLE "table1_19930660_2" (
  "episode" text,
  "first_broadcast" text,
  "rufus_guest" text,
  "marcus_guest" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Marcus's guest in the episode when Rufus's guest was Rory McGrath?`:
```sql
                SELECT "marcus_guest" FROM "table1_19930660_2" WHERE "rufus_guest"='Rory McGrath';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of timeslot for august 9, 2007 finale`

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

CREATE TABLE "seasonal_ratings" (
  "season" real,
  "timeslot_edt" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank_spanish_language" real,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of timeslot for august 9, 2007 finale`:
```sql
                SELECT COUNT("timeslot_edt") FROM "seasonal_ratings" WHERE "season_finale"='August 9, 2007';
```
## Task
Generate a SQL query to answer the following question:
`Name the timeslot for 9.4 viewers for 2006`

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

CREATE TABLE "seasonal_ratings" (
  "season" real,
  "timeslot_edt" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank_spanish_language" real,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the timeslot for 9.4 viewers for 2006`:
```sql
                SELECT "timeslot_edt" FROM "seasonal_ratings" WHERE "viewers_in_millions"='9.4' AND "tv_season"='2006';
```
## Task
Generate a SQL query to answer the following question:
`How many items were under ranking l.a.(2) when the world ranking was 21st?`

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

CREATE TABLE "other" (
  "index_year" text,
  "author_editor_source" text,
  "year_of_publication" text,
  "countries_sampled" real,
  "world_ranking_1" text,
  "ranking_l_a_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many items were under ranking l.a.(2) when the world ranking was 21st?`:
```sql
                SELECT COUNT("ranking_l_a_2") FROM "other" WHERE "world_ranking_1"='21st';
```
## Task
Generate a SQL query to answer the following question:
`What was the author/editor/source when the l.a. ranking was 1st?`

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

CREATE TABLE "other" (
  "index_year" text,
  "author_editor_source" text,
  "year_of_publication" text,
  "countries_sampled" real,
  "world_ranking_1" text,
  "ranking_l_a_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the author/editor/source when the l.a. ranking was 1st?`:
```sql
                SELECT "author_editor_source" FROM "other" WHERE "ranking_l_a_2"='1st';
```
## Task
Generate a SQL query to answer the following question:
`How many years were listed under index when there were 157 countries sampled?`

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

CREATE TABLE "other" (
  "index_year" text,
  "author_editor_source" text,
  "year_of_publication" text,
  "countries_sampled" real,
  "world_ranking_1" text,
  "ranking_l_a_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years were listed under index when there were 157 countries sampled?`:
```sql
                SELECT COUNT("index_year") FROM "other" WHERE "countries_sampled"=157;
```
## Task
Generate a SQL query to answer the following question:
`What was the publication year ranking l.a. is 1st?`

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

CREATE TABLE "other" (
  "index_year" text,
  "author_editor_source" text,
  "year_of_publication" text,
  "countries_sampled" real,
  "world_ranking_1" text,
  "ranking_l_a_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the publication year ranking l.a. is 1st?`:
```sql
                SELECT "year_of_publication" FROM "other" WHERE "ranking_l_a_2"='1st';
```
## Task
Generate a SQL query to answer the following question:
`How many years were recorded when world ranking was 21st?`

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

CREATE TABLE "other" (
  "index_year" text,
  "author_editor_source" text,
  "year_of_publication" text,
  "countries_sampled" real,
  "world_ranking_1" text,
  "ranking_l_a_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years were recorded when world ranking was 21st?`:
```sql
                SELECT COUNT("index_year") FROM "other" WHERE "world_ranking_1"='21st';
```
## Task
Generate a SQL query to answer the following question:
`What Wireless LAN had a process technology of 90nm and a Carmel centrino?`

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

CREATE TABLE "intel_centrino" (
  "wireless_lan" text,
  "chipset" text,
  "centrino" text,
  "processor" text,
  "codename" text,
  "release_date" real,
  "process_technology" text,
  "microarchitecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Wireless LAN had a process technology of 90nm and a Carmel centrino?`:
```sql
                SELECT "wireless_lan" FROM "intel_centrino" WHERE "process_technology"='90nm' AND "centrino"='Carmel';
```
## Task
Generate a SQL query to answer the following question:
`How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?`

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

CREATE TABLE "intel_centrino" (
  "wireless_lan" text,
  "chipset" text,
  "centrino" text,
  "processor" text,
  "codename" text,
  "release_date" real,
  "process_technology" text,
  "microarchitecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?`:
```sql
                SELECT "chipset" FROM "intel_centrino" WHERE "codename"='Arrandale' AND "wireless_lan"='Intel Centrino Ultimate-N 6300';
```
## Task
Generate a SQL query to answer the following question:
`What's the process technology of the Intel WiFi Link 5100 wireless LAN?`

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

CREATE TABLE "intel_centrino" (
  "wireless_lan" text,
  "chipset" text,
  "centrino" text,
  "processor" text,
  "codename" text,
  "release_date" real,
  "process_technology" text,
  "microarchitecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the process technology of the Intel WiFi Link 5100 wireless LAN?`:
```sql
                SELECT "process_technology" FROM "intel_centrino" WHERE "wireless_lan"='Intel WiFi Link 5100';
```
## Task
Generate a SQL query to answer the following question:
`What type of processor does the Intel Centrino Wireless-N 105 wireless LAN have?`

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

CREATE TABLE "intel_centrino" (
  "wireless_lan" text,
  "chipset" text,
  "centrino" text,
  "processor" text,
  "codename" text,
  "release_date" real,
  "process_technology" text,
  "microarchitecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of processor does the Intel Centrino Wireless-N 105 wireless LAN have?`:
```sql
                SELECT "processor" FROM "intel_centrino" WHERE "wireless_lan"='Intel Centrino Wireless-N 105';
```
## Task
Generate a SQL query to answer the following question:
`What's the code name of the wireless LAN with Chief River Centrino?`

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

CREATE TABLE "intel_centrino" (
  "wireless_lan" text,
  "chipset" text,
  "centrino" text,
  "processor" text,
  "codename" text,
  "release_date" real,
  "process_technology" text,
  "microarchitecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the code name of the wireless LAN with Chief River Centrino?`:
```sql
                SELECT "codename" FROM "intel_centrino" WHERE "centrino"='Chief River';
```
## Task
Generate a SQL query to answer the following question:
`on 19 april 1985 how many of number last flew`

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

CREATE TABLE "aircraft" (
  "number" real,
  "registration" text,
  "first_flew" text,
  "last_flew" text,
  "flying_hours" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `on 19 april 1985 how many of number last flew`:
```sql
                SELECT COUNT("number") FROM "aircraft" WHERE "last_flew"='19 April 1985';
```
## Task
Generate a SQL query to answer the following question:
`what is the registration located on 31 january 1975 where first flew?`

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

CREATE TABLE "aircraft" (
  "number" real,
  "registration" text,
  "first_flew" text,
  "last_flew" text,
  "flying_hours" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the registration located on 31 january 1975 where first flew?`:
```sql
                SELECT "registration" FROM "aircraft" WHERE "first_flew"='31 January 1975';
```
## Task
Generate a SQL query to answer the following question:
`at what location is the last flew on 11 june 2000`

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

CREATE TABLE "aircraft" (
  "number" real,
  "registration" text,
  "first_flew" text,
  "last_flew" text,
  "flying_hours" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `at what location is the last flew on 11 june 2000`:
```sql
                SELECT "location" FROM "aircraft" WHERE "last_flew"='11 June 2000';
```
## Task
Generate a SQL query to answer the following question:
`how many number is located at registration f-bvff?`

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

CREATE TABLE "aircraft" (
  "number" real,
  "registration" text,
  "first_flew" text,
  "last_flew" text,
  "flying_hours" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many number is located at registration f-bvff?`:
```sql
                SELECT COUNT("number") FROM "aircraft" WHERE "registration"='F-BVFF';
```
## Task
Generate a SQL query to answer the following question:
`Who is the television commentator when the radio commentator is Galyna Babiy?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "television_commentator" text,
  "dual_television_commentator" text,
  "radio_commentator" text,
  "spokesperson" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the television commentator when the radio commentator is Galyna Babiy?`:
```sql
                SELECT "television_commentator" FROM "commentators_and_spokespersons" WHERE "radio_commentator"='Galyna Babiy';
```
## Task
Generate a SQL query to answer the following question:
`Who is the television commentator when the spokesperson is Kateryna Osadcha?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "television_commentator" text,
  "dual_television_commentator" text,
  "radio_commentator" text,
  "spokesperson" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the television commentator when the spokesperson is Kateryna Osadcha?`:
```sql
                SELECT "television_commentator" FROM "commentators_and_spokespersons" WHERE "spokesperson"='Kateryna Osadcha';
```
## Task
Generate a SQL query to answer the following question:
`What is the year when the spoksperson is Ruslana?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "television_commentator" text,
  "dual_television_commentator" text,
  "radio_commentator" text,
  "spokesperson" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year when the spoksperson is Ruslana?`:
```sql
                SELECT MIN("year_s") FROM "commentators_and_spokespersons" WHERE "spokesperson"='Ruslana';
```
## Task
Generate a SQL query to answer the following question:
`Who is the television commentator for the year 2006?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "television_commentator" text,
  "dual_television_commentator" text,
  "radio_commentator" text,
  "spokesperson" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the television commentator for the year 2006?`:
```sql
                SELECT "television_commentator" FROM "commentators_and_spokespersons" WHERE "year_s"=2006;
```
## Task
Generate a SQL query to answer the following question:
`What is the season number of the episode seen by 10.11 million people in the US?`

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

CREATE TABLE "table1_19995378_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season number of the episode seen by 10.11 million people in the US?`:
```sql
                SELECT "no_in_season" FROM "table1_19995378_1" WHERE "u_s_viewers_millions"='10.11';
```
## Task
Generate a SQL query to answer the following question:
`How many different series number does the episode titled "Skate or Die" have?`

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

CREATE TABLE "table1_19995378_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different series number does the episode titled "Skate or Die" have?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_19995378_1" WHERE "title"='\"Skate or Die\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode titled "Rapture"?`

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

CREATE TABLE "table1_19995378_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode titled "Rapture"?`:
```sql
                SELECT "no_in_series" FROM "table1_19995378_1" WHERE "title"='\"Rapture\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes with different series numbers were seen by 8.69 people in the US?`

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

CREATE TABLE "table1_19995378_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes with different series numbers were seen by 8.69 people in the US?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_19995378_1" WHERE "u_s_viewers_millions"='8.69';
```
## Task
Generate a SQL query to answer the following question:
`If the language is only native, what is the percentage of the San Antonio de Lomerio municipality?`

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

CREATE TABLE "population" (
  "language" text,
  "concepci_n_municipality_pct" real,
  "san_javier_municipality_pct" real,
  "san_ram_n_municipality_pct" real,
  "san_juli_n_municipality_pct" real,
  "san_antonio_de_lomer_o_municipality_pct" text,
  "cuatro_ca_adas_municipality_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the language is only native, what is the percentage of the San Antonio de Lomerio municipality?`:
```sql
                SELECT "san_antonio_de_lomer_o_municipality_pct" FROM "population" WHERE "language"='Only native';
```
## Task
Generate a SQL query to answer the following question:
`For language Aymara Simi, what was the maximum San Javier municipality percentage?`

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

CREATE TABLE "population" (
  "language" text,
  "concepci_n_municipality_pct" real,
  "san_javier_municipality_pct" real,
  "san_ram_n_municipality_pct" real,
  "san_juli_n_municipality_pct" real,
  "san_antonio_de_lomer_o_municipality_pct" text,
  "cuatro_ca_adas_municipality_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `For language Aymara Simi, what was the maximum San Javier municipality percentage?`:
```sql
                SELECT MAX("san_javier_municipality_pct") FROM "population" WHERE "language"='Aymara simi';
```
## Task
Generate a SQL query to answer the following question:
`If the San Antonio de Lomerio municipality percentage is 5.480, what is the total percentage for the San Julian municipality?`

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

CREATE TABLE "population" (
  "language" text,
  "concepci_n_municipality_pct" real,
  "san_javier_municipality_pct" real,
  "san_ram_n_municipality_pct" real,
  "san_juli_n_municipality_pct" real,
  "san_antonio_de_lomer_o_municipality_pct" text,
  "cuatro_ca_adas_municipality_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the San Antonio de Lomerio municipality percentage is 5.480, what is the total percentage for the San Julian municipality?`:
```sql
                SELECT COUNT("san_juli_n_municipality_pct") FROM "population" WHERE "san_antonio_de_lomer_o_municipality_pct"='5.480';
```
## Task
Generate a SQL query to answer the following question:
`What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31?`

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

CREATE TABLE "population" (
  "language" text,
  "concepci_n_municipality_pct" real,
  "san_javier_municipality_pct" real,
  "san_ram_n_municipality_pct" real,
  "san_juli_n_municipality_pct" real,
  "san_antonio_de_lomer_o_municipality_pct" text,
  "cuatro_ca_adas_municipality_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31?`:
```sql
                SELECT "san_antonio_de_lomer_o_municipality_pct" FROM "population" WHERE "san_javier_municipality_pct"=31;
```
## Task
Generate a SQL query to answer the following question:
`If the Cuatro Cañadas municipality percentage is 252, what are all the San Antonio de Lomerío municipality percentage?`

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

CREATE TABLE "population" (
  "language" text,
  "concepci_n_municipality_pct" real,
  "san_javier_municipality_pct" real,
  "san_ram_n_municipality_pct" real,
  "san_juli_n_municipality_pct" real,
  "san_antonio_de_lomer_o_municipality_pct" text,
  "cuatro_ca_adas_municipality_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Cuatro Cañadas municipality percentage is 252, what are all the San Antonio de Lomerío municipality percentage?`:
```sql
                SELECT "san_antonio_de_lomer_o_municipality_pct" FROM "population" WHERE "cuatro_ca_adas_municipality_pct"='252';
```
## Task
Generate a SQL query to answer the following question:
`What is the San Javier municipality percentage if the Cuatro Cañadas municipality percentage is 202?`

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

CREATE TABLE "population" (
  "language" text,
  "concepci_n_municipality_pct" real,
  "san_javier_municipality_pct" real,
  "san_ram_n_municipality_pct" real,
  "san_juli_n_municipality_pct" real,
  "san_antonio_de_lomer_o_municipality_pct" text,
  "cuatro_ca_adas_municipality_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the San Javier municipality percentage if the Cuatro Cañadas municipality percentage is 202?`:
```sql
                SELECT "san_javier_municipality_pct" FROM "population" WHERE "cuatro_ca_adas_municipality_pct"='202';
```
## Task
Generate a SQL query to answer the following question:
`How many total number have robert young as the director?`

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

CREATE TABLE "films_in_series" (
  "num" real,
  "title" text,
  "maneater" text,
  "television_premiere" text,
  "dvd_release" text,
  "writer" text,
  "director" text,
  "producer" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total number have robert young as the director?`:
```sql
                SELECT COUNT("num") FROM "films_in_series" WHERE "director"='Robert Young';
```
## Task
Generate a SQL query to answer the following question:
`How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?`

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

CREATE TABLE "films_in_series" (
  "num" real,
  "title" text,
  "maneater" text,
  "television_premiere" text,
  "dvd_release" text,
  "writer" text,
  "director" text,
  "producer" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?`:
```sql
                SELECT MIN("num") FROM "films_in_series" WHERE "producer"='Charles Salmon' AND "television_premiere"='January 27, 2007';
```
## Task
Generate a SQL query to answer the following question:
`How many dvd releases where directed by david decoteau?`

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

CREATE TABLE "films_in_series" (
  "num" real,
  "title" text,
  "maneater" text,
  "television_premiere" text,
  "dvd_release" text,
  "writer" text,
  "director" text,
  "producer" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dvd releases where directed by david decoteau?`:
```sql
                SELECT COUNT("dvd_release") FROM "films_in_series" WHERE "director"='David DeCoteau';
```
## Task
Generate a SQL query to answer the following question:
`When was the dvd release directed by Billy O'Brien?`

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

CREATE TABLE "films_in_series" (
  "num" real,
  "title" text,
  "maneater" text,
  "television_premiere" text,
  "dvd_release" text,
  "writer" text,
  "director" text,
  "producer" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the dvd release directed by Billy O'Brien?`:
```sql
                SELECT "dvd_release" FROM "films_in_series" WHERE "director"='Billy O''Brien';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after game 20?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after game 20?`:
```sql
                SELECT "record" FROM "schedule" WHERE "game"=20;
```
## Task
Generate a SQL query to answer the following question:
`For the game against Iowa, who had the most assists?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game against Iowa, who had the most assists?`:
```sql
                SELECT "high_assists" FROM "schedule" WHERE "team"='Iowa';
```
## Task
Generate a SQL query to answer the following question:
`state high assists on february 15`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `state high assists on february 15`:
```sql
                SELECT "high_assists" FROM "schedule" WHERE "date"='February 15';
```
## Task
Generate a SQL query to answer the following question:
`how many high points where date is february 19`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many high points where date is february 19`:
```sql
                SELECT COUNT("high_points") FROM "schedule" WHERE "date"='February 19';
```
## Task
Generate a SQL query to answer the following question:
`state the number of location attendance where record is 15–10 (5–7)`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `state the number of location attendance where record is 15–10 (5–7)`:
```sql
                SELECT COUNT("location_attendance") FROM "schedule" WHERE "record"='15–10 (5–7)';
```
## Task
Generate a SQL query to answer the following question:
`how many dates where high assists is stu douglass (5) – 4`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many dates where high assists is stu douglass (5) – 4`:
```sql
                SELECT COUNT("date") FROM "schedule" WHERE "high_assists"='Stu Douglass (5) – 4';
```
## Task
Generate a SQL query to answer the following question:
`how many records were made on february 22`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many records were made on february 22`:
```sql
                SELECT COUNT("record") FROM "schedule" WHERE "date"='February 22';
```
## Task
Generate a SQL query to answer the following question:
`Name the most applications for 1986`

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

CREATE TABLE "lb1_and_lb4" (
  "year" text,
  "horsepower" text,
  "torque" text,
  "fuel_system" text,
  "compression_ratio" text,
  "rpo" text,
  "applications" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most applications for 1986`:
```sql
                SELECT MAX("applications") FROM "lb1_and_lb4" WHERE "year"='1986';
```
## Task
Generate a SQL query to answer the following question:
`Name the torque for 1986`

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

CREATE TABLE "lb1_and_lb4" (
  "year" text,
  "horsepower" text,
  "torque" text,
  "fuel_system" text,
  "compression_ratio" text,
  "rpo" text,
  "applications" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the torque for 1986`:
```sql
                SELECT "torque" FROM "lb1_and_lb4" WHERE "year"='1986';
```
## Task
Generate a SQL query to answer the following question:
`What network showed the season with Australia as the destination?`

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

CREATE TABLE "series_details" (
  "season" real,
  "network" text,
  "host" text,
  "contestants" real,
  "winner" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network showed the season with Australia as the destination?`:
```sql
                SELECT "network" FROM "series_details" WHERE "destination"='Australia';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest season with 20 contestants?`

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

CREATE TABLE "series_details" (
  "season" real,
  "network" text,
  "host" text,
  "contestants" real,
  "winner" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest season with 20 contestants?`:
```sql
                SELECT MAX("season") FROM "series_details" WHERE "contestants"=20;
```
## Task
Generate a SQL query to answer the following question:
`What season was won by Ashutosh Kaushik?`

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

CREATE TABLE "series_details" (
  "season" real,
  "network" text,
  "host" text,
  "contestants" real,
  "winner" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season was won by Ashutosh Kaushik?`:
```sql
                SELECT MIN("season") FROM "series_details" WHERE "winner"='Ashutosh Kaushik';
```