output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MAX("no_in_series") FROM "table1_14724369_1" WHERE "production_code"='1ACX03'; |
## Task
Generate a SQL query to answer the following question:
`What is the first number in series that had the production code 1ACX03?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14724369_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first number in series that had the production code 1ACX03?`:
```sql
|
SELECT "title" FROM "table1_14724369_1" WHERE "production_code"='1ACX04'; |
## Task
Generate a SQL query to answer the following question:
`Which title had the production code 1ACX04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14724369_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title had the production code 1ACX04?`:
```sql
|
SELECT "original_air_date" FROM "table1_14724369_1" WHERE "directed_by"='Michael DiMartino'; |
## Task
Generate a SQL query to answer the following question:
`When did the show directed by Michael Dimartino first air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14724369_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the show directed by Michael Dimartino first air?`:
```sql
|
SELECT "no_in_series" FROM "table1_14724369_1" WHERE "directed_by"='Monte Young'; |
## Task
Generate a SQL query to answer the following question:
`Which series numbers were directed by Monte Young?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14724369_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series numbers were directed by Monte Young?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_14724369_1" WHERE "written_by"='Chris Sheridan'; |
## Task
Generate a SQL query to answer the following question:
`How many people directed the show written by Chris Sheridan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14724369_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people directed the show written by Chris Sheridan?`:
```sql
|
SELECT "regular_season" FROM "year_by_year" WHERE "year"=2011; |
## Task
Generate a SQL query to answer the following question:
`What regular seasons occurred in 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What regular seasons occurred in 2011?`:
```sql
|
SELECT MAX("division") FROM "year_by_year"; |
## Task
Generate a SQL query to answer the following question:
`What is the largest numbered?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest numbered?`:
```sql
|
SELECT COUNT("position") FROM "round_two" WHERE "player"='Rene Villemure'; |
## Task
Generate a SQL query to answer the following question:
`How many positions does rene villemure play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions does rene villemure play?`:
```sql
|
SELECT MIN("pick_num") FROM "round_two" WHERE "college_junior_club_team"='Medicine Hat Tigers (WCHL)'; |
## Task
Generate a SQL query to answer the following question:
`What is the pick# for the medicine hat tigers (wchl)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick# for the medicine hat tigers (wchl)?`:
```sql
|
SELECT "nhl_team" FROM "round_two" WHERE "player"='Stan Weir'; |
## Task
Generate a SQL query to answer the following question:
`What nhl team does stan weir play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nhl team does stan weir play for?`:
```sql
|
SELECT "nhl_team" FROM "round_two" WHERE "player"='Dwight Bialowas'; |
## Task
Generate a SQL query to answer the following question:
`What nhl team does dwight bialowas play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nhl team does dwight bialowas play for?`:
```sql
|
SELECT MIN("pick_num") FROM "round_two"; |
## Task
Generate a SQL query to answer the following question:
`Lorne Henning has the lowest pick# of?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Lorne Henning has the lowest pick# of?`:
```sql
|
SELECT "nhl_team" FROM "round_two" WHERE "college_junior_club_team"='Oshawa Generals (OMJHL)'; |
## Task
Generate a SQL query to answer the following question:
`Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='Michel Boudreau'; |
## Task
Generate a SQL query to answer the following question:
`Which colle/junior/club team did Michel Boudreau play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which colle/junior/club team did Michel Boudreau play for?`:
```sql
|
SELECT "player" FROM "round_three" WHERE "position"='Right Wing'; |
## Task
Generate a SQL query to answer the following question:
`Which players played right wing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which players played right wing?`:
```sql
|
SELECT "nationality" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers'; |
## Task
Generate a SQL query to answer the following question:
`Which nationality is the player from the Philadelphia Flyers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality is the player from the Philadelphia Flyers?`:
```sql
|
SELECT "position" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers'; |
## Task
Generate a SQL query to answer the following question:
`Which position did the player hold that played for the Philadelphia Flyers in NHL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position did the player hold that played for the Philadelphia Flyers in NHL?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_three" WHERE "nhl_team"='Buffalo Sabres'; |
## Task
Generate a SQL query to answer the following question:
`Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL?`:
```sql
|
SELECT COUNT("college_junior_club_team") FROM "round_four" WHERE "nhl_team"='Philadelphia Flyers'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of teams for college/junior club for philadelphia flyers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of teams for college/junior club for philadelphia flyers`:
```sql
|
SELECT "position" FROM "round_four" WHERE "player"='Ron Lalonde'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for ron lalonde`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for ron lalonde`:
```sql
|
SELECT "college_junior_club_team" FROM "round_four" WHERE "pick_num"=63; |
## Task
Generate a SQL query to answer the following question:
`Name the college/junior club team for pick number 63`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college/junior club team for pick number 63`:
```sql
|
SELECT COUNT("position") FROM "round_ten" WHERE "player"='Rene Lambert'; |
## Task
Generate a SQL query to answer the following question:
`How many positions did 1972 NHL Draft pick Rene Lambert play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_ten" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions did 1972 NHL Draft pick Rene Lambert play?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_nine" WHERE "nhl_team"='California Golden Seals'; |
## Task
Generate a SQL query to answer the following question:
`what's the college/junior/club team with nhl team being california golden seals`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the college/junior/club team with nhl team being california golden seals`:
```sql
|
SELECT "nhl_team" FROM "round_nine" WHERE "college_junior_club_team"='Brandon Wheat Kings (WCHL)'; |
## Task
Generate a SQL query to answer the following question:
`what's the nhl team with college/junior/club team being brandon wheat kings (wchl)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the nhl team with college/junior/club team being brandon wheat kings (wchl)`:
```sql
|
SELECT "player" FROM "round_nine" WHERE "pick_num"=132; |
## Task
Generate a SQL query to answer the following question:
`who is the the player with pick # being 132`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the player with pick # being 132`:
```sql
|
SELECT COUNT("player") FROM "round_nine" WHERE "nhl_team"='Vancouver Canucks'; |
## Task
Generate a SQL query to answer the following question:
` how many player with nhl team being vancouver canucks`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many player with nhl team being vancouver canucks`:
```sql
|
SELECT "position" FROM "round_nine" WHERE "player"='Ray Boutin'; |
## Task
Generate a SQL query to answer the following question:
`what's the position with player being ray boutin`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the position with player being ray boutin`:
```sql
|
SELECT "borough" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='28702'; |
## Task
Generate a SQL query to answer the following question:
`what is the name of the borough where station uses is 28702?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "railway_stations_currently_in_use" (
"station_and_code" text,
"managed_by" text,
"lines_served" text,
"station_users_2007_8" real,
"station_users_2008_9" text,
"year_opened" text,
"platforms" text,
"borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the borough where station uses is 28702?`:
```sql
|
SELECT "lines_served" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='210076'; |
## Task
Generate a SQL query to answer the following question:
`what are the lines served where station users is 210076?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "railway_stations_currently_in_use" (
"station_and_code" text,
"managed_by" text,
"lines_served" text,
"station_users_2007_8" real,
"station_users_2008_9" text,
"year_opened" text,
"platforms" text,
"borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the lines served where station users is 210076?`:
```sql
|
SELECT "station_and_code" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='130368'; |
## Task
Generate a SQL query to answer the following question:
`whatis hte station code where users are 130368?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "railway_stations_currently_in_use" (
"station_and_code" text,
"managed_by" text,
"lines_served" text,
"station_users_2007_8" real,
"station_users_2008_9" text,
"year_opened" text,
"platforms" text,
"borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `whatis hte station code where users are 130368?`:
```sql
|
SELECT "class_a" FROM "list_of_prior_winners" WHERE "class_aaaaa"='Weslaco' AND "class_aaaa"='Brownwood'; |
## Task
Generate a SQL query to answer the following question:
`Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_prior_winners" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA`:
```sql
|
SELECT "class_a" FROM "list_of_prior_winners" WHERE "class_aa"='Marion'; |
## Task
Generate a SQL query to answer the following question:
`Which is the class A when Marion was the class AA`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_prior_winners" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the class A when Marion was the class AA`:
```sql
|
SELECT "class_aa" FROM "list_of_prior_winners" WHERE "class_a"='Graford'; |
## Task
Generate a SQL query to answer the following question:
`Which is the class AA when graford was the class A`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_prior_winners" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the class AA when graford was the class A`:
```sql
|
SELECT COUNT("class_aa") FROM "list_of_prior_winners" WHERE "school_year"='2002-03'; |
## Task
Generate a SQL query to answer the following question:
`How many class AA in the year 2002-03`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_prior_winners" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many class AA in the year 2002-03`:
```sql
|
SELECT "class_aaaa" FROM "list_of_prior_winners" WHERE "class_aaaaa"='Weslaco' AND "school_year"='1994-95'; |
## Task
Generate a SQL query to answer the following question:
`Who was the class AAAA when class AAAAA was Weslaco in 1994-95`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_prior_winners" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the class AAAA when class AAAAA was Weslaco in 1994-95`:
```sql
|
SELECT "class_aaaaa" FROM "list_of_prior_winners" WHERE "class_aaaa"='San Angelo Lake View'; |
## Task
Generate a SQL query to answer the following question:
`What was the class AAAA when San Angelo Lake View was the class AAAA`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_prior_winners" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the class AAAA when San Angelo Lake View was the class AAAA`:
```sql
|
SELECT "change_2009_to_2010" FROM "africa" WHERE "country"='Tunisia'; |
## Task
Generate a SQL query to answer the following question:
`What are the changes from 2009 to 2010 in Tunisia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "africa" (
"rank" real,
"country" text,
"international_tourist_arrivals_2011" text,
"international_tourist_arrivals_2010" text,
"change_2010_to_2011" text,
"change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the changes from 2009 to 2010 in Tunisia?`:
```sql
|
SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2010_to_2011"='+11.2%'; |
## Task
Generate a SQL query to answer the following question:
`What are the international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "africa" (
"rank" real,
"country" text,
"international_tourist_arrivals_2011" text,
"international_tourist_arrivals_2010" text,
"change_2010_to_2011" text,
"change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ?`:
```sql
|
SELECT "change_2010_to_2011" FROM "africa" WHERE "international_tourist_arrivals_2011"='1.7 million'; |
## Task
Generate a SQL query to answer the following question:
`What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "africa" (
"rank" real,
"country" text,
"international_tourist_arrivals_2011" text,
"international_tourist_arrivals_2010" text,
"change_2010_to_2011" text,
"change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million?`:
```sql
|
SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2009_to_2010"='+11.1%'; |
## Task
Generate a SQL query to answer the following question:
`What are the international tourist arrivals(2010) where change from 2009 to 2010 is +11.1%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "africa" (
"rank" real,
"country" text,
"international_tourist_arrivals_2011" text,
"international_tourist_arrivals_2010" text,
"change_2010_to_2011" text,
"change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the international tourist arrivals(2010) where change from 2009 to 2010 is +11.1%?`:
```sql
|
SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2010_to_2011"='+15%'; |
## Task
Generate a SQL query to answer the following question:
`What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "africa" (
"rank" real,
"country" text,
"international_tourist_arrivals_2011" text,
"international_tourist_arrivals_2010" text,
"change_2010_to_2011" text,
"change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%`:
```sql
|
SELECT "international_tourist_arrivals_2011" FROM "africa" WHERE "country"='Senegal'; |
## Task
Generate a SQL query to answer the following question:
`How many international tourist arrivals were in Senegal in 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "africa" (
"rank" real,
"country" text,
"international_tourist_arrivals_2011" text,
"international_tourist_arrivals_2010" text,
"change_2010_to_2011" text,
"change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many international tourist arrivals were in Senegal in 2011?`:
```sql
|
SELECT "change_2011_to_2012" FROM "europe" WHERE "change_2010_to_2011"='+1.0%'; |
## Task
Generate a SQL query to answer the following question:
`When the change (2010 to 2011) is +1.0% what is the change (2011 to 2012)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"rank" real,
"country" text,
"international_tourist_arrivals_2012" text,
"international_tourist_arrivals_2011" text,
"change_2011_to_2012" text,
"change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the change (2010 to 2011) is +1.0% what is the change (2011 to 2012)?`:
```sql
|
SELECT "country" FROM "europe" WHERE "change_2011_to_2012"='-0.1%'; |
## Task
Generate a SQL query to answer the following question:
`When the change (2011 to 2012) is -0.1% what is the country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"rank" real,
"country" text,
"international_tourist_arrivals_2012" text,
"international_tourist_arrivals_2011" text,
"change_2011_to_2012" text,
"change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the change (2011 to 2012) is -0.1% what is the country?`:
```sql
|
SELECT "country" FROM "europe" WHERE "change_2011_to_2012"='+13.4%'; |
## Task
Generate a SQL query to answer the following question:
`When the change (2011 to 2012) is +13.4% what is the country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"rank" real,
"country" text,
"international_tourist_arrivals_2012" text,
"international_tourist_arrivals_2011" text,
"change_2011_to_2012" text,
"change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the change (2011 to 2012) is +13.4% what is the country?`:
```sql
|
SELECT "change_2010_to_2011" FROM "europe" WHERE "international_tourist_arrivals_2012"='24.1 million'; |
## Task
Generate a SQL query to answer the following question:
`When 24.1 million is international tourist arrivals (2012) what is the change (2010 to 2011) ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"rank" real,
"country" text,
"international_tourist_arrivals_2012" text,
"international_tourist_arrivals_2011" text,
"change_2011_to_2012" text,
"change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 24.1 million is international tourist arrivals (2012) what is the change (2010 to 2011) ?`:
```sql
|
SELECT "change_2011_to_2012" FROM "europe" WHERE "country"='United Kingdom'; |
## Task
Generate a SQL query to answer the following question:
`United kingdom is the country what is the change (2011 to 2012)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"rank" real,
"country" text,
"international_tourist_arrivals_2012" text,
"international_tourist_arrivals_2011" text,
"change_2011_to_2012" text,
"change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `United kingdom is the country what is the change (2011 to 2012)?`:
```sql
|
SELECT COUNT("international_tourist_arrivals_2012") FROM "europe" WHERE "rank"=1; |
## Task
Generate a SQL query to answer the following question:
`When the 1 is the rank what is the overall amount of international tourist arrivals in 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"rank" real,
"country" text,
"international_tourist_arrivals_2012" text,
"international_tourist_arrivals_2011" text,
"change_2011_to_2012" text,
"change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the 1 is the rank what is the overall amount of international tourist arrivals in 2012?`:
```sql
|
SELECT "enrollment" FROM "enrollment_racial_demographics_and_free_" WHERE "hispanic_pct"='3.6'; |
## Task
Generate a SQL query to answer the following question:
`What is the enrollment amount where Hispanic (%) is 3.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enrollment_racial_demographics_and_free_" (
"year" real,
"enrollment" real,
"black_pct" text,
"white_pct" text,
"hispanic_pct" text,
"asian_pct" text,
"free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment amount where Hispanic (%) is 3.6?`:
```sql
|
SELECT "asian_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "year"=2009; |
## Task
Generate a SQL query to answer the following question:
`What percentage of Asians are there in the year 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enrollment_racial_demographics_and_free_" (
"year" real,
"enrollment" real,
"black_pct" text,
"white_pct" text,
"hispanic_pct" text,
"asian_pct" text,
"free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of Asians are there in the year 2009?`:
```sql
|
SELECT "asian_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "year"=2004; |
## Task
Generate a SQL query to answer the following question:
`What percentage of Asians are there in the year 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enrollment_racial_demographics_and_free_" (
"year" real,
"enrollment" real,
"black_pct" text,
"white_pct" text,
"hispanic_pct" text,
"asian_pct" text,
"free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of Asians are there in the year 2004?`:
```sql
|
SELECT "hispanic_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "free_reduced_lunch_pct"='81.4'; |
## Task
Generate a SQL query to answer the following question:
`What percentage of hispanics are there when the free/reduced lunch percentage is 81.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enrollment_racial_demographics_and_free_" (
"year" real,
"enrollment" real,
"black_pct" text,
"white_pct" text,
"hispanic_pct" text,
"asian_pct" text,
"free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of hispanics are there when the free/reduced lunch percentage is 81.4?`:
```sql
|
SELECT "free_reduced_lunch_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "hispanic_pct"='3.7'; |
## Task
Generate a SQL query to answer the following question:
`What percentage of free/reduced lunch are there when the hispanic percentage is 3.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enrollment_racial_demographics_and_free_" (
"year" real,
"enrollment" real,
"black_pct" text,
"white_pct" text,
"hispanic_pct" text,
"asian_pct" text,
"free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of free/reduced lunch are there when the hispanic percentage is 3.7?`:
```sql
|
SELECT "arranger" FROM "track_listing" WHERE "writer"='Nizar Francis'; |
## Task
Generate a SQL query to answer the following question:
`Who was the arranger for the track written by Nizar Francis ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"num" real,
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text,
"dialect" text,
"mix_engineer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the arranger for the track written by Nizar Francis ?`:
```sql
|
SELECT "writer" FROM "track_listing" WHERE "length"='4:29'; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the song 4:29 in length?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"num" real,
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text,
"dialect" text,
"mix_engineer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the song 4:29 in length?`:
```sql
|
SELECT "num" FROM "track_listing" WHERE "length"='4:29'; |
## Task
Generate a SQL query to answer the following question:
`What track number is 4:29 in length?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"num" real,
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text,
"dialect" text,
"mix_engineer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What track number is 4:29 in length?`:
```sql
|
SELECT "females_rank" FROM "nfhs_data" WHERE "states"='Karnataka'; |
## Task
Generate a SQL query to answer the following question:
`What is the female rank in Karnataka?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfhs_data" (
"states" text,
"males_pct" text,
"males_rank" real,
"females_pct" text,
"females_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the female rank in Karnataka?`:
```sql
|
SELECT "title_english" FROM "season_1" WHERE "title_original"='Die Qual der Wahl'; |
## Task
Generate a SQL query to answer the following question:
`What is the English title when the original title is Die Qual Der Wahl?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1" (
"number_of_episode" real,
"number_of_season" real,
"title_original" text,
"title_english" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English title when the original title is Die Qual Der Wahl?`:
```sql
|
SELECT "number_of_episode" FROM "season_1" WHERE "title_english"='Pilot'; |
## Task
Generate a SQL query to answer the following question:
`What is the episode number where the English title is Pilot?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1" (
"number_of_episode" real,
"number_of_season" real,
"title_original" text,
"title_english" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode number where the English title is Pilot?`:
```sql
|
SELECT "original_air_date" FROM "season_1" WHERE "number_of_episode"=6; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date for episode number 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1" (
"number_of_episode" real,
"number_of_season" real,
"title_original" text,
"title_english" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date for episode number 6?`:
```sql
|
SELECT "title_original" FROM "season_1" WHERE "number_of_season"=3; |
## Task
Generate a SQL query to answer the following question:
`What is the original title of season number 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1" (
"number_of_episode" real,
"number_of_season" real,
"title_original" text,
"title_english" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original title of season number 3?`:
```sql
|
SELECT "municipality" FROM "references" WHERE "human_development_index_2000"='0.7827'; |
## Task
Generate a SQL query to answer the following question:
`What municipality where the human development index in the year 2000 was 0.7827?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"inegi_code" real,
"municipality" text,
"municipal_seat" text,
"area_km_2" text,
"population_2005" real,
"population_density_km_2" text,
"human_development_index_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What municipality where the human development index in the year 2000 was 0.7827?`:
```sql
|
SELECT COUNT("population_2005") FROM "references" WHERE "population_density_km_2"='35.9'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"inegi_code" real,
"municipality" text,
"municipal_seat" text,
"area_km_2" text,
"population_2005" real,
"population_density_km_2" text,
"human_development_index_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?`:
```sql
|
SELECT "human_development_index_2000" FROM "references" WHERE "inegi_code"=10; |
## Task
Generate a SQL query to answer the following question:
`What is the human development index for the year 2000 where the ingei code is 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"inegi_code" real,
"municipality" text,
"municipal_seat" text,
"area_km_2" text,
"population_2005" real,
"population_density_km_2" text,
"human_development_index_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the human development index for the year 2000 where the ingei code is 10?`:
```sql
|
SELECT "area_km_2" FROM "references" WHERE "population_density_km_2"='84.3'; |
## Task
Generate a SQL query to answer the following question:
`What is the area (km 2) where the population density (/mk2) is 84.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"inegi_code" real,
"municipality" text,
"municipal_seat" text,
"area_km_2" text,
"population_2005" real,
"population_density_km_2" text,
"human_development_index_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area (km 2) where the population density (/mk2) is 84.3?`:
```sql
|
SELECT "mandate" FROM "election_results" WHERE "list_pct"='12.39%'; |
## Task
Generate a SQL query to answer the following question:
`Name the mandate for list pct 12.39%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"year" real,
"candidate" text,
"hare_quota" real,
"mandate" text,
"list_votes" real,
"list_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mandate for list pct 12.39%`:
```sql
|
SELECT COUNT("list_votes") FROM "election_results" WHERE "list_pct"='20.95%'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of list votes for 20.95%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"year" real,
"candidate" text,
"hare_quota" real,
"mandate" text,
"list_votes" real,
"list_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of list votes for 20.95%`:
```sql
|
SELECT "scoring_rank" FROM "lpga_tour_career_summary" WHERE "year"=2009; |
## Task
Generate a SQL query to answer the following question:
`What was the scoring rank for Angela Stanford in 2009?`
### 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,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the scoring rank for Angela Stanford in 2009?`:
```sql
|
SELECT MAX("money_list_rank") FROM "lpga_tour_career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What was the highest number on money list rank for Angela Stanford's career?`
### 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,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number on money list rank for Angela Stanford's career?`:
```sql
|
SELECT COUNT("2nd") FROM "lpga_tour_career_summary" WHERE "scoring_average"='71.62'; |
## Task
Generate a SQL query to answer the following question:
`In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place?`
### 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,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place?`:
```sql
|
SELECT "player" FROM "statistics" WHERE "3_dart_average"='89.57'; |
## Task
Generate a SQL query to answer the following question:
`who is hte player with a 3 dart avg of 89.57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is hte player with a 3 dart avg of 89.57?`:
```sql
|
SELECT "played" FROM "statistics" WHERE "3_dart_average"='92.06'; |
## Task
Generate a SQL query to answer the following question:
`what are all played with a 3 dart avg is 92.06?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all played with a 3 dart avg is 92.06?`:
```sql
|
SELECT MIN("production_code") FROM "table1_14845640_1" WHERE "u_s_viewers_millions"='16.04'; |
## Task
Generate a SQL query to answer the following question:
`Namw the minimum production code for 16.04 million viewers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14845640_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Namw the minimum production code for 16.04 million viewers`:
```sql
|
SELECT "written_by" FROM "table1_14845640_1" WHERE "u_s_viewers_millions"='16.32'; |
## Task
Generate a SQL query to answer the following question:
`Name the written by for 16.32 million viewers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14845640_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the written by for 16.32 million viewers`:
```sql
|
SELECT MAX("cuts_made") FROM "lpga_tour_career_summary" WHERE "best_finish"='T4'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of cuts made when her best finish is t4?`
### 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,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of cuts made when her best finish is t4?`:
```sql
|
SELECT COUNT("earnings") FROM "lpga_tour_career_summary" WHERE "best_finish"='T2' AND "scoring_average"='71.25'; |
## Task
Generate a SQL query to answer the following question:
`How many total earnings are recorded when her best finish is t2 with a 71.25 scoring average?`
### 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,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total earnings are recorded when her best finish is t2 with a 71.25 scoring average?`:
```sql
|
SELECT MIN("cuts_made") FROM "lpga_tour_career_summary" WHERE "best_finish"='T4'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of cuts made when her best finish is t4?`
### 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,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of cuts made when her best finish is t4?`:
```sql
|
SELECT COUNT("year") FROM "lpga_tour_career_summary" WHERE "money_list_rank"='56'; |
## Task
Generate a SQL query to answer the following question:
`How many years has she ranked 56 on the money list?`
### 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,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years has she ranked 56 on the money list?`:
```sql
|
SELECT MIN("wins") FROM "lpga_tour_career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of wins?`
### 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,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of wins?`:
```sql
|
SELECT "written_by" FROM "table1_14847258_1" WHERE "directed_by"='Steve Gomer'; |
## Task
Generate a SQL query to answer the following question:
`When steve gomer is the director who is the writer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14847258_1" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When steve gomer is the director who is the writer?`:
```sql
|
SELECT "original_air_date" FROM "table1_14847258_1" WHERE "title"='\"There Goes the Bride\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the air date for "there goes the bride"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14847258_1" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air date for "there goes the bride"?`:
```sql
|
SELECT "title" FROM "table1_14847258_1" WHERE "u_s_viewers_millions"='15.03'; |
## Task
Generate a SQL query to answer the following question:
`15.03 million u.s viewers seen what episode?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14847258_1" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `15.03 million u.s viewers seen what episode?`:
```sql
|
SELECT MIN("3_credits") FROM "deuces_wild"; |
## Task
Generate a SQL query to answer the following question:
`Name the most 3 credits`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most 3 credits`:
```sql
|
SELECT MIN("2_credits") FROM "deuces_wild" WHERE "hand"='Straight'; |
## Task
Generate a SQL query to answer the following question:
`Name the least 2 credits for straight hand`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least 2 credits for straight hand`:
```sql
|
SELECT MIN("2_credits") FROM "deuces_wild" WHERE "hand"='Flush'; |
## Task
Generate a SQL query to answer the following question:
`Name the least 2 credits for flush`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least 2 credits for flush`:
```sql
|
SELECT "hand" FROM "deuces_wild" WHERE "1_credit"=200; |
## Task
Generate a SQL query to answer the following question:
`Name the hand for 1 credit 200`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the hand for 1 credit 200`:
```sql
|
SELECT MAX("1_credit") FROM "deuces_wild" WHERE "hand"='Three of a Kind'; |
## Task
Generate a SQL query to answer the following question:
`Name the most 1 credit for three of a kind`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most 1 credit for three of a kind`:
```sql
|
SELECT "points_classification" FROM "classification_leadership" WHERE "general_classification"='Mark Renshaw' AND "team_classification"='Team CSC'; |
## Task
Generate a SQL query to answer the following question:
`Name the points classification for mark renshaw and team csc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage_winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"young_rider_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points classification for mark renshaw and team csc`:
```sql
|
SELECT "episodes" FROM "table1_14855908_3" WHERE "region_1_us"='October 13, 2009'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were released on DVD in the US on October 13, 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14855908_3" (
"dvd_name" text,
"episodes" real,
"region_1_can" text,
"region_1_us" text,
"region_2_fr" text,
"region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were released on DVD in the US on October 13, 2009?`:
```sql
|
SELECT MAX("episodes") FROM "table1_14855908_3" WHERE "region_4"='March 4, 2010'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were put out in Region 4 on March 4, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14855908_3" (
"dvd_name" text,
"episodes" real,
"region_1_can" text,
"region_1_us" text,
"region_2_fr" text,
"region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were put out in Region 4 on March 4, 2010?`:
```sql
|
SELECT MIN("episodes") FROM "table1_14855908_3" WHERE "dvd_name"='Season 1'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were released in the season 1 DVD?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14855908_3" (
"dvd_name" text,
"episodes" real,
"region_1_can" text,
"region_1_us" text,
"region_2_fr" text,
"region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were released in the season 1 DVD?`:
```sql
|
SELECT "original_air_date" FROM "table1_14857583_1" WHERE "title"='\"Runaway\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date for "runaway"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14857583_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for "runaway"?`:
```sql
|
SELECT "altitude_km" FROM "list_of_artificial_radiation_belts" WHERE "explosion"='Hardtack Teak'; |
## Task
Generate a SQL query to answer the following question:
`What was the altitude of the explosion Hardtack Teak?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_artificial_radiation_belts" (
"explosion" text,
"location" text,
"date" text,
"yield_approximate" text,
"altitude_km" text,
"nation_of_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the altitude of the explosion Hardtack Teak?`:
```sql
|
SELECT "altitude_km" FROM "list_of_artificial_radiation_belts" WHERE "date"='1962-07-09'; |
## Task
Generate a SQL query to answer the following question:
`What was the altitude of the event on 1962-07-09?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_artificial_radiation_belts" (
"explosion" text,
"location" text,
"date" text,
"yield_approximate" text,
"altitude_km" text,
"nation_of_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the altitude of the event on 1962-07-09?`:
```sql
|
SELECT "altitude_km" FROM "list_of_artificial_radiation_belts" WHERE "yield_approximate"='1.4 megatons'; |
## Task
Generate a SQL query to answer the following question:
`What was the altitude of the yield of 1.4 megatons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_artificial_radiation_belts" (
"explosion" text,
"location" text,
"date" text,
"yield_approximate" text,
"altitude_km" text,
"nation_of_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the altitude of the yield of 1.4 megatons?`:
```sql
|
SELECT "yield_approximate" FROM "list_of_artificial_radiation_belts" WHERE "explosion"='K-4'; |
## Task
Generate a SQL query to answer the following question:
`What was the yield of the K-4 explosion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_artificial_radiation_belts" (
"explosion" text,
"location" text,
"date" text,
"yield_approximate" text,
"altitude_km" text,
"nation_of_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the yield of the K-4 explosion?`:
```sql
|
SELECT "explosion" FROM "list_of_artificial_radiation_belts" WHERE "altitude_km"='539'; |
## Task
Generate a SQL query to answer the following question:
`What explosion had an altitude of 539 km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_artificial_radiation_belts" (
"explosion" text,
"location" text,
"date" text,
"yield_approximate" text,
"altitude_km" text,
"nation_of_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What explosion had an altitude of 539 km?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='September 23, 1984'; |
## Task
Generate a SQL query to answer the following question:
`List all opponents in the September 23, 1984 game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `List all opponents in the September 23, 1984 game?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "date"='December 2, 1984'; |
## Task
Generate a SQL query to answer the following question:
`What was the score in the game played on December 2, 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the game played on December 2, 1984?`:
```sql
|
SELECT COUNT("record") FROM "schedule" WHERE "week"=11; |
## Task
Generate a SQL query to answer the following question:
`How many scores were there in week 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many scores were there in week 11?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.