cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many touchdowns did the player with 10 points have?`

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

CREATE TABLE "scoring_leaders" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns did the player with 10 points have?`:
```sql
                SELECT MIN("touchdowns") FROM "scoring_leaders" WHERE "points"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many points does George M. Lawton have?`

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

CREATE TABLE "scoring_leaders" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does George M. Lawton have?`:
```sql
                SELECT MAX("points") FROM "scoring_leaders" WHERE "player"='George M. Lawton';
```
## Task
Generate a SQL query to answer the following question:
`Name the player for 1 touchdowns`

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

CREATE TABLE "scoring_leaders" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player for 1 touchdowns`:
```sql
                SELECT "player" FROM "scoring_leaders" WHERE "touchdowns"=1;
```
## Task
Generate a SQL query to answer the following question:
`Name the least extra points`

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

CREATE TABLE "scoring_leaders" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least extra points`:
```sql
                SELECT MIN("extra_points") FROM "scoring_leaders";
```
## Task
Generate a SQL query to answer the following question:
`Who directed episode number 2?`

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

CREATE TABLE "series_1_2009" (
  "no" real,
  "num" real,
  "episode" text,
  "writer" text,
  "director" text,
  "original_air_date" text,
  "viewing_figure" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode number 2?`:
```sql
                SELECT "director" FROM "series_1_2009" WHERE "no"=2;
```
## Task
Generate a SQL query to answer the following question:
`What was the episode number that had 797000 viewers?`

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

CREATE TABLE "series_1_2009" (
  "no" real,
  "num" real,
  "episode" text,
  "writer" text,
  "director" text,
  "original_air_date" text,
  "viewing_figure" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the episode number that had 797000 viewers?`:
```sql
                SELECT "no" FROM "series_1_2009" WHERE "viewing_figure"=797000;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode directed by colin teague?`

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

CREATE TABLE "series_1_2009" (
  "no" real,
  "num" real,
  "episode" text,
  "writer" text,
  "director" text,
  "original_air_date" text,
  "viewing_figure" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode directed by colin teague?`:
```sql
                SELECT "writer" FROM "series_1_2009" WHERE "director"='Colin Teague';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes with the production code CA106 are there?`

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

CREATE TABLE "table1_25740548_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes with the production code CA106 are there?`:
```sql
                SELECT COUNT("written_by") FROM "table1_25740548_2" WHERE "production_code"='CA106';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director for episodes that were written be Matthew Lau?`

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

CREATE TABLE "table1_25740548_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director for episodes that were written be Matthew Lau?`:
```sql
                SELECT "directed_by" FROM "table1_25740548_2" WHERE "written_by"='Matthew Lau';
```
## Task
Generate a SQL query to answer the following question:
`How many episode were written by Brett Conrad?`

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

CREATE TABLE "table1_25740548_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episode were written by Brett Conrad?`:
```sql
                SELECT COUNT("title") FROM "table1_25740548_2" WHERE "written_by"='Brett Conrad';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were directed by Tim Matheson?`

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

CREATE TABLE "table1_25740548_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were directed by Tim Matheson?`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_25740548_2" WHERE "directed_by"='Tim Matheson';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were directed by Rod Hardy?`

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

CREATE TABLE "table1_25740548_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were directed by Rod Hardy?`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_25740548_2" WHERE "directed_by"='Rod Hardy';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with 3.92 million US viewers?`

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

CREATE TABLE "table1_25740548_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_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with 3.92 million US viewers?`:
```sql
                SELECT "written_by" FROM "table1_25740548_3" WHERE "u_s_viewers_million"='3.92';
```
## Task
Generate a SQL query to answer the following question:
`How many original air dates are there for the episode with code CA210?`

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

CREATE TABLE "table1_25740548_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_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many original air dates are there for the episode with code CA210?`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_25740548_3" WHERE "production_code"='CA210';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode "The Outsiders"?`

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

CREATE TABLE "table1_25740548_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_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode "The Outsiders"?`:
```sql
                SELECT "directed_by" FROM "table1_25740548_3" WHERE "title"='\"The Outsiders\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had rating/share (18-49) of 0.7/2 and a rating of 2.1?`

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

CREATE TABLE "weekly_ratings" (
  "episode_number" real,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had rating/share (18-49) of 0.7/2 and a rating of 2.1?`:
```sql
                SELECT COUNT("episode_number") FROM "weekly_ratings" WHERE "rating_share_18_49"='0.7/2' AND "rating"='2.1';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest episode number that had a ratings/share (18-49) of 1.1/3?`

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

CREATE TABLE "weekly_ratings" (
  "episode_number" real,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest episode number that had a ratings/share (18-49) of 1.1/3?`:
```sql
                SELECT MIN("episode_number") FROM "weekly_ratings" WHERE "rating_share_18_49"='1.1/3';
```
## Task
Generate a SQL query to answer the following question:
`What is the rating of the episode with a share of 4 and a rating/share (18-49) of 0.7/2?`

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

CREATE TABLE "weekly_ratings" (
  "episode_number" real,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rating of the episode with a share of 4 and a rating/share (18-49) of 0.7/2?`:
```sql
                SELECT "rating" FROM "weekly_ratings" WHERE "share"=4 AND "rating_share_18_49"='0.7/2';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank of an episode with a rating/share (18-49) of 1.3/4?`

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

CREATE TABLE "weekly_ratings" (
  "episode_number" real,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank of an episode with a rating/share (18-49) of 1.3/4?`:
```sql
                SELECT MIN("rank_night") FROM "weekly_ratings" WHERE "rating_share_18_49"='1.3/4';
```
## Task
Generate a SQL query to answer the following question:
`What is the song released by Travis?`

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

CREATE TABLE "top_10_singles" (
  "entered_a" text,
  "weeks_in_top_10" real,
  "single" text,
  "artist" text,
  "peak" real,
  "peak_reached_a" text,
  "weeks_at_number_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the song released by Travis?`:
```sql
                SELECT "single" FROM "top_10_singles" WHERE "artist"='Travis';
```
## Task
Generate a SQL query to answer the following question:
`error (see notes)`

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

CREATE TABLE "top_10_singles" (
  "entered_a" text,
  "weeks_in_top_10" real,
  "single" text,
  "artist" text,
  "peak" real,
  "peak_reached_a" text,
  "weeks_at_number_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `error (see notes)`:
```sql
                SELECT MIN("weeks_at_number_1") FROM "top_10_singles";
```
## Task
Generate a SQL query to answer the following question:
`What is the song by the musician panjabi mc?`

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

CREATE TABLE "top_10_singles" (
  "entered_a" text,
  "weeks_in_top_10" real,
  "single" text,
  "artist" text,
  "peak" real,
  "peak_reached_a" text,
  "weeks_at_number_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the song by the musician panjabi mc?`:
```sql
                SELECT "single" FROM "top_10_singles" WHERE "artist"='Panjabi MC';
```
## Task
Generate a SQL query to answer the following question:
`Where was the round 1 race?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the round 1 race?`:
```sql
                SELECT "location" FROM "race_calendar_and_results" WHERE "round"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who won the April 11 race?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the April 11 race?`:
```sql
                SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "date"='April 11';
```
## Task
Generate a SQL query to answer the following question:
`Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?`:
```sql
                SELECT "location" FROM "race_calendar_and_results" WHERE "pole_position"='Daniel Erickson' AND "fastest_lap"='Cole Morgan';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds were played on May 8?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were played on May 8?`:
```sql
                SELECT COUNT("round") FROM "race_calendar_and_results" WHERE "date"='May 8';
```
## Task
Generate a SQL query to answer the following question:
`Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap?`:
```sql
                SELECT "pole_position" FROM "race_calendar_and_results" WHERE "fastest_lap"='Victor Carbone' AND "location"='Braselton, Georgia';
```
## Task
Generate a SQL query to answer the following question:
`Where did Audette Racing win?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Audette Racing win?`:
```sql
                SELECT "location" FROM "race_calendar_and_results" WHERE "winning_team"='Audette Racing';
```
## Task
Generate a SQL query to answer the following question:
`Name the directors for peter gawler`

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

CREATE TABLE "table1_25764073_3" (
  "season_num" real,
  "episode_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the directors for peter gawler`:
```sql
                SELECT "director_s" FROM "table1_25764073_3" WHERE "writer_s"='Peter Gawler';
```
## Task
Generate a SQL query to answer the following question:
`Name the least episode number for  anne brooksbank and vicki madden`

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

CREATE TABLE "table1_25764073_3" (
  "season_num" real,
  "episode_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least episode number for  anne brooksbank and vicki madden`:
```sql
                SELECT MIN("episode_num") FROM "table1_25764073_3" WHERE "writer_s"='Anne Brooksbank and Vicki Madden';
```
## Task
Generate a SQL query to answer the following question:
`Name the title for season number 35`

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

CREATE TABLE "table1_25764073_3" (
  "season_num" real,
  "episode_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title for season number 35`:
```sql
                SELECT "title" FROM "table1_25764073_3" WHERE "season_num"=35;
```
## Task
Generate a SQL query to answer the following question:
`What were the points per game in the selection where the rebounds per game were 15.0?`

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

CREATE TABLE "conference_player_of_the_month_selection" (
  "selection" real,
  "month" text,
  "season" text,
  "team_record" text,
  "points_per_game" text,
  "field_goal_percentage" text,
  "rebounds_per_game" text,
  "blocks_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the points per game in the selection where the rebounds per game were 15.0?`:
```sql
                SELECT "points_per_game" FROM "conference_player_of_the_month_selection" WHERE "rebounds_per_game"='15.0';
```
## Task
Generate a SQL query to answer the following question:
`What were the blocks per game in the selection where the field goal percentage was .594 (2nd)?`

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

CREATE TABLE "conference_player_of_the_month_selection" (
  "selection" real,
  "month" text,
  "season" text,
  "team_record" text,
  "points_per_game" text,
  "field_goal_percentage" text,
  "rebounds_per_game" text,
  "blocks_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the blocks per game in the selection where the field goal percentage was .594 (2nd)?`:
```sql
                SELECT "blocks_per_game" FROM "conference_player_of_the_month_selection" WHERE "field_goal_percentage"='.594 (2nd)';
```
## Task
Generate a SQL query to answer the following question:
`Name the name for company d`

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

CREATE TABLE "formation_of_the_1st_arkansas_state_troo" (
  "company" text,
  "name" text,
  "county" text,
  "militia_regiment" text,
  "commander" text,
  "organization_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for company d`:
```sql
                SELECT "name" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "company"='Company D';
```
## Task
Generate a SQL query to answer the following question:
`Name the name for organization date being unknown`

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

CREATE TABLE "formation_of_the_1st_arkansas_state_troo" (
  "company" text,
  "name" text,
  "county" text,
  "militia_regiment" text,
  "commander" text,
  "organization_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for organization date being unknown`:
```sql
                SELECT "name" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "organization_date"='Unknown';
```
## Task
Generate a SQL query to answer the following question:
`Name the name for desha`

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

CREATE TABLE "formation_of_the_1st_arkansas_state_troo" (
  "company" text,
  "name" text,
  "county" text,
  "militia_regiment" text,
  "commander" text,
  "organization_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for desha`:
```sql
                SELECT "name" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "county"='Desha';
```
## Task
Generate a SQL query to answer the following question:
`Name the company for desha county`

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

CREATE TABLE "formation_of_the_1st_arkansas_state_troo" (
  "company" text,
  "name" text,
  "county" text,
  "militia_regiment" text,
  "commander" text,
  "organization_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the company for desha county`:
```sql
                SELECT "company" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "county"='Desha';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with series number 56?`

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

CREATE TABLE "season_2_1956_57" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with series number 56?`:
```sql
                SELECT "writer_s" FROM "season_2_1956_57" WHERE "series_num"=56;
```
## Task
Generate a SQL query to answer the following question:
`What is largest series number for the episode that aired February 16, 1957?`

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

CREATE TABLE "season_2_1956_57" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is largest series number for the episode that aired February 16, 1957?`:
```sql
                SELECT MAX("series_num") FROM "season_2_1956_57" WHERE "airdate"='February 16, 1957';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episodes that aired December 15, 1956? `

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

CREATE TABLE "season_2_1956_57" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episodes that aired December 15, 1956? `:
```sql
                SELECT "director" FROM "season_2_1956_57" WHERE "airdate"='December 15, 1956';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that aired December 1, 1956? `

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

CREATE TABLE "season_2_1956_57" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that aired December 1, 1956? `:
```sql
                SELECT "writer_s" FROM "season_2_1956_57" WHERE "airdate"='December 1, 1956';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer of the episode that originally aired on October 14, 1968?`

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

CREATE TABLE "season_14_1968_69" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer of the episode that originally aired on October 14, 1968?`:
```sql
                SELECT "writer_s" FROM "season_14_1968_69" WHERE "airdate"='October 14, 1968';
```
## Task
Generate a SQL query to answer the following question:
`What is the season # for the episode with air date february 2, 1970?`

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

CREATE TABLE "season_15_1969_70" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season # for the episode with air date february 2, 1970?`:
```sql
                SELECT MAX("season_num") FROM "season_15_1969_70" WHERE "airdate"='February 2, 1970';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer who wrote the episode that was aired on September 11, 1972?`

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

CREATE TABLE "season_18_1972_73" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer who wrote the episode that was aired on September 11, 1972?`:
```sql
                SELECT "writer_s" FROM "season_18_1972_73" WHERE "airdate"='September 11, 1972';
```
## Task
Generate a SQL query to answer the following question:
`Who directed episode number 626 in the series?`

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

CREATE TABLE "season_20_1974_75" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode number 626 in the series?`:
```sql
                SELECT "director" FROM "season_20_1974_75" WHERE "series_num"=626;
```
## Task
Generate a SQL query to answer the following question:
`Who are all the writers of episodes in season 24?`

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

CREATE TABLE "season_3_1957_58" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all the writers of episodes in season 24?`:
```sql
                SELECT "writer_s" FROM "season_3_1957_58" WHERE "season_num"=24;
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode that aired on May 10, 1958?`

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

CREATE TABLE "season_3_1957_58" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode that aired on May 10, 1958?`:
```sql
                SELECT "title" FROM "season_3_1957_58" WHERE "airdate"='May 10, 1958';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer of episode 15?`

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

CREATE TABLE "season_5_1959_60" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer of episode 15?`:
```sql
                SELECT "writer_s" FROM "season_5_1959_60" WHERE "season_num"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the title of #33?`

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

CREATE TABLE "season_5_1959_60" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of #33?`:
```sql
                SELECT "title" FROM "season_5_1959_60" WHERE "season_num"=33;
```
## Task
Generate a SQL query to answer the following question:
`How many directors worked on #158?`

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

CREATE TABLE "season_5_1959_60" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors worked on #158?`:
```sql
                SELECT COUNT("director") FROM "season_5_1959_60" WHERE "series_num"=158;
```
## Task
Generate a SQL query to answer the following question:
`How many writers were for season #1?`

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

CREATE TABLE "season_4_1958_59" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many writers were for season #1?`:
```sql
                SELECT COUNT("writer_s") FROM "season_4_1958_59" WHERE "season_num"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who was the director for the episode on May 2, 1959?`

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

CREATE TABLE "season_4_1958_59" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director for the episode on May 2, 1959?`:
```sql
                SELECT "director" FROM "season_4_1958_59" WHERE "airdate"='May 2, 1959';
```
## Task
Generate a SQL query to answer the following question:
`Name the number in series for production code being 204`

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

CREATE TABLE "table1_25810656_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number in series for production code being 204`:
```sql
                SELECT "no_in_series" FROM "table1_25810656_3" WHERE "production_code"=204;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of title for number in series being 25`

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

CREATE TABLE "table1_25810656_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of title for number in series being 25`:
```sql
                SELECT COUNT("title") FROM "table1_25810656_3" WHERE "no_in_series"=25;
```
## Task
Generate a SQL query to answer the following question:
`What was the latest stage won by Mikhail Ignatiev? `

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_riders_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest stage won by Mikhail Ignatiev? `:
```sql
                SELECT MAX("stage") FROM "classification_leadership" WHERE "winner"='Mikhail Ignatiev';
```
## Task
Generate a SQL query to answer the following question:
`What is the summmary hearing when the definiton is listed at flying an aircraft so as to annoy any person?`

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

CREATE TABLE "table1_25815180_1" (
  "sec" real,
  "offence" text,
  "definition_example_or_notes" text,
  "civilian" text,
  "summary_hearing" text,
  "max_sentence_at_court_martial" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the summmary hearing when the definiton is listed at flying an aircraft so as to annoy any person?`:
```sql
                SELECT "summary_hearing" FROM "table1_25815180_1" WHERE "definition_example_or_notes"='Flying an aircraft so as to annoy any person';
```
## Task
Generate a SQL query to answer the following question:
`In what race was the weight in kg 55 and the winner/2nd 1st - Jim and Tonic?`

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

CREATE TABLE "2000_01_season_as_a_five_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what race was the weight in kg 55 and the winner/2nd 1st - Jim and Tonic?`:
```sql
                SELECT "race" FROM "2000_01_season_as_a_five_year_old" WHERE "weight_kg"='55' AND "winner_2nd"='1st - Jim And Tonic';
```
## Task
Generate a SQL query to answer the following question:
`What was the distance in the Manikato Stakes race?`

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

CREATE TABLE "2000_01_season_as_a_five_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the distance in the Manikato Stakes race?`:
```sql
                SELECT "distance" FROM "2000_01_season_as_a_five_year_old" WHERE "race"='Manikato Stakes';
```
## Task
Generate a SQL query to answer the following question:
`What was the distance in the race where the weight in kg was 56 and the winner/2nd was 2nd - Fritz?`

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

CREATE TABLE "2000_01_season_as_a_five_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the distance in the race where the weight in kg was 56 and the winner/2nd was 2nd - Fritz?`:
```sql
                SELECT "distance" FROM "2000_01_season_as_a_five_year_old" WHERE "weight_kg"='56' AND "winner_2nd"='2nd - Fritz';
```
## Task
Generate a SQL query to answer the following question:
`What date was the Doncaster race? `

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

CREATE TABLE "2001_02_season_as_a_six_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the Doncaster race? `:
```sql
                SELECT "date" FROM "2001_02_season_as_a_six_year_old" WHERE "race"='Doncaster';
```
## Task
Generate a SQL query to answer the following question:
`What was the air date when the team guest captain was john bishop?`

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

CREATE TABLE "series_1" (
  "episode" real,
  "air_date" text,
  "team_swash" text,
  "team_guest_captain" text,
  "team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the air date when the team guest captain was john bishop?`:
```sql
                SELECT "air_date" FROM "series_1" WHERE "team_guest_captain"='John Bishop';
```
## Task
Generate a SQL query to answer the following question:
`Who was the team guest captain for episode 2?`

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

CREATE TABLE "series_1" (
  "episode" real,
  "air_date" text,
  "team_swash" text,
  "team_guest_captain" text,
  "team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the team guest captain for episode 2?`:
```sql
                SELECT "team_guest_captain" FROM "series_1" WHERE "episode"=2;
```
## Task
Generate a SQL query to answer the following question:
`Who was the team swash when the team guest captain was gail porter?`

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

CREATE TABLE "series_1" (
  "episode" real,
  "air_date" text,
  "team_swash" text,
  "team_guest_captain" text,
  "team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the team swash when the team guest captain was gail porter?`:
```sql
                SELECT "team_swash" FROM "series_1" WHERE "team_guest_captain"='Gail Porter';
```
## Task
Generate a SQL query to answer the following question:
`How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter?`

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

CREATE TABLE "series_1" (
  "episode" real,
  "air_date" text,
  "team_swash" text,
  "team_guest_captain" text,
  "team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter?`:
```sql
                SELECT COUNT("team_coxy") FROM "series_1" WHERE "air_date"='24 January 2010' AND "team_guest_captain"='Gail Porter';
```
## Task
Generate a SQL query to answer the following question:
`How many entries are shown for an air date when the team guest captain was stephen k amos?`

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

CREATE TABLE "series_1" (
  "episode" real,
  "air_date" text,
  "team_swash" text,
  "team_guest_captain" text,
  "team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are shown for an air date when the team guest captain was stephen k amos?`:
```sql
                SELECT COUNT("air_date") FROM "series_1" WHERE "team_guest_captain"='Stephen K Amos';
```
## Task
Generate a SQL query to answer the following question:
`What group was sunline in when he was at moonee valley?`

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

CREATE TABLE "1998_99_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What group was sunline in when he was at moonee valley?`:
```sql
                SELECT "group" FROM "1998_99_season_as_a_three_year_old" WHERE "venue"='Moonee Valley';
```
## Task
Generate a SQL query to answer the following question:
`What was the win-loss record for the player from Switzerland? `

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

CREATE TABLE "men" (
  "player" text,
  "nationality" text,
  "finals" real,
  "win_loss" text,
  "year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the win-loss record for the player from Switzerland? `:
```sql
                SELECT "win_loss" FROM "men" WHERE "nationality"='Switzerland';
```
## Task
Generate a SQL query to answer the following question:
`What was the win loss record the lady who appeard in 1969?`

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

CREATE TABLE "table1_25820584_7" (
  "player" text,
  "nationality" text,
  "finals" real,
  "win_loss" text,
  "year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the win loss record the lady who appeard in 1969?`:
```sql
                SELECT "win_loss" FROM "table1_25820584_7" WHERE "year_s"='1969';
```
## Task
Generate a SQL query to answer the following question:
`What player(s) appeared in 1969?`

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

CREATE TABLE "table1_25820584_7" (
  "player" text,
  "nationality" text,
  "finals" real,
  "win_loss" text,
  "year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player(s) appeared in 1969?`:
```sql
                SELECT "player" FROM "table1_25820584_7" WHERE "year_s"='1969';
```
## Task
Generate a SQL query to answer the following question:
`Name the name for norway nationality`

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

CREATE TABLE "final_results" (
  "position" text,
  "name" text,
  "nationality" text,
  "event_1_super_yoke" text,
  "event_2_power_stairs" text,
  "event_3_car_lift" text,
  "event_4_farmers_walk" text,
  "event_5_truck_pull" text,
  "event_6_fingals_fingers" text,
  "event_7_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for norway nationality`:
```sql
                SELECT "name" FROM "final_results" WHERE "nationality"='Norway';
```
## Task
Generate a SQL query to answer the following question:
`What is the series # of "tanarak"?`

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

CREATE TABLE "table1_25830834_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series # of "tanarak"?`:
```sql
                SELECT MIN("series_num") FROM "table1_25830834_2" WHERE "title"='\"Tanarak\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with the production code 2j5153?`

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

CREATE TABLE "table1_25830834_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with the production code 2j5153?`:
```sql
                SELECT "written_by" FROM "table1_25830834_2" WHERE "production_code"='2J5153';
```
## Task
Generate a SQL query to answer the following question:
`what is the filter when the wavelength is 222mm (k-band)?`

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

CREATE TABLE "observations_made_of_the_hdf_s_with_the_" (
  "camera" text,
  "filter" text,
  "wavelength" text,
  "total_exposure_time" text,
  "exposures" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the filter when the wavelength is 222mm (k-band)?`:
```sql
                SELECT "filter" FROM "observations_made_of_the_hdf_s_with_the_" WHERE "wavelength"='222mm (K-band)';
```
## Task
Generate a SQL query to answer the following question:
`how many times was the exposures 53?`

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

CREATE TABLE "observations_made_of_the_hdf_s_with_the_" (
  "camera" text,
  "filter" text,
  "wavelength" text,
  "total_exposure_time" text,
  "exposures" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was the exposures 53?`:
```sql
                SELECT COUNT("camera") FROM "observations_made_of_the_hdf_s_with_the_" WHERE "exposures"=53;
```
## Task
Generate a SQL query to answer the following question:
`how many exposures where there when the total exposure time is 105,000s?`

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

CREATE TABLE "observations_made_of_the_hdf_s_with_the_" (
  "camera" text,
  "filter" text,
  "wavelength" text,
  "total_exposure_time" text,
  "exposures" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many exposures where there when the total exposure time is 105,000s?`:
```sql
                SELECT "exposures" FROM "observations_made_of_the_hdf_s_with_the_" WHERE "total_exposure_time"='105,000s';
```
## Task
Generate a SQL query to answer the following question:
`what is the camera used when the wavelength is 814nm (i-band)?`

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

CREATE TABLE "observations_made_of_the_hdf_s_with_the_" (
  "camera" text,
  "filter" text,
  "wavelength" text,
  "total_exposure_time" text,
  "exposures" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the camera used when the wavelength is 814nm (i-band)?`:
```sql
                SELECT "camera" FROM "observations_made_of_the_hdf_s_with_the_" WHERE "wavelength"='814nm (I-band)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director of "new girls"?`

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

CREATE TABLE "table1_2582519_6" (
  "total_num" real,
  "series_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of "new girls"?`:
```sql
                SELECT "director" FROM "table1_2582519_6" WHERE "title"='\"New Girls\"';
```