cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who won the womens singles when Marc Zwiebler won the men's singles?`

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

CREATE TABLE "21st_century" (
  "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 womens singles when Marc Zwiebler won the men's singles?`:
```sql
                SELECT "womens_singles" FROM "21st_century" WHERE "mens_singles"='Marc Zwiebler';
```
## Task
Generate a SQL query to answer the following question:
`The 1.6 Duratec model/engine has how many torque formulas?`

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

CREATE TABLE "engines_and_transmissions" (
  "model_engine" text,
  "capacity" text,
  "cylinders_valves" text,
  "power_rpm" text,
  "torque_nm_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `The 1.6 Duratec model/engine has how many torque formulas?`:
```sql
                SELECT COUNT("torque_nm_rpm") FROM "engines_and_transmissions" WHERE "model_engine"='1.6 Duratec';
```
## Task
Generate a SQL query to answer the following question:
`For the model with torque of n·m (lb·ft)/*n·m (lb·ft) @1750, what is the power?`

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

CREATE TABLE "engines_and_transmissions" (
  "model_engine" text,
  "capacity" text,
  "cylinders_valves" text,
  "power_rpm" text,
  "torque_nm_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the model with torque of n·m (lb·ft)/*n·m (lb·ft) @1750, what is the power?`:
```sql
                SELECT "power_rpm" FROM "engines_and_transmissions" WHERE "torque_nm_rpm"='N·m (lb·ft)/*N·m (lb·ft) @1750';
```
## Task
Generate a SQL query to answer the following question:
`For the model/engine of 1.8 Duratec HE, what is the torque?`

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

CREATE TABLE "engines_and_transmissions" (
  "model_engine" text,
  "capacity" text,
  "cylinders_valves" text,
  "power_rpm" text,
  "torque_nm_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the model/engine of 1.8 Duratec HE, what is the torque?`:
```sql
                SELECT "torque_nm_rpm" FROM "engines_and_transmissions" WHERE "model_engine"='1.8 Duratec HE';
```
## Task
Generate a SQL query to answer the following question:
`How many capacities are possible for the 1.6 Duratec model/engine?`

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

CREATE TABLE "engines_and_transmissions" (
  "model_engine" text,
  "capacity" text,
  "cylinders_valves" text,
  "power_rpm" text,
  "torque_nm_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many capacities are possible for the 1.6 Duratec model/engine?`:
```sql
                SELECT COUNT("capacity") FROM "engines_and_transmissions" WHERE "model_engine"='1.6 Duratec';
```
## Task
Generate a SQL query to answer the following question:
`What is the torque formula for the model/engine which has 1,753 cc capacity?`

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

CREATE TABLE "engines_and_transmissions" (
  "model_engine" text,
  "capacity" text,
  "cylinders_valves" text,
  "power_rpm" text,
  "torque_nm_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the torque formula for the model/engine which has 1,753 cc capacity?`:
```sql
                SELECT "torque_nm_rpm" FROM "engines_and_transmissions" WHERE "capacity"='1,753 cc';
```
## Task
Generate a SQL query to answer the following question:
`What is the torque formula for the 1.6 Duratec ti-vct model/engine?`

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

CREATE TABLE "engines_and_transmissions" (
  "model_engine" text,
  "capacity" text,
  "cylinders_valves" text,
  "power_rpm" text,
  "torque_nm_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the torque formula for the 1.6 Duratec ti-vct model/engine?`:
```sql
                SELECT "torque_nm_rpm" FROM "engines_and_transmissions" WHERE "model_engine"='1.6 Duratec Ti-VCT';
```
## Task
Generate a SQL query to answer the following question:
`what's the date of birth with end of term being 2april1969`

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

CREATE TABLE "ghanaian_presidents_ages" (
  "num" real,
  "president" text,
  "date_of_birth" text,
  "date_of_inauguration" text,
  "age_at_inauguration" text,
  "end_of_term" text,
  "length_of_retirement" text,
  "date_of_death" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the date of birth with end of term being 2april1969`:
```sql
                SELECT "date_of_birth" FROM "ghanaian_presidents_ages" WHERE "end_of_term"='2April1969';
```
## Task
Generate a SQL query to answer the following question:
`who is the the president with date of inauguration being 4june1979`

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

CREATE TABLE "ghanaian_presidents_ages" (
  "num" real,
  "president" text,
  "date_of_birth" text,
  "date_of_inauguration" text,
  "age_at_inauguration" text,
  "end_of_term" text,
  "length_of_retirement" text,
  "date_of_death" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the president with date of inauguration being 4june1979`:
```sql
                SELECT "president" FROM "ghanaian_presidents_ages" WHERE "date_of_inauguration"='4June1979';
```
## Task
Generate a SQL query to answer the following question:
` how many president with date of inauguration being 4june1979`

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

CREATE TABLE "ghanaian_presidents_ages" (
  "num" real,
  "president" text,
  "date_of_birth" text,
  "date_of_inauguration" text,
  "age_at_inauguration" text,
  "end_of_term" text,
  "length_of_retirement" text,
  "date_of_death" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many president with date of inauguration being 4june1979`:
```sql
                SELECT COUNT("president") FROM "ghanaian_presidents_ages" WHERE "date_of_inauguration"='4June1979';
```
## Task
Generate a SQL query to answer the following question:
`what's the date of birth with end of term being 5july1978`

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

CREATE TABLE "ghanaian_presidents_ages" (
  "num" real,
  "president" text,
  "date_of_birth" text,
  "date_of_inauguration" text,
  "age_at_inauguration" text,
  "end_of_term" text,
  "length_of_retirement" text,
  "date_of_death" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the date of birth with end of term being 5july1978`:
```sql
                SELECT "date_of_birth" FROM "ghanaian_presidents_ages" WHERE "end_of_term"='5July1978';
```
## Task
Generate a SQL query to answer the following question:
`what's the date of birth with # being 2`

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

CREATE TABLE "ghanaian_presidents_ages" (
  "num" real,
  "president" text,
  "date_of_birth" text,
  "date_of_inauguration" text,
  "age_at_inauguration" text,
  "end_of_term" text,
  "length_of_retirement" text,
  "date_of_death" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the date of birth with # being 2`:
```sql
                SELECT "date_of_birth" FROM "ghanaian_presidents_ages" WHERE "num"=2;
```
## Task
Generate a SQL query to answer the following question:
` how many end of term with age at inauguration being 64-066 64years, 66days`

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

CREATE TABLE "ghanaian_presidents_ages" (
  "num" real,
  "president" text,
  "date_of_birth" text,
  "date_of_inauguration" text,
  "age_at_inauguration" text,
  "end_of_term" text,
  "length_of_retirement" text,
  "date_of_death" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many end of term with age at inauguration being 64-066 64years, 66days`:
```sql
                SELECT COUNT("end_of_term") FROM "ghanaian_presidents_ages" WHERE "age_at_inauguration"='64-066 64years, 66days';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning pitcher on june 25?`

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

CREATE TABLE "lone_star_series" (
  "date" text,
  "winning_team" text,
  "score" text,
  "winning_pitcher" text,
  "losing_pitcher" text,
  "attendance" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning pitcher on june 25?`:
```sql
                SELECT "winning_pitcher" FROM "lone_star_series" WHERE "date"='June 25';
```
## Task
Generate a SQL query to answer the following question:
`How many games were on May 20?`

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

CREATE TABLE "lone_star_series" (
  "date" text,
  "winning_team" text,
  "score" text,
  "winning_pitcher" text,
  "losing_pitcher" text,
  "attendance" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were on May 20?`:
```sql
                SELECT COUNT("attendance") FROM "lone_star_series" WHERE "date"='May 20';
```
## Task
Generate a SQL query to answer the following question:
`Who is the losing pitcher when the winning pitcher is roy oswalt?`

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

CREATE TABLE "lone_star_series" (
  "date" text,
  "winning_team" text,
  "score" text,
  "winning_pitcher" text,
  "losing_pitcher" text,
  "attendance" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the losing pitcher when the winning pitcher is roy oswalt?`:
```sql
                SELECT "losing_pitcher" FROM "lone_star_series" WHERE "winning_pitcher"='Roy Oswalt';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winning pitcher when attendance is 38109?`

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

CREATE TABLE "lone_star_series" (
  "date" text,
  "winning_team" text,
  "score" text,
  "winning_pitcher" text,
  "losing_pitcher" text,
  "attendance" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winning pitcher when attendance is 38109?`:
```sql
                SELECT "winning_pitcher" FROM "lone_star_series" WHERE "attendance"=38109;
```
## Task
Generate a SQL query to answer the following question:
`How many NHL teams does Terry French play for?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many NHL teams does Terry French play for?`:
```sql
                SELECT COUNT("nhl_team") FROM "round_two" WHERE "player"='Terry French';
```
## Task
Generate a SQL query to answer the following question:
`Who's the player for the New York Rangers?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the player for the New York Rangers?`:
```sql
                SELECT "player" FROM "round_two" WHERE "nhl_team"='New York Rangers';
```
## Task
Generate a SQL query to answer the following question:
`How many positions do the players of Chicago Black Hawks play in?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions do the players of Chicago Black Hawks play in?`:
```sql
                SELECT COUNT("position") FROM "round_two" WHERE "nhl_team"='Chicago Black Hawks';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player from Buffalo Sabres?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player from Buffalo Sabres?`:
```sql
                SELECT "nationality" FROM "round_two" WHERE "nhl_team"='Buffalo Sabres';
```
## Task
Generate a SQL query to answer the following question:
`What position does the player from Peterborough Petes (OHA) play on?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player from Peterborough Petes (OHA) play on?`:
```sql
                SELECT "position" FROM "round_two" WHERE "college_junior_club_team"='Peterborough Petes (OHA)';
```
## Task
Generate a SQL query to answer the following question:
`What's Dave Fortier's pick number?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Dave Fortier's pick number?`:
```sql
                SELECT COUNT("pick_num") FROM "round_two" WHERE "player"='Dave Fortier';
```
## Task
Generate a SQL query to answer the following question:
`What team does George Hulme play for?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team does George Hulme play for?`:
```sql
                SELECT "college_junior_club_team" FROM "round_four" WHERE "player"='George Hulme';
```
## Task
Generate a SQL query to answer the following question:
`What position does Neil Komadoski play?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Neil Komadoski play?`:
```sql
                SELECT "position" FROM "round_four" WHERE "player"='Neil Komadoski';
```
## Task
Generate a SQL query to answer the following question:
`where is team player mike mcniven played for?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `where is team player mike mcniven played for?`:
```sql
                SELECT "college_junior_club_team" FROM "round_five" WHERE "player"='Mike McNiven';
```
## Task
Generate a SQL query to answer the following question:
`what college has nhl team chicago black hawks?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what college has nhl team chicago black hawks?`:
```sql
                SELECT "college_junior_club_team" FROM "round_five" WHERE "nhl_team"='Chicago Black Hawks';
```
## Task
Generate a SQL query to answer the following question:
`what is the college that has the nhl chicago black hawks?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the college that has the nhl chicago black hawks?`:
```sql
                SELECT "college_junior_club_team" FROM "round_five" WHERE "nhl_team"='Chicago Black Hawks';
```
## Task
Generate a SQL query to answer the following question:
`who is the player with the nationality of canada and pick # is 65?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the player with the nationality of canada and pick # is 65?`:
```sql
                SELECT "player" FROM "round_five" WHERE "nationality"='Canada' AND "pick_num"=65;
```
## Task
Generate a SQL query to answer the following question:
`How many teams did Bob Peppler play for?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams did Bob Peppler play for?`:
```sql
                SELECT COUNT("nhl_team") FROM "round_three" WHERE "player"='Bob Peppler';
```
## Task
Generate a SQL query to answer the following question:
`What is the position listed for the team the Philadelphia Flyers?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position listed for the team the Philadelphia Flyers?`:
```sql
                SELECT "position" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers';
```
## Task
Generate a SQL query to answer the following question:
`How many nationalities are listed for the player Glen Irwin?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many nationalities are listed for the player Glen Irwin?`:
```sql
                SELECT COUNT("nationality") FROM "round_three" WHERE "player"='Glen Irwin';
```
## Task
Generate a SQL query to answer the following question:
`Which players have the position of centre and play for the nhl team new york rangers`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which players have the position of centre and play for the nhl team new york rangers`:
```sql
                SELECT "player" FROM "round_seven" WHERE "position"='Centre' AND "nhl_team"='New York Rangers';
```
## Task
Generate a SQL query to answer the following question:
`Which nhl team has a college/junior/club team named university of notre dame (ncaa)`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nhl team has a college/junior/club team named university of notre dame (ncaa)`:
```sql
                SELECT "nhl_team" FROM "round_seven" WHERE "college_junior_club_team"='University of Notre Dame (NCAA)';
```
## Task
Generate a SQL query to answer the following question:
`what are all the position where player is al simmons`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the position where player is al simmons`:
```sql
                SELECT "position" FROM "round_seven" WHERE "player"='Al Simmons';
```
## Task
Generate a SQL query to answer the following question:
`What nationality is pick # 89`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is pick # 89`:
```sql
                SELECT "nationality" FROM "round_seven" WHERE "pick_num"=89;
```
## Task
Generate a SQL query to answer the following question:
`Which college/junior/club teams nationality is canada and nhl team is minnesota north stars`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college/junior/club teams nationality is canada and nhl team is minnesota north stars`:
```sql
                SELECT "college_junior_club_team" FROM "round_seven" WHERE "nationality"='Canada' AND "nhl_team"='Minnesota North Stars';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of pick # where nhl team is philadelphia flyers`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of pick # where nhl team is philadelphia flyers`:
```sql
                SELECT COUNT("pick_num") FROM "round_seven" WHERE "nhl_team"='Philadelphia Flyers';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player from the Detroit Red Wings?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player from the Detroit Red Wings?`:
```sql
                SELECT "nationality" FROM "round_six" WHERE "nhl_team"='Detroit Red Wings';
```
## Task
Generate a SQL query to answer the following question:
`What position does Jim Johnston play?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Jim Johnston play?`:
```sql
                SELECT "position" FROM "round_six" WHERE "player"='Jim Johnston';
```
## Task
Generate a SQL query to answer the following question:
`Which team does Pierre Duguay 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,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team does Pierre Duguay play for?`:
```sql
                SELECT "nhl_team" FROM "round_six" WHERE "player"='Pierre Duguay';
```
## Task
Generate a SQL query to answer the following question:
`What country does the goaltender come from?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country does the goaltender come from?`:
```sql
                SELECT "nationality" FROM "round_six" WHERE "position"='Goaltender';
```
## Task
Generate a SQL query to answer the following question:
` who is the writer where viewers is 5.16m`

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

CREATE TABLE "table1_12148018_2" (
  "num" real,
  "episode" text,
  "director" text,
  "writer" text,
  "original_airdate" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the writer where viewers is 5.16m`:
```sql
                SELECT "writer" FROM "table1_12148018_2" WHERE "viewers"='5.16m';
```
## Task
Generate a SQL query to answer the following question:
` who is the writer for episode "episode 7"`

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

CREATE TABLE "table1_12148018_2" (
  "num" real,
  "episode" text,
  "director" text,
  "writer" text,
  "original_airdate" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the writer for episode "episode 7"`:
```sql
                SELECT "writer" FROM "table1_12148018_2" WHERE "episode"='\"Episode 7\"';
```
## Task
Generate a SQL query to answer the following question:
`For which league is the open cup the quarter finals`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which league is the open cup the quarter finals`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "open_cup"='Quarter Finals';
```
## Task
Generate a SQL query to answer the following question:
`What open cups where played in 2002`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What open cups where played in 2002`:
```sql
                SELECT "open_cup" FROM "year_by_year" WHERE "year"=2002;
```
## Task
Generate a SQL query to answer the following question:
`What leagues includes division 3`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What leagues includes division 3`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "division"='3';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the playoffs when the regular season was 7th, southeast`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the playoffs when the regular season was 7th, southeast`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "regular_season"='7th, Southeast';
```
## Task
Generate a SQL query to answer the following question:
`What's the original air date of the episode with production code 2T6719?`

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

CREATE TABLE "table1_12159115_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the original air date of the episode with production code 2T6719?`:
```sql
                SELECT "original_air_date" FROM "table1_12159115_2" WHERE "production_code"='2T6719';
```
## Task
Generate a SQL query to answer the following question:
`Who's the writer of the episode see by 12.13 million US viewers?`

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

CREATE TABLE "table1_12159115_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the writer of the episode see by 12.13 million US viewers?`:
```sql
                SELECT "written_by" FROM "table1_12159115_2" WHERE "u_s_viewers_millions"='12.13';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of episodes with production code 2T6705?`

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

CREATE TABLE "table1_12159115_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of episodes with production code 2T6705?`:
```sql
                SELECT COUNT("title") FROM "table1_12159115_2" WHERE "production_code"='2T6705';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of directors who've directed episodes seen by 11.34 million US viewers?`

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

CREATE TABLE "table1_12159115_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of directors who've directed episodes seen by 11.34 million US viewers?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_12159115_2" WHERE "u_s_viewers_millions"='11.34';
```
## Task
Generate a SQL query to answer the following question:
`What's the production code of the episode seen by 11.64 million US viewers?`

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

CREATE TABLE "table1_12159115_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the production code of the episode seen by 11.64 million US viewers?`:
```sql
                SELECT "production_code" FROM "table1_12159115_2" WHERE "u_s_viewers_millions"='11.64';
```
## Task
Generate a SQL query to answer the following question:
`What is the season where the winner is norway and the winner women is russia?`

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

CREATE TABLE "nations_cup" (
  "season" text,
  "winner" text,
  "runner_up" text,
  "third" text,
  "winner_men" text,
  "winner_women" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season where the winner is norway and the winner women is russia?`:
```sql
                SELECT "season" FROM "nations_cup" WHERE "winner"='Norway' AND "winner_women"='Russia';
```
## Task
Generate a SQL query to answer the following question:
`What is the winner women and third is italy and runner-up is finland?`

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

CREATE TABLE "nations_cup" (
  "season" text,
  "winner" text,
  "runner_up" text,
  "third" text,
  "winner_men" text,
  "winner_women" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winner women and third is italy and runner-up is finland?`:
```sql
                SELECT "winner_women" FROM "nations_cup" WHERE "third"='Italy' AND "runner_up"='Finland';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of runner up when the winner of women is norway and third is sweden?`

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

CREATE TABLE "nations_cup" (
  "season" text,
  "winner" text,
  "runner_up" text,
  "third" text,
  "winner_men" text,
  "winner_women" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of runner up when the winner of women is norway and third is sweden?`:
```sql
                SELECT COUNT("runner_up") FROM "nations_cup" WHERE "winner_women"='Norway' AND "third"='Sweden';
```
## Task
Generate a SQL query to answer the following question:
`what's the report with fastest lap being felipe massa and winning driver being jenson button`

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

CREATE TABLE "drivers_standings" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the report with fastest lap being felipe massa and winning driver being jenson button`:
```sql
                SELECT "report" FROM "drivers_standings" WHERE "fastest_lap"='Felipe Massa' AND "winning_driver"='Jenson Button';
```
## Task
Generate a SQL query to answer the following question:
`what's the grand prix with winning driver being jenson button`

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

CREATE TABLE "drivers_standings" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the grand prix with winning driver being jenson button`:
```sql
                SELECT "grand_prix" FROM "drivers_standings" WHERE "winning_driver"='Jenson Button';
```
## Task
Generate a SQL query to answer the following question:
`who is the the pole position with grand prix being italian grand prix`

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

CREATE TABLE "drivers_standings" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the pole position with grand prix being italian grand prix`:
```sql
                SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='Italian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`who is the the fastest lap with grand prix being european grand prix`

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

CREATE TABLE "drivers_standings" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the fastest lap with grand prix being european grand prix`:
```sql
                SELECT "fastest_lap" FROM "drivers_standings" WHERE "grand_prix"='European Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers, in millions, were for the episode directed by Tawnia McKiernan?`

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

CREATE TABLE "table1_12159115_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers, in millions, were for the episode directed by Tawnia McKiernan?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_12159115_3" WHERE "directed_by"='Tawnia McKiernan';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were written only by William N. Fordes?`

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

CREATE TABLE "table1_12159115_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were written only by William N. Fordes?`:
```sql
                SELECT COUNT("series_num") FROM "table1_12159115_3" WHERE "written_by"='William N. Fordes';
```
## Task
Generate a SQL query to answer the following question:
`How many U.S Viewers, in millions, were for series # 26?`

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

CREATE TABLE "table1_12159115_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many U.S Viewers, in millions, were for series # 26?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_12159115_3" WHERE "series_num"=26;
```
## Task
Generate a SQL query to answer the following question:
`What is the third year course in science?`

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

CREATE TABLE "table1_12148147_2" (
  "subjects" text,
  "first_year" text,
  "second_year" text,
  "third_year" text,
  "fourth_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the third year course in science?`:
```sql
                SELECT "third_year" FROM "table1_12148147_2" WHERE "subjects"='Science';
```
## Task
Generate a SQL query to answer the following question:
`What is the second year class following pag-unawa?`

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

CREATE TABLE "table1_12148147_2" (
  "subjects" text,
  "first_year" text,
  "second_year" text,
  "third_year" text,
  "fourth_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the second year class following pag-unawa?`:
```sql
                SELECT "second_year" FROM "table1_12148147_2" WHERE "first_year"='Pag-unawa';
```
## Task
Generate a SQL query to answer the following question:
`How many classes are taken in the third year when pag-unawa was taken in the first year?`

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

CREATE TABLE "table1_12148147_2" (
  "subjects" text,
  "first_year" text,
  "second_year" text,
  "third_year" text,
  "fourth_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many classes are taken in the third year when pag-unawa was taken in the first year?`:
```sql
                SELECT COUNT("third_year") FROM "table1_12148147_2" WHERE "first_year"='Pag-unawa';
```
## Task
Generate a SQL query to answer the following question:
`What is the first year course in the program where geometry is taken in the third year?`

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

CREATE TABLE "table1_12148147_2" (
  "subjects" text,
  "first_year" text,
  "second_year" text,
  "third_year" text,
  "fourth_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first year course in the program where geometry is taken in the third year?`:
```sql
                SELECT "first_year" FROM "table1_12148147_2" WHERE "third_year"='Geometry';
```
## Task
Generate a SQL query to answer the following question:
`What is the second year course in the program where physics is taken in the fourth year?`

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

CREATE TABLE "table1_12148147_2" (
  "subjects" text,
  "first_year" text,
  "second_year" text,
  "third_year" text,
  "fourth_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the second year course in the program where physics is taken in the fourth year?`:
```sql
                SELECT "second_year" FROM "table1_12148147_2" WHERE "fourth_year"='Physics';
```
## Task
Generate a SQL query to answer the following question:
`Who won the womens singles event the year that Jonas Lyduch won?`

### 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 womens singles event the year that Jonas Lyduch won?`:
```sql
                SELECT "womens_singles" FROM "previous_winners" WHERE "mens_singles"='Jonas Lyduch';
```
## Task
Generate a SQL query to answer the following question:
`Who won the mens doubles the year Alison Humby won the womens 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 mens doubles the year Alison Humby won the womens singles?`:
```sql
                SELECT "mens_doubles" FROM "previous_winners" WHERE "womens_singles"='Alison Humby';
```
## Task
Generate a SQL query to answer the following question:
`What are all the .308 Winchester cartridge types with 38 for the 300 m group (mm)`

### 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 .308 Winchester cartridge types with 38 for the 300 m group (mm)`:
```sql
                SELECT "308_winchester_cartridge_type" FROM "design_details" WHERE "300_m_group_mm"='38';
```
## Task
Generate a SQL query to answer the following question:
`For which 100 m group ( moa ) is the 300 m group ( moa ) 0.63`

### 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 `For which 100 m group ( moa ) is the 300 m group ( moa ) 0.63`:
```sql
                SELECT "100_m_group_moa" FROM "design_details" WHERE "300_m_group_moa"='0.63';
```
## Task
Generate a SQL query to answer the following question:
`What are all the 300 m group (mm) with a .308 winchester cartridge type of ruag swiss p target 168 gr hp-bt`

### 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 300 m group (mm) with a .308 winchester cartridge type of ruag swiss p target 168 gr hp-bt`:
```sql
                SELECT "300_m_group_mm" FROM "design_details" WHERE "308_winchester_cartridge_type"='RUAG Swiss P Target 168 gr HP-BT';
```
## Task
Generate a SQL query to answer the following question:
`For which .308 winchester cartridge type is the 300 m group ( moa ) 0.51`

### 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 `For which .308 winchester cartridge type is the 300 m group ( moa ) 0.51`:
```sql
                SELECT "308_winchester_cartridge_type" FROM "design_details" WHERE "300_m_group_moa"='0.51';
```
## Task
Generate a SQL query to answer the following question:
`For which 300 m group ( moa ) is the 300 m group (mm) 45`

### 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 `For which 300 m group ( moa ) is the 300 m group (mm) 45`:
```sql
                SELECT "300_m_group_moa" FROM "design_details" WHERE "300_m_group_mm"='45';
```