output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
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 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 "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 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 MAX("year") FROM "lpga_tour_career_summary" WHERE "money_list_rank"=74; |
## 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 "team_s" FROM "nationwide_series" WHERE "avg_start"='20.5'; |
## 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 "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 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 "winnings" FROM "nationwide_series" WHERE "position"='23rd'; |
## 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 "year"=2004; |
## 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 COUNT("top_10") FROM "nationwide_series" WHERE "avg_start"='37.3'; |
## 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 "method_of_elimination" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='24:02'; |
## 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 MAX("entered") FROM "elimination_chamber_entrances_and_elimin" WHERE "eliminated_by"='Triple H'; |
## 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 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:
`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 "method_of_elimination" FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='Kofi Kingston'; |
## 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 "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 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 "partner"='Natasha Zvereva'; |
## 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 "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 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 "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 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 "cores" FROM "conroe_merom_65_nm" WHERE "tdp"='17 W'; |
## 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 COUNT("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode"=8; |
## 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 "rating_18_49" FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='9.50'; |
## 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 "episode" FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='11.73'; |
## 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 COUNT("episode") FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='11.47'; |
## 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 "written_by" FROM "table1_2468961_4" WHERE "original_air_date"='April 29, 1994'; |
## 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 MAX("production_code") FROM "table1_2468961_4" WHERE "original_air_date"='October 1, 1993'; |
## 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 "written_by" FROM "table1_2468961_4" WHERE "title"='\"Sister Act\"'; |
## 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 "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 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 "written_by"='Julia Newton' AND "no_in_series"=48; |
## 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 "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 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 "station_type" FROM "ptv_stations_nationwide" WHERE "callsign"='DWZM-TV'; |
## 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 "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 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 "location_transmitter_site"='Borongan'; |
## 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 "ch_num" FROM "ptv_stations_nationwide" WHERE "branding"='PTV 4 Laoag'; |
## 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 "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:
`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 MAX("no_in_series") FROM "table1_2468961_7" WHERE "no_in_season"=15; |
## 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 "directed_by" FROM "table1_2468961_7" WHERE "no_in_series"=123; |
## 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 "title"='\"The Kissing Game\"'; |
## 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 "written_by" FROM "table1_2468961_7" WHERE "no_in_series"=120; |
## 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 "production_code" FROM "table1_2468961_7" WHERE "no_in_series"=137; |
## 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 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:
`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 "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:
`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 "name_of_the_war" FROM "table1_24706337_1" WHERE "ottoman_sultan"='Selim I'; |
## 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 "original_air_date" FROM "table1_2468961_6" WHERE "title"='\"Baby Come Back\"'; |
## 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 "directed_by" FROM "table1_2468961_6" WHERE "no_in_series"=102; |
## 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 "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:
`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 "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:
`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 MAX("last_year") FROM "match_attendance" WHERE "lowest"=23578; |
## 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 COUNT("highest") FROM "match_attendance" WHERE "lowest"=16415; |
## 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 "team" FROM "match_attendance" WHERE "up_down"='+ 3479'; |
## 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 "average" FROM "match_attendance" WHERE "total"=243017; |
## 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 COUNT("episode") FROM "table1_24725951_1" WHERE "celebrities"='Frank Skinner and Lee Mack'; |
## 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 "episode" FROM "table1_24725951_1" WHERE "directed_and_produced_by"='Karen Selway'; |
## 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 "celebrities"='Nick Hewer and Saira Khan'; |
## 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 "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 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"='Bill Turnbull and Louise Minchin'; |
## 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 "torque" FROM "981" WHERE "0_100km_h_60mph"='5.8 seconds (5.5)'; |
## 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 "co2"='206g/km'; |
## 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 "power" FROM "981" WHERE "co2"='192g/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 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 "engine" FROM "981" WHERE "0_100km_h_60mph"='5.8 seconds (5.5)'; |
## 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 "top_speed" FROM "981" WHERE "0_100km_h_60mph"='5.5 seconds (5.2)'; |
## 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 "circuit" FROM "race_calendar_and_results" WHERE "round"=5; |
## 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 "date" FROM "race_calendar_and_results" WHERE "fastest_lap"='Mike Rockenfeller'; |
## 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 "points" FROM "by_name" WHERE "seasons"='2006 – 2007 , 2009'; |
## 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 "competition" FROM "2010" WHERE "vote_percentage"='N/A' AND "nationality"='Brazil'; |
## 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 "player" FROM "2010" WHERE "nationality"='Netherlands' AND "team"='Netherlands'; |
## 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 "score" FROM "2010" WHERE "player"='Samir Nasri'; |
## 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 "player" FROM "2010" WHERE "competition"='UEFA Euro 2012 qualifying Group A'; |
## 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 "rank" 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 "production" FROM "alpina_previous_models_petrol_engines" WHERE "alpina_model"='B10 4,6'; |
## 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 COUNT("final_score") FROM "table1_24776075_2" WHERE "date"='Sunday, May 12'; |
## 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 MIN("week") FROM "table1_24776075_2" WHERE "date"='Saturday, May 25'; |
## 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 "final_score" 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 "writer_s" FROM "table1_24781886_2" WHERE "num"=10; |
## 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 MIN("production_code") FROM "table1_24781886_2" WHERE "viewers"='6.66'; |
## 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("num") FROM "table1_24781886_2" WHERE "viewers"='7.55'; |
## Task
Generate a SQL query to answer the following question:
`When 7.55 is the amount of viewers what is the lowest number?`
### 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 7.55 is the amount of viewers what is the lowest number?`:
```sql
|
SELECT COUNT("new_democratic") FROM "opinion_polls" WHERE "date_of_polling"='May 11–31, 2010'; |
## Task
Generate a SQL query to answer the following question:
`How many figures are given for the New Democratic for the polling range May 11–31, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date_of_polling" text,
"link" text,
"progressive_conservative" real,
"liberal" real,
"new_democratic" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are given for the New Democratic for the polling range May 11–31, 2010?`:
```sql
|
SELECT "link" FROM "opinion_polls" WHERE "date_of_polling"='February 10–28, 2011'; |
## Task
Generate a SQL query to answer the following question:
`What format is the link for the polling data for February 10–28, 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date_of_polling" text,
"link" text,
"progressive_conservative" real,
"liberal" real,
"new_democratic" real
);
### SQL
Given the database schema, here is the SQL query that answers `What format is the link for the polling data for February 10–28, 2011?`:
```sql
|
SELECT COUNT("viewers") FROM "table1_24781886_3" WHERE "title"='\"Gary Is A Boat Guy\"'; |
## Task
Generate a SQL query to answer the following question:
`When "gary is a boat guy" is the title how many sets of viewers are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24781886_3" (
"total" real,
"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 "gary is a boat guy" is the title how many sets of viewers are there?`:
```sql
|
SELECT "title" FROM "table1_24781886_3" WHERE "num"=9; |
## Task
Generate a SQL query to answer the following question:
`When 9 is the number what is the title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24781886_3" (
"total" real,
"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 9 is the number what is the title?`:
```sql
|
SELECT MAX("total") FROM "table1_24781886_3" WHERE "num"=3; |
## Task
Generate a SQL query to answer the following question:
`When 3 is the number what is the highest total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24781886_3" (
"total" real,
"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 3 is the number what is the highest total?`:
```sql
|
SELECT "air_date" FROM "table1_24781886_3" WHERE "viewers"='7.08'; |
## Task
Generate a SQL query to answer the following question:
`When 7.08 is the amount of viewers what is the air date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24781886_3" (
"total" real,
"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 7.08 is the amount of viewers what is the air date?`:
```sql
|
SELECT COUNT("director") FROM "table1_24781886_3" WHERE "viewers"='7.08'; |
## Task
Generate a SQL query to answer the following question:
`When 7.08 is the amount of viewers how many directors are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24781886_3" (
"total" real,
"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 7.08 is the amount of viewers how many directors are there?`:
```sql
|
SELECT "location" FROM "table1_24798489_2" WHERE "original_airdate"='August 26, 2009'; |
## Task
Generate a SQL query to answer the following question:
`What location did the episode that aired originally on August 26, 2009 take place at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24798489_2" (
"episode_number" real,
"location" text,
"original_airdate" text,
"challenge_winner" text,
"challenge" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location did the episode that aired originally on August 26, 2009 take place at?`:
```sql
|
SELECT COUNT("original_airdate") FROM "table1_24798489_2" WHERE "location"='Philadelphia, Pennsylvania'; |
## Task
Generate a SQL query to answer the following question:
`How many dates originally aired episodes located in Philadelphia, pennsylvania?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24798489_2" (
"episode_number" real,
"location" text,
"original_airdate" text,
"challenge_winner" text,
"challenge" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates originally aired episodes located in Philadelphia, pennsylvania?`:
```sql
|
SELECT "challenge" FROM "table1_24798489_2" WHERE "episode_number"=28; |
## Task
Generate a SQL query to answer the following question:
`What was the challenge for episode 28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24798489_2" (
"episode_number" real,
"location" text,
"original_airdate" text,
"challenge_winner" text,
"challenge" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the challenge for episode 28?`:
```sql
|
SELECT COUNT("original_airdate") FROM "table1_24798489_2" WHERE "episode_number"=22; |
## Task
Generate a SQL query to answer the following question:
`How many original air dates were there for episode 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24798489_2" (
"episode_number" real,
"location" text,
"original_airdate" text,
"challenge_winner" text,
"challenge" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many original air dates were there for episode 22?`:
```sql
|
SELECT MIN("goals") FROM "playoff_statistics"; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest goals ever achieved?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoff_statistics" (
"name" text,
"nationality" text,
"position" text,
"appearances" real,
"starts" real,
"minutes" real,
"goals" real,
"assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest goals ever achieved?`:
```sql
|
SELECT "afghan" FROM "language_program" WHERE "arabic"='Scottish'; |
## Task
Generate a SQL query to answer the following question:
`how many arabic scottish is afghan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language_program" (
"afghan" text,
"albanian" text,
"arabic" text,
"bangladeshi" text,
"bosnian" text,
"chinese" text,
"colombian" text,
"cook_islands" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many arabic scottish is afghan`:
```sql
|
SELECT COUNT("cook_islands") FROM "language_program" WHERE "bosnian"='Macedonian'; |
## Task
Generate a SQL query to answer the following question:
`how many bosnian in cook islands is macedonian`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language_program" (
"afghan" text,
"albanian" text,
"arabic" text,
"bangladeshi" text,
"bosnian" text,
"chinese" text,
"colombian" text,
"cook_islands" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many bosnian in cook islands is macedonian`:
```sql
|
SELECT "colombian" FROM "language_program" WHERE "bangladeshi"='Serbian'; |
## Task
Generate a SQL query to answer the following question:
`how many colombia in bangladesh is serbian`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language_program" (
"afghan" text,
"albanian" text,
"arabic" text,
"bangladeshi" text,
"bosnian" text,
"chinese" text,
"colombian" text,
"cook_islands" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many colombia in bangladesh is serbian`:
```sql
|
SELECT "arabic" FROM "language_program" WHERE "colombian"='Finnish'; |
## Task
Generate a SQL query to answer the following question:
`how many arabic in colobians is finnish`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language_program" (
"afghan" text,
"albanian" text,
"arabic" text,
"bangladeshi" text,
"bosnian" text,
"chinese" text,
"colombian" text,
"cook_islands" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many arabic in colobians is finnish`:
```sql
|
SELECT "bosnian" FROM "language_program" WHERE "cook_islands"='Sri Lankan'; |
## Task
Generate a SQL query to answer the following question:
`how many bosnian in cook islands is sri lankan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language_program" (
"afghan" text,
"albanian" text,
"arabic" text,
"bangladeshi" text,
"bosnian" text,
"chinese" text,
"colombian" text,
"cook_islands" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many bosnian in cook islands is sri lankan`:
```sql
|
SELECT "afghan" FROM "language_program" WHERE "bangladeshi"='Hungarian'; |
## Task
Generate a SQL query to answer the following question:
`how many afghan in banglash is hungarian`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language_program" (
"afghan" text,
"albanian" text,
"arabic" text,
"bangladeshi" text,
"bosnian" text,
"chinese" text,
"colombian" text,
"cook_islands" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many afghan in banglash is hungarian`:
```sql
|
SELECT "name" FROM "all_time_statistics" WHERE "position"='FW' AND "appearances"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the name if the appearance is 2 and the position is FW?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_statistics" (
"name" text,
"nationality" text,
"position" text,
"sky_blue_fc_career" text,
"appearances" real,
"starts" real,
"minutes" real,
"goals" real,
"assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name if the appearance is 2 and the position is FW?`:
```sql
|
SELECT COUNT("assists") FROM "all_time_statistics" WHERE "minutes"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the assists total number if the minutes is 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_statistics" (
"name" text,
"nationality" text,
"position" text,
"sky_blue_fc_career" text,
"appearances" real,
"starts" real,
"minutes" real,
"goals" real,
"assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the assists total number if the minutes is 1?`:
```sql
|
SELECT MAX("appearances") FROM "all_time_statistics" WHERE "starts"=18; |
## Task
Generate a SQL query to answer the following question:
`What is the appearance maximum if the starts is 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_statistics" (
"name" text,
"nationality" text,
"position" text,
"sky_blue_fc_career" text,
"appearances" real,
"starts" real,
"minutes" real,
"goals" real,
"assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the appearance maximum if the starts is 18?`:
```sql
|
SELECT "name" FROM "table1_2482547_5" WHERE "average"='15.89'; |
## Task
Generate a SQL query to answer the following question:
`What are the names of all the players with an average of 15.89?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2482547_5" (
"name" text,
"team_s" text,
"matches" real,
"balls_bowled" real,
"wickets_taken" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the names of all the players with an average of 15.89?`:
```sql
|
SELECT MAX("wickets_taken") FROM "table1_2482547_5" WHERE "name"='Bill Lockwood'; |
## Task
Generate a SQL query to answer the following question:
`What's the maximum wickets taken by players named Bill Lockwood?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2482547_5" (
"name" text,
"team_s" text,
"matches" real,
"balls_bowled" real,
"wickets_taken" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the maximum wickets taken by players named Bill Lockwood?`:
```sql
|
SELECT "team_s" FROM "table1_2482547_5" WHERE "average"='15.89'; |
## Task
Generate a SQL query to answer the following question:
`What are all the teams with an average of 15.89?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2482547_5" (
"name" text,
"team_s" text,
"matches" real,
"balls_bowled" real,
"wickets_taken" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the teams with an average of 15.89?`:
```sql
|
SELECT "name" FROM "table1_2482547_5" WHERE "balls_bowled"=4969; |
## Task
Generate a SQL query to answer the following question:
`Who are all the players who've bowled more than 4969 balls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2482547_5" (
"name" text,
"team_s" text,
"matches" real,
"balls_bowled" real,
"wickets_taken" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all the players who've bowled more than 4969 balls?`:
```sql
|
SELECT "average" FROM "table1_2482547_5" WHERE "wickets_taken"=212; |
## Task
Generate a SQL query to answer the following question:
`What are the averages for games with 212 wickets taken?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2482547_5" (
"name" text,
"team_s" text,
"matches" real,
"balls_bowled" real,
"wickets_taken" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the averages for games with 212 wickets taken?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.