cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many entries for number in series when director is Bryan Cranston?`

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

CREATE TABLE "table1_26736040_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries for number in series when director is Bryan Cranston?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_26736040_1" WHERE "directed_by"='Bryan Cranston';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest episode that was watched by 1.32 million viewers?`

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

CREATE TABLE "table1_26736342_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest episode that was watched by 1.32 million viewers?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_26736342_1" WHERE "u_s_viewers_millions"='1.32';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest episode written by  John Shiban & Thomas Schnauz?`

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

CREATE TABLE "table1_26736342_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest episode written by  John Shiban & Thomas Schnauz?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_26736342_1" WHERE "written_by"='John Shiban & Thomas Schnauz';
```
## Task
Generate a SQL query to answer the following question:
`What is the series number of the episode "Fly"?`

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

CREATE TABLE "table1_26736342_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number of the episode "Fly"?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_26736342_1" WHERE "title"='\"Fly\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the eposide that was watched by 1.95 million US viewers?`

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

CREATE TABLE "table1_26736342_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the eposide that was watched by 1.95 million US viewers?`:
```sql
                SELECT "directed_by" FROM "table1_26736342_1" WHERE "u_s_viewers_millions"='1.95';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes are there for the three darts challenge with Sharon Osbourne?`

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

CREATE TABLE "table1_26733129_1" (
  "episode_number" real,
  "air_date" text,
  "guests" text,
  "three_darts_challenge" text,
  "musical_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes are there for the three darts challenge with Sharon Osbourne?`:
```sql
                SELECT MAX("episode_number") FROM "table1_26733129_1" WHERE "three_darts_challenge"='Sharon Osbourne';
```
## Task
Generate a SQL query to answer the following question:
`What musical performances aired on 5 April 2010?`

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

CREATE TABLE "table1_26733129_1" (
  "episode_number" real,
  "air_date" text,
  "guests" text,
  "three_darts_challenge" text,
  "musical_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What musical performances aired on 5 April 2010?`:
```sql
                SELECT "musical_performance" FROM "table1_26733129_1" WHERE "air_date"='5 April 2010';
```
## Task
Generate a SQL query to answer the following question:
`What were the guests that aired on 7 June 2010?`

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

CREATE TABLE "table1_26733129_1" (
  "episode_number" real,
  "air_date" text,
  "guests" text,
  "three_darts_challenge" text,
  "musical_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the guests that aired on 7 June 2010?`:
```sql
                SELECT "guests" FROM "table1_26733129_1" WHERE "air_date"='7 June 2010';
```
## Task
Generate a SQL query to answer the following question:
`Who was in the three darts challenge that aired on 10 may 2010?`

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

CREATE TABLE "table1_26733129_1" (
  "episode_number" real,
  "air_date" text,
  "guests" text,
  "three_darts_challenge" text,
  "musical_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in the three darts challenge that aired on 10 may 2010?`:
```sql
                SELECT "three_darts_challenge" FROM "table1_26733129_1" WHERE "air_date"='10 May 2010';
```
## Task
Generate a SQL query to answer the following question:
`Name the ends lost for canada`

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

CREATE TABLE "round_robin_standings" (
  "country" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ends lost for canada`:
```sql
                SELECT "ends_lost" FROM "round_robin_standings" WHERE "country"='Canada';
```
## Task
Generate a SQL query to answer the following question:
`Name the least ends won for  anna kubešková`

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

CREATE TABLE "round_robin_standings" (
  "country" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least ends won for  anna kubešková`:
```sql
                SELECT MIN("ends_won") FROM "round_robin_standings" WHERE "skip"='Anna Kubešková';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of ends lost for 6 stolen ends`

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

CREATE TABLE "round_robin_standings" (
  "country" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of ends lost for 6 stolen ends`:
```sql
                SELECT COUNT("ends_lost") FROM "round_robin_standings" WHERE "stolen_ends"=6;
```
## Task
Generate a SQL query to answer the following question:
`When gniazdo is polish what is proto-slavic?`

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

CREATE TABLE "selected_cognates" (
  "proto_slavic" text,
  "russian" text,
  "ukrainian" text,
  "belarusian" text,
  "polish" text,
  "czech" text,
  "slovak" text,
  "slovene" text,
  "serbo_croatian" text,
  "bulgarian" text,
  "macedonian" text
);
### SQL
Given the database schema, here is the SQL query that answers `When gniazdo is polish what is proto-slavic?`:
```sql
                SELECT "proto_slavic" FROM "selected_cognates" WHERE "polish"='gniazdo';
```
## Task
Generate a SQL query to answer the following question:
`When рука / ruka is the serbo-croatian what is the macedonian?`

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

CREATE TABLE "selected_cognates" (
  "proto_slavic" text,
  "russian" text,
  "ukrainian" text,
  "belarusian" text,
  "polish" text,
  "czech" text,
  "slovak" text,
  "slovene" text,
  "serbo_croatian" text,
  "bulgarian" text,
  "macedonian" text
);
### SQL
Given the database schema, here is the SQL query that answers `When рука / ruka is the serbo-croatian what is the macedonian?`:
```sql
                SELECT "macedonian" FROM "selected_cognates" WHERE "serbo_croatian"='рука / ruka';
```
## Task
Generate a SQL query to answer the following question:
`When риба (ríba) is the macedonian what is the proto-slavic?`

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

CREATE TABLE "selected_cognates" (
  "proto_slavic" text,
  "russian" text,
  "ukrainian" text,
  "belarusian" text,
  "polish" text,
  "czech" text,
  "slovak" text,
  "slovene" text,
  "serbo_croatian" text,
  "bulgarian" text,
  "macedonian" text
);
### SQL
Given the database schema, here is the SQL query that answers `When риба (ríba) is the macedonian what is the proto-slavic?`:
```sql
                SELECT "proto_slavic" FROM "selected_cognates" WHERE "macedonian"='риба (ríba)';
```
## Task
Generate a SQL query to answer the following question:
`When  гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there?`

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

CREATE TABLE "selected_cognates" (
  "proto_slavic" text,
  "russian" text,
  "ukrainian" text,
  "belarusian" text,
  "polish" text,
  "czech" text,
  "slovak" text,
  "slovene" text,
  "serbo_croatian" text,
  "bulgarian" text,
  "macedonian" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there?`:
```sql
                SELECT COUNT("proto_slavic") FROM "selected_cognates" WHERE "serbo_croatian"='гн(иј)ездо / gn(ij)ezdo';
```
## Task
Generate a SQL query to answer the following question:
`When  рыба (rýba) is the belarusian how many slovenes are there?`

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

CREATE TABLE "selected_cognates" (
  "proto_slavic" text,
  "russian" text,
  "ukrainian" text,
  "belarusian" text,
  "polish" text,
  "czech" text,
  "slovak" text,
  "slovene" text,
  "serbo_croatian" text,
  "bulgarian" text,
  "macedonian" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  рыба (rýba) is the belarusian how many slovenes are there?`:
```sql
                SELECT COUNT("slovene") FROM "selected_cognates" WHERE "belarusian"='рыба (rýba)';
```
## Task
Generate a SQL query to answer the following question:
`When вуха (vúkha) is the belarusian how many slovaks are there?`

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

CREATE TABLE "selected_cognates" (
  "proto_slavic" text,
  "russian" text,
  "ukrainian" text,
  "belarusian" text,
  "polish" text,
  "czech" text,
  "slovak" text,
  "slovene" text,
  "serbo_croatian" text,
  "bulgarian" text,
  "macedonian" text
);
### SQL
Given the database schema, here is the SQL query that answers `When вуха (vúkha) is the belarusian how many slovaks are there?`:
```sql
                SELECT COUNT("slovak") FROM "selected_cognates" WHERE "belarusian"='вуха (vúkha)';
```
## Task
Generate a SQL query to answer the following question:
`How long does  the 2579km route take?`

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

CREATE TABLE "india" (
  "dibrugarh" text,
  "kanyakumari" text,
  "vivek_express_15905_15906" text,
  "indian_railways" text,
  "4286km" text,
  "55" real,
  "weekly" text,
  "82_30_hrs_3_5_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long does  the 2579km route take?`:
```sql
                SELECT "82_30_hrs_3_5_days" FROM "india" WHERE "4286km"='2579km';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the only route that runs to bhavnagar?`

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

CREATE TABLE "india" (
  "dibrugarh" text,
  "kanyakumari" text,
  "vivek_express_15905_15906" text,
  "indian_railways" text,
  "4286km" text,
  "55" real,
  "weekly" text,
  "82_30_hrs_3_5_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the only route that runs to bhavnagar?`:
```sql
                SELECT "vivek_express_15905_15906" FROM "india" WHERE "kanyakumari"='Bhavnagar';
```
## Task
Generate a SQL query to answer the following question:
`What is every original air date for the number in season of 7?`

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

CREATE TABLE "table1_26748314_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every original air date for the number in season of 7?`:
```sql
                SELECT "original_air_date" FROM "table1_26748314_1" WHERE "no_in_season"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of participating parties when registered voters totaled 643629?`

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

CREATE TABLE "congress" (
  "electoral_district" text,
  "registered_voters" real,
  "seats_in_congress" real,
  "candidates_per_party" real,
  "participating_parties" real,
  "total_candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of participating parties when registered voters totaled 643629?`:
```sql
                SELECT COUNT("participating_parties") FROM "congress" WHERE "registered_voters"=643629;
```
## Task
Generate a SQL query to answer the following question:
`What is the electoral district when total candidates were 35?`

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

CREATE TABLE "congress" (
  "electoral_district" text,
  "registered_voters" real,
  "seats_in_congress" real,
  "candidates_per_party" real,
  "participating_parties" real,
  "total_candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the electoral district when total candidates were 35?`:
```sql
                SELECT "electoral_district" FROM "congress" WHERE "total_candidates"=35;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of seats in congress when the electoral district is Ucayali?`

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

CREATE TABLE "congress" (
  "electoral_district" text,
  "registered_voters" real,
  "seats_in_congress" real,
  "candidates_per_party" real,
  "participating_parties" real,
  "total_candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of seats in congress when the electoral district is Ucayali?`:
```sql
                SELECT COUNT("seats_in_congress") FROM "congress" WHERE "electoral_district"='Ucayali';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of seats in congress when the candidates per party is 6?`

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

CREATE TABLE "congress" (
  "electoral_district" text,
  "registered_voters" real,
  "seats_in_congress" real,
  "candidates_per_party" real,
  "participating_parties" real,
  "total_candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of seats in congress when the candidates per party is 6?`:
```sql
                SELECT COUNT("seats_in_congress") FROM "congress" WHERE "candidates_per_party"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of total candidates when registered voters is 47742?`

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

CREATE TABLE "congress" (
  "electoral_district" text,
  "registered_voters" real,
  "seats_in_congress" real,
  "candidates_per_party" real,
  "participating_parties" real,
  "total_candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of total candidates when registered voters is 47742?`:
```sql
                SELECT "total_candidates" FROM "congress" WHERE "registered_voters"=47742;
```
## Task
Generate a SQL query to answer the following question:
`Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside?`

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

CREATE TABLE "table1_26758262_1" (
  "district" real,
  "municipalities_served" text,
  "judge_of_probate" text,
  "judges_residence" text,
  "location_of_court" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside?`:
```sql
                SELECT "judges_residence" FROM "table1_26758262_1" WHERE "municipalities_served"='Beacon Falls , Naugatuck , Middlebury , Prospect';
```
## Task
Generate a SQL query to answer the following question:
`What district is the court located in Tolland?`

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

CREATE TABLE "table1_26758262_1" (
  "district" real,
  "municipalities_served" text,
  "judge_of_probate" text,
  "judges_residence" text,
  "location_of_court" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is the court located in Tolland?`:
```sql
                SELECT MAX("district") FROM "table1_26758262_1" WHERE "location_of_court"='Tolland';
```
## Task
Generate a SQL query to answer the following question:
`Where does the judge whose court is in Groton reside?`

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

CREATE TABLE "table1_26758262_1" (
  "district" real,
  "municipalities_served" text,
  "judge_of_probate" text,
  "judges_residence" text,
  "location_of_court" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where does the judge whose court is in Groton reside?`:
```sql
                SELECT "judges_residence" FROM "table1_26758262_1" WHERE "location_of_court"='Groton';
```
## Task
Generate a SQL query to answer the following question:
`what is the nhl team for the player john maclean?`

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

CREATE TABLE "round_one" (
  "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 nhl team for the player john maclean?`:
```sql
                SELECT "nhl_team" FROM "round_one" WHERE "player"='John MacLean';
```
## Task
Generate a SQL query to answer the following question:
`who is the player for the position defence and the college/junior/club team is ottawa 67's (ohl)?`

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

CREATE TABLE "round_one" (
  "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 for the position defence and the college/junior/club team is ottawa 67's (ohl)?`:
```sql
                SELECT "player" FROM "round_one" WHERE "position"='Defence' AND "college_junior_club_team"='Ottawa 67''s (OHL)';
```
## Task
Generate a SQL query to answer the following question:
`what is the college/junior/club team for the player alfie turcotte?`

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

CREATE TABLE "round_one" (
  "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/junior/club team for the player alfie turcotte?`:
```sql
                SELECT "college_junior_club_team" FROM "round_one" WHERE "player"='Alfie Turcotte';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the college/junior/club team of the Buffalo Sabres?`

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

CREATE TABLE "round_ten" (
  "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 name of the college/junior/club team of the Buffalo Sabres?`:
```sql
                SELECT "college_junior_club_team" FROM "round_ten" WHERE "nhl_team"='Buffalo Sabres';
```
## Task
Generate a SQL query to answer the following question:
`What is Reine Karlsson's nationality?`

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

CREATE TABLE "round_ten" (
  "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 Reine Karlsson's nationality?`:
```sql
                SELECT "nationality" FROM "round_ten" WHERE "player"='Reine Karlsson';
```
## Task
Generate a SQL query to answer the following question:
`How many players were drafted by the Philadelphia Flyers?`

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

CREATE TABLE "round_eleven" (
  "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 players were drafted by the Philadelphia Flyers?`:
```sql
                SELECT COUNT("nationality") FROM "round_eleven" WHERE "nhl_team"='Philadelphia Flyers';
```
## Task
Generate a SQL query to answer the following question:
`How many picks did the Chicago Black Hawks get?`

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

CREATE TABLE "round_eleven" (
  "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 picks did the Chicago Black Hawks get?`:
```sql
                SELECT COUNT("pick_num") FROM "round_eleven" WHERE "nhl_team"='Chicago Black Hawks';
```
## Task
Generate a SQL query to answer the following question:
`What team had pick 203?`

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

CREATE TABLE "round_eleven" (
  "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 had pick 203?`:
```sql
                SELECT "nhl_team" FROM "round_eleven" WHERE "pick_num"=203;
```
## Task
Generate a SQL query to answer the following question:
`Which school did harold duvall attend?`

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

CREATE TABLE "round_twelve" (
  "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 school did harold duvall attend?`:
```sql
                SELECT "college_junior_club_team" FROM "round_twelve" WHERE "player"='Harold Duvall';
```
## Task
Generate a SQL query to answer the following question:
`List the position  for the boston bruins.`

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

CREATE TABLE "round_twelve" (
  "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 `List the position  for the boston bruins.`:
```sql
                SELECT "position" FROM "round_twelve" WHERE "nhl_team"='Boston Bruins';
```
## Task
Generate a SQL query to answer the following question:
`Who was drafted to litvinov (czechoslovakia)?`

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

CREATE TABLE "round_twelve" (
  "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 was drafted to litvinov (czechoslovakia)?`:
```sql
                SELECT "player" FROM "round_twelve" WHERE "college_junior_club_team"='Litvinov (Czechoslovakia)';
```
## Task
Generate a SQL query to answer the following question:
`What position does peter mcgeough cover?`

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

CREATE TABLE "round_twelve" (
  "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 peter mcgeough cover?`:
```sql
                SELECT "position" FROM "round_twelve" WHERE "player"='Peter McGeough';
```
## Task
Generate a SQL query to answer the following question:
`Which player was drafted by the Minnesota North Stars? `

### 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 `Which player was drafted by the Minnesota North Stars? `:
```sql
                SELECT "player" FROM "round_four" WHERE "nhl_team"='Minnesota North Stars';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of Bob Essensa?`

### 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 is the nationality of Bob Essensa?`:
```sql
                SELECT "nationality" FROM "round_four" WHERE "player"='Bob Essensa';
```
## Task
Generate a SQL query to answer the following question:
`What position is the player from the Regina Pats (WHL)?`

### 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 is the player from the Regina Pats (WHL)?`:
```sql
                SELECT "position" FROM "round_four" WHERE "college_junior_club_team"='Regina Pats (WHL)';
```
## Task
Generate a SQL query to answer the following question:
`What number pick was the player from HIFK Helsinki (Finland)?`

### 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 number pick was the player from HIFK Helsinki (Finland)?`:
```sql
                SELECT "pick_num" FROM "round_four" WHERE "college_junior_club_team"='HIFK Helsinki (Finland)';
```
## Task
Generate a SQL query to answer the following question:
`Which team drafted Esa Tikkanen? `

### 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 `Which team drafted Esa Tikkanen? `:
```sql
                SELECT "nhl_team" FROM "round_four" WHERE "player"='Esa Tikkanen';
```
## Task
Generate a SQL query to answer the following question:
`What was the nationality of player picked no. 168?`

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

CREATE TABLE "round_nine" (
  "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 was the nationality of player picked no. 168?`:
```sql
                SELECT "nationality" FROM "round_nine" WHERE "pick_num"=168;
```
## Task
Generate a SQL query to answer the following question:
`What was the nationality of player picked no. 179?`

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

CREATE TABLE "round_nine" (
  "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 was the nationality of player picked no. 179?`:
```sql
                SELECT "nationality" FROM "round_nine" WHERE "pick_num"=179;
```
## Task
Generate a SQL query to answer the following question:
`Who was the player who played for Hartford Whalers NHL Team?`

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

CREATE TABLE "round_nine" (
  "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 was the player who played for Hartford Whalers NHL Team?`:
```sql
                SELECT "player" FROM "round_nine" WHERE "nhl_team"='Hartford Whalers';
```
## Task
Generate a SQL query to answer the following question:
`What was the position of the player who played for New York Islanders NHL Team?`

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

CREATE TABLE "round_nine" (
  "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 was the position of the player who played for New York Islanders NHL Team?`:
```sql
                SELECT "position" FROM "round_nine" WHERE "nhl_team"='New York Islanders';
```
## Task
Generate a SQL query to answer the following question:
`What was the nationality of player Cliff Abrecht?`

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

CREATE TABLE "round_nine" (
  "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 was the nationality of player Cliff Abrecht?`:
```sql
                SELECT "nationality" FROM "round_nine" WHERE "player"='Cliff Abrecht';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of poles?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "podiums" real,
  "f_laps" real,
  "points" text,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of poles?`:
```sql
                SELECT MAX("poles") FROM "career_summary";
```
## Task
Generate a SQL query to answer the following question:
`How many f/laps were there when he scored 170 points?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "podiums" real,
  "f_laps" real,
  "points" text,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many f/laps were there when he scored 170 points?`:
```sql
                SELECT COUNT("f_laps") FROM "career_summary" WHERE "points"='170';
```
## Task
Generate a SQL query to answer the following question:
`When there were 30 races and the final placing was 13th, how many points were scored?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "podiums" real,
  "f_laps" real,
  "points" text,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `When there were 30 races and the final placing was 13th, how many points were scored?`:
```sql
                SELECT "points" FROM "career_summary" WHERE "final_placing"='13th' AND "races"=30;
```
## Task
Generate a SQL query to answer the following question:
` What club is associated with draft number 155? `

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

CREATE TABLE "round_eight" (
  "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 club is associated with draft number 155? `:
```sql
                SELECT "nhl_team" FROM "round_eight" WHERE "pick_num"=155;
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for the number 5 series ? `

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

CREATE TABLE "table1_26801821_1" (
  "no_in_series" 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 is the production code for the number 5 series ? `:
```sql
                SELECT "production_code" FROM "table1_26801821_1" WHERE "no_in_series"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the number  of the series written by Teresa Lin? `

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

CREATE TABLE "table1_26801821_1" (
  "no_in_series" 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 is the number  of the series written by Teresa Lin? `:
```sql
                SELECT COUNT("no_in_series") FROM "table1_26801821_1" WHERE "written_by"='Teresa Lin';
```
## Task
Generate a SQL query to answer the following question:
`Which series # had 0.852 U.S. viewers(millions)?`

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

CREATE TABLE "table1_26808178_3" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series # had 0.852 U.S. viewers(millions)?`:
```sql
                SELECT MAX("series_num") FROM "table1_26808178_3" WHERE "u_s_viewers_millions"='0.852';
```
## Task
Generate a SQL query to answer the following question:
`Which original air date had 0.871 U.S. viewers (millions)?`

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

CREATE TABLE "table1_26808178_3" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which original air date had 0.871 U.S. viewers (millions)?`:
```sql
                SELECT "original_air_date" FROM "table1_26808178_3" WHERE "u_s_viewers_millions"='0.871';
```
## Task
Generate a SQL query to answer the following question:
`Which series # had 0.645 U.S. viewers(millions)?`

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

CREATE TABLE "table1_26808178_3" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series # had 0.645 U.S. viewers(millions)?`:
```sql
                SELECT MAX("series_num") FROM "table1_26808178_3" WHERE "u_s_viewers_millions"='0.645';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the episode entitled "dic pics"?`

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

CREATE TABLE "table1_26808178_3" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the episode entitled "dic pics"?`:
```sql
                SELECT "written_by" FROM "table1_26808178_3" WHERE "title"='\"Dic Pics\"';
```
## Task
Generate a SQL query to answer the following question:
`When 12th is the final placing what is the wins?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 12th is the final placing what is the wins?`:
```sql
                SELECT "wins" FROM "career_summary" WHERE "final_placing"='12th';
```
## Task
Generate a SQL query to answer the following question:
`When 24th is the final placing how many wins are there?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 24th is the final placing how many wins are there?`:
```sql
                SELECT COUNT("wins") FROM "career_summary" WHERE "final_placing"='24th';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall amount of wins?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall amount of wins?`:
```sql
                SELECT MIN("wins") FROM "career_summary";
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode with production code 3aky05 air?`

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

CREATE TABLE "table1_26824484_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode with production code 3aky05 air?`:
```sql
                SELECT "original_air_date" FROM "table1_26824484_1" WHERE "production_code"='3AKY05';
```
## Task
Generate a SQL query to answer the following question:
`Which episode was directed by Jeff Woolnough and written by Christopher Ambrose?`

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

CREATE TABLE "table1_26824484_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode was directed by Jeff Woolnough and written by Christopher Ambrose?`:
```sql
                SELECT "title" FROM "table1_26824484_1" WHERE "directed_by"='Jeff Woolnough' AND "written_by"='Christopher Ambrose';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date of the episode that was directed by Jessica Landaw?`

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

CREATE TABLE "table1_26824484_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date of the episode that was directed by Jessica Landaw?`:
```sql
                SELECT "original_air_date" FROM "table1_26824484_1" WHERE "directed_by"='Jessica Landaw';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode number of the episode with a production code of 4aky14?`

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

CREATE TABLE "table1_26825349_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode number of the episode with a production code of 4aky14?`:
```sql
                SELECT "no_in_season" FROM "table1_26825349_1" WHERE "production_code"='4AKY14';
```
## Task
Generate a SQL query to answer the following question:
`"The con man in the meth lab" was which episode number?`

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

CREATE TABLE "table1_26825349_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `"The con man in the meth lab" was which episode number?`:
```sql
                SELECT "no_in_season" FROM "table1_26825349_1" WHERE "title"='\"The Con Man in the Meth Lab\"';
```
## Task
Generate a SQL query to answer the following question:
`The episode that had 8.62 million US viewers originally aired on which date?`

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

CREATE TABLE "table1_26825349_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `The episode that had 8.62 million US viewers originally aired on which date?`:
```sql
                SELECT "original_air_date" FROM "table1_26825349_1" WHERE "u_s_viewers_millions"='8.62';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the game broadcast on the Big East Network? `

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

CREATE TABLE "week_five" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in the game broadcast on the Big East Network? `:
```sql
                SELECT "result" FROM "week_five" WHERE "broadcast"='Big East Network';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the game where the visiting team was Louisiana-Monroe?`

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

CREATE TABLE "week_five" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in the game where the visiting team was Louisiana-Monroe?`:
```sql
                SELECT "result" FROM "week_five" WHERE "visiting_team"='Louisiana-Monroe';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team in the game broadcast on the Big East Network? `

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

CREATE TABLE "week_five" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team in the game broadcast on the Big East Network? `:
```sql
                SELECT "home_team" FROM "week_five" WHERE "broadcast"='Big East Network';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the game broadcast on the SEC Network? `

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

CREATE TABLE "week_five" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in the game broadcast on the SEC Network? `:
```sql
                SELECT "result" FROM "week_five" WHERE "broadcast"='SEC Network';
```