output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "2011_2012_state_tournament_location" FROM "girls" WHERE "sport"='Soccer'; |
## Task
Generate a SQL query to answer the following question:
`Where was the 2011-2012 soccer state tournament held?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girls" (
"season" text,
"sport" text,
"tournament_structure" text,
"num_of_divisions" real,
"1st_tournament" real,
"2011_2012_state_tournament_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the 2011-2012 soccer state tournament held?`:
```sql
|
SELECT COUNT("1st_tournament") FROM "girls" WHERE "sport"='Bowling'; |
## Task
Generate a SQL query to answer the following question:
`How many first tournaments are associated with bowling?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girls" (
"season" text,
"sport" text,
"tournament_structure" text,
"num_of_divisions" real,
"1st_tournament" real,
"2011_2012_state_tournament_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many first tournaments are associated with bowling?`:
```sql
|
SELECT COUNT("before") FROM "table1_28498999_3" WHERE "player"='Vaughn Taylor'; |
## Task
Generate a SQL query to answer the following question:
`How many times is the player vaughn taylor listed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_3" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the player vaughn taylor listed?`:
```sql
|
SELECT MIN("after") FROM "table1_28498999_3" WHERE "player"='Adam Scott'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest after when the player is adam scott?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_3" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest after when the player is adam scott?`:
```sql
|
SELECT "country" FROM "table1_28498999_3" WHERE "score"='72-63-71-68=274'; |
## Task
Generate a SQL query to answer the following question:
`What is the country for the score 72-63-71-68=274?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_3" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country for the score 72-63-71-68=274?`:
```sql
|
SELECT "after" FROM "table1_28498999_3" WHERE "player"='Kevin Streelman'; |
## Task
Generate a SQL query to answer the following question:
`What is the after for the player kevin streelman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_3" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the after for the player kevin streelman?`:
```sql
|
SELECT "to_par" FROM "table1_28498999_3" WHERE "after"=33; |
## Task
Generate a SQL query to answer the following question:
`What is the to par when the after is 33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_3" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par when the after is 33?`:
```sql
|
SELECT "country" FROM "table1_28498999_4" WHERE "player"='Charley Hoffman'; |
## Task
Generate a SQL query to answer the following question:
`What country is charley hoffman from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country is charley hoffman from?`:
```sql
|
SELECT MIN("before") FROM "table1_28498999_4" WHERE "score"='63-67-66-71=267'; |
## Task
Generate a SQL query to answer the following question:
`What is the before for the score of 63-67-66-71=267?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the before for the score of 63-67-66-71=267?`:
```sql
|
SELECT "to_par" FROM "table1_28498999_4" WHERE "winnings"=232500; |
## Task
Generate a SQL query to answer the following question:
`What is the to par for the winnings of 232500?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for the winnings of 232500?`:
```sql
|
SELECT "winnings" FROM "table1_28498999_4" WHERE "score"='66-64-67-71=268'; |
## Task
Generate a SQL query to answer the following question:
`What were the winnings for the score of 66-64-67-71=268?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the winnings for the score of 66-64-67-71=268?`:
```sql
|
SELECT MAX("after") FROM "table1_28498999_4" WHERE "player"='Geoff Ogilvy'; |
## Task
Generate a SQL query to answer the following question:
`What is the after for geoff ogilvy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28498999_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the after for geoff ogilvy?`:
```sql
|
SELECT MAX("reset_points") FROM "reset_points" WHERE "player"='Luke Donald'; |
## Task
Generate a SQL query to answer the following question:
`what is the most number where the person is luke donald`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the most number where the person is luke donald`:
```sql
|
SELECT "country" FROM "reset_points" WHERE "player"='Luke Donald'; |
## Task
Generate a SQL query to answer the following question:
`what is the place where the person is luke donald`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the place where the person is luke donald`:
```sql
|
SELECT "player" FROM "reset_points" WHERE "points"=2343; |
## Task
Generate a SQL query to answer the following question:
`what is the person there the numbers is 2343`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the person there the numbers is 2343`:
```sql
|
SELECT COUNT("reset_points") FROM "reset_points" WHERE "player"='Charley Hoffman'; |
## Task
Generate a SQL query to answer the following question:
`what is the number of pieces where the person is charley hoffman`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of pieces where the person is charley hoffman`:
```sql
|
SELECT COUNT("player") FROM "reset_points" WHERE "points"=3015; |
## Task
Generate a SQL query to answer the following question:
`what is the number of people where the pieces is 3015`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of people where the pieces is 3015`:
```sql
|
SELECT "nhl_team" FROM "round_ten" WHERE "player"='Ron Annear'; |
## Task
Generate a SQL query to answer the following question:
`Which team drafted Ron Annear? `
### 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 `Which team drafted Ron Annear? `:
```sql
|
SELECT "nhl_team" FROM "round_ten" WHERE "player"='Joakim Persson'; |
## Task
Generate a SQL query to answer the following question:
`Which team drafted Joakim Persson?`
### 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 `Which team drafted Joakim Persson?`:
```sql
|
SELECT "nhl_team" FROM "round_ten" WHERE "college_junior_club_team"='HC Slavia Praha (Czechoslovakia)'; |
## Task
Generate a SQL query to answer the following question:
`Which team drafted a player from HC Slavia Praha (Czechoslovakia)? `
### 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 `Which team drafted a player from HC Slavia Praha (Czechoslovakia)? `:
```sql
|
SELECT "player" FROM "round_ten" WHERE "nhl_team"='New York Rangers'; |
## Task
Generate a SQL query to answer the following question:
`Which player was drafted by the New York Rangers? `
### 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 `Which player was drafted by the New York Rangers? `:
```sql
|
SELECT "nhl_team" FROM "round_ten" WHERE "player"='Michael Orn'; |
## Task
Generate a SQL query to answer the following question:
`Which team drafted Michael Orn?`
### 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 `Which team drafted Michael Orn?`:
```sql
|
SELECT "position" FROM "round_ten" WHERE "nhl_team"='Washington Capitals'; |
## Task
Generate a SQL query to answer the following question:
`What position was the player who was drafted by the Washington Capitals? `
### 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 `What position was the player who was drafted by the Washington Capitals? `:
```sql
|
SELECT MAX("pick_num") FROM "round_five" WHERE "player"='Timo Lehkonen'; |
## Task
Generate a SQL query to answer the following question:
`What is Timo Lehkonen's highest pick number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"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 Timo Lehkonen's highest pick number?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_five" WHERE "position"='Right Wing' AND "nhl_team"='Chicago Black Hawks'; |
## Task
Generate a SQL query to answer the following question:
`What college/junior/club team played right wing position with NHL team Chicago Black Hawks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"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 college/junior/club team played right wing position with NHL team Chicago Black Hawks?`:
```sql
|
SELECT COUNT("college_junior_club_team") FROM "round_five" WHERE "nationality"='Sweden'; |
## Task
Generate a SQL query to answer the following question:
`How many college/junior/club teams are from Sweden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"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 college/junior/club teams are from Sweden?`:
```sql
|
SELECT "nationality" FROM "round_three" WHERE "player"='Robert Dirk'; |
## Task
Generate a SQL query to answer the following question:
`What is Robert Dirk's nationality?`
### 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 `What is Robert Dirk's nationality?`:
```sql
|
SELECT "nationality" FROM "round_three" WHERE "player"='Trent Yawney'; |
## Task
Generate a SQL query to answer the following question:
`What country is Trent Yawney from?`
### 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 `What country is Trent Yawney from?`:
```sql
|
SELECT COUNT("pick_num") FROM "round_three" WHERE "player"='Michal Pivonka'; |
## Task
Generate a SQL query to answer the following question:
`What is Michal Pivonka's pick number?`
### 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 `What is Michal Pivonka's pick number?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='David McLay'; |
## Task
Generate a SQL query to answer the following question:
`Which team did David McLay 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 team did David McLay play for?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='Robert Dirk'; |
## Task
Generate a SQL query to answer the following question:
`What is Robert Dirk's team?`
### 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 `What is Robert Dirk's team?`:
```sql
|
SELECT MIN("pick_num") FROM "round_three" WHERE "player"='Graeme Bonar'; |
## Task
Generate a SQL query to answer the following question:
`What is Graeme Bonar's lowest pick number?`
### 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 `What is Graeme Bonar's lowest pick number?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_eight" WHERE "player"='Glenn Greenough'; |
## Task
Generate a SQL query to answer the following question:
`where did glenn greenough come from`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_eight" (
"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 `where did glenn greenough come from`:
```sql
|
SELECT COUNT("position") FROM "round_eight" WHERE "nhl_team"='Detroit Red Wings' AND "player"='Urban Nordin'; |
## Task
Generate a SQL query to answer the following question:
`how many parts does detroit red wings person urban nordin play`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_eight" (
"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 parts does detroit red wings person urban nordin play`:
```sql
|
SELECT "religious_affiliation" FROM "state_schools" WHERE "school_website"='http://www.nicholasbreakspearschool.co.uk/'; |
## Task
Generate a SQL query to answer the following question:
`What is the affiliation of the school with the website http://www.nicholasbreakspearschool.co.uk/?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "state_schools" (
"school" text,
"gender" text,
"age_range" text,
"religious_affiliation" text,
"location" text,
"school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the affiliation of the school with the website http://www.nicholasbreakspearschool.co.uk/?`:
```sql
|
SELECT "gender" FROM "state_schools" WHERE "religious_affiliation"='Roman Catholic' AND "location"='AL4'; |
## Task
Generate a SQL query to answer the following question:
`What is the gender of the Roman Catholic school is AL4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "state_schools" (
"school" text,
"gender" text,
"age_range" text,
"religious_affiliation" text,
"location" text,
"school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender of the Roman Catholic school is AL4?`:
```sql
|
SELECT "gender" FROM "state_schools" WHERE "school_website"='http://www.nicholasbreakspearschool.co.uk/'; |
## Task
Generate a SQL query to answer the following question:
`What is the gender of the school which has the website http://www.nicholasbreakspearschool.co.uk/?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "state_schools" (
"school" text,
"gender" text,
"age_range" text,
"religious_affiliation" text,
"location" text,
"school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender of the school which has the website http://www.nicholasbreakspearschool.co.uk/?`:
```sql
|
SELECT "religious_affiliation" FROM "state_schools" WHERE "school_website"='http://www.townsend.herts.sch.uk/'; |
## Task
Generate a SQL query to answer the following question:
`What is the affiliation of the school with website http://www.townsend.herts.sch.uk/?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "state_schools" (
"school" text,
"gender" text,
"age_range" text,
"religious_affiliation" text,
"location" text,
"school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the affiliation of the school with website http://www.townsend.herts.sch.uk/?`:
```sql
|
SELECT "religious_affiliation" FROM "state_schools" WHERE "school_website"='http://www.samuelryderacademy.co.uk/'; |
## Task
Generate a SQL query to answer the following question:
`What is the affiliation of the school whose website is http://www.samuelryderacademy.co.uk/?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "state_schools" (
"school" text,
"gender" text,
"age_range" text,
"religious_affiliation" text,
"location" text,
"school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the affiliation of the school whose website is http://www.samuelryderacademy.co.uk/?`:
```sql
|
SELECT "school_website" FROM "state_schools" WHERE "religious_affiliation"='Church of England'; |
## Task
Generate a SQL query to answer the following question:
`What is the website of the school affiliated with the Church of England?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "state_schools" (
"school" text,
"gender" text,
"age_range" text,
"religious_affiliation" text,
"location" text,
"school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the website of the school affiliated with the Church of England?`:
```sql
|
SELECT "nationality" FROM "round_seven" WHERE "college_junior_club_team"='Oshawa Generals (OHL)'; |
## Task
Generate a SQL query to answer the following question:
`What nationality is listed when the college/junior/club team is oshawa generals (ohl)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"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 nationality is listed when the college/junior/club team is oshawa generals (ohl)?`:
```sql
|
SELECT "player" FROM "round_seven" WHERE "college_junior_club_team"='New Westminster Bruins (WHL)'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player when the college/junior/club team is new westminster bruins (whl)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"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 name of the player when the college/junior/club team is new westminster bruins (whl)?`:
```sql
|
SELECT COUNT("college_junior_club_team") FROM "round_seven" WHERE "nhl_team"='Edmonton Oilers'; |
## Task
Generate a SQL query to answer the following question:
`How many college/junior/club teams are ther when nhl team is edmonton oilers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"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 college/junior/club teams are ther when nhl team is edmonton oilers?`:
```sql
|
SELECT "position" FROM "round_seven" WHERE "nhl_team"='Los Angeles Kings'; |
## Task
Generate a SQL query to answer the following question:
`What is the postion when the nhl team is los angeles kings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"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 postion when the nhl team is los angeles kings?`:
```sql
|
SELECT COUNT("nhl_team") FROM "round_seven" WHERE "college_junior_club_team"='Newton North High School (USHS-MA)'; |
## Task
Generate a SQL query to answer the following question:
`How many nhl teams are listed when college/junior/club team is listed as newton north high school (ushs-ma)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"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 nhl teams are listed when college/junior/club team is listed as newton north high school (ushs-ma)?`:
```sql
|
SELECT "original_air_date_u_s" FROM "table1_28511558_2" WHERE "directed_by"='Victor Cook' AND "written_by"='Brat Jennett'; |
## Task
Generate a SQL query to answer the following question:
`What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28511558_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date_u_s" text,
"original_air_date_international" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.?`:
```sql
|
SELECT "original_air_date_u_s" FROM "table1_28511558_2" WHERE "directed_by"='Curt Geda' AND "written_by"='Mitch Watson'; |
## Task
Generate a SQL query to answer the following question:
`What date did the episode written by Mitch Watson and directed by Curt Geda originally air in the U.S.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28511558_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date_u_s" text,
"original_air_date_international" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode written by Mitch Watson and directed by Curt Geda originally air in the U.S.?`:
```sql
|
SELECT "mountains_classification" FROM "classification_leadership" WHERE "general_classification"='Alberto Contador Kanstantsin Sivtsov' AND "points_classification"='Alessandro Petacchi' AND "winner"='Mark Cavendish'; |
## Task
Generate a SQL query to answer the following question:
`When Alberto Contador Kanstantsin Sivtsov was the general classification and Alessandro Petacchi was the points classification at the same time while Mark Cavendish is the winner, who was the mountain classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Alberto Contador Kanstantsin Sivtsov was the general classification and Alessandro Petacchi was the points classification at the same time while Mark Cavendish is the winner, who was the mountain classification?`:
```sql
|
SELECT "young_rider_classification" FROM "classification_leadership" WHERE "winner"='Alessandro Petacchi'; |
## Task
Generate a SQL query to answer the following question:
`Who was the young rider classification when Alessandro Petacchi won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the young rider classification when Alessandro Petacchi won?`:
```sql
|
SELECT COUNT("young_rider_classification") FROM "classification_leadership" WHERE "winner"='Diego Ulissi'; |
## Task
Generate a SQL query to answer the following question:
`Who was the young rider classification when Diego Ulissi won? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the young rider classification when Diego Ulissi won? `:
```sql
|
SELECT "young_rider_classification" FROM "classification_leadership" WHERE "winner"='Paolo Tiralongo'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the young rider classification when Paolo Tiralongo won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the young rider classification when Paolo Tiralongo won?`:
```sql
|
SELECT "version" FROM "version_history" WHERE "release"='1.0.4'; |
## Task
Generate a SQL query to answer the following question:
`What's the version in the 1.0.4 release?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "version_history" (
"version" text,
"release" text,
"release_date" text,
"end_of_maintenance" text,
"requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the version in the 1.0.4 release?`:
```sql
|
SELECT "release_date" FROM "version_history" WHERE "release"='1.1.10'; |
## Task
Generate a SQL query to answer the following question:
`What's the release date in the 1.1.10 release?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "version_history" (
"version" text,
"release" text,
"release_date" text,
"end_of_maintenance" text,
"requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the release date in the 1.1.10 release?`:
```sql
|
SELECT "end_of_maintenance" FROM "version_history" WHERE "release_date"='August 11, 2013'; |
## Task
Generate a SQL query to answer the following question:
`When's the end of maintenance in the august 11, 2013 release date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "version_history" (
"version" text,
"release" text,
"release_date" text,
"end_of_maintenance" text,
"requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `When's the end of maintenance in the august 11, 2013 release date?`:
```sql
|
SELECT "version" FROM "version_history" WHERE "release"='1.0.12'; |
## Task
Generate a SQL query to answer the following question:
`What's the version of the 1.0.12 release?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "version_history" (
"version" text,
"release" text,
"release_date" text,
"end_of_maintenance" text,
"requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the version of the 1.0.12 release?`:
```sql
|
SELECT COUNT("version") FROM "version_history" WHERE "release"='1.0.9'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the 1.0.9 release version?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "version_history" (
"version" text,
"release" text,
"release_date" text,
"end_of_maintenance" text,
"requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the 1.0.9 release version?`:
```sql
|
SELECT COUNT("version") FROM "version_history" WHERE "release"='1.0.12'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the 1.0.12 release version?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "version_history" (
"version" text,
"release" text,
"release_date" text,
"end_of_maintenance" text,
"requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the 1.0.12 release version?`:
```sql
|
SELECT "event_3_africa_stone" FROM "heat_4" WHERE "event_2_squat_lift"='1= (11 reps)' AND "event_4_overhead_lift"='3= (5 reps)'; |
## Task
Generate a SQL query to answer the following question:
`What is the event 3 africa stone result for the man with an 1= (11 reps) event 2 squat lift result and a 3= (5 reps) event 4 overhead lift i result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_4" (
"position" text,
"name" text,
"nationality" text,
"event_1_giant_farmers_walk" text,
"event_2_squat_lift" text,
"event_3_africa_stone" text,
"event_4_overhead_lift" text,
"event_5_deadlift_hold" text,
"event_6_loading_race" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the event 3 africa stone result for the man with an 1= (11 reps) event 2 squat lift result and a 3= (5 reps) event 4 overhead lift i result?`:
```sql
|
SELECT "no_in_series" FROM "table1_28561455_1" WHERE "u_s_viewers_million"='11.84'; |
## Task
Generate a SQL query to answer the following question:
`For how many series were there 11.84 million watchers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28561455_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `For how many series were there 11.84 million watchers?`:
```sql
|
SELECT MIN("no_in_season") FROM "table1_28561455_1"; |
## Task
Generate a SQL query to answer the following question:
`What's the smallest season number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28561455_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest season number?`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_28561455_1" WHERE "title"='\"Bad Girls\"'; |
## Task
Generate a SQL query to answer the following question:
`How many people watched the episode "bad girls"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28561455_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people watched the episode "bad girls"?`:
```sql
|
SELECT "written_by" FROM "table1_28561455_1" WHERE "directed_by"='Peter O''Fallon'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episodes that were directed by Peter O'Fallon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28561455_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episodes that were directed by Peter O'Fallon?`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_28561455_1" WHERE "written_by"='Meredith Averill'; |
## Task
Generate a SQL query to answer the following question:
`What was the latest episode number that Meredith Averill wrote?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28561455_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest episode number that Meredith Averill wrote?`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_28561455_1" WHERE "directed_by"='Tom DiCillo'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest episode number that was directed by Tom Dicillo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28561455_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest episode number that was directed by Tom Dicillo?`:
```sql
|
SELECT COUNT("germany") FROM "regional_championship" WHERE "italy"='Naples LL Naples' AND "england"='London Area Youth London'; |
## Task
Generate a SQL query to answer the following question:
`How many years did Germany participate, when the team from Italy was Naples LL Naples and the team from England was London Area Youth London?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_championship" (
"year" real,
"austria" text,
"belgium" text,
"england" text,
"germany" text,
"italy" text,
"netherlands" text,
"saudi_arabia" text,
"spain" text,
"united_arab_emirates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did Germany participate, when the team from Italy was Naples LL Naples and the team from England was London Area Youth London?`:
```sql
|
SELECT "austria" FROM "regional_championship" WHERE "netherlands"='Brunssum/Schinnen LL Brunssum' AND "belgium"='SHAPE and Waterloo LL Brussels'; |
## Task
Generate a SQL query to answer the following question:
`What was the team from Austria when the Netherlands sent Brunssum/Schinnen LL Brunssum and Belgium sent Shape and Waterloo LL Brussels?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_championship" (
"year" real,
"austria" text,
"belgium" text,
"england" text,
"germany" text,
"italy" text,
"netherlands" text,
"saudi_arabia" text,
"spain" text,
"united_arab_emirates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team from Austria when the Netherlands sent Brunssum/Schinnen LL Brunssum and Belgium sent Shape and Waterloo LL Brussels?`:
```sql
|
SELECT COUNT("highest_score") FROM "batting_averages" WHERE "100s"=1; |
## Task
Generate a SQL query to answer the following question:
`How many times has the 100s record been 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" real,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times has the 100s record been 1?`:
```sql
|
SELECT MAX("matches") FROM "batting_averages"; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of matches in a game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" real,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of matches in a game?`:
```sql
|
SELECT MIN("highest_score") FROM "batting_averages" WHERE "average"='9.88'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest score in those games where the average is 9.88?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" real,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest score in those games where the average is 9.88?`:
```sql
|
SELECT "digital_channel" FROM "broadcast" WHERE "virtual_channel"='23.2'; |
## Task
Generate a SQL query to answer the following question:
`What digital channel corresponds to virtual channel 23.2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "broadcast" (
"callsign" text,
"city_of_license" text,
"virtual_channel" text,
"digital_channel" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What digital channel corresponds to virtual channel 23.2?`:
```sql
|
SELECT "digital_channel" FROM "broadcast" WHERE "virtual_channel"='5.2'; |
## Task
Generate a SQL query to answer the following question:
`What digital channel corresponds to virtual channel 5.2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "broadcast" (
"callsign" text,
"city_of_license" text,
"virtual_channel" text,
"digital_channel" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What digital channel corresponds to virtual channel 5.2?`:
```sql
|
SELECT "network" FROM "broadcast" WHERE "virtual_channel"='23.1'; |
## Task
Generate a SQL query to answer the following question:
`What network airs on virtual channel 23.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "broadcast" (
"callsign" text,
"city_of_license" text,
"virtual_channel" text,
"digital_channel" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network airs on virtual channel 23.1?`:
```sql
|
SELECT COUNT("network") FROM "broadcast" WHERE "virtual_channel"='23.4'; |
## Task
Generate a SQL query to answer the following question:
`How many networks run on virtual channel 23.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "broadcast" (
"callsign" text,
"city_of_license" text,
"virtual_channel" text,
"digital_channel" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many networks run on virtual channel 23.4?`:
```sql
|
SELECT "city_of_license" FROM "broadcast" WHERE "virtual_channel"='8.2'; |
## Task
Generate a SQL query to answer the following question:
`What city licensed the broadcast on virtual channel 8.2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "broadcast" (
"callsign" text,
"city_of_license" text,
"virtual_channel" text,
"digital_channel" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city licensed the broadcast on virtual channel 8.2?`:
```sql
|
SELECT "title" FROM "table1_28582091_2" WHERE "production_code"='2J5515'; |
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode with production code 2J5515?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28582091_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode with production code 2J5515?`:
```sql
|
SELECT "2007_08" FROM "table1_28578233_1" WHERE "2010_11"='1,633.6'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2007/08number when the 2010/11 is 1,633.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28578233_1" (
"ime_exchange_including_spot_credit_and_forward_transactions" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007/08number when the 2010/11 is 1,633.6?`:
```sql
|
SELECT "ime_exchange_including_spot_credit_and_forward_transactions" FROM "table1_28578233_1" WHERE "2007_08"='6,443.8'; |
## Task
Generate a SQL query to answer the following question:
`When 2007/08 is 6,443.8 what is ime exchange (including spot, credit and forward transactions)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28578233_1" (
"ime_exchange_including_spot_credit_and_forward_transactions" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 2007/08 is 6,443.8 what is ime exchange (including spot, credit and forward transactions)?`:
```sql
|
SELECT "2008_09" FROM "table1_28578233_1" WHERE "ime_exchange_including_spot_credit_and_forward_transactions"='Agricultural - Volume (thousand tons)'; |
## Task
Generate a SQL query to answer the following question:
`When ime exchange (including spot, credit and forward transactions) is agricultural - volume (thousand tons) what is 2008/09?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28578233_1" (
"ime_exchange_including_spot_credit_and_forward_transactions" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `When ime exchange (including spot, credit and forward transactions) is agricultural - volume (thousand tons) what is 2008/09?`:
```sql
|
SELECT COUNT("2008_09") FROM "table1_28578233_1" WHERE "ime_exchange_including_spot_credit_and_forward_transactions"='Oil Products - Value (billion rials)'; |
## Task
Generate a SQL query to answer the following question:
`When ime exchange (including spot, credit and forward transactions) is oil products - value (billion rials) what is the 2008/09 number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28578233_1" (
"ime_exchange_including_spot_credit_and_forward_transactions" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `When ime exchange (including spot, credit and forward transactions) is oil products - value (billion rials) what is the 2008/09 number?`:
```sql
|
SELECT "2010_11" FROM "table1_28578233_1" WHERE "2007_08"='772.6'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2010/11 number when the 2007/08 is 772.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28578233_1" (
"ime_exchange_including_spot_credit_and_forward_transactions" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010/11 number when the 2007/08 is 772.6?`:
```sql
|
SELECT "2010_11" FROM "table1_28578233_1" WHERE "ime_exchange_including_spot_credit_and_forward_transactions"='Agricultural - Value (billion rials )'; |
## Task
Generate a SQL query to answer the following question:
`When the ime exchange (including spot, credit and forward transactions) is agricultural - value (billion rials ) what is 2010/11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28578233_1" (
"ime_exchange_including_spot_credit_and_forward_transactions" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the ime exchange (including spot, credit and forward transactions) is agricultural - value (billion rials ) what is 2010/11?`:
```sql
|
SELECT "chassis" FROM "entries" WHERE "driver"='Ludwig Fischer'; |
## Task
Generate a SQL query to answer the following question:
`Name the chassis for ludwig fischer`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the chassis for ludwig fischer`:
```sql
|
SELECT "entrant" FROM "entries" WHERE "driver"='Bruno Sterzi'; |
## Task
Generate a SQL query to answer the following question:
`Name the entrant for bruno sterzi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the entrant for bruno sterzi`:
```sql
|
SELECT MIN("no") FROM "entries" WHERE "driver"='Nello Pagani'; |
## Task
Generate a SQL query to answer the following question:
`Name the least number for nello pagani`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least number for nello pagani`:
```sql
|
SELECT MAX("consecutive_starts") FROM "linebackers" WHERE "player"='Jason Gildon'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest number of consecutive starts for jason gildon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "linebackers" (
"position" text,
"player" text,
"period" text,
"teams" text,
"consecutive_starts" real,
"playoffs" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of consecutive starts for jason gildon?`:
```sql
|
SELECT "teams" FROM "linebackers" WHERE "consecutive_starts"=120; |
## Task
Generate a SQL query to answer the following question:
`What team(s) had 120 consecutive starts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "linebackers" (
"position" text,
"player" text,
"period" text,
"teams" text,
"consecutive_starts" real,
"playoffs" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team(s) had 120 consecutive starts?`:
```sql
|
SELECT "period" FROM "linebackers" WHERE "position"='Left inside linebacker'; |
## Task
Generate a SQL query to answer the following question:
`What period(s) featured a left inside linebacker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "linebackers" (
"position" text,
"player" text,
"period" text,
"teams" text,
"consecutive_starts" real,
"playoffs" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What period(s) featured a left inside linebacker?`:
```sql
|
SELECT MAX("total") FROM "linebackers" WHERE "period"='9/21/1975 – 12/16/1984'; |
## Task
Generate a SQL query to answer the following question:
`How many consecutive starts for the linebacker who played from 9/21/1975 – 12/16/1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "linebackers" (
"position" text,
"player" text,
"period" text,
"teams" text,
"consecutive_starts" real,
"playoffs" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many consecutive starts for the linebacker who played from 9/21/1975 – 12/16/1984?`:
```sql
|
SELECT "no_in_series" FROM "table1_28611413_2" WHERE "title"='\"Standoff\"'; |
## Task
Generate a SQL query to answer the following question:
`What episode is "Standoff"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28611413_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_no" real,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode is "Standoff"?`:
```sql
|
SELECT "title" FROM "table1_28611413_2" WHERE "written_by"='Frank Military'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode written by Frank Military?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28611413_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_no" real,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode written by Frank Military?`:
```sql
|
SELECT COUNT("no_in_series") FROM "table1_28611413_2" WHERE "viewers_millions"='16.15'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons had 16.15 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28611413_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_no" real,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons had 16.15 million viewers?`:
```sql
|
SELECT "original_air_date" FROM "table1_28611413_2" WHERE "directed_by"='John P. Kousakis'; |
## Task
Generate a SQL query to answer the following question:
`What is air date of the episode directed by John P. Kousakis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28611413_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_no" real,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is air date of the episode directed by John P. Kousakis?`:
```sql
|
SELECT "player" FROM "entire_conference" WHERE "totals"='105-161'; |
## Task
Generate a SQL query to answer the following question:
`Who was the player when totals were 105-161?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entire_conference" (
"category" text,
"player" text,
"team" text,
"games_played" real,
"totals" text,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player when totals were 105-161?`:
```sql
|
SELECT COUNT("average") FROM "entire_conference" WHERE "totals"='105-161'; |
## Task
Generate a SQL query to answer the following question:
`How many items appear in the average column when the totals were 105-161?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entire_conference" (
"category" text,
"player" text,
"team" text,
"games_played" real,
"totals" text,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many items appear in the average column when the totals were 105-161?`:
```sql
|
SELECT "totals" FROM "entire_conference" WHERE "average"='6.25'; |
## Task
Generate a SQL query to answer the following question:
`What were the totals when the average is 6.25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entire_conference" (
"category" text,
"player" text,
"team" text,
"games_played" real,
"totals" text,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the totals when the average is 6.25?`:
```sql
|
SELECT "team" FROM "entire_conference" WHERE "category"='Field goal percentage'; |
## Task
Generate a SQL query to answer the following question:
`Who was the team when the category is field goal percentage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entire_conference" (
"category" text,
"player" text,
"team" text,
"games_played" real,
"totals" text,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the team when the category is field goal percentage?`:
```sql
|
SELECT "election" FROM "federal_election_results" WHERE "pct_of_popular_vote"='4.48%'; |
## Task
Generate a SQL query to answer the following question:
`Name the election for the percent of popular vote being 4.48%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "federal_election_results" (
"election" real,
"num_of_candidates_nominated" real,
"num_of_seats_won" real,
"num_of_total_votes" real,
"pct_of_popular_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the election for the percent of popular vote being 4.48%`:
```sql
|
SELECT MAX("3rd_runner_up") FROM "references" WHERE "country"='Taiwan'; |
## Task
Generate a SQL query to answer the following question:
`How many times was taiwan 3rd runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"rank" real,
"country" text,
"miss_universe" text,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"semifinalists" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was taiwan 3rd runner-up?`:
```sql
|
SELECT COUNT("miss_universe") FROM "references" WHERE "country"='South Africa'; |
## Task
Generate a SQL query to answer the following question:
`How many miss universes did south africa have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"rank" real,
"country" text,
"miss_universe" text,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"semifinalists" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many miss universes did south africa have?`:
```sql
|
SELECT MAX("total") FROM "references" WHERE "country"='Russia'; |
## Task
Generate a SQL query to answer the following question:
`How many placements in total does russia have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"rank" real,
"country" text,
"miss_universe" text,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"semifinalists" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many placements in total does russia have?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.