cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who are the writer(s) for the production code 2394084`

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

CREATE TABLE "table1_10953197_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the writer(s) for the production code 2394084`:
```sql
                SELECT "writer_s" FROM "table1_10953197_3" WHERE "production_code"='2394084';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of episodes with the production code 2395113A?`

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

CREATE TABLE "season_4_1995_1996" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of episodes with the production code 2395113A?`:
```sql
                SELECT COUNT("title") FROM "season_4_1995_1996" WHERE "production_code"='2395113A';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode called "Melrose Unglued"?`

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

CREATE TABLE "season_4_1995_1996" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the episode called "Melrose Unglued"?`:
```sql
                SELECT MAX("no_in_series") FROM "season_4_1995_1996" WHERE "title"='\"Melrose Unglued\"';
```
## Task
Generate a SQL query to answer the following question:
`Who's the writer for the episode with a production code 2395114?`

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

CREATE TABLE "season_4_1995_1996" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the writer for the episode with a production code 2395114?`:
```sql
                SELECT "writer_s" FROM "season_4_1995_1996" WHERE "production_code"='2395114';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode titled "Full Metal Betsy"?`

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

CREATE TABLE "season_4_1995_1996" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode titled "Full Metal Betsy"?`:
```sql
                SELECT "director" FROM "season_4_1995_1996" WHERE "title"='\"Full Metal Betsy\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode with production code 2395118?`

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

CREATE TABLE "season_4_1995_1996" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the episode with production code 2395118?`:
```sql
                SELECT "no_in_season" FROM "season_4_1995_1996" WHERE "production_code"='2395118';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the episode with production code 2395096?`

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

CREATE TABLE "season_4_1995_1996" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the episode with production code 2395096?`:
```sql
                SELECT "writer_s" FROM "season_4_1995_1996" WHERE "production_code"='2395096';
```
## Task
Generate a SQL query to answer the following question:
`What generation of spectrograph is most likely to detect a planet with a radial velocity of 0.089 m/s?`

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

CREATE TABLE "planets" (
  "planet" text,
  "planet_type" text,
  "semimajor_axis_au" text,
  "orbital_period" text,
  "radial_velocity_m_s" text,
  "detectable_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What generation of spectrograph is most likely to detect a planet with a radial velocity of 0.089 m/s?`:
```sql
                SELECT "detectable_by" FROM "planets" WHERE "radial_velocity_m_s"='0.089';
```
## Task
Generate a SQL query to answer the following question:
`How long is the orbital period for the planet that has a semimajor axis of 5.20 au?`

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

CREATE TABLE "planets" (
  "planet" text,
  "planet_type" text,
  "semimajor_axis_au" text,
  "orbital_period" text,
  "radial_velocity_m_s" text,
  "detectable_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long is the orbital period for the planet that has a semimajor axis of 5.20 au?`:
```sql
                SELECT "orbital_period" FROM "planets" WHERE "semimajor_axis_au"='5.20';
```
## Task
Generate a SQL query to answer the following question:
`What generation of spectrograph is Jupiter detected by?`

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

CREATE TABLE "planets" (
  "planet" text,
  "planet_type" text,
  "semimajor_axis_au" text,
  "orbital_period" text,
  "radial_velocity_m_s" text,
  "detectable_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What generation of spectrograph is Jupiter detected by?`:
```sql
                SELECT "detectable_by" FROM "planets" WHERE "planet"='Jupiter';
```
## Task
Generate a SQL query to answer the following question:
`Which planet has an orbital period of 11.86 years?`

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

CREATE TABLE "planets" (
  "planet" text,
  "planet_type" text,
  "semimajor_axis_au" text,
  "orbital_period" text,
  "radial_velocity_m_s" text,
  "detectable_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which planet has an orbital period of 11.86 years?`:
```sql
                SELECT "planet" FROM "planets" WHERE "orbital_period"='11.86 years';
```
## Task
Generate a SQL query to answer the following question:
`who directed the production code 2398204`

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

CREATE TABLE "season_7_1998_1999" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `who directed the production code 2398204`:
```sql
                SELECT "director" FROM "season_7_1998_1999" WHERE "production_code"='2398204';
```
## Task
Generate a SQL query to answer the following question:
`when did "unpleasantville" air?`

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

CREATE TABLE "season_7_1998_1999" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `when did "unpleasantville" air?`:
```sql
                SELECT "original_air_date" FROM "season_7_1998_1999" WHERE "title"='\"Unpleasantville\"';
```
## Task
Generate a SQL query to answer the following question:
`What is player Alexis Bwenge's pick number?`

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

CREATE TABLE "table1_10960039_1" (
  "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 is player Alexis Bwenge's pick number?`:
```sql
                SELECT "pick_num" FROM "table1_10960039_1" WHERE "player"='Alexis Bwenge';
```
## Task
Generate a SQL query to answer the following question:
`What player is pick #2?`

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

CREATE TABLE "table1_10960039_1" (
  "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 player is pick #2?`:
```sql
                SELECT "player" FROM "table1_10960039_1" WHERE "pick_num"=2;
```
## Task
Generate a SQL query to answer the following question:
`Which player's college is Saskatchewan?`

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

CREATE TABLE "table1_10960039_1" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player's college is Saskatchewan?`:
```sql
                SELECT "player" FROM "table1_10960039_1" WHERE "college"='Saskatchewan';
```
## Task
Generate a SQL query to answer the following question:
`What is McMaster College's pick number?`

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

CREATE TABLE "table1_10960039_1" (
  "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 is McMaster College's pick number?`:
```sql
                SELECT MIN("pick_num") FROM "table1_10960039_1" WHERE "college"='McMaster';
```
## Task
Generate a SQL query to answer the following question:
`give the least number of times an episode was shown from 1997-1998`

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

CREATE TABLE "season_6_1997_1998" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `give the least number of times an episode was shown from 1997-1998`:
```sql
                SELECT MIN("no_in_season") FROM "season_6_1997_1998";
```
## Task
Generate a SQL query to answer the following question:
`when was the episode named "the doctor is in... deep" first broadcast `

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

CREATE TABLE "season_6_1997_1998" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the episode named "the doctor is in... deep" first broadcast `:
```sql
                SELECT "original_air_date" FROM "season_6_1997_1998" WHERE "title"='\"The Doctor Is In... Deep\"';
```
## Task
Generate a SQL query to answer the following question:
`how many times does the episode called "coop de grace" appear `

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

CREATE TABLE "season_6_1997_1998" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times does the episode called "coop de grace" appear `:
```sql
                SELECT COUNT("no_in_series") FROM "season_6_1997_1998" WHERE "title"='\"Coop de Grace\"';
```
## Task
Generate a SQL query to answer the following question:
`what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode `

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

CREATE TABLE "season_6_1997_1998" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode `:
```sql
                SELECT MAX("no_in_season") FROM "season_6_1997_1998" WHERE "director"='Chip Chalmers' AND "production_code"='2397162';
```
## Task
Generate a SQL query to answer the following question:
`Which player went to Michigan State?`

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

CREATE TABLE "table1_10966926_2" (
  "round" real,
  "choice" real,
  "player_name" text,
  "position" text,
  "height" text,
  "weight" real,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to Michigan State?`:
```sql
                SELECT "player_name" FROM "table1_10966926_2" WHERE "college"='Michigan State';
```
## Task
Generate a SQL query to answer the following question:
`Which player went to college in Oklahoma?`

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

CREATE TABLE "table1_10966926_2" (
  "round" real,
  "choice" real,
  "player_name" text,
  "position" text,
  "height" text,
  "weight" real,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to college in Oklahoma?`:
```sql
                SELECT "player_name" FROM "table1_10966926_2" WHERE "college"='Oklahoma';
```
## Task
Generate a SQL query to answer the following question:
`Which position does Colt Brennan play?`

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

CREATE TABLE "table1_10966926_2" (
  "round" real,
  "choice" real,
  "player_name" text,
  "position" text,
  "height" text,
  "weight" real,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position does Colt Brennan play?`:
```sql
                SELECT "position" FROM "table1_10966926_2" WHERE "player_name"='Colt Brennan';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the person that weighs 320 pounds?`

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

CREATE TABLE "table1_10966926_2" (
  "round" real,
  "choice" real,
  "player_name" text,
  "position" text,
  "height" text,
  "weight" real,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the person that weighs 320 pounds?`:
```sql
                SELECT "height" FROM "table1_10966926_2" WHERE "weight"=320;
```
## Task
Generate a SQL query to answer the following question:
`How many colleges have a DB position?`

### 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 `How many colleges have a DB position?`:
```sql
                SELECT COUNT("college") FROM "round_four" WHERE "position"='DB';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of picks for the CFL team 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 `What is the maximum number of picks for the CFL team Calgary Stampeders?`:
```sql
                SELECT MAX("pick_num") FROM "round_four" WHERE "cfl_team"='Calgary Stampeders';
```
## Task
Generate a SQL query to answer the following question:
`How many CFL teams are from York college?`

### 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 `How many CFL teams are from York college?`:
```sql
                SELECT COUNT("cfl_team") FROM "round_four" WHERE "college"='York';
```
## Task
Generate a SQL query to answer the following question:
`What CFL teams are part of Simon Fraser college?`

### 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 `What CFL teams are part of Simon Fraser college?`:
```sql
                SELECT "cfl_team" FROM "round_four" WHERE "college"='Simon Fraser';
```
## Task
Generate a SQL query to answer the following question:
`Which players have a pick number of 27?`

### 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 `Which players have a pick number of 27?`:
```sql
                SELECT "player" FROM "round_four" WHERE "pick_num"=27;
```
## Task
Generate a SQL query to answer the following question:
`How many times were players named brett ralph were selected?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times were players named brett ralph were selected?`:
```sql
                SELECT COUNT("pick_num") FROM "round_six" WHERE "player"='Brett Ralph';
```
## Task
Generate a SQL query to answer the following question:
`What schools did lenard semajuste play for?`

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

CREATE TABLE "round_six" (
  "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 schools did lenard semajuste play for?`:
```sql
                SELECT "college" FROM "round_six" WHERE "player"='Lenard Semajuste';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest selection number for the saskatchewan roughriders team?`

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

CREATE TABLE "round_six" (
  "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 is the highest selection number for the saskatchewan roughriders team?`:
```sql
                SELECT MAX("pick_num") FROM "round_six" WHERE "cfl_team"='Saskatchewan Roughriders';
```
## Task
Generate a SQL query to answer the following question:
`How many fb players were drafted?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fb players were drafted?`:
```sql
                SELECT COUNT("pick_num") FROM "round_six" WHERE "position"='FB';
```
## Task
Generate a SQL query to answer the following question:
`How many players played for adams state school?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players played for adams state school?`:
```sql
                SELECT COUNT("player") FROM "round_six" WHERE "college"='Adams State';
```
## Task
Generate a SQL query to answer the following question:
`What teams drafted players that played for northwood school?`

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

CREATE TABLE "round_six" (
  "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 teams drafted players that played for northwood school?`:
```sql
                SELECT "cfl_team" FROM "round_six" WHERE "college"='Northwood';
```
## Task
Generate a SQL query to answer the following question:
`What college did Craig Zimmer go to?`

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

CREATE TABLE "round_five" (
  "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 college did Craig Zimmer go to?`:
```sql
                SELECT "college" FROM "round_five" WHERE "player"='Craig Zimmer';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number of regina?`

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

CREATE TABLE "round_five" (
  "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 is the pick number of regina?`:
```sql
                SELECT "pick_num" FROM "round_five" WHERE "college"='Regina';
```
## Task
Generate a SQL query to answer the following question:
`What is the player who is lb and cfl team is saskatchewan roughriders?`

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

CREATE TABLE "round_five" (
  "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 is the player who is lb and cfl team is saskatchewan roughriders?`:
```sql
                SELECT "player" FROM "round_five" WHERE "position"='LB' AND "cfl_team"='Saskatchewan Roughriders';
```
## Task
Generate a SQL query to answer the following question:
`What is the cfl team that has a position of ol?`

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

CREATE TABLE "round_five" (
  "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 is the cfl team that has a position of ol?`:
```sql
                SELECT "cfl_team" FROM "round_five" WHERE "position"='OL';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of position where the pick number is 43?`

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

CREATE TABLE "round_five" (
  "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 is the number of position where the pick number is 43?`:
```sql
                SELECT COUNT("position") FROM "round_five" WHERE "pick_num"=43;
```
## Task
Generate a SQL query to answer the following question:
`What is the cfl team with ryan folk?`

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

CREATE TABLE "round_five" (
  "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 is the cfl team with ryan folk?`:
```sql
                SELECT "cfl_team" FROM "round_five" WHERE "player"='Ryan Folk';
```
## Task
Generate a SQL query to answer the following question:
`What release date is when kids-270 is a reference? `

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

CREATE TABLE "singles" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What release date is when kids-270 is a reference? `:
```sql
                SELECT "release_date" FROM "singles" WHERE "reference"='KIDS-270';
```
## Task
Generate a SQL query to answer the following question:
`what is the title where romaji is titles da.i.su.ki`

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

CREATE TABLE "singles" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title where romaji is titles da.i.su.ki`:
```sql
                SELECT "japanese_title" FROM "singles" WHERE "romaji_title"='Da.i.su.ki';
```
## Task
Generate a SQL query to answer the following question:
`what are the title in japanese where the reference is kids-430?`

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

CREATE TABLE "singles" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `what are the title in japanese where the reference is kids-430?`:
```sql
                SELECT "japanese_title" FROM "singles" WHERE "reference"='KIDS-430';
```
## Task
Generate a SQL query to answer the following question:
`who is the reference when romaji title is heartbreak sniper?`

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

CREATE TABLE "singles" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the reference when romaji title is heartbreak sniper?`:
```sql
                SELECT "reference" FROM "singles" WHERE "romaji_title"='Heartbreak Sniper';
```
## Task
Generate a SQL query to answer the following question:
`What rank is 愛のバカ on the Japanese singles chart?`

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

CREATE TABLE "albums" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is 愛のバカ on the Japanese singles chart?`:
```sql
                SELECT COUNT("oricon") FROM "albums" WHERE "japanese_title"='愛のバカ';
```
## Task
Generate a SQL query to answer the following question:
`How many songs have mi-chemin as their Japanese name and romanji name?`

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

CREATE TABLE "albums" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many songs have mi-chemin as their Japanese name and romanji name?`:
```sql
                SELECT COUNT("romaji_title") FROM "albums" WHERE "japanese_title"='Mi-Chemin';
```
## Task
Generate a SQL query to answer the following question:
`What was the  partial thromboplastin time for factor x deficiency as seen in amyloid purpura`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the  partial thromboplastin time for factor x deficiency as seen in amyloid purpura`:
```sql
                SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor X deficiency as seen in amyloid purpura';
```
## Task
Generate a SQL query to answer the following question:
`How many conditions have an unaffected prothrombin time and a prolonged bleeding time`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many conditions have an unaffected prothrombin time and a prolonged bleeding time`:
```sql
                SELECT COUNT("condition") FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Unaffected' AND "bleeding_time"='Prolonged';
```
## Task
Generate a SQL query to answer the following question:
`What was the bleeding time for the factor x deficiency as seen in amyloid purpura`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the bleeding time for the factor x deficiency as seen in amyloid purpura`:
```sql
                SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor X deficiency as seen in amyloid purpura';
```
## Task
Generate a SQL query to answer the following question:
`What conditions had both prolonged bleeding times and prolonged partial thromboplastin times`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What conditions had both prolonged bleeding times and prolonged partial thromboplastin times`:
```sql
                SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Prolonged' AND "bleeding_time"='Prolonged';
```
## Task
Generate a SQL query to answer the following question:
`What was the bleeding time for  factor xii deficiency`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the bleeding time for  factor xii deficiency`:
```sql
                SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor XII deficiency';
```
## Task
Generate a SQL query to answer the following question:
`What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected`:
```sql
                SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Unaffected' AND "platelet_count"='Unaffected';
```
## Task
Generate a SQL query to answer the following question:
`what's the tuesday time with location being millhopper`

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

CREATE TABLE "locations" (
  "location" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the tuesday time with location being millhopper`:
```sql
                SELECT "tuesday" FROM "locations" WHERE "location"='Millhopper';
```
## Task
Generate a SQL query to answer the following question:
`what's the wednesday time with monday being 10:00-8:00`

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

CREATE TABLE "locations" (
  "location" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the wednesday time with monday being 10:00-8:00`:
```sql
                SELECT "wednesday" FROM "locations" WHERE "monday"='10:00-8:00';
```
## Task
Generate a SQL query to answer the following question:
`what's the thursday time with location being hawthorne`

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

CREATE TABLE "locations" (
  "location" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the thursday time with location being hawthorne`:
```sql
                SELECT "thursday" FROM "locations" WHERE "location"='Hawthorne';
```
## Task
Generate a SQL query to answer the following question:
`what's the saturday time with wednesday being 10:00-5:00`

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

CREATE TABLE "locations" (
  "location" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the saturday time with wednesday being 10:00-5:00`:
```sql
                SELECT "saturday" FROM "locations" WHERE "wednesday"='10:00-5:00';
```
## Task
Generate a SQL query to answer the following question:
`what's the thursday time with sunday being 1:00-5:00 and tuesday being 1:00-7:00`

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

CREATE TABLE "locations" (
  "location" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the thursday time with sunday being 1:00-5:00 and tuesday being 1:00-7:00`:
```sql
                SELECT "thursday" FROM "locations" WHERE "sunday"='1:00-5:00' AND "tuesday"='1:00-7:00';
```
## Task
Generate a SQL query to answer the following question:
`what's the monday time with tuesday being 9:00-6:00`

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

CREATE TABLE "locations" (
  "location" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the monday time with tuesday being 9:00-6:00`:
```sql
                SELECT "monday" FROM "locations" WHERE "tuesday"='9:00-6:00';
```
## Task
Generate a SQL query to answer the following question:
`What are all the reports where Paul Tracy had the fastest lap?`

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

CREATE TABLE "race_results" (
  "rnd" real,
  "race_name" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the reports where Paul Tracy had the fastest lap?`:
```sql
                SELECT "report" FROM "race_results" WHERE "fastest_lap"='Paul Tracy';
```
## Task
Generate a SQL query to answer the following question:
`Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?`

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

CREATE TABLE "race_results" (
  "rnd" real,
  "race_name" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?`:
```sql
                SELECT "fastest_lap" FROM "race_results" WHERE "race_name"='Tenneco Automotive Grand Prix of Detroit';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap in the races won by Max Papis?`

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

CREATE TABLE "race_results" (
  "rnd" real,
  "race_name" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap in the races won by Max Papis?`:
```sql
                SELECT "fastest_lap" FROM "race_results" WHERE "winning_driver"='Max Papis';
```
## Task
Generate a SQL query to answer the following question:
`In Round 6, how many winning drivers were there?`

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

CREATE TABLE "race_results" (
  "rnd" real,
  "race_name" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Round 6, how many winning drivers were there?`:
```sql
                SELECT COUNT("winning_driver") FROM "race_results" WHERE "rnd"=6;
```
## Task
Generate a SQL query to answer the following question:
`What are the original names of the districts where the population in the 2010 census was 210450?`

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

CREATE TABLE "districts_of_bogor_city" (
  "english_name" text,
  "original_name" text,
  "area_in_km" text,
  "population_at_2010_census" real,
  "number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the original names of the districts where the population in the 2010 census was 210450?`:
```sql
                SELECT "original_name" FROM "districts_of_bogor_city" WHERE "population_at_2010_census"=210450;
```
## Task
Generate a SQL query to answer the following question:
`What is the original name of the district with the current English name of South Bogor?`

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

CREATE TABLE "districts_of_bogor_city" (
  "english_name" text,
  "original_name" text,
  "area_in_km" text,
  "population_at_2010_census" real,
  "number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original name of the district with the current English name of South Bogor?`:
```sql
                SELECT "original_name" FROM "districts_of_bogor_city" WHERE "english_name"='South Bogor';
```
## Task
Generate a SQL query to answer the following question:
`What is the listed population from the 2010 census of West Bogor?`

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

CREATE TABLE "districts_of_bogor_city" (
  "english_name" text,
  "original_name" text,
  "area_in_km" text,
  "population_at_2010_census" real,
  "number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the listed population from the 2010 census of West Bogor?`:
```sql
                SELECT MIN("population_at_2010_census") FROM "districts_of_bogor_city" WHERE "english_name"='West Bogor';
```
## Task
Generate a SQL query to answer the following question:
`How many districts have an area of 17.72 KM2?`

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

CREATE TABLE "districts_of_bogor_city" (
  "english_name" text,
  "original_name" text,
  "area_in_km" text,
  "population_at_2010_census" real,
  "number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts have an area of 17.72 KM2?`:
```sql
                SELECT COUNT("english_name") FROM "districts_of_bogor_city" WHERE "area_in_km"='17.72';
```
## Task
Generate a SQL query to answer the following question:
`What is the area in km2 for the district whose original name was Kecamatan Bogor Timur?`

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

CREATE TABLE "districts_of_bogor_city" (
  "english_name" text,
  "original_name" text,
  "area_in_km" text,
  "population_at_2010_census" real,
  "number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area in km2 for the district whose original name was Kecamatan Bogor Timur?`:
```sql
                SELECT "area_in_km" FROM "districts_of_bogor_city" WHERE "original_name"='Kecamatan Bogor Timur';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of colour with the regisration number of mg-509?`

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

CREATE TABLE "production_overview" (
  "pilot_car_no" real,
  "colour" text,
  "serial_no" text,
  "engine_no" real,
  "registration_no" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of colour with the regisration number of mg-509?`:
```sql
                SELECT COUNT("colour") FROM "production_overview" WHERE "registration_no"='MG-509';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode directed by Mark Tinker?`

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

CREATE TABLE "table1_11058032_1" (
  "no_in_series" real,
  "no_in_season" 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 is the title of the episode directed by Mark Tinker?`:
```sql
                SELECT "title" FROM "table1_11058032_1" WHERE "directed_by"='Mark Tinker';
```
## Task
Generate a SQL query to answer the following question:
`What episode in the season was directed by Jeff Melman?`

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

CREATE TABLE "table1_11058032_1" (
  "no_in_series" real,
  "no_in_season" 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 in the season was directed by Jeff Melman?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_11058032_1" WHERE "directed_by"='Jeff Melman';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had 16.03 million viewers?`

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

CREATE TABLE "table1_11058032_1" (
  "no_in_series" real,
  "no_in_season" 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 `How many episodes had 16.03 million viewers?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_11058032_1" WHERE "u_s_viewers_millions"='16.03';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of interregnum for duration 3 months, 6 days?`

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

CREATE TABLE "list_of_imperial_vicars_1437_1792" (
  "interregnum_began" text,
  "interregnum_ended" text,
  "duration" text,
  "count_palatine_of_saxony" text,
  "count_palatine_of_the_rhine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of interregnum for duration 3 months, 6 days?`:
```sql
                SELECT COUNT("interregnum_ended") FROM "list_of_imperial_vicars_1437_1792" WHERE "duration"='3 months, 6 days';
```
## Task
Generate a SQL query to answer the following question:
`Who directed Episode 8?`

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

CREATE TABLE "table1_11075747_4" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed Episode 8?`:
```sql
                SELECT "directed_by" FROM "table1_11075747_4" WHERE "episode_num"=8;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode called "Tell-tale Heart"?`

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

CREATE TABLE "table1_11075747_4" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode called "Tell-tale Heart"?`:
```sql
                SELECT "directed_by" FROM "table1_11075747_4" WHERE "title"='\"Tell-Tale Heart\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date for Series 36?`

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

CREATE TABLE "table1_11075747_4" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date for Series 36?`:
```sql
                SELECT "original_air_date" FROM "table1_11075747_4" WHERE "series_num"=36;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote Series 38?`

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

CREATE TABLE "table1_11075747_4" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote Series 38?`:
```sql
                SELECT "written_by" FROM "table1_11075747_4" WHERE "series_num"=38;
```