cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What are all the 100 m group (mm) with a .308 winchester cartridge type of .300 winchester magnum cartridge type`

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

CREATE TABLE "design_details" (
  "308_winchester_cartridge_type" text,
  "100_m_group_mm" text,
  "100_m_group_moa" text,
  "300_m_group_mm" text,
  "300_m_group_moa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the 100 m group (mm) with a .308 winchester cartridge type of .300 winchester magnum cartridge type`:
```sql
                SELECT "100_m_group_mm" FROM "design_details" WHERE "308_winchester_cartridge_type"='.300 Winchester Magnum cartridge type';
```
## Task
Generate a SQL query to answer the following question:
`How many years did Peter Mikkelsen win the Mens Singles?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did Peter Mikkelsen win the Mens Singles?`:
```sql
                SELECT COUNT("year") FROM "previous_winners" WHERE "mens_singles"='Peter Mikkelsen';
```
## Task
Generate a SQL query to answer the following question:
`Who won the Men's Doubles when Karina de Wit won the Women's Singles?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the Men's Doubles when Karina de Wit won the Women's Singles?`:
```sql
                SELECT "mens_doubles" FROM "previous_winners" WHERE "womens_singles"='Karina de Wit';
```
## Task
Generate a SQL query to answer the following question:
`How many Mixed Doubles won when Oliver Pongratz won the Men's Singles?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Mixed Doubles won when Oliver Pongratz won the Men's Singles?`:
```sql
                SELECT COUNT("mixed_doubles") FROM "previous_winners" WHERE "mens_singles"='Oliver Pongratz';
```
## Task
Generate a SQL query to answer the following question:
`Who won the Men's Doubles when Guo Xin won the Women's Singles?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the Men's Doubles when Guo Xin won the Women's Singles?`:
```sql
                SELECT "mens_doubles" FROM "previous_winners" WHERE "womens_singles"='Guo Xin';
```
## Task
Generate a SQL query to answer the following question:
`Which college did Dennis Byrd come from?`

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

CREATE TABLE "round_one" (
  "overall_pick_num" real,
  "afl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college did Dennis Byrd come from?`:
```sql
                SELECT "college" FROM "round_one" WHERE "player"='Dennis Byrd';
```
## Task
Generate a SQL query to answer the following question:
`Bob Johnson plays for which AFL team?`

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

CREATE TABLE "round_one" (
  "overall_pick_num" real,
  "afl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Bob Johnson plays for which AFL team?`:
```sql
                SELECT "afl_team" FROM "round_one" WHERE "player"='Bob Johnson';
```
## Task
Generate a SQL query to answer the following question:
`What position does the Cincinnati Bengals' player have?`

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

CREATE TABLE "round_one" (
  "overall_pick_num" real,
  "afl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the Cincinnati Bengals' player have?`:
```sql
                SELECT "position" FROM "round_one" WHERE "afl_team"='Cincinnati Bengals';
```
## Task
Generate a SQL query to answer the following question:
`What position does Syracuse's player have?`

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

CREATE TABLE "round_one" (
  "overall_pick_num" real,
  "afl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Syracuse's player have?`:
```sql
                SELECT "position" FROM "round_one" WHERE "college"='Syracuse';
```
## Task
Generate a SQL query to answer the following question:
`What college did the Cincinnati Bengals' player come from?`

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

CREATE TABLE "round_one" (
  "overall_pick_num" real,
  "afl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college did the Cincinnati Bengals' player come from?`:
```sql
                SELECT "college" FROM "round_one" WHERE "afl_team"='Cincinnati Bengals';
```
## Task
Generate a SQL query to answer the following question:
`What is the pinyin for explaining music?`

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

CREATE TABLE "contents" (
  "chapter" real,
  "chinese" text,
  "pinyin" text,
  "translation" text,
  "subject" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pinyin for explaining music?`:
```sql
                SELECT "pinyin" FROM "contents" WHERE "translation"='Explaining Music';
```
## Task
Generate a SQL query to answer the following question:
`How many subjects have the pinyin shixun?`

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

CREATE TABLE "contents" (
  "chapter" real,
  "chinese" text,
  "pinyin" text,
  "translation" text,
  "subject" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many subjects have the pinyin shixun?`:
```sql
                SELECT COUNT("subject") FROM "contents" WHERE "pinyin"='Shixun';
```
## Task
Generate a SQL query to answer the following question:
`What is the pinyin for explaining beasts?`

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

CREATE TABLE "contents" (
  "chapter" real,
  "chinese" text,
  "pinyin" text,
  "translation" text,
  "subject" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pinyin for explaining beasts?`:
```sql
                SELECT "pinyin" FROM "contents" WHERE "translation"='Explaining Beasts';
```
## Task
Generate a SQL query to answer the following question:
`How many pinyin transaltions are available for the chinese phrase 釋蟲?`

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

CREATE TABLE "contents" (
  "chapter" real,
  "chinese" text,
  "pinyin" text,
  "translation" text,
  "subject" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pinyin transaltions are available for the chinese phrase 釋蟲?`:
```sql
                SELECT COUNT("pinyin") FROM "contents" WHERE "chinese"='釋蟲';
```
## Task
Generate a SQL query to answer the following question:
`What chapter number is Shiqiu?`

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

CREATE TABLE "contents" (
  "chapter" real,
  "chinese" text,
  "pinyin" text,
  "translation" text,
  "subject" text
);
### SQL
Given the database schema, here is the SQL query that answers `What chapter number is Shiqiu?`:
```sql
                SELECT MIN("chapter") FROM "contents" WHERE "pinyin"='Shiqiu';
```
## Task
Generate a SQL query to answer the following question:
`How many mens doubles when womens doubles is catrine bengtsson margit borg?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many mens doubles when womens doubles is catrine bengtsson margit borg?`:
```sql
                SELECT COUNT("mens_doubles") FROM "past_winners" WHERE "womens_doubles"='Catrine Bengtsson Margit Borg';
```
## Task
Generate a SQL query to answer the following question:
`Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina?`:
```sql
                SELECT "mens_doubles" FROM "past_winners" WHERE "womens_doubles"='Anastasia Chervyakova Romina Gabdullina';
```
## Task
Generate a SQL query to answer the following question:
`Who is themens doubles when the mens singles is flemming delfs?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is themens doubles when the mens singles is flemming delfs?`:
```sql
                SELECT "mens_doubles" FROM "past_winners" WHERE "mens_singles"='Flemming Delfs';
```
## Task
Generate a SQL query to answer the following question:
`Who was the womens doubles when the mixed doubles is jacco arends selena piek?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the womens doubles when the mixed doubles is jacco arends selena piek?`:
```sql
                SELECT "womens_doubles" FROM "past_winners" WHERE "mixed_doubles"='Jacco Arends Selena Piek';
```
## Task
Generate a SQL query to answer the following question:
`Who was the mens doubles when womens singles is mette sørensen?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the mens doubles when womens singles is mette sørensen?`:
```sql
                SELECT "mens_doubles" FROM "past_winners" WHERE "womens_singles"='Mette Sørensen';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Motogp winnder for the Catalunya Circuit?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Motogp winnder for the Catalunya Circuit?`:
```sql
                SELECT "moto_gp_winner" FROM "grands_prix" WHERE "circuit"='Catalunya';
```
## Task
Generate a SQL query to answer the following question:
`Who is the 125cc winnder for the Phillip Island circuit?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the 125cc winnder for the Phillip Island circuit?`:
```sql
                SELECT "125cc_winner" FROM "grands_prix" WHERE "circuit"='Phillip Island';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the German Grand Prix?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the German Grand Prix?`:
```sql
                SELECT "date" FROM "grands_prix" WHERE "grand_prix"='German Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What circuit was on the date 4 May?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit was on the date 4 May?`:
```sql
                SELECT "circuit" FROM "grands_prix" WHERE "date"='4 May';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of mens doubles for 2004/2005`

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

CREATE TABLE "table1_12193259_1" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of mens doubles for 2004/2005`:
```sql
                SELECT COUNT("mens_doubles") FROM "table1_12193259_1" WHERE "season"='2004/2005';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number for mens single for 2002/2003`

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

CREATE TABLE "table1_12193259_1" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number for mens single for 2002/2003`:
```sql
                SELECT COUNT("mens_singles") FROM "table1_12193259_1" WHERE "season"='2002/2003';
```
## Task
Generate a SQL query to answer the following question:
`Name the mens singles for 1944/1945`

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

CREATE TABLE "table1_12193259_1" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mens singles for 1944/1945`:
```sql
                SELECT "mens_singles" FROM "table1_12193259_1" WHERE "season"='1944/1945';
```
## Task
Generate a SQL query to answer the following question:
`How many times was pernell whitaker an opponent?`

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

CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
  "number" real,
  "name" text,
  "titles" text,
  "date" text,
  "opponent" text,
  "result" text,
  "defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was pernell whitaker an opponent?`:
```sql
                SELECT COUNT("date") FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "opponent"='Pernell Whitaker';
```
## Task
Generate a SQL query to answer the following question:
`How many times was iran barkley an opponent?`

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

CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
  "number" real,
  "name" text,
  "titles" text,
  "date" text,
  "opponent" text,
  "result" text,
  "defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was iran barkley an opponent?`:
```sql
                SELECT "number" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "opponent"='Iran Barkley';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the result was ud 12/12 and date was 1993-05-22?`

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

CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
  "number" real,
  "name" text,
  "titles" text,
  "date" text,
  "opponent" text,
  "result" text,
  "defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the result was ud 12/12 and date was 1993-05-22?`:
```sql
                SELECT "opponent" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "result"='UD 12/12' AND "date"='1993-05-22';
```
## Task
Generate a SQL query to answer the following question:
`How many opponents fought on 1982-12-03?`

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

CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
  "number" real,
  "name" text,
  "titles" text,
  "date" text,
  "opponent" text,
  "result" text,
  "defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents fought on 1982-12-03?`:
```sql
                SELECT COUNT("opponent") FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "date"='1982-12-03';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the title winner in the ring light heavyweight (175) division?`

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

CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
  "number" real,
  "name" text,
  "titles" text,
  "date" text,
  "opponent" text,
  "result" text,
  "defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the title winner in the ring light heavyweight (175) division?`:
```sql
                SELECT "name" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "titles"='The Ring Light heavyweight (175)';
```
## Task
Generate a SQL query to answer the following question:
`How many trains call at Castor, Overton, Peterborough East and are operated by LNWR?`

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

CREATE TABLE "table1_12221135_3" (
  "departure" text,
  "going_to" text,
  "calling_at" text,
  "arrival" text,
  "operator" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many trains call at Castor, Overton, Peterborough East and are operated by LNWR?`:
```sql
                SELECT COUNT("arrival") FROM "table1_12221135_3" WHERE "operator"='LNWR' AND "calling_at"='Castor, Overton, Peterborough East';
```
## Task
Generate a SQL query to answer the following question:
`Who won the mens singles in 2009?`

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

CREATE TABLE "table1_12204717_1" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the mens singles in 2009?`:
```sql
                SELECT "mens_singles" FROM "table1_12204717_1" WHERE "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`What are the the University of Richmond's school colors?`

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

CREATE TABLE "member_institutions" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "joined" real,
  "nickname" text,
  "colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the the University of Richmond's school colors?`:
```sql
                SELECT "colors" FROM "member_institutions" WHERE "institution"='University of Richmond';
```
## Task
Generate a SQL query to answer the following question:
`What are the school colors of the University of New Hampshire?`

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

CREATE TABLE "member_institutions" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "joined" real,
  "nickname" text,
  "colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the school colors of the University of New Hampshire?`:
```sql
                SELECT "colors" FROM "member_institutions" WHERE "institution"='University of New Hampshire';
```
## Task
Generate a SQL query to answer the following question:
`What's the value of 1 USD in Paraguay?`

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

CREATE TABLE "currency" (
  "country" text,
  "currency" text,
  "1_euro" text,
  "1_usd" text,
  "central_bank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the value of 1 USD in Paraguay?`:
```sql
                SELECT "1_usd" FROM "currency" WHERE "country"='Paraguay';
```
## Task
Generate a SQL query to answer the following question:
`What's the value of 1 Euro in the country where the value of 1 USD is 483.050 of the local currency?`

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

CREATE TABLE "currency" (
  "country" text,
  "currency" text,
  "1_euro" text,
  "1_usd" text,
  "central_bank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the value of 1 Euro in the country where the value of 1 USD is 483.050 of the local currency?`:
```sql
                SELECT "1_euro" FROM "currency" WHERE "1_usd"='483.050';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the central bank in the country where Colombian Peso (cop) is the local currency?`

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

CREATE TABLE "currency" (
  "country" text,
  "currency" text,
  "1_euro" text,
  "1_usd" text,
  "central_bank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the central bank in the country where Colombian Peso (cop) is the local currency?`:
```sql
                SELECT "central_bank" FROM "currency" WHERE "currency"='Colombian peso (COP)';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the country where 1 USD equals 1.71577 of the local currency.`

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

CREATE TABLE "currency" (
  "country" text,
  "currency" text,
  "1_euro" text,
  "1_usd" text,
  "central_bank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the country where 1 USD equals 1.71577 of the local currency.`:
```sql
                SELECT "country" FROM "currency" WHERE "1_usd"='1.71577';
```
## Task
Generate a SQL query to answer the following question:
`what's the minimum production code written by jay sommers & dick chevillat and al schwartz`

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

CREATE TABLE "table1_12226390_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the minimum production code written by jay sommers & dick chevillat and al schwartz`:
```sql
                SELECT MIN("production_code") FROM "table1_12226390_3" WHERE "written_by"='Jay Sommers & Dick Chevillat and Al Schwartz';
```
## Task
Generate a SQL query to answer the following question:
`what's the total number of title for production code 39`

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

CREATE TABLE "table1_12226390_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the total number of title for production code 39`:
```sql
                SELECT COUNT("title") FROM "table1_12226390_3" WHERE "production_code"=39;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode 14 in series?`

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

CREATE TABLE "table1_12226390_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode 14 in series?`:
```sql
                SELECT "written_by" FROM "table1_12226390_2" WHERE "no_in_series"=14;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with production code 28?`

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

CREATE TABLE "table1_12226390_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with production code 28?`:
```sql
                SELECT "directed_by" FROM "table1_12226390_2" WHERE "production_code"=28;
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date for the episode "a pig in a poke"?`

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

CREATE TABLE "table1_12226390_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for the episode "a pig in a poke"?`:
```sql
                SELECT "original_air_date" FROM "table1_12226390_2" WHERE "title"='\"A Pig in a Poke\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were titled "a pig in a poke"? `

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

CREATE TABLE "table1_12226390_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were titled "a pig in a poke"? `:
```sql
                SELECT COUNT("written_by") FROM "table1_12226390_2" WHERE "title"='\"A Pig in a Poke\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode titled "the wedding anniversary"?`

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

CREATE TABLE "table1_12226390_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode titled "the wedding anniversary"?`:
```sql
                SELECT "written_by" FROM "table1_12226390_2" WHERE "title"='\"The Wedding Anniversary\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode with a season number 25?`

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

CREATE TABLE "table1_12226390_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode with a season number 25?`:
```sql
                SELECT "title" FROM "table1_12226390_6" WHERE "no_in_season"=25;
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode with a production code 136?`

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

CREATE TABLE "table1_12226390_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode with a production code 136?`:
```sql
                SELECT "title" FROM "table1_12226390_6" WHERE "production_code"=136;
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date for "Oliver's Jaded Past"?`

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

CREATE TABLE "table1_12226390_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for "Oliver's Jaded Past"?`:
```sql
                SELECT "original_air_date" FROM "table1_12226390_4" WHERE "title"='\"Oliver''s Jaded Past\"';
```
## Task
Generate a SQL query to answer the following question:
`What episode was written by Bobby Bell and Bill Lee?`

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

CREATE TABLE "table1_12226390_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What episode was written by Bobby Bell and Bill Lee?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_12226390_4" WHERE "written_by"='Bobby Bell and Bill Lee';
```
## Task
Generate a SQL query to answer the following question:
`How many women doubles teams competed in the same year as when Jamie van Hooijdonk competed in men singles?`

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

CREATE TABLE "21st_century" (
  "season" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many women doubles teams competed in the same year as when Jamie van Hooijdonk competed in men singles?`:
```sql
                SELECT COUNT("womens_doubles") FROM "21st_century" WHERE "mens_singles"='Jamie van Hooijdonk';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum number of hull numbers?`

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

CREATE TABLE "table1_12232526_2" (
  "class" text,
  "ship_name" text,
  "origin" text,
  "hull_numbers" real,
  "service_years" text,
  "previously" text,
  "note" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum number of hull numbers?`:
```sql
                SELECT MAX("hull_numbers") FROM "table1_12232526_2";
```
## Task
Generate a SQL query to answer the following question:
`who is the class where note is reportedly still active as of 2012?`

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

CREATE TABLE "table1_12232526_2" (
  "class" text,
  "ship_name" text,
  "origin" text,
  "hull_numbers" real,
  "service_years" text,
  "previously" text,
  "note" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the class where note is reportedly still active as of 2012?`:
```sql
                SELECT "class" FROM "table1_12232526_2" WHERE "note"='Reportedly still active as of 2012';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum number of hull nunbers where ship name is kri yos sudarso?`

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

CREATE TABLE "table1_12232526_2" (
  "class" text,
  "ship_name" text,
  "origin" text,
  "hull_numbers" real,
  "service_years" text,
  "previously" text,
  "note" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum number of hull nunbers where ship name is kri yos sudarso?`:
```sql
                SELECT MAX("hull_numbers") FROM "table1_12232526_2" WHERE "ship_name"='KRI Yos Sudarso';
```
## Task
Generate a SQL query to answer the following question:
`What titles were fought for on 1997-04-12?`

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

CREATE TABLE "list_of_boxing_quintuple_or_five_divisio" (
  "number" real,
  "name" text,
  "titles" text,
  "date" text,
  "opponent" text,
  "result" text,
  "defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What titles were fought for on 1997-04-12?`:
```sql
                SELECT "titles" FROM "list_of_boxing_quintuple_or_five_divisio" WHERE "date"='1997-04-12';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match for the lineal super lightweight (140)?`

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

CREATE TABLE "list_of_boxing_quintuple_or_five_divisio" (
  "number" real,
  "name" text,
  "titles" text,
  "date" text,
  "opponent" text,
  "result" text,
  "defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match for the lineal super lightweight (140)?`:
```sql
                SELECT "date" FROM "list_of_boxing_quintuple_or_five_divisio" WHERE "titles"='Lineal Super lightweight (140)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match for the wbc flyweight (112) title?`

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

CREATE TABLE "list_of_boxing_quintuple_or_five_divisio" (
  "number" real,
  "name" text,
  "titles" text,
  "date" text,
  "opponent" text,
  "result" text,
  "defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match for the wbc flyweight (112) title?`:
```sql
                SELECT "date" FROM "list_of_boxing_quintuple_or_five_divisio" WHERE "titles"='WBC Flyweight (112)';
```
## Task
Generate a SQL query to answer the following question:
`Who's the leader in the young rider classification in stage 12?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the leader in the young rider classification in stage 12?`:
```sql
                SELECT "young_rider_classification" FROM "classification_leadership_by_stage" WHERE "stage"='12';
```
## Task
Generate a SQL query to answer the following question:
`Who's leading in the general classification in stage 1a?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's leading in the general classification in stage 1a?`:
```sql
                SELECT "general_classification" FROM "classification_leadership_by_stage" WHERE "stage"='1a';
```
## Task
Generate a SQL query to answer the following question:
`How many leaders are there in the intergiro classification in stage 20?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many leaders are there in the intergiro classification in stage 20?`:
```sql
                SELECT COUNT("intergiro_classification") FROM "classification_leadership_by_stage" WHERE "stage"='20';
```
## Task
Generate a SQL query to answer the following question:
`What's the leader team in the Trofeo Fast Team in stage 20?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the leader team in the Trofeo Fast Team in stage 20?`:
```sql
                SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "stage"='20';
```
## Task
Generate a SQL query to answer the following question:
`Who's the winner in stage 1a, where the leader in the young rider classification is Francesco Casagrande?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the winner in stage 1a, where the leader in the young rider classification is Francesco Casagrande?`:
```sql
                SELECT "winner" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='Francesco Casagrande' AND "stage"='1a';
```
## Task
Generate a SQL query to answer the following question:
`Who's the leader in the general classification in stage 1a?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the leader in the general classification in stage 1a?`:
```sql
                SELECT "general_classification" FROM "classification_leadership_by_stage" WHERE "stage"='1a';
```
## Task
Generate a SQL query to answer the following question:
`Name the general classification of stage 15`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the general classification of stage 15`:
```sql
                SELECT COUNT("general_classification") FROM "classification_leadership_by_stage" WHERE "stage"='15';
```
## Task
Generate a SQL query to answer the following question:
`Name the trofeo fast team of stage 2`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the trofeo fast team of stage 2`:
```sql
                SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "stage"='2';
```
## Task
Generate a SQL query to answer the following question:
`Name the young rider classification with laudelino cubino`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the young rider classification with laudelino cubino`:
```sql
                SELECT "young_rider_classification" FROM "classification_leadership_by_stage" WHERE "winner"='Laudelino Cubino';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of trofeo fast team of stage 16`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of trofeo fast team of stage 16`:
```sql
                SELECT COUNT("trofeo_fast_team") FROM "classification_leadership_by_stage" WHERE "stage"='16';
```
## Task
Generate a SQL query to answer the following question:
`What kind of bleeding does aspirin cause?`

### 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 kind of bleeding does aspirin cause?`:
```sql
                SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Aspirin';
```
## Task
Generate a SQL query to answer the following question:
`How in prothrombin affected by glanzmann's thrombasthenia.`

### 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 in prothrombin affected by glanzmann's thrombasthenia.`:
```sql
                SELECT "prothrombin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Glanzmann''s thrombasthenia';
```
## Task
Generate a SQL query to answer the following question:
`How long does thromboplastin last when prothrombin is 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 `How long does thromboplastin last when prothrombin is unaffected?`:
```sql
                SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='Unaffected' AND "prothrombin_time"='Unaffected';
```
## Task
Generate a SQL query to answer the following question:
`Is uremia affect prothrombin?`

### 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 `Is uremia affect prothrombin?`:
```sql
                SELECT "prothrombin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Uremia';
```
## Task
Generate a SQL query to answer the following question:
`Is prothrombin time long when thromboplastin is prolonged?`

### 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 `Is prothrombin time long when thromboplastin is prolonged?`:
```sql
                SELECT "prothrombin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='Prolonged' AND "partial_thromboplastin_time"='Prolonged';
```
## Task
Generate a SQL query to answer the following question:
`How many live births were there in 2006 in South Yorkshire (met county)?`

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

CREATE TABLE "references" (
  "county" text,
  "live_births_2006" real,
  "gfr_2006" text,
  "tfr_2006" text,
  "whites_as_pct_of_pop" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many live births were there in 2006 in South Yorkshire (met county)?`:
```sql
                SELECT "live_births_2006" FROM "references" WHERE "county"='South Yorkshire (Met County)';
```
## Task
Generate a SQL query to answer the following question:
`How many TFR were there in 2006 when the GFR was 53.8?`

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

CREATE TABLE "references" (
  "county" text,
  "live_births_2006" real,
  "gfr_2006" text,
  "tfr_2006" text,
  "whites_as_pct_of_pop" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many TFR were there in 2006 when the GFR was 53.8?`:
```sql
                SELECT "tfr_2006" FROM "references" WHERE "gfr_2006"='53.8';
```