cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many directed by entries have UK viewership over 6.16 million?`

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

CREATE TABLE "table1_29063233_1" (
  "no_overall" real,
  "no_for_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "uk_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directed by entries have UK viewership over 6.16 million?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_29063233_1" WHERE "uk_viewers_million"='6.16';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with a UK viewership of exactly 5.77 million?`

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

CREATE TABLE "table1_29063233_1" (
  "no_overall" real,
  "no_for_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "uk_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with a UK viewership of exactly 5.77 million?`:
```sql
                SELECT "directed_by" FROM "table1_29063233_1" WHERE "uk_viewers_million"='5.77';
```
## Task
Generate a SQL query to answer the following question:
`What was the airdate of the episode with a UK viewership of 6.02 million?`

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

CREATE TABLE "table1_29063233_1" (
  "no_overall" real,
  "no_for_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "uk_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the airdate of the episode with a UK viewership of 6.02 million?`:
```sql
                SELECT "original_air_date" FROM "table1_29063233_1" WHERE "uk_viewers_million"='6.02';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with UK viewership of 6.09 million?`

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

CREATE TABLE "table1_29063233_1" (
  "no_overall" real,
  "no_for_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "uk_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with UK viewership of 6.09 million?`:
```sql
                SELECT "directed_by" FROM "table1_29063233_1" WHERE "uk_viewers_million"='6.09';
```
## Task
Generate a SQL query to answer the following question:
`Name the general classification for mauricio soler`

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

CREATE TABLE "leadership_classification" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the general classification for mauricio soler`:
```sql
                SELECT "general_classification" FROM "leadership_classification" WHERE "winner"='Mauricio Soler';
```
## Task
Generate a SQL query to answer the following question:
`Name the general classification for steven kruijswijk`

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

CREATE TABLE "leadership_classification" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the general classification for steven kruijswijk`:
```sql
                SELECT "general_classification" FROM "leadership_classification" WHERE "winner"='Steven Kruijswijk';
```
## Task
Generate a SQL query to answer the following question:
`Name the points classification for levi leipheimer`

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

CREATE TABLE "leadership_classification" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points classification for levi leipheimer`:
```sql
                SELECT "points_classification" FROM "leadership_classification" WHERE "general_classification"='Levi Leipheimer';
```
## Task
Generate a SQL query to answer the following question:
`Name the mountains classification for rabobank and damiano cunego`

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

CREATE TABLE "leadership_classification" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mountains classification for rabobank and damiano cunego`:
```sql
                SELECT "mountains_classification" FROM "leadership_classification" WHERE "team_classification"='Rabobank' AND "general_classification"='Damiano Cunego';
```
## Task
Generate a SQL query to answer the following question:
`Name the team classification for thomas de gendt`

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

CREATE TABLE "leadership_classification" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team classification for thomas de gendt`:
```sql
                SELECT "team_classification" FROM "leadership_classification" WHERE "winner"='Thomas De Gendt';
```
## Task
Generate a SQL query to answer the following question:
`What is listed in built for when the original number is 24d?`

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

CREATE TABLE "class_34_500_ge_type_u26_c" (
  "ge_dl_works_no" real,
  "year_built" text,
  "built_for" text,
  "original_no" text,
  "new_owner" text,
  "new_no" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed in built for when the original number is 24d?`:
```sql
                SELECT "built_for" FROM "class_34_500_ge_type_u26_c" WHERE "original_no"='24D';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date when the title is "be prepared"?`

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

CREATE TABLE "table1_29102612_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date when the title is "be prepared"?`:
```sql
                SELECT "original_air_date" FROM "table1_29102612_1" WHERE "title"='\"Be Prepared\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the season # when ther are 5.3 million U.S viewers?`

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

CREATE TABLE "table1_29102612_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season # when ther are 5.3 million U.S viewers?`:
```sql
                SELECT MAX("season_num") FROM "table1_29102612_1" WHERE "u_s_viewers_millions"='5.3';
```
## Task
Generate a SQL query to answer the following question:
`What dat did "The changeling" originally air?`

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

CREATE TABLE "table1_29106680_1" (
  "no_overall" real,
  "no_for_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "uk_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What dat did "The changeling" originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_29106680_1" WHERE "title"='\"The Changeling\"';
```
## Task
Generate a SQL query to answer the following question:
`What date did "the eye of the phoenix" originally air?`

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

CREATE TABLE "table1_29106680_1" (
  "no_overall" real,
  "no_for_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "uk_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did "the eye of the phoenix" originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_29106680_1" WHERE "title"='\"The Eye of the Phoenix\"';
```
## Task
Generate a SQL query to answer the following question:
`What episode number of the series is "the coming of arthur (part 1)"?`

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

CREATE TABLE "table1_29106680_1" (
  "no_overall" real,
  "no_for_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "uk_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number of the series is "the coming of arthur (part 1)"?`:
```sql
                SELECT "no_for_series" FROM "table1_29106680_1" WHERE "title"='\"The Coming of Arthur (Part 1)\"';
```
## Task
Generate a SQL query to answer the following question:
`What are the titles of episodes written by Eric Trueheart?`

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

CREATE TABLE "table1_29087004_3" (
  "series_num" real,
  "production_code" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "united_states_original_airdate" text,
  "canada_original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of episodes written by Eric Trueheart?`:
```sql
                SELECT "title" FROM "table1_29087004_3" WHERE "written_by"='Eric Trueheart';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest numbered episode where the title is "The Ruff Ruff Bunch"?`

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

CREATE TABLE "table1_29087004_3" (
  "series_num" real,
  "production_code" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "united_states_original_airdate" text,
  "canada_original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest numbered episode where the title is "The Ruff Ruff Bunch"?`:
```sql
                SELECT MAX("series_num") FROM "table1_29087004_3" WHERE "title"='\"The Ruff Ruff Bunch\"';
```
## Task
Generate a SQL query to answer the following question:
`Who were the writers of episode/s first aired in the US on June 9, 2012?`

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

CREATE TABLE "table1_29087004_3" (
  "series_num" real,
  "production_code" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "united_states_original_airdate" text,
  "canada_original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the writers of episode/s first aired in the US on June 9, 2012?`:
```sql
                SELECT "written_by" FROM "table1_29087004_3" WHERE "united_states_original_airdate"='June 9, 2012';
```
## Task
Generate a SQL query to answer the following question:
`When was the episode titled "The Fraud Princess" first aired in the United States?`

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

CREATE TABLE "table1_29087004_3" (
  "series_num" real,
  "production_code" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "united_states_original_airdate" text,
  "canada_original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the episode titled "The Fraud Princess" first aired in the United States?`:
```sql
                SELECT "united_states_original_airdate" FROM "table1_29087004_3" WHERE "title"='\"The Fraud Princess\"';
```
## Task
Generate a SQL query to answer the following question:
`Who were the writers of the episodes directed by Greg Sullivan and which first aired on July 21, 2012?`

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

CREATE TABLE "table1_29087004_3" (
  "series_num" real,
  "production_code" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "united_states_original_airdate" text,
  "canada_original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the writers of the episodes directed by Greg Sullivan and which first aired on July 21, 2012?`:
```sql
                SELECT "written_by" FROM "table1_29087004_3" WHERE "directed_by"='Greg Sullivan' AND "united_states_original_airdate"='July 21, 2012';
```
## Task
Generate a SQL query to answer the following question:
`Which episode/s were written by Evan Gore?`

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

CREATE TABLE "table1_29087004_3" (
  "series_num" real,
  "production_code" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "united_states_original_airdate" text,
  "canada_original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode/s were written by Evan Gore?`:
```sql
                SELECT "series_num" FROM "table1_29087004_3" WHERE "written_by"='Evan Gore';
```
## Task
Generate a SQL query to answer the following question:
`How many home teams are there when the away team score was 4.2 (26) and away team was footscray?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many home teams are there when the away team score was 4.2 (26) and away team was footscray?`:
```sql
                SELECT COUNT("home_team_score") FROM "round_1" WHERE "away_team_score"='4.2 (26)' AND "away_team"='Footscray';
```
## Task
Generate a SQL query to answer the following question:
`Which team was the away team when home team was essendon?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was the away team when home team was essendon?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "home_team"='Essendon';
```
## Task
Generate a SQL query to answer the following question:
`How many scores were there for the home team when the  away team was fitzroy?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many scores were there for the home team when the  away team was fitzroy?`:
```sql
                SELECT COUNT("home_team_score") FROM "round_1" WHERE "away_team"='Fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`Which team was the away team when the home team was north melbourne?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was the away team when the home team was north melbourne?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "home_team"='North Melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game when the home team is melbourne?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game when the home team is melbourne?`:
```sql
                SELECT "date" FROM "round_1" WHERE "home_team"='Melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the date when the  home team score is 2.4 (16)?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date when the  home team score is 2.4 (16)?`:
```sql
                SELECT "date" FROM "round_1" WHERE "home_team_score"='2.4 (16)';
```
## Task
Generate a SQL query to answer the following question:
`Name the singer for 1.45m`

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

CREATE TABLE "series_2" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "comedian" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the singer for 1.45m`:
```sql
                SELECT "singer_s" FROM "series_2" WHERE "ratings"='1.45m';
```
## Task
Generate a SQL query to answer the following question:
`Name the singer for joe wilkinson`

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

CREATE TABLE "series_2" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "comedian" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the singer for joe wilkinson`:
```sql
                SELECT "singer_s" FROM "series_2" WHERE "comedian"='Joe Wilkinson';
```
## Task
Generate a SQL query to answer the following question:
`Name the singer for bruce forsyth`

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

CREATE TABLE "series_2" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "comedian" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the singer for bruce forsyth`:
```sql
                SELECT "singer_s" FROM "series_2" WHERE "guest_s"='Bruce Forsyth';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of ratings for bruce forsyth`

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

CREATE TABLE "series_2" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "comedian" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of ratings for bruce forsyth`:
```sql
                SELECT COUNT("ratings") FROM "series_2" WHERE "guest_s"='Bruce Forsyth';
```
## Task
Generate a SQL query to answer the following question:
`Name the guest for 1.64m ratings`

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

CREATE TABLE "series_2" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "comedian" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the guest for 1.64m ratings`:
```sql
                SELECT "guest_s" FROM "series_2" WHERE "ratings"='1.64m';
```
## Task
Generate a SQL query to answer the following question:
`What was the constructor in the Belgian Grand Prix round?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the constructor in the Belgian Grand Prix round?`:
```sql
                SELECT "constructor" FROM "grands_prix" WHERE "grand_prix"='Belgian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap in round 15?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap in round 15?`:
```sql
                SELECT "fastest_lap" FROM "grands_prix" WHERE "rd"=15;
```
## Task
Generate a SQL query to answer the following question:
`When was the home team Essendon? `

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the home team Essendon? `:
```sql
                SELECT "date" FROM "round_1" WHERE "home_team"='Essendon';
```
## Task
Generate a SQL query to answer the following question:
`When Richmond played as the away team, what was the ground?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Richmond played as the away team, what was the ground?`:
```sql
                SELECT "ground" FROM "round_1" WHERE "away_team"='Richmond';
```
## Task
Generate a SQL query to answer the following question:
`When did Fitzroy play as the home team?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Fitzroy play as the home team?`:
```sql
                SELECT "date" FROM "round_1" WHERE "home_team"='Fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`what was the result on 01x06`

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

CREATE TABLE "table1_29141354_1" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest" text,
  "jamie_and_johns_guest" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the result on 01x06`:
```sql
                SELECT "scores" FROM "table1_29141354_1" WHERE "episode"='01x06';
```
## Task
Generate a SQL query to answer the following question:
`what was the size when tom daley appeared`

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

CREATE TABLE "table1_29141354_1" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest" text,
  "jamie_and_johns_guest" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the size when tom daley appeared`:
```sql
                SELECT "episode" FROM "table1_29141354_1" WHERE "jamie_and_johns_guest"='Tom Daley';
```
## Task
Generate a SQL query to answer the following question:
`Who was Andrew and Georgie's gues when Jamie and John's guest was Phil Taylor?`

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

CREATE TABLE "table1_29141354_3" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest" text,
  "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Andrew and Georgie's gues when Jamie and John's guest was Phil Taylor?`:
```sql
                SELECT "andrew_and_georgies_guest" FROM "table1_29141354_3" WHERE "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8"='Phil Taylor';
```
## Task
Generate a SQL query to answer the following question:
`Which episode had Jamie and John's guest as Mike Tindall?`

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

CREATE TABLE "table1_29141354_3" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest" text,
  "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode had Jamie and John's guest as Mike Tindall?`:
```sql
                SELECT "episode" FROM "table1_29141354_3" WHERE "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8"='Mike Tindall';
```
## Task
Generate a SQL query to answer the following question:
`How many scores had an episode of 03x06?`

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

CREATE TABLE "table1_29141354_3" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest" text,
  "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many scores had an episode of 03x06?`:
```sql
                SELECT COUNT("scores") FROM "table1_29141354_3" WHERE "episode"='03x06';
```
## Task
Generate a SQL query to answer the following question:
`Who was Andrew and Georgie's guest when Jamie and John's guest was Amy Williams?`

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

CREATE TABLE "table1_29141354_3" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest" text,
  "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Andrew and Georgie's guest when Jamie and John's guest was Amy Williams?`:
```sql
                SELECT "andrew_and_georgies_guest" FROM "table1_29141354_3" WHERE "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8"='Amy Williams';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the episode when Jamie and John's guest was Boris Becker?`

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

CREATE TABLE "table1_29141354_3" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest" text,
  "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the episode when Jamie and John's guest was Boris Becker?`:
```sql
                SELECT "scores" FROM "table1_29141354_3" WHERE "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8"='Boris Becker';
```
## Task
Generate a SQL query to answer the following question:
`When id the episode broadcast with Mark Webber as Jamie and John's guest?`

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

CREATE TABLE "table1_29141354_4" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest_lee_mack_replaced_andrew_flintoff_as_team_captain_for_one_week_in_series_4_episode_2" text,
  "jamie_and_johns_guest" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `When id the episode broadcast with Mark Webber as Jamie and John's guest?`:
```sql
                SELECT "first_broadcast" FROM "table1_29141354_4" WHERE "jamie_and_johns_guest"='Mark Webber';
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode with Andy Murray as Jamie and John's guest first broadcast?`

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

CREATE TABLE "table1_29141354_4" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest_lee_mack_replaced_andrew_flintoff_as_team_captain_for_one_week_in_series_4_episode_2" text,
  "jamie_and_johns_guest" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode with Andy Murray as Jamie and John's guest first broadcast?`:
```sql
                SELECT "first_broadcast" FROM "table1_29141354_4" WHERE "jamie_and_johns_guest"='Andy Murray';
```
## Task
Generate a SQL query to answer the following question:
`How many items are listed under 'andrew and georgies guest lee mack replaced andrew flint as team captain for one week' for episode 04x04?`

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

CREATE TABLE "table1_29141354_4" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_georgies_guest_lee_mack_replaced_andrew_flintoff_as_team_captain_for_one_week_in_series_4_episode_2" text,
  "jamie_and_johns_guest" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many items are listed under 'andrew and georgies guest lee mack replaced andrew flint as team captain for one week' for episode 04x04?`:
```sql
                SELECT COUNT("andrew_and_georgies_guest_lee_mack_replaced_andrew_flintoff_as_team_captain_for_one_week_in_series_4_episode_2") FROM "table1_29141354_4" WHERE "episode"='04x04';
```
## Task
Generate a SQL query to answer the following question:
`who guest starred on the episode with a 1.44m rating`

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

CREATE TABLE "series_3" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `who guest starred on the episode with a 1.44m rating`:
```sql
                SELECT "guest_s" FROM "series_3" WHERE "ratings"='1.44m';
```
## Task
Generate a SQL query to answer the following question:
`when was the episode on which barbara windsor and heston blumenthal guest starred broadcasted`

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

CREATE TABLE "series_3" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the episode on which barbara windsor and heston blumenthal guest starred broadcasted`:
```sql
                SELECT "broadcast_date" FROM "series_3" WHERE "guest_s"='Barbara Windsor and Heston Blumenthal';
```
## Task
Generate a SQL query to answer the following question:
`how many broadcaste dates features the overtones`

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

CREATE TABLE "series_3" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many broadcaste dates features the overtones`:
```sql
                SELECT COUNT("broadcast_date") FROM "series_3" WHERE "singer_s"='The Overtones';
```
## Task
Generate a SQL query to answer the following question:
`how many guest stars did the episode that was broadcasted 11september2012 have`

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

CREATE TABLE "series_3" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many guest stars did the episode that was broadcasted 11september2012 have`:
```sql
                SELECT COUNT("guest_s") FROM "series_3" WHERE "broadcast_date"='11September2012';
```
## Task
Generate a SQL query to answer the following question:
`when was the episode guest starring michael mcintyre and alex james broadcasted`

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

CREATE TABLE "series_3" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the episode guest starring michael mcintyre and alex james broadcasted`:
```sql
                SELECT "broadcast_date" FROM "series_3" WHERE "guest_s"='Michael McIntyre and Alex James';
```
## Task
Generate a SQL query to answer the following question:
`which episode did sarah millican and grayson perry appear in`

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

CREATE TABLE "series_3" (
  "episode" real,
  "broadcast_date" text,
  "guest_s" text,
  "singer_s" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `which episode did sarah millican and grayson perry appear in`:
```sql
                SELECT MIN("episode") FROM "series_3" WHERE "guest_s"='Sarah Millican and Grayson Perry';
```
## Task
Generate a SQL query to answer the following question:
`When were episodes first broadcast with jessica ennis as andrew and jacks guest?`

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

CREATE TABLE "table1_29141354_5" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_jacks_guest" text,
  "jamies_guests_peter_crouch_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_5_episode_2" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `When were episodes first broadcast with jessica ennis as andrew and jacks guest?`:
```sql
                SELECT "first_broadcast" FROM "table1_29141354_5" WHERE "andrew_and_jacks_guest"='Jessica Ennis';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that is written by Eli Attie and production code is 2t5018?`

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

CREATE TABLE "table1_29152820_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 `Who directed the episode that is written by Eli Attie and production code is 2t5018?`:
```sql
                SELECT "directed_by" FROM "table1_29152820_1" WHERE "written_by"='Eli Attie' AND "production_code"='2T5018';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes are 122 in the series?`

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

CREATE TABLE "table1_29152820_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 `How many episodes are 122 in the series?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_29152820_1" WHERE "no_in_series"=122;
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the episode with Matt Smith as Andrew and Jack's guest?`

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

CREATE TABLE "table1_29141354_7" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_jacks_guest" text,
  "jamies_guests" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the episode with Matt Smith as Andrew and Jack's guest?`:
```sql
                SELECT "scores" FROM "table1_29141354_7" WHERE "andrew_and_jacks_guest"='Matt Smith';
```
## Task
Generate a SQL query to answer the following question:
`When was the episode with Amy Williams as Andrew and Jack's guest broadcast?`

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

CREATE TABLE "table1_29141354_7" (
  "episode" text,
  "first_broadcast" text,
  "andrew_and_jacks_guest" text,
  "jamies_guests" text,
  "scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the episode with Amy Williams as Andrew and Jack's guest broadcast?`:
```sql
                SELECT "first_broadcast" FROM "table1_29141354_7" WHERE "andrew_and_jacks_guest"='Amy Williams';
```
## Task
Generate a SQL query to answer the following question:
`What is the last episode in the season that had 3.91 million viewers in the US?`

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

CREATE TABLE "table1_29154676_1" (
  "season_no" real,
  "series_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last episode in the season that had 3.91 million viewers in the US?`:
```sql
                SELECT MIN("season_no") FROM "table1_29154676_1" WHERE "u_s_viewers_millions"='3.91';
```
## Task
Generate a SQL query to answer the following question:
`What are the episode numbers in season that were titled "The Consoler"?`

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

CREATE TABLE "table1_29154676_1" (
  "season_no" real,
  "series_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the episode numbers in season that were titled "The Consoler"?`:
```sql
                SELECT "season_no" FROM "table1_29154676_1" WHERE "title"='\"The Consoler\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were written by Warren Leight?`

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

CREATE TABLE "table1_29154676_1" (
  "season_no" real,
  "series_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were written by Warren Leight?`:
```sql
                SELECT COUNT("season_no") FROM "table1_29154676_1" WHERE "written_by"='Warren Leight';
```
## Task
Generate a SQL query to answer the following question:
`How many million viewers in the US did the episode titled "Cadaver" have?`

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

CREATE TABLE "table1_29154676_1" (
  "season_no" real,
  "series_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many million viewers in the US did the episode titled "Cadaver" have?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_29154676_1" WHERE "title"='\"Cadaver\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the number in season of the episode titled "Cadaver"?`

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

CREATE TABLE "table1_29154676_1" (
  "season_no" real,
  "series_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in season of the episode titled "Cadaver"?`:
```sql
                SELECT "season_no" FROM "table1_29154676_1" WHERE "title"='\"Cadaver\"';
```
## Task
Generate a SQL query to answer the following question:
`Who was the regular season winner of the 1999 Big Sky Men's Basketball Tournament was the conference tournament?`

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

CREATE TABLE "table1_29146083_3" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the regular season winner of the 1999 Big Sky Men's Basketball Tournament was the conference tournament?`:
```sql
                SELECT "regular_season_winner" FROM "table1_29146083_3" WHERE "conference_tournament"='1999 Big Sky Men''s Basketball Tournament';
```
## Task
Generate a SQL query to answer the following question:
`How many championships were there where the score was  4–6, 7–6 (7–5) , [5–10]?`

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

CREATE TABLE "doubles_43_26_17" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many championships were there where the score was  4–6, 7–6 (7–5) , [5–10]?`:
```sql
                SELECT COUNT("championship") FROM "doubles_43_26_17" WHERE "score"='4–6, 7–6 (7–5) , [5–10]';
```
## Task
Generate a SQL query to answer the following question:
`On what surface was it the year when the score was 6–1, 4–6, [12–10]?`

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

CREATE TABLE "doubles_43_26_17" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what surface was it the year when the score was 6–1, 4–6, [12–10]?`:
```sql
                SELECT "surface" FROM "doubles_43_26_17" WHERE "score"='6–1, 4–6, [12–10]';
```
## Task
Generate a SQL query to answer the following question:
`How many times has the score been 6–4, 3–6, [11–13]?`

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

CREATE TABLE "doubles_43_26_17" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times has the score been 6–4, 3–6, [11–13]?`:
```sql
                SELECT COUNT("opponent") FROM "doubles_43_26_17" WHERE "score"='6–4, 3–6, [11–13]';
```
## Task
Generate a SQL query to answer the following question:
`Who are the outgoing head coaches whose manner of departure is Gardening Leave 1?`

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

CREATE TABLE "coaching_changes" (
  "club" text,
  "outgoing_head_coach" text,
  "date_of_vacancy" text,
  "manner_of_departure" text,
  "incoming_head_coach" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the outgoing head coaches whose manner of departure is Gardening Leave 1?`:
```sql
                SELECT "outgoing_head_coach" FROM "coaching_changes" WHERE "manner_of_departure"='Gardening leave 1';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incoming head coach after Wan Jamak Wan Hassan quit the coaching job?`

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

CREATE TABLE "coaching_changes" (
  "club" text,
  "outgoing_head_coach" text,
  "date_of_vacancy" text,
  "manner_of_departure" text,
  "incoming_head_coach" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incoming head coach after Wan Jamak Wan Hassan quit the coaching job?`:
```sql
                SELECT "incoming_head_coach" FROM "coaching_changes" WHERE "outgoing_head_coach"='Wan Jamak Wan Hassan';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap in round 1?`

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

CREATE TABLE "table1_29162856_1" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_rider" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap in round 1?`:
```sql
                SELECT "fastest_lap" FROM "table1_29162856_1" WHERE "round"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who had the pole position when matt davies had the fastest lap?`

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

CREATE TABLE "table1_29162856_1" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_rider" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the pole position when matt davies had the fastest lap?`:
```sql
                SELECT "pole_position" FROM "table1_29162856_1" WHERE "fastest_lap"='Matt Davies';
```
## Task
Generate a SQL query to answer the following question:
`Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap?`

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

CREATE TABLE "table1_29162856_1" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_rider" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap?`:
```sql
                SELECT "pole_position" FROM "table1_29162856_1" WHERE "winning_rider"='Rob Guiver' AND "fastest_lap"='Kyle Ryde';
```