cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`who was the successor for district ohio 15th?`

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

CREATE TABLE "table1_1652224_5" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the successor for district ohio 15th?`:
```sql
                SELECT "successor" FROM "table1_1652224_5" WHERE "district"='Ohio 15th';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number for reason for change is district michigan 3rd?`

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

CREATE TABLE "table1_1652224_5" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number for reason for change is district michigan 3rd?`:
```sql
                SELECT COUNT("reason_for_change") FROM "table1_1652224_5" WHERE "district"='Michigan 3rd';
```
## Task
Generate a SQL query to answer the following question:
`What day did ARchie Roberts die?`

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

CREATE TABLE "table1_16527640_3" (
  "player" text,
  "vfl_games" real,
  "vfl_club_s" text,
  "rank_held_at_time_of_death" text,
  "date_of_death" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did ARchie Roberts die?`:
```sql
                SELECT "date_of_death" FROM "table1_16527640_3" WHERE "player"='Archie Roberts';
```
## Task
Generate a SQL query to answer the following question:
`What location had a VFL Game number of 9?`

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

CREATE TABLE "table1_16527640_3" (
  "player" text,
  "vfl_games" real,
  "vfl_club_s" text,
  "rank_held_at_time_of_death" text,
  "date_of_death" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location had a VFL Game number of 9?`:
```sql
                SELECT "location" FROM "table1_16527640_3" WHERE "vfl_games"=9;
```
## Task
Generate a SQL query to answer the following question:
`How many VFL games were located off Goodenough Island Milne Bay?`

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

CREATE TABLE "table1_16527640_3" (
  "player" text,
  "vfl_games" real,
  "vfl_club_s" text,
  "rank_held_at_time_of_death" text,
  "date_of_death" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many VFL games were located off Goodenough Island Milne Bay?`:
```sql
                SELECT "vfl_games" FROM "table1_16527640_3" WHERE "location"='off Goodenough Island Milne Bay';
```
## Task
Generate a SQL query to answer the following question:
`Name the 3rd stage for parameter of thrust `

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

CREATE TABLE "specifications" (
  "parameter" text,
  "1st_stage" text,
  "2nd_stage" text,
  "3rd_stage" text,
  "4th_stage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 3rd stage for parameter of thrust `:
```sql
                SELECT "3rd_stage" FROM "specifications" WHERE "parameter"='Thrust';
```
## Task
Generate a SQL query to answer the following question:
`Name the parameter for 2.67 m`

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

CREATE TABLE "specifications" (
  "parameter" text,
  "1st_stage" text,
  "2nd_stage" text,
  "3rd_stage" text,
  "4th_stage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the parameter for 2.67 m`:
```sql
                SELECT "parameter" FROM "specifications" WHERE "1st_stage"='2.67 m';
```
## Task
Generate a SQL query to answer the following question:
`Name the paarameter for 1.0 m 3rd stage`

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

CREATE TABLE "specifications" (
  "parameter" text,
  "1st_stage" text,
  "2nd_stage" text,
  "3rd_stage" text,
  "4th_stage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the paarameter for 1.0 m 3rd stage`:
```sql
                SELECT "parameter" FROM "specifications" WHERE "3rd_stage"='1.0 m';
```
## Task
Generate a SQL query to answer the following question:
`Name the 1st stage for parameter being diameter`

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

CREATE TABLE "specifications" (
  "parameter" text,
  "1st_stage" text,
  "2nd_stage" text,
  "3rd_stage" text,
  "4th_stage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1st stage for parameter being diameter`:
```sql
                SELECT "1st_stage" FROM "specifications" WHERE "parameter"='Diameter';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes have the title "the world of who"?`

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

CREATE TABLE "series_1_2005" (
  "episode_num" text,
  "original_airdate_uk" text,
  "episode_title" text,
  "doctor_who_episode" text,
  "webcast_link" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have the title "the world of who"?`:
```sql
                SELECT COUNT("episode_num") FROM "series_1_2005" WHERE "episode_title"='\"The World of Who\"';
```
## Task
Generate a SQL query to answer the following question:
`What episode number is the episode "bringing back the doctor"?`

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

CREATE TABLE "series_1_2005" (
  "episode_num" text,
  "original_airdate_uk" text,
  "episode_title" text,
  "doctor_who_episode" text,
  "webcast_link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number is the episode "bringing back the doctor"?`:
```sql
                SELECT "episode_num" FROM "series_1_2005" WHERE "episode_title"='\"Bringing Back the Doctor\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode number for the episode "a new dimension"?`

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

CREATE TABLE "series_1_2005" (
  "episode_num" text,
  "original_airdate_uk" text,
  "episode_title" text,
  "doctor_who_episode" text,
  "webcast_link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode number for the episode "a new dimension"?`:
```sql
                SELECT "episode_num" FROM "series_1_2005" WHERE "episode_title"='\"A New Dimension\"';
```
## Task
Generate a SQL query to answer the following question:
`Which archbishop was ordained as bishop November 30, 1925?`

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

CREATE TABLE "archbishops" (
  "archbishop" text,
  "born" text,
  "ordained_priest" text,
  "ordained_bishop" text,
  "appointed_archbishop" text,
  "vacated_throne" text,
  "died" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which archbishop was ordained as bishop November 30, 1925?`:
```sql
                SELECT "archbishop" FROM "archbishops" WHERE "ordained_bishop"='November 30, 1925';
```
## Task
Generate a SQL query to answer the following question:
`What is the death date of the archbishop who was ordained as bishop April 26, 1927?`

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

CREATE TABLE "archbishops" (
  "archbishop" text,
  "born" text,
  "ordained_priest" text,
  "ordained_bishop" text,
  "appointed_archbishop" text,
  "vacated_throne" text,
  "died" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the death date of the archbishop who was ordained as bishop April 26, 1927?`:
```sql
                SELECT "died" FROM "archbishops" WHERE "ordained_bishop"='April 26, 1927';
```
## Task
Generate a SQL query to answer the following question:
`How many appointed archbishops were ordained as priests on December 20, 1959`

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

CREATE TABLE "archbishops" (
  "archbishop" text,
  "born" text,
  "ordained_priest" text,
  "ordained_bishop" text,
  "appointed_archbishop" text,
  "vacated_throne" text,
  "died" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many appointed archbishops were ordained as priests on December 20, 1959`:
```sql
                SELECT COUNT("appointed_archbishop") FROM "archbishops" WHERE "ordained_priest"='December 20, 1959';
```
## Task
Generate a SQL query to answer the following question:
`What date was the person ordained as a priest in December 1838 ordained as a bishop?`

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

CREATE TABLE "archbishops" (
  "archbishop" text,
  "born" text,
  "ordained_priest" text,
  "ordained_bishop" text,
  "appointed_archbishop" text,
  "vacated_throne" text,
  "died" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the person ordained as a priest in December 1838 ordained as a bishop?`:
```sql
                SELECT "ordained_bishop" FROM "archbishops" WHERE "ordained_priest"='December 1838';
```
## Task
Generate a SQL query to answer the following question:
`When was the archbishop who vacated the throne on August 18, 1885 ordained as a priest?`

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

CREATE TABLE "archbishops" (
  "archbishop" text,
  "born" text,
  "ordained_priest" text,
  "ordained_bishop" text,
  "appointed_archbishop" text,
  "vacated_throne" text,
  "died" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the archbishop who vacated the throne on August 18, 1885 ordained as a priest?`:
```sql
                SELECT "ordained_priest" FROM "archbishops" WHERE "vacated_throne"='August 18, 1885';
```
## Task
Generate a SQL query to answer the following question:
`How many players Bowled 4/125?`

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

CREATE TABLE "best_bowling_averages" (
  "player" text,
  "team" text,
  "matches" real,
  "wickets" real,
  "average" text,
  "best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players Bowled 4/125?`:
```sql
                SELECT COUNT("player") FROM "best_bowling_averages" WHERE "best_bowling"='4/125';
```
## Task
Generate a SQL query to answer the following question:
`What number of wickets were there when the average was 22.66?`

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

CREATE TABLE "best_bowling_averages" (
  "player" text,
  "team" text,
  "matches" real,
  "wickets" real,
  "average" text,
  "best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number of wickets were there when the average was 22.66?`:
```sql
                SELECT MAX("wickets") FROM "best_bowling_averages" WHERE "average"='22.66';
```
## Task
Generate a SQL query to answer the following question:
`How many wickets were there when average was 22.66?`

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

CREATE TABLE "best_bowling_averages" (
  "player" text,
  "team" text,
  "matches" real,
  "wickets" real,
  "average" text,
  "best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wickets were there when average was 22.66?`:
```sql
                SELECT "wickets" FROM "best_bowling_averages" WHERE "average"='22.66';
```
## Task
Generate a SQL query to answer the following question:
`What was the best bowling score when the average was 23.33?`

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

CREATE TABLE "best_bowling_averages" (
  "player" text,
  "team" text,
  "matches" real,
  "wickets" real,
  "average" text,
  "best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the best bowling score when the average was 23.33?`:
```sql
                SELECT "best_bowling" FROM "best_bowling_averages" WHERE "average"='23.33';
```
## Task
Generate a SQL query to answer the following question:
`How many matches had 11 wickets?`

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

CREATE TABLE "best_bowling_averages" (
  "player" text,
  "team" text,
  "matches" real,
  "wickets" real,
  "average" text,
  "best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many matches had 11 wickets?`:
```sql
                SELECT MAX("matches") FROM "best_bowling_averages" WHERE "wickets"=11;
```
## Task
Generate a SQL query to answer the following question:
`How many wickets did Alec bedser have?`

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

CREATE TABLE "best_bowling_averages" (
  "player" text,
  "team" text,
  "matches" real,
  "wickets" real,
  "average" text,
  "best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wickets did Alec bedser have?`:
```sql
                SELECT MAX("wickets") FROM "best_bowling_averages" WHERE "player"='Alec Bedser';
```
## Task
Generate a SQL query to answer the following question:
`Who picked dimitri tsoumpas?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who picked dimitri tsoumpas?`:
```sql
                SELECT "cfl_team" FROM "round_one" WHERE "player"='Dimitri Tsoumpas';
```
## Task
Generate a SQL query to answer the following question:
`What position did the winnipeg blue bombers draft?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the winnipeg blue bombers draft?`:
```sql
                SELECT "position" FROM "round_one" WHERE "cfl_team"='Winnipeg Blue Bombers';
```
## Task
Generate a SQL query to answer the following question:
`Where did Brendon Labatte get picked?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Brendon Labatte get picked?`:
```sql
                SELECT MIN("pick_num") FROM "round_one" WHERE "player"='Brendon LaBatte';
```
## Task
Generate a SQL query to answer the following question:
`Who picked a player from Weber State?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who picked a player from Weber State?`:
```sql
                SELECT "cfl_team" FROM "round_one" WHERE "college"='Weber State';
```
## Task
Generate a SQL query to answer the following question:
`What position was taken out of Louisiana-Lafayette?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position was taken out of Louisiana-Lafayette?`:
```sql
                SELECT "position" FROM "round_one" WHERE "college"='Louisiana-Lafayette';
```
## Task
Generate a SQL query to answer the following question:
`Name the college for calgary stampeders`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college for calgary stampeders`:
```sql
                SELECT "college" FROM "round_four" WHERE "cfl_team"='Calgary Stampeders';
```
## Task
Generate a SQL query to answer the following question:
`Name the most pick number for cfl team being edmonton eskimos`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most pick number for cfl team being edmonton eskimos`:
```sql
                SELECT MAX("pick_num") FROM "round_four" WHERE "cfl_team"='Edmonton Eskimos';
```
## Task
Generate a SQL query to answer the following question:
`How many days are associated with production code 210?`

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

CREATE TABLE "table1_16581695_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many days are associated with production code 210?`:
```sql
                SELECT COUNT("original_airdate") FROM "table1_16581695_3" WHERE "production_code"=210;
```
## Task
Generate a SQL query to answer the following question:
`How many titles have a production code of 211?`

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

CREATE TABLE "table1_16581695_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles have a production code of 211?`:
```sql
                SELECT COUNT("title") FROM "table1_16581695_3" WHERE "production_code"=211;
```
## Task
Generate a SQL query to answer the following question:
`How many seasons have a production code of 204?`

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

CREATE TABLE "table1_16581695_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons have a production code of 204?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_16581695_3" WHERE "production_code"=204;
```
## Task
Generate a SQL query to answer the following question:
`What title was written by Matt Wayne?`

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

CREATE TABLE "table1_16581695_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What title was written by Matt Wayne?`:
```sql
                SELECT "title" FROM "table1_16581695_3" WHERE "written_by"='Matt Wayne';
```
## Task
Generate a SQL query to answer the following question:
`What is the series episode number of the episode with production code 303?`

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

CREATE TABLE "table1_16581695_4" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series episode number of the episode with production code 303?`:
```sql
                SELECT "no_in_series" FROM "table1_16581695_4" WHERE "production_code"='303';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for episode 15 in season 3?`

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

CREATE TABLE "table1_16581695_4" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for episode 15 in season 3?`:
```sql
                SELECT "production_code" FROM "table1_16581695_4" WHERE "no_in_season"='15';
```
## Task
Generate a SQL query to answer the following question:
`Who directed episode 12 in season 3?`

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

CREATE TABLE "table1_16581695_4" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode 12 in season 3?`:
```sql
                SELECT "directed_by" FROM "table1_16581695_4" WHERE "no_in_season"='12';
```
## Task
Generate a SQL query to answer the following question:
`How many tree species are listed when the total plant species is 258?`

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

CREATE TABLE "list_of_protected_forests" (
  "central_forest_reserve" text,
  "size_in_km" real,
  "total_plant_species" real,
  "tree_species" real,
  "endemic" real,
  "threatened_cr_vu_en" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many tree species are listed when the total plant species is 258?`:
```sql
                SELECT "tree_species" FROM "list_of_protected_forests" WHERE "total_plant_species"=258;
```
## Task
Generate a SQL query to answer the following question:
`How many tree species are there when the total plant species is 113?`

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

CREATE TABLE "list_of_protected_forests" (
  "central_forest_reserve" text,
  "size_in_km" real,
  "total_plant_species" real,
  "tree_species" real,
  "endemic" real,
  "threatened_cr_vu_en" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many tree species are there when the total plant species is 113?`:
```sql
                SELECT COUNT("tree_species") FROM "list_of_protected_forests" WHERE "total_plant_species"=113;
```
## Task
Generate a SQL query to answer the following question:
`What is the size of Itwara central forest reserve?`

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

CREATE TABLE "list_of_protected_forests" (
  "central_forest_reserve" text,
  "size_in_km" real,
  "total_plant_species" real,
  "tree_species" real,
  "endemic" real,
  "threatened_cr_vu_en" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the size of Itwara central forest reserve?`:
```sql
                SELECT MIN("size_in_km") FROM "list_of_protected_forests" WHERE "central_forest_reserve"='Itwara';
```
## Task
Generate a SQL query to answer the following question:
`How many tree species are in the kitechura reserve?`

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

CREATE TABLE "list_of_protected_forests" (
  "central_forest_reserve" text,
  "size_in_km" real,
  "total_plant_species" real,
  "tree_species" real,
  "endemic" real,
  "threatened_cr_vu_en" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many tree species are in the kitechura reserve?`:
```sql
                SELECT "tree_species" FROM "list_of_protected_forests" WHERE "central_forest_reserve"='Kitechura';
```
## Task
Generate a SQL query to answer the following question:
`What episode titles have 17.93 million U.S. viewers?`

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

CREATE TABLE "table1_16617025_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode titles have 17.93 million U.S. viewers?`:
```sql
                SELECT "title" FROM "table1_16617025_1" WHERE "u_s_viewers_millions"='17.93';
```
## Task
Generate a SQL query to answer the following question:
`What episode titles have 20.94 million U.S. viewers?`

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

CREATE TABLE "table1_16617025_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode titles have 20.94 million U.S. viewers?`:
```sql
                SELECT "title" FROM "table1_16617025_1" WHERE "u_s_viewers_millions"='20.94';
```
## Task
Generate a SQL query to answer the following question:
`In what seasons did Kate Woods direct Without A Trace?`

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

CREATE TABLE "table1_16617025_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what seasons did Kate Woods direct Without A Trace?`:
```sql
                SELECT "season_num" FROM "table1_16617025_1" WHERE "directed_by"='Kate Woods';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote Season 8?`

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

CREATE TABLE "table1_16617025_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote Season 8?`:
```sql
                SELECT "written_by" FROM "table1_16617025_1" WHERE "season_num"=8;
```
## Task
Generate a SQL query to answer the following question:
`When did the country that produced 1,213,000 (21st) bbl/day join Opec?`

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

CREATE TABLE "table1_166346_1" (
  "country" text,
  "region" text,
  "joined_opec" real,
  "population_july_2012" real,
  "area_km" real,
  "production_bbl_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the country that produced 1,213,000 (21st) bbl/day join Opec?`:
```sql
                SELECT "joined_opec" FROM "table1_166346_1" WHERE "production_bbl_day"='1,213,000 (21st)';
```
## Task
Generate a SQL query to answer the following question:
`What was the minimum area in square kilometers that produced 3,200,000 (12th) bbl/day?`

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

CREATE TABLE "table1_166346_1" (
  "country" text,
  "region" text,
  "joined_opec" real,
  "population_july_2012" real,
  "area_km" real,
  "production_bbl_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum area in square kilometers that produced 3,200,000 (12th) bbl/day?`:
```sql
                SELECT MIN("area_km") FROM "table1_166346_1" WHERE "production_bbl_day"='3,200,000 (12th)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers?`

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

CREATE TABLE "table1_166346_1" (
  "country" text,
  "region" text,
  "joined_opec" real,
  "population_july_2012" real,
  "area_km" real,
  "production_bbl_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers?`:
```sql
                SELECT MAX("population_july_2012") FROM "table1_166346_1" WHERE "area_km"=2149690;
```
## Task
Generate a SQL query to answer the following question:
`Which regions had a production (bbl/day) of 1,213,000 (21st)?`

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

CREATE TABLE "table1_166346_1" (
  "country" text,
  "region" text,
  "joined_opec" real,
  "population_july_2012" real,
  "area_km" real,
  "production_bbl_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which regions had a production (bbl/day) of 1,213,000 (21st)?`:
```sql
                SELECT "region" FROM "table1_166346_1" WHERE "production_bbl_day"='1,213,000 (21st)';
```
## Task
Generate a SQL query to answer the following question:
`Which country had a production (bbl/day) of 2,494,000 (10th)?`

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

CREATE TABLE "table1_166346_1" (
  "country" text,
  "region" text,
  "joined_opec" real,
  "population_july_2012" real,
  "area_km" real,
  "production_bbl_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country had a production (bbl/day) of 2,494,000 (10th)?`:
```sql
                SELECT "country" FROM "table1_166346_1" WHERE "production_bbl_day"='2,494,000 (10th)';
```
## Task
Generate a SQL query to answer the following question:
`What are all the approved treatments for the target CD30?`

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

CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
  "antibody" text,
  "brand_name" text,
  "approval_date" real,
  "type" text,
  "target" text,
  "approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the approved treatments for the target CD30?`:
```sql
                SELECT "approved_treatment_s" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "target"='CD30';
```
## Task
Generate a SQL query to answer the following question:
`What is the brand name for the antibody Brentuximab Vedotin?`

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

CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
  "antibody" text,
  "brand_name" text,
  "approval_date" real,
  "type" text,
  "target" text,
  "approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brand name for the antibody Brentuximab Vedotin?`:
```sql
                SELECT "brand_name" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "antibody"='Brentuximab vedotin';
```
## Task
Generate a SQL query to answer the following question:
`How many targets are there with an approval date of 1997?`

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

CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
  "antibody" text,
  "brand_name" text,
  "approval_date" real,
  "type" text,
  "target" text,
  "approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many targets are there with an approval date of 1997?`:
```sql
                SELECT COUNT("target") FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "approval_date"=1997;
```
## Task
Generate a SQL query to answer the following question:
`What are the approved treatments when the antibody is bevacizumab?`

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

CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
  "antibody" text,
  "brand_name" text,
  "approval_date" real,
  "type" text,
  "target" text,
  "approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the approved treatments when the antibody is bevacizumab?`:
```sql
                SELECT "approved_treatment_s" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "antibody"='Bevacizumab';
```
## Task
Generate a SQL query to answer the following question:
`What is the target when the approved treatment is non-hodgkin lymphoma?`

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

CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
  "antibody" text,
  "brand_name" text,
  "approval_date" real,
  "type" text,
  "target" text,
  "approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the target when the approved treatment is non-hodgkin lymphoma?`:
```sql
                SELECT "target" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "approved_treatment_s"='non-Hodgkin lymphoma';
```
## Task
Generate a SQL query to answer the following question:
`What is the target with an approval date of 2006?`

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

CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
  "antibody" text,
  "brand_name" text,
  "approval_date" real,
  "type" text,
  "target" text,
  "approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the target with an approval date of 2006?`:
```sql
                SELECT "target" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "approval_date"=2006;
```
## Task
Generate a SQL query to answer the following question:
`What is the urban population % when the rural percentage is 43?`

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

CREATE TABLE "population_of_kazakhstan_1939_2009" (
  "year_january" real,
  "population_000" real,
  "rural_pct" real,
  "urban_pct" real,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the urban population % when the rural percentage is 43?`:
```sql
                SELECT MIN("urban_pct") FROM "population_of_kazakhstan_1939_2009" WHERE "rural_pct"=43;
```
## Task
Generate a SQL query to answer the following question:
`What is the rural population percentage in 1979?`

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

CREATE TABLE "population_of_kazakhstan_1939_2009" (
  "year_january" real,
  "population_000" real,
  "rural_pct" real,
  "urban_pct" real,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rural population percentage in 1979?`:
```sql
                SELECT MIN("rural_pct") FROM "population_of_kazakhstan_1939_2009" WHERE "year_january"=1979;
```
## Task
Generate a SQL query to answer the following question:
`How many percentage figures are given for the urban population when the total population number is 14685?`

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

CREATE TABLE "population_of_kazakhstan_1939_2009" (
  "year_january" real,
  "population_000" real,
  "rural_pct" real,
  "urban_pct" real,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many percentage figures are given for the urban population when the total population number is 14685?`:
```sql
                SELECT COUNT("urban_pct") FROM "population_of_kazakhstan_1939_2009" WHERE "population_000"=14685;
```
## Task
Generate a SQL query to answer the following question:
`For how many years was the urban population 57%?`

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

CREATE TABLE "population_of_kazakhstan_1939_2009" (
  "year_january" real,
  "population_000" real,
  "rural_pct" real,
  "urban_pct" real,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `For how many years was the urban population 57%?`:
```sql
                SELECT COUNT("source") FROM "population_of_kazakhstan_1939_2009" WHERE "urban_pct"=57;
```
## Task
Generate a SQL query to answer the following question:
`When tajik is the ethnicity  what is islam?`

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

CREATE TABLE "religion" (
  "ethnicity" text,
  "islam" text,
  "christianity" text,
  "judaism" text,
  "buddhism" text,
  "other" text,
  "atheism" text,
  "n_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `When tajik is the ethnicity  what is islam?`:
```sql
                SELECT "islam" FROM "religion" WHERE "ethnicity"='Tajik';
```
## Task
Generate a SQL query to answer the following question:
`How many had a length of 455?`

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

CREATE TABLE "course" (
  "number" real,
  "name" text,
  "kilometer" real,
  "pavement" text,
  "length_m" real,
  "average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many had a length of 455?`:
```sql
                SELECT COUNT("name") FROM "course" WHERE "length_m"=455;
```
## Task
Generate a SQL query to answer the following question:
`What is the average climb for Tenbosse?`

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

CREATE TABLE "course" (
  "number" real,
  "name" text,
  "kilometer" real,
  "pavement" text,
  "length_m" real,
  "average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average climb for Tenbosse?`:
```sql
                SELECT MIN("average_climb_pct") FROM "course" WHERE "name"='Tenbosse';
```
## Task
Generate a SQL query to answer the following question:
`How many have a kilometers of 233?`

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

CREATE TABLE "course" (
  "number" real,
  "name" text,
  "kilometer" real,
  "pavement" text,
  "length_m" real,
  "average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many have a kilometers of 233?`:
```sql
                SELECT "number" FROM "course" WHERE "kilometer"=233;
```
## Task
Generate a SQL query to answer the following question:
`How many have a length of 375?`

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

CREATE TABLE "course" (
  "number" real,
  "name" text,
  "kilometer" real,
  "pavement" text,
  "length_m" real,
  "average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many have a length of 375?`:
```sql
                SELECT COUNT("average_climb_pct") FROM "course" WHERE "length_m"=375;
```
## Task
Generate a SQL query to answer the following question:
`What was the team's playoff status in 2011?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's playoff status in 2011?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "year"='2011';
```
## Task
Generate a SQL query to answer the following question:
`What was the team's league in 2010?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's league in 2010?`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "year"='2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the league name for the regular season status of 2nd, mid atlantic?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the league name for the regular season status of 2nd, mid atlantic?`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "regular_season"='2nd, Mid Atlantic';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver at Okayama International Circuit?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver at Okayama International Circuit?`:
```sql
                SELECT "winning_driver" FROM "calendar" WHERE "circuit"='Okayama International Circuit';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap when the winning team was Tom's Racing?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap when the winning team was Tom's Racing?`:
```sql
                SELECT "fastest_lap" FROM "calendar" WHERE "winning_team"='TOM''S Racing';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit?`:
```sql
                SELECT "fastest_lap" FROM "calendar" WHERE "winning_team"='Team Impul' AND "circuit"='Twin Ring Motegi';
```
## Task
Generate a SQL query to answer the following question:
`How many opponents did the team play in week 13?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "bills_points" real,
  "opponents" real,
  "bills_first_downs" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents did the team play in week 13?`:
```sql
                SELECT COUNT("opponents") FROM "schedule" WHERE "game"=13;
```
## Task
Generate a SQL query to answer the following question:
`How many points did the opponent score on Sept. 14?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "bills_points" real,
  "opponents" real,
  "bills_first_downs" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the opponent score on Sept. 14?`:
```sql
                SELECT MAX("opponents") FROM "schedule" WHERE "date"='Sept. 14';
```
## Task
Generate a SQL query to answer the following question:
`What team were the bills playing where their first down was 23?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "bills_points" real,
  "opponents" real,
  "bills_first_downs" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team were the bills playing where their first down was 23?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "bills_first_downs"=23;
```
## Task
Generate a SQL query to answer the following question:
`What was the record for the game on Sept. 14?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "bills_points" real,
  "opponents" real,
  "bills_first_downs" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the game on Sept. 14?`:
```sql
                SELECT "record" FROM "schedule" WHERE "date"='Sept. 14';
```
## Task
Generate a SQL query to answer the following question:
`When 12743 is the spelthorne what is the largest gore hundred?`

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

CREATE TABLE "table1_16677738_1" (
  "year" real,
  "edmonton_hundred" real,
  "elthorne_hundred" real,
  "gore_hundred" real,
  "isleworth_hundred" real,
  "holborn_division" real,
  "finsbury_division" real,
  "kensington_division" real,
  "tower_division" real,
  "spelthorne_hundred" real,
  "within_the_walls" real,
  "without_the_walls" real,
  "inns_of_court_and_chancery" real,
  "westminster_city_and_liberty" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 12743 is the spelthorne what is the largest gore hundred?`:
```sql
                SELECT MAX("gore_hundred") FROM "table1_16677738_1" WHERE "spelthorne_hundred"=12743;
```
## Task
Generate a SQL query to answer the following question:
`When 1546 is inns of court and chancery what is the finsbury division?`

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

CREATE TABLE "table1_16677738_1" (
  "year" real,
  "edmonton_hundred" real,
  "elthorne_hundred" real,
  "gore_hundred" real,
  "isleworth_hundred" real,
  "holborn_division" real,
  "finsbury_division" real,
  "kensington_division" real,
  "tower_division" real,
  "spelthorne_hundred" real,
  "within_the_walls" real,
  "without_the_walls" real,
  "inns_of_court_and_chancery" real,
  "westminster_city_and_liberty" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 1546 is inns of court and chancery what is the finsbury division?`:
```sql
                SELECT "finsbury_division" FROM "table1_16677738_1" WHERE "inns_of_court_and_chancery"=1546;
```