cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the score for winner and  julie halard-decugis ai sugiyama`

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

CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for winner and  julie halard-decugis ai sugiyama`:
```sql
                SELECT "score" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "outcome"='Winner' AND "opponents"='Julie Halard-Decugis Ai Sugiyama';
```
## Task
Generate a SQL query to answer the following question:
`Name the championship for hard surface 7–5, 6–4 `

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

CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the championship for hard surface 7–5, 6–4 `:
```sql
                SELECT "championship" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "score"='7–5, 6–4' AND "surface"='Hard';
```
## Task
Generate a SQL query to answer the following question:
`Name the surface for nathalie tauziat`

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

CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface for nathalie tauziat`:
```sql
                SELECT "surface" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "partner"='Nathalie Tauziat';
```
## Task
Generate a SQL query to answer the following question:
`Name the most year for money list rank is 74`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most year for money list rank is 74`:
```sql
                SELECT MAX("year") FROM "lpga_tour_career_summary" WHERE "money_list_rank"=74;
```
## Task
Generate a SQL query to answer the following question:
`Name the team for avg start being 20.5`

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

CREATE TABLE "nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for avg start being 20.5`:
```sql
                SELECT "team_s" FROM "nationwide_series" WHERE "avg_start"='20.5';
```
## Task
Generate a SQL query to answer the following question:
`Name the team for wins being 0 and top 5 is 0 and poles is 0 and avg start is 37.0`

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

CREATE TABLE "nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for wins being 0 and top 5 is 0 and poles is 0 and avg start is 37.0`:
```sql
                SELECT "team_s" FROM "nationwide_series" WHERE "wins"=0 AND "top_5"=0 AND "poles"=0 AND "avg_start"='37.0';
```
## Task
Generate a SQL query to answer the following question:
`Name the winnings for 23rd position`

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

CREATE TABLE "nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winnings for 23rd position`:
```sql
                SELECT "winnings" FROM "nationwide_series" WHERE "position"='23rd';
```
## Task
Generate a SQL query to answer the following question:
`Name the winnings for 2004`

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

CREATE TABLE "nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winnings for 2004`:
```sql
                SELECT "winnings" FROM "nationwide_series" WHERE "year"=2004;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of top 10 for avg start being 37.3`

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

CREATE TABLE "nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of top 10 for avg start being 37.3`:
```sql
                SELECT COUNT("top_10") FROM "nationwide_series" WHERE "avg_start"='37.3';
```
## Task
Generate a SQL query to answer the following question:
`What was the method of elimination in the chamber with a time of 24:02? `

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" real,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "method_of_elimination" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the method of elimination in the chamber with a time of 24:02? `:
```sql
                SELECT "method_of_elimination" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='24:02';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum number that entered when the eliminator was Triple H? `

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" real,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "method_of_elimination" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum number that entered when the eliminator was Triple H? `:
```sql
                SELECT MAX("entered") FROM "elimination_chamber_entrances_and_elimin" WHERE "eliminated_by"='Triple H';
```
## Task
Generate a SQL query to answer the following question:
`How many wrestlers are recorded for the chamber that's method of elimination was pinned after being hit by a lead pipe? `

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" real,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "method_of_elimination" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wrestlers are recorded for the chamber that's method of elimination was pinned after being hit by a lead pipe? `:
```sql
                SELECT COUNT("wrestler") FROM "elimination_chamber_entrances_and_elimin" WHERE "method_of_elimination"='Pinned after being hit by a lead pipe';
```
## Task
Generate a SQL query to answer the following question:
`What was the method of elimination for Kofi Kingston/ `

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" real,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "method_of_elimination" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the method of elimination for Kofi Kingston/ `:
```sql
                SELECT "method_of_elimination" FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='Kofi Kingston';
```
## Task
Generate a SQL query to answer the following question:
`What championships were played on clay and the opponent was virginia ruano pascual paola suárez?`

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

CREATE TABLE "grand_slams_11_finals_9_titles_2_runner_" (
  "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 `What championships were played on clay and the opponent was virginia ruano pascual paola suárez?`:
```sql
                SELECT "championship" FROM "grand_slams_11_finals_9_titles_2_runner_" WHERE "surface"='Clay' AND "opponent"='Virginia Ruano Pascual Paola Suárez';
```
## Task
Generate a SQL query to answer the following question:
`What championships had a match where Natasha Zvereva played as partner?`

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

CREATE TABLE "grand_slams_11_finals_9_titles_2_runner_" (
  "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 `What championships had a match where Natasha Zvereva played as partner?`:
```sql
                SELECT "championship" FROM "grand_slams_11_finals_9_titles_2_runner_" WHERE "partner"='Natasha Zvereva';
```
## Task
Generate a SQL query to answer the following question:
`What is the value for model if processor is Kentsfield and brand name is Xeon?`

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

CREATE TABLE "conroe_merom_65_nm" (
  "processor" text,
  "brand_name" text,
  "model_list" text,
  "cores" real,
  "l2_cache" text,
  "socket" text,
  "tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for model if processor is Kentsfield and brand name is Xeon?`:
```sql
                SELECT "model_list" FROM "conroe_merom_65_nm" WHERE "processor"='Kentsfield' AND "brand_name"='Xeon';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for TDP if model is x53xx?`

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

CREATE TABLE "conroe_merom_65_nm" (
  "processor" text,
  "brand_name" text,
  "model_list" text,
  "cores" real,
  "l2_cache" text,
  "socket" text,
  "tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for TDP if model is x53xx?`:
```sql
                SELECT "tdp" FROM "conroe_merom_65_nm" WHERE "model_list"='X53xx';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for cores if TDP is 17 W?`

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

CREATE TABLE "conroe_merom_65_nm" (
  "processor" text,
  "brand_name" text,
  "model_list" text,
  "cores" real,
  "l2_cache" text,
  "socket" text,
  "tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for cores if TDP is 17 W?`:
```sql
                SELECT "cores" FROM "conroe_merom_65_nm" WHERE "tdp"='17 W';
```
## Task
Generate a SQL query to answer the following question:
`How many records for number of viewers is listed for episode number 8? `

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

CREATE TABLE "u_s_nielsen_ratings" (
  "episode" real,
  "first_air_date" text,
  "rating_18_49" text,
  "share_18_49" real,
  "viewers_millions" text,
  "rank_timeslot" text,
  "rank_night" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many records for number of viewers is listed for episode number 8? `:
```sql
                SELECT COUNT("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode"=8;
```
## Task
Generate a SQL query to answer the following question:
`What was the 18 to 49 rating when 9.50 million watched?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "episode" real,
  "first_air_date" text,
  "rating_18_49" text,
  "share_18_49" real,
  "viewers_millions" text,
  "rank_timeslot" text,
  "rank_night" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 18 to 49 rating when 9.50 million watched?`:
```sql
                SELECT "rating_18_49" FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='9.50';
```
## Task
Generate a SQL query to answer the following question:
`what episode number had 11.73 million viewers? `

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

CREATE TABLE "u_s_nielsen_ratings" (
  "episode" real,
  "first_air_date" text,
  "rating_18_49" text,
  "share_18_49" real,
  "viewers_millions" text,
  "rank_timeslot" text,
  "rank_night" text
);
### SQL
Given the database schema, here is the SQL query that answers `what episode number had 11.73 million viewers? `:
```sql
                SELECT "episode" FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='11.73';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had 11.47 million viewers? `

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

CREATE TABLE "u_s_nielsen_ratings" (
  "episode" real,
  "first_air_date" text,
  "rating_18_49" text,
  "share_18_49" real,
  "viewers_millions" text,
  "rank_timeslot" text,
  "rank_night" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had 11.47 million viewers? `:
```sql
                SELECT COUNT("episode") FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='11.47';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that originally aired April 29, 1994?`

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

CREATE TABLE "table1_2468961_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that originally aired April 29, 1994?`:
```sql
                SELECT "written_by" FROM "table1_2468961_4" WHERE "original_air_date"='April 29, 1994';
```
## Task
Generate a SQL query to answer the following question:
`What was the production code for the episode that debuted October 1, 1993?`

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

CREATE TABLE "table1_2468961_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code for the episode that debuted October 1, 1993?`:
```sql
                SELECT MAX("production_code") FROM "table1_2468961_4" WHERE "original_air_date"='October 1, 1993';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode "Sister Act"?`

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

CREATE TABLE "table1_2468961_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode "Sister Act"?`:
```sql
                SELECT "written_by" FROM "table1_2468961_4" WHERE "title"='\"Sister Act\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the title of series number 56?`

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

CREATE TABLE "table1_2468961_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of series number 56?`:
```sql
                SELECT "title" FROM "table1_2468961_4" WHERE "no_in_series"=56;
```
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode written by Julia Newton in series 48?`

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

CREATE TABLE "table1_2468961_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode written by Julia Newton in series 48?`:
```sql
                SELECT "title" FROM "table1_2468961_4" WHERE "written_by"='Julia Newton' AND "no_in_series"=48;
```
## Task
Generate a SQL query to answer the following question:
`What is the callsign that has a station type of relay and a channel number of TV-2?`

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

CREATE TABLE "ptv_stations_nationwide" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the callsign that has a station type of relay and a channel number of TV-2?`:
```sql
                SELECT "callsign" FROM "ptv_stations_nationwide" WHERE "station_type"='Relay' AND "ch_num"='TV-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the station type of DWZM-TV?`

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

CREATE TABLE "ptv_stations_nationwide" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the station type of DWZM-TV?`:
```sql
                SELECT "station_type" FROM "ptv_stations_nationwide" WHERE "callsign"='DWZM-TV';
```
## Task
Generate a SQL query to answer the following question:
`What is the power in kilowatts of TV-12?`

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

CREATE TABLE "ptv_stations_nationwide" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power in kilowatts of TV-12?`:
```sql
                SELECT "power_k_w" FROM "ptv_stations_nationwide" WHERE "ch_num"='TV-12';
```
## Task
Generate a SQL query to answer the following question:
`What is the power in KW of the transmitter situated in Borongan?`

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

CREATE TABLE "ptv_stations_nationwide" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power in KW of the transmitter situated in Borongan?`:
```sql
                SELECT "power_k_w" FROM "ptv_stations_nationwide" WHERE "location_transmitter_site"='Borongan';
```
## Task
Generate a SQL query to answer the following question:
`What is the channel number that has a branding of PTV 4 Laoag?`

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

CREATE TABLE "ptv_stations_nationwide" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the channel number that has a branding of PTV 4 Laoag?`:
```sql
                SELECT "ch_num" FROM "ptv_stations_nationwide" WHERE "branding"='PTV 4 Laoag';
```
## Task
Generate a SQL query to answer the following question:
`What is the power in KW that has a station type of relay and a callsign of DXCL-TV?`

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

CREATE TABLE "ptv_stations_nationwide" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power in KW that has a station type of relay and a callsign of DXCL-TV?`:
```sql
                SELECT "power_k_w" FROM "ptv_stations_nationwide" WHERE "station_type"='Relay' AND "callsign"='DXCL-TV';
```
## Task
Generate a SQL query to answer the following question:
`When 15 is the number in season what is the highest number in series?`

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

CREATE TABLE "table1_2468961_7" (
  "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 `When 15 is the number in season what is the highest number in series?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_2468961_7" WHERE "no_in_season"=15;
```
## Task
Generate a SQL query to answer the following question:
`When 123 is the number in series who is the director?`

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

CREATE TABLE "table1_2468961_7" (
  "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 `When 123 is the number in series who is the director?`:
```sql
                SELECT "directed_by" FROM "table1_2468961_7" WHERE "no_in_series"=123;
```
## Task
Generate a SQL query to answer the following question:
`When "the kissing game" is the title who is the director?`

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

CREATE TABLE "table1_2468961_7" (
  "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 `When "the kissing game" is the title who is the director?`:
```sql
                SELECT "directed_by" FROM "table1_2468961_7" WHERE "title"='\"The Kissing Game\"';
```
## Task
Generate a SQL query to answer the following question:
`When 120 is the number in series who is the writer?`

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

CREATE TABLE "table1_2468961_7" (
  "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 `When 120 is the number in series who is the writer?`:
```sql
                SELECT "written_by" FROM "table1_2468961_7" WHERE "no_in_series"=120;
```
## Task
Generate a SQL query to answer the following question:
`When 137 is the number in series what is the production code?`

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

CREATE TABLE "table1_2468961_7" (
  "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 `When 137 is the number in series what is the production code?`:
```sql
                SELECT "production_code" FROM "table1_2468961_7" WHERE "no_in_series"=137;
```
## Task
Generate a SQL query to answer the following question:
`How many victors where there in the War of 1730–1736 , first stage?`

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

CREATE TABLE "table1_24706337_1" (
  "name_of_the_war" text,
  "ottoman_sultan" text,
  "persian_shah" text,
  "treaty_at_the_end_of_the_war" text,
  "victor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many victors where there in the War of 1730–1736 , first stage?`:
```sql
                SELECT COUNT("victor") FROM "table1_24706337_1" WHERE "name_of_the_war"='War of 1730–1736 , first stage';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Ottoman Sultan where the treaty at the end of the war was the Treaty of Constantinople (1590)?`

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

CREATE TABLE "table1_24706337_1" (
  "name_of_the_war" text,
  "ottoman_sultan" text,
  "persian_shah" text,
  "treaty_at_the_end_of_the_war" text,
  "victor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Ottoman Sultan where the treaty at the end of the war was the Treaty of Constantinople (1590)?`:
```sql
                SELECT "ottoman_sultan" FROM "table1_24706337_1" WHERE "treaty_at_the_end_of_the_war"='Treaty of Constantinople (1590)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the war where the Ottoman sultan was Selim I?`

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

CREATE TABLE "table1_24706337_1" (
  "name_of_the_war" text,
  "ottoman_sultan" text,
  "persian_shah" text,
  "treaty_at_the_end_of_the_war" text,
  "victor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the war where the Ottoman sultan was Selim I?`:
```sql
                SELECT "name_of_the_war" FROM "table1_24706337_1" WHERE "ottoman_sultan"='Selim I';
```
## Task
Generate a SQL query to answer the following question:
`When "baby come back" is the title what is the air date?`

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

CREATE TABLE "table1_2468961_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When "baby come back" is the title what is the air date?`:
```sql
                SELECT "original_air_date" FROM "table1_2468961_6" WHERE "title"='\"Baby Come Back\"';
```
## Task
Generate a SQL query to answer the following question:
`When 102 is the number in series who is the director?`

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

CREATE TABLE "table1_2468961_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 102 is the number in series who is the director?`:
```sql
                SELECT "directed_by" FROM "table1_2468961_6" WHERE "no_in_series"=102;
```
## Task
Generate a SQL query to answer the following question:
`When "we're going to disney world (part 1)" is the title what is the air date?`

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

CREATE TABLE "table1_2468961_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When "we're going to disney world (part 1)" is the title what is the air date?`:
```sql
                SELECT "original_air_date" FROM "table1_2468961_6" WHERE "title"='\"We''re Going to Disney World (Part 1)\"';
```
## Task
Generate a SQL query to answer the following question:
`Name who wrote the episode directed by patrick duffy airing on november 7, 1997`

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

CREATE TABLE "table1_2468961_8" (
  "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 who wrote the episode directed by patrick duffy airing on november 7, 1997`:
```sql
                SELECT "written_by" FROM "table1_2468961_8" WHERE "directed_by"='Patrick Duffy' AND "original_air_date"='November 7, 1997';
```
## Task
Generate a SQL query to answer the following question:
`What is the last year total for the team with a lowest of 23578?`

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

CREATE TABLE "match_attendance" (
  "team" text,
  "hosted" real,
  "average" real,
  "highest" real,
  "lowest" real,
  "total" real,
  "last_year" real,
  "up_down" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last year total for the team with a lowest of 23578?`:
```sql
                SELECT MAX("last_year") FROM "match_attendance" WHERE "lowest"=23578;
```
## Task
Generate a SQL query to answer the following question:
`How many highest figures for the team with lowest of 16415?`

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

CREATE TABLE "match_attendance" (
  "team" text,
  "hosted" real,
  "average" real,
  "highest" real,
  "lowest" real,
  "total" real,
  "last_year" real,
  "up_down" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many highest figures for the team with lowest of 16415?`:
```sql
                SELECT COUNT("highest") FROM "match_attendance" WHERE "lowest"=16415;
```
## Task
Generate a SQL query to answer the following question:
`Which team has an up/down of + 3479?`

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

CREATE TABLE "match_attendance" (
  "team" text,
  "hosted" real,
  "average" real,
  "highest" real,
  "lowest" real,
  "total" real,
  "last_year" real,
  "up_down" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has an up/down of + 3479?`:
```sql
                SELECT "team" FROM "match_attendance" WHERE "up_down"='+ 3479';
```
## Task
Generate a SQL query to answer the following question:
`What is the average of the team where the total is 243017?`

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

CREATE TABLE "match_attendance" (
  "team" text,
  "hosted" real,
  "average" real,
  "highest" real,
  "lowest" real,
  "total" real,
  "last_year" real,
  "up_down" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average of the team where the total is 243017?`:
```sql
                SELECT "average" FROM "match_attendance" WHERE "total"=243017;
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had celebrity guest stars Frank Skinner and Lee Mack?`

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

CREATE TABLE "table1_24725951_1" (
  "episode" real,
  "stage" text,
  "celebrities" text,
  "directed_and_produced_by" text,
  "original_airdate" text,
  "viewers_overnight_estimates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had celebrity guest stars Frank Skinner and Lee Mack?`:
```sql
                SELECT COUNT("episode") FROM "table1_24725951_1" WHERE "celebrities"='Frank Skinner and Lee Mack';
```
## Task
Generate a SQL query to answer the following question:
`List episode directed and produced by Karen Selway?`

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

CREATE TABLE "table1_24725951_1" (
  "episode" real,
  "stage" text,
  "celebrities" text,
  "directed_and_produced_by" text,
  "original_airdate" text,
  "viewers_overnight_estimates" text
);
### SQL
Given the database schema, here is the SQL query that answers `List episode directed and produced by Karen Selway?`:
```sql
                SELECT "episode" FROM "table1_24725951_1" WHERE "directed_and_produced_by"='Karen Selway';
```
## Task
Generate a SQL query to answer the following question:
`Which episode had celebrities Nick Hewer and Saira Khan in them?`

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

CREATE TABLE "table1_24725951_1" (
  "episode" real,
  "stage" text,
  "celebrities" text,
  "directed_and_produced_by" text,
  "original_airdate" text,
  "viewers_overnight_estimates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode had celebrities Nick Hewer and Saira Khan in them?`:
```sql
                SELECT "episode" FROM "table1_24725951_1" WHERE "celebrities"='Nick Hewer and Saira Khan';
```
## Task
Generate a SQL query to answer the following question:
`List the director and producer when Nick Hewer and Saira Khan were starring.`

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

CREATE TABLE "table1_24725951_1" (
  "episode" real,
  "stage" text,
  "celebrities" text,
  "directed_and_produced_by" text,
  "original_airdate" text,
  "viewers_overnight_estimates" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the director and producer when Nick Hewer and Saira Khan were starring.`:
```sql
                SELECT "directed_and_produced_by" FROM "table1_24725951_1" WHERE "celebrities"='Nick Hewer and Saira Khan';
```
## Task
Generate a SQL query to answer the following question:
`List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin.`

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

CREATE TABLE "table1_24725951_1" (
  "episode" real,
  "stage" text,
  "celebrities" text,
  "directed_and_produced_by" text,
  "original_airdate" text,
  "viewers_overnight_estimates" text
);
### SQL
Given the database schema, here is the SQL query that answers `List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin.`:
```sql
                SELECT "directed_and_produced_by" FROM "table1_24725951_1" WHERE "celebrities"='Bill Turnbull and Louise Minchin';
```
## Task
Generate a SQL query to answer the following question:
`when 0–100km/h (60mph) is 5.8 seconds (5.5), what is the torque?`

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

CREATE TABLE "981" (
  "year" real,
  "engine" text,
  "power" text,
  "torque" text,
  "transmission" text,
  "0_100km_h_60mph" text,
  "top_speed" text,
  "co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `when 0–100km/h (60mph) is 5.8 seconds (5.5), what is the torque?`:
```sql
                SELECT "torque" FROM "981" WHERE "0_100km_h_60mph"='5.8 seconds (5.5)';
```
## Task
Generate a SQL query to answer the following question:
`whe, co2 is 206g/km, what is the torque?`

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

CREATE TABLE "981" (
  "year" real,
  "engine" text,
  "power" text,
  "torque" text,
  "transmission" text,
  "0_100km_h_60mph" text,
  "top_speed" text,
  "co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `whe, co2 is 206g/km, what is the torque?`:
```sql
                SELECT "torque" FROM "981" WHERE "co2"='206g/km';
```
## Task
Generate a SQL query to answer the following question:
`when co2 is 192g/km, what is the power?`

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

CREATE TABLE "981" (
  "year" real,
  "engine" text,
  "power" text,
  "torque" text,
  "transmission" text,
  "0_100km_h_60mph" text,
  "top_speed" text,
  "co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `when co2 is 192g/km, what is the power?`:
```sql
                SELECT "power" FROM "981" WHERE "co2"='192g/km';
```
## Task
Generate a SQL query to answer the following question:
`when 0–100km/h (60mph) is 5.8 seconds (5.5), what is the engine?`

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

CREATE TABLE "981" (
  "year" real,
  "engine" text,
  "power" text,
  "torque" text,
  "transmission" text,
  "0_100km_h_60mph" text,
  "top_speed" text,
  "co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `when 0–100km/h (60mph) is 5.8 seconds (5.5), what is the engine?`:
```sql
                SELECT "engine" FROM "981" WHERE "0_100km_h_60mph"='5.8 seconds (5.5)';
```
## Task
Generate a SQL query to answer the following question:
`when0–100km/h (60mph) is 5.5 seconds (5.2), whats is the top speed?`

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

CREATE TABLE "981" (
  "year" real,
  "engine" text,
  "power" text,
  "torque" text,
  "transmission" text,
  "0_100km_h_60mph" text,
  "top_speed" text,
  "co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `when0–100km/h (60mph) is 5.5 seconds (5.2), whats is the top speed?`:
```sql
                SELECT "top_speed" FROM "981" WHERE "0_100km_h_60mph"='5.5 seconds (5.2)';
```
## Task
Generate a SQL query to answer the following question:
`What is the circuit of round 5?`

### 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,
  "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 `What is the circuit of round 5?`:
```sql
                SELECT "circuit" FROM "race_calendar_and_results" WHERE "round"=5;
```
## Task
Generate a SQL query to answer the following question:
`What date did Mike Rockenfeller have the 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,
  "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 `What date did Mike Rockenfeller have the fastest lap?`:
```sql
                SELECT "date" FROM "race_calendar_and_results" WHERE "fastest_lap"='Mike Rockenfeller';
```
## Task
Generate a SQL query to answer the following question:
`How many points for the driver who raced in seasons 2006 – 2007 , 2009?`

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

CREATE TABLE "by_name" (
  "name" text,
  "nation" text,
  "seasons" text,
  "championship_titles" text,
  "races_starts" text,
  "poles" real,
  "wins" real,
  "podiums" real,
  "fastest_laps" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for the driver who raced in seasons 2006 – 2007 , 2009?`:
```sql
                SELECT "points" FROM "by_name" WHERE "seasons"='2006 – 2007 , 2009';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the competition where the nationality is Brazil and the voting percentage is n/a?`

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

CREATE TABLE "2010" (
  "rank" text,
  "player" text,
  "nationality" text,
  "team" text,
  "opponent" text,
  "score" text,
  "competition" text,
  "vote_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the competition where the nationality is Brazil and the voting percentage is n/a?`:
```sql
                SELECT "competition" FROM "2010" WHERE "vote_percentage"='N/A' AND "nationality"='Brazil';
```
## Task
Generate a SQL query to answer the following question:
`What's the player's name whose nationality and team are Netherlands?`

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

CREATE TABLE "2010" (
  "rank" text,
  "player" text,
  "nationality" text,
  "team" text,
  "opponent" text,
  "score" text,
  "competition" text,
  "vote_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the player's name whose nationality and team are Netherlands?`:
```sql
                SELECT "player" FROM "2010" WHERE "nationality"='Netherlands' AND "team"='Netherlands';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game in which Samir Nasri played?`

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

CREATE TABLE "2010" (
  "rank" text,
  "player" text,
  "nationality" text,
  "team" text,
  "opponent" text,
  "score" text,
  "competition" text,
  "vote_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game in which Samir Nasri played?`:
```sql
                SELECT "score" FROM "2010" WHERE "player"='Samir Nasri';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player that played in the UEFA Euro 2012 qualifying Group A competition?`

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

CREATE TABLE "2010" (
  "rank" text,
  "player" text,
  "nationality" text,
  "team" text,
  "opponent" text,
  "score" text,
  "competition" text,
  "vote_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player that played in the UEFA Euro 2012 qualifying Group A competition?`:
```sql
                SELECT "player" FROM "2010" WHERE "competition"='UEFA Euro 2012 qualifying Group A';
```
## Task
Generate a SQL query to answer the following question:
`What is the ranking of the UEFA Euro 2012 qualifying Group A competition?`

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

CREATE TABLE "2010" (
  "rank" text,
  "player" text,
  "nationality" text,
  "team" text,
  "opponent" text,
  "score" text,
  "competition" text,
  "vote_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ranking of the UEFA Euro 2012 qualifying Group A competition?`:
```sql
                SELECT "rank" FROM "2010" WHERE "competition"='UEFA Euro 2012 qualifying Group A';
```
## Task
Generate a SQL query to answer the following question:
`Name the production for alpina model being b10 4,6`

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

CREATE TABLE "alpina_previous_models_petrol_engines" (
  "alpina_model" text,
  "bmw_donor_model" text,
  "alpina_engine" text,
  "power" text,
  "torque" text,
  "production" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the production for alpina model being b10 4,6`:
```sql
                SELECT "production" FROM "alpina_previous_models_petrol_engines" WHERE "alpina_model"='B10 4,6';
```
## Task
Generate a SQL query to answer the following question:
`How many final score datas are there on Sunday, May 12?`

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

CREATE TABLE "table1_24776075_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many final score datas are there on Sunday, May 12?`:
```sql
                SELECT COUNT("final_score") FROM "table1_24776075_2" WHERE "date"='Sunday, May 12';
```
## Task
Generate a SQL query to answer the following question:
`The game on Saturday, May 25 took place on which week?`

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

CREATE TABLE "table1_24776075_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `The game on Saturday, May 25 took place on which week?`:
```sql
                SELECT MIN("week") FROM "table1_24776075_2" WHERE "date"='Saturday, May 25';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score on Saturday, May 25?`

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

CREATE TABLE "table1_24776075_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score on Saturday, May 25?`:
```sql
                SELECT "final_score" FROM "table1_24776075_2" WHERE "date"='Saturday, May 25';
```
## Task
Generate a SQL query to answer the following question:
`When 10 is the number who is the writer?`

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

CREATE TABLE "table1_24781886_2" (
  "num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "viewers" text,
  "air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 10 is the number who is the writer?`:
```sql
                SELECT "writer_s" FROM "table1_24781886_2" WHERE "num"=10;
```
## Task
Generate a SQL query to answer the following question:
`When 6.66 is the amount of viewers what is the lowest production code?`

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

CREATE TABLE "table1_24781886_2" (
  "num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "viewers" text,
  "air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 6.66 is the amount of viewers what is the lowest production code?`:
```sql
                SELECT MIN("production_code") FROM "table1_24781886_2" WHERE "viewers"='6.66';
```