output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "to_par" FROM "final_round" WHERE "score"='71-71-70-70=282'; |
## Task
Generate a SQL query to answer the following question:
`When the score was 71-71-70-70=282 what was the To par recorded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the score was 71-71-70-70=282 what was the To par recorded?`:
```sql
|
SELECT "score" FROM "final_round" WHERE "player"='tom lehman'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for Tom Lehman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for Tom Lehman?`:
```sql
|
SELECT SUM("november") FROM "schedule_and_results" WHERE "game">23; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of November, when Game is greater than 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of November, when Game is greater than 23?`:
```sql
|
SELECT SUM("november") FROM "schedule_and_results" WHERE "game"=17; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of November, when Game is "17"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of November, when Game is "17"?`:
```sql
|
SELECT MAX("game") FROM "schedule_and_results" WHERE "opponent"='chicago black hawks' AND "november"<16; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Game, when Opponent is "Chicago Black Hawks", and when November is less than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Game, when Opponent is "Chicago Black Hawks", and when November is less than 16?`:
```sql
|
SELECT "player" FROM "made_the_cut" WHERE "total"=297; |
## Task
Generate a SQL query to answer the following question:
`What player has a total of 297?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a total of 297?`:
```sql
|
SELECT "country" FROM "made_the_cut" WHERE "total"<289 AND "finish"='t2'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a total less than 289 and finished t2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a total less than 289 and finished t2?`:
```sql
|
SELECT "player" FROM "made_the_cut" WHERE "finish"='t35'; |
## Task
Generate a SQL query to answer the following question:
`Which player finished t35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player finished t35?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "total">289 AND "year_s_won"='1979'; |
## Task
Generate a SQL query to answer the following question:
`What finish has a total of more than 289 and won in 1979?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What finish has a total of more than 289 and won in 1979?`:
```sql
|
SELECT "name" FROM "loan_out" WHERE "moving_to"='nec nijmegen'; |
## Task
Generate a SQL query to answer the following question:
`What is Name, when Moving To is "NEC Nijmegen"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Moving To is "NEC Nijmegen"?`:
```sql
|
SELECT "date_from" FROM "loan_out" WHERE "moving_to"='birmingham city'; |
## Task
Generate a SQL query to answer the following question:
`What is Date From, when Moving To is "Birmingham City"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date From, when Moving To is "Birmingham City"?`:
```sql
|
SELECT "pos" FROM "loan_out" WHERE "date_to"='30 june 2009' AND "name"='eddie johnson'; |
## Task
Generate a SQL query to answer the following question:
`What is Pos., when Date To is "30 June 2009", and when Name is "Eddie Johnson"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pos., when Date To is "30 June 2009", and when Name is "Eddie Johnson"?`:
```sql
|
SELECT "pos" FROM "loan_out" WHERE "date_from"='28 august 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is Pos., when Date From is "28 August 2008"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pos., when Date From is "28 August 2008"?`:
```sql
|
SELECT "moving_to" FROM "loan_out" WHERE "name"='leon andreasen'; |
## Task
Generate a SQL query to answer the following question:
`What is Moving To, when Name is "Leon Andreasen"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Moving To, when Name is "Leon Andreasen"?`:
```sql
|
SELECT "date_to" FROM "loan_out" WHERE "name"='lee cook'; |
## Task
Generate a SQL query to answer the following question:
`What is Date To, when Name is "Lee Cook"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date To, when Name is "Lee Cook"?`:
```sql
|
SELECT "listed" FROM "references" WHERE "name"='oakachoy covered bridge'; |
## Task
Generate a SQL query to answer the following question:
`When was the oakachoy covered bridge listed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the oakachoy covered bridge listed?`:
```sql
|
SELECT "county" FROM "references" WHERE "name"='swann covered bridge'; |
## Task
Generate a SQL query to answer the following question:
`In which county is the swann covered bridge located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which county is the swann covered bridge located?`:
```sql
|
SELECT "name" FROM "references" WHERE "county"='blount' AND "location"='nectar'; |
## Task
Generate a SQL query to answer the following question:
`Which bridge is located in Nectar, in Blount County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which bridge is located in Nectar, in Blount County?`:
```sql
|
SELECT "county" FROM "references" WHERE "built"='1934'; |
## Task
Generate a SQL query to answer the following question:
`Which county built a bridge in 1934?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which county built a bridge in 1934?`:
```sql
|
SELECT "built" FROM "references" WHERE "county"='blount' AND "listed"='1981-08-20' AND "location"='cleveland'; |
## Task
Generate a SQL query to answer the following question:
`In which year did Blount County build a bridge in Cleveland that was listed on 1981-08-20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year did Blount County build a bridge in Cleveland that was listed on 1981-08-20?`:
```sql
|
SELECT "score" FROM "pool_b" WHERE "time"='18:00' AND "set_3"='13–25'; |
## Task
Generate a SQL query to answer the following question:
`What is the score with a time at 18:00 and a score for set 3 of 13–25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_b" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score with a time at 18:00 and a score for set 3 of 13–25?`:
```sql
|
SELECT "set_2" FROM "pool_b" WHERE "set_1"='19–25'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for set 2 when the score of set 1 is 19–25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_b" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for set 2 when the score of set 1 is 19–25?`:
```sql
|
SELECT "total" FROM "pool_b" WHERE "time"='16:00' AND "set_3"='18–25'; |
## Task
Generate a SQL query to answer the following question:
`How much is the total with a time at 16:00 and score for set 3 of 18–25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_b" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the total with a time at 16:00 and score for set 3 of 18–25?`:
```sql
|
SELECT "set_2" FROM "pool_b" WHERE "time"='18:00' AND "set_1"='18–25'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for set 2 when the time is 18:00 and the score of set 1 is 18–25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_b" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for set 2 when the time is 18:00 and the score of set 1 is 18–25?`:
```sql
|
SELECT "total" FROM "pool_b" WHERE "set_3"='13–25'; |
## Task
Generate a SQL query to answer the following question:
`What was the total with a score in set 3 of 13–25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_b" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total with a score in set 3 of 13–25?`:
```sql
|
SELECT "champion_seed" FROM "tournament_champions" WHERE "score"='79–75 ot'; |
## Task
Generate a SQL query to answer the following question:
`What was the Champion of the Tournament with a Score of 79–75 OT?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_champions" (
"year" text,
"champion_seed" text,
"score" text,
"runner_up_seed" text,
"most_valuable_player" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Champion of the Tournament with a Score of 79–75 OT?`:
```sql
|
SELECT "champion_seed" FROM "tournament_champions" WHERE "score"='65–56'; |
## Task
Generate a SQL query to answer the following question:
`What was the Champion of the Game with a Score of 65–56?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_champions" (
"year" text,
"champion_seed" text,
"score" text,
"runner_up_seed" text,
"most_valuable_player" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Champion of the Game with a Score of 65–56?`:
```sql
|
SELECT "manufacturer" FROM "moto_gp_classification" WHERE "laps"=21 AND "grid">16 AND "rider"='akira ryō'; |
## Task
Generate a SQL query to answer the following question:
`Which Manufacturer has a Laps of 21, a Grid larger than 16, and a Rider of akira ryō?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Manufacturer has a Laps of 21, a Grid larger than 16, and a Rider of akira ryō?`:
```sql
|
SELECT "time_retired" FROM "moto_gp_classification" WHERE "rider"='daijiro kato'; |
## Task
Generate a SQL query to answer the following question:
`Which Time/Retired has a Rider of daijiro kato?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time/Retired has a Rider of daijiro kato?`:
```sql
|
SELECT "manufacturer" FROM "moto_gp_classification" WHERE "rider"='daijiro kato'; |
## Task
Generate a SQL query to answer the following question:
`Which Manufacturer has a Rider of daijiro kato?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Manufacturer has a Rider of daijiro kato?`:
```sql
|
SELECT "time_retired" FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "rider"='garry mccoy'; |
## Task
Generate a SQL query to answer the following question:
`Which Time/Retired has a Manufacturer of yamaha, and a Rider of garry mccoy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time/Retired has a Manufacturer of yamaha, and a Rider of garry mccoy?`:
```sql
|
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round"<2 AND "nationality"='united states'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the team with round less than 2, and the nationality is the United States?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the team with round less than 2, and the nationality is the United States?`:
```sql
|
SELECT "position" FROM "draft_picks" WHERE "player"='john carlson'; |
## Task
Generate a SQL query to answer the following question:
`What position does John Carlson play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does John Carlson play?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "game"=5; |
## Task
Generate a SQL query to answer the following question:
`Who had the highest rebounds on game 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest rebounds on game 5?`:
```sql
|
SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "round">7 AND "pick"<7; |
## Task
Generate a SQL query to answer the following question:
`How many Overall went in a round larger than 7 with a pick less than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Overall went in a round larger than 7 with a pick less than 7?`:
```sql
|
SELECT MAX("events") FROM "2013_money_leaders" WHERE "country"='norway' AND "prize_money"<'2,241,847'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest event number for player from Norway with prize money less than $2,241,847?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_money_leaders" (
"rank" real,
"player" text,
"country" text,
"events" real,
"prize_money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest event number for player from Norway with prize money less than $2,241,847?`:
```sql
|
SELECT COUNT("rank") FROM "2013_money_leaders" WHERE "events">23 AND "prize_money">'823,783'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank for the player with events greater than 23 and prize money in excess of $823,783?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_money_leaders" (
"rank" real,
"player" text,
"country" text,
"events" real,
"prize_money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for the player with events greater than 23 and prize money in excess of $823,783?`:
```sql
|
SELECT MAX("prize_money") FROM "2013_money_leaders" WHERE "rank"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the prize money for the player ranked 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_money_leaders" (
"rank" real,
"player" text,
"country" text,
"events" real,
"prize_money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the prize money for the player ranked 1?`:
```sql
|
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "event"='kotc 25: flaming fury'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest round for the KOTC 25: Flaming Fury event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest round for the KOTC 25: Flaming Fury event?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='kotc 25: flaming fury'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for the KOTC 25: Flaming Fury event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent for the KOTC 25: Flaming Fury event?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round">1 AND "event"='wmma 1: mccorkle vs. heden'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the WMMA 1: McCorkle vs. Heden event that went more than 1 round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the WMMA 1: McCorkle vs. Heden event that went more than 1 round?`:
```sql
|
SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='25-15'; |
## Task
Generate a SQL query to answer the following question:
`What was the result when his record was 25-15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when his record was 25-15?`:
```sql
|
SELECT "position" FROM "draft_picks" WHERE "round"<6 AND "nationality"='denmark'; |
## Task
Generate a SQL query to answer the following question:
`What is Position, when Round is less than 6, and when Nationality is "Denmark"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Round is less than 6, and when Nationality is "Denmark"?`:
```sql
|
SELECT "position" FROM "draft_picks" WHERE "nationality"='canada' AND "round">3; |
## Task
Generate a SQL query to answer the following question:
`What is Position, when Nationality is "Canada", and when Round is greater than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Nationality is "Canada", and when Round is greater than 3?`:
```sql
|
SELECT COUNT("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='kelowna rockets ( whl )'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Round, when College/Junior/Club Team (League) is "Kelowna Rockets ( WHL )"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Round, when College/Junior/Club Team (League) is "Kelowna Rockets ( WHL )"?`:
```sql
|
SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='15-5'; |
## Task
Generate a SQL query to answer the following question:
`What round did the fight last when Mikhail Ilyukhin's record was 15-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did the fight last when Mikhail Ilyukhin's record was 15-5?`:
```sql
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "res"='win' AND "record"='13-5'; |
## Task
Generate a SQL query to answer the following question:
`What method did Mikhail Ilyukhin win the fight in round 1 when his record was 13-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What method did Mikhail Ilyukhin win the fight in round 1 when his record was 13-5?`:
```sql
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='4-0'; |
## Task
Generate a SQL query to answer the following question:
`What was the method of resolution when Mikhail Ilyukhin's record was 4-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the method of resolution when Mikhail Ilyukhin's record was 4-0?`:
```sql
|
SELECT "date" FROM "december" WHERE "score"='123-112'; |
## Task
Generate a SQL query to answer the following question:
`When was the score 123-112?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the score 123-112?`:
```sql
|
SELECT "opponent" FROM "december" WHERE "score"='95-118'; |
## Task
Generate a SQL query to answer the following question:
`Who did they play when the score was 95-118?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did they play when the score was 95-118?`:
```sql
|
SELECT "opponent" FROM "december" WHERE "score"='95-114'; |
## Task
Generate a SQL query to answer the following question:
`Who did they play when the score was 95-114?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did they play when the score was 95-114?`:
```sql
|
SELECT "date" FROM "december" WHERE "score"='92-134'; |
## Task
Generate a SQL query to answer the following question:
`When was the score 92-134?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the score 92-134?`:
```sql
|
SELECT "score" FROM "december" WHERE "record"='2-32'; |
## Task
Generate a SQL query to answer the following question:
`When they were 2-32 what did they score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When they were 2-32 what did they score?`:
```sql
|
SELECT MAX("to_par") FROM "past_champions_in_the_field" WHERE "total"<290; |
## Task
Generate a SQL query to answer the following question:
`When the total was smaller than 290, what was the highest To par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_champions_in_the_field" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the total was smaller than 290, what was the highest To par?`:
```sql
|
SELECT COUNT("to_par") FROM "past_champions_in_the_field" WHERE "player"='lee trevino'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of To par for Lee Trevino?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_champions_in_the_field" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of To par for Lee Trevino?`:
```sql
|
SELECT SUM("to_par") FROM "past_champions_in_the_field" WHERE "finish"='t11'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of To par when the Finish is t11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_champions_in_the_field" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of To par when the Finish is t11?`:
```sql
|
SELECT AVG("runs") FROM "best_batting_averages" WHERE "player"='donald bradman'; |
## Task
Generate a SQL query to answer the following question:
`What was Donald Bradman's average runs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_batting_averages" (
"player" text,
"team" text,
"matches" real,
"innings" real,
"runs" real,
"average" real,
"highest_score" text,
"100s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Donald Bradman's average runs?`:
```sql
|
SELECT MAX("runs") FROM "best_batting_averages" WHERE "matches">5; |
## Task
Generate a SQL query to answer the following question:
`What was the highest amount of runs for more than 5 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_batting_averages" (
"player" text,
"team" text,
"matches" real,
"innings" real,
"runs" real,
"average" real,
"highest_score" text,
"100s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest amount of runs for more than 5 matches?`:
```sql
|
SELECT MIN("shot_pct") FROM "standings" WHERE "blank_ends">6; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Shot Pct., when Blank Ends is greater than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Shot Pct., when Blank Ends is greater than 6?`:
```sql
|
SELECT "shot_pct" FROM "standings" WHERE "stolen_ends"=2; |
## Task
Generate a SQL query to answer the following question:
`What is Shot Pct., when Stolen Ends is 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Shot Pct., when Stolen Ends is 2?`:
```sql
|
SELECT COUNT("ends_won") FROM "standings" WHERE "province"='saskatchewan' AND "stolen_ends"<6; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Ends Won, when Province is "Saskatchewan", and when Stolen Ends is less than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Ends Won, when Province is "Saskatchewan", and when Stolen Ends is less than 6?`:
```sql
|
SELECT "date" FROM "round_10" WHERE "away_team"='perth wildcats'; |
## Task
Generate a SQL query to answer the following question:
`On what date were Perth Wildcats the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date were Perth Wildcats the away team?`:
```sql
|
SELECT "date" FROM "round_10" WHERE "score"='121-113'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the score 121-113?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the score 121-113?`:
```sql
|
SELECT "date" FROM "round_10" WHERE "home_team"='adelaide 36ers'; |
## Task
Generate a SQL query to answer the following question:
`On what date was Adelaide 36ers the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was Adelaide 36ers the home team?`:
```sql
|
SELECT "report" FROM "round_10" WHERE "venue"='townsville entertainment centre'; |
## Task
Generate a SQL query to answer the following question:
`Which report is for Townsville Entertainment Centre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which report is for Townsville Entertainment Centre?`:
```sql
|
SELECT "home_team" FROM "round_10" WHERE "score"='85-101'; |
## Task
Generate a SQL query to answer the following question:
`Which home team had a score of 85-101?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team had a score of 85-101?`:
```sql
|
SELECT "box_score" FROM "round_10" WHERE "home_team"='melbourne tigers'; |
## Task
Generate a SQL query to answer the following question:
`What was the box core for the Melbourne Tigers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the box core for the Melbourne Tigers?`:
```sql
|
SELECT "author" FROM "series_1" WHERE "featuring"='leela, the master, kraals'; |
## Task
Generate a SQL query to answer the following question:
`who is the author when featuring is leela, the master, kraals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"series_sorted" text,
"title" text,
"author" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the author when featuring is leela, the master, kraals?`:
```sql
|
SELECT "author" FROM "series_1" WHERE "title"='destination: nerva'; |
## Task
Generate a SQL query to answer the following question:
`who is the author when the title is destination: nerva?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"series_sorted" text,
"title" text,
"author" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the author when the title is destination: nerva?`:
```sql
|
SELECT "featuring" FROM "series_1" WHERE "title"='energy of the daleks'; |
## Task
Generate a SQL query to answer the following question:
`who is featuring when the title is energy of the daleks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"series_sorted" text,
"title" text,
"author" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is featuring when the title is energy of the daleks?`:
```sql
|
SELECT "title" FROM "series_1" WHERE "featuring"='leela' AND "series_sorted"='4s/b'; |
## Task
Generate a SQL query to answer the following question:
`what is the title when the featuring is leela and series sorted is 4s/b?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"series_sorted" text,
"title" text,
"author" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title when the featuring is leela and series sorted is 4s/b?`:
```sql
|
SELECT "opponent" FROM "schedule_and_results" WHERE "december"=2; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Opponent that has the December of 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Opponent that has the December of 2?`:
```sql
|
SELECT AVG("december") FROM "schedule_and_results" WHERE "opponent"='@ toronto maple leafs'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the average December rhat has the Opponent of @ toronto maple leafs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the average December rhat has the Opponent of @ toronto maple leafs?`:
```sql
|
SELECT "score" FROM "schedule_and_results" WHERE "december"=10; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Score that has the December of 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Score that has the December of 10?`:
```sql
|
SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"=6; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the Tie no was 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the Tie no was 6?`:
```sql
|
SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"<2; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the Tie no less than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the Tie no less than 2?`:
```sql
|
SELECT "away_team" FROM "fifth_round_proper" WHERE "home_team"='sunderland'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the home team was Sunderland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when the home team was Sunderland?`:
```sql
|
SELECT "winning_team" FROM "calendar" WHERE "fastest_lap"='brendon hartley' AND "pole_position"='oliver turvey' AND "circuit"='spa-francorchamps' AND "winning_driver"='brendon hartley'; |
## Task
Generate a SQL query to answer the following question:
`Which Winning Team has the Fastest Lap of brendon hartley, and a Pole Position of oliver turvey, and a Circuit of spa-francorchamps, and the Winning Driver of brendon hartley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winning Team has the Fastest Lap of brendon hartley, and a Pole Position of oliver turvey, and a Circuit of spa-francorchamps, and the Winning Driver of brendon hartley?`:
```sql
|
SELECT "circuit" FROM "calendar" WHERE "winning_team"='carlin motorsport' AND "winning_driver"='oliver turvey' AND "date"='24 march'; |
## Task
Generate a SQL query to answer the following question:
`Which Circuit has the Winning Team of carlin motorsport, and the Winning Driver of oliver turvey, and a Date of 24 march?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Circuit has the Winning Team of carlin motorsport, and the Winning Driver of oliver turvey, and a Date of 24 march?`:
```sql
|
SELECT MIN("round") FROM "calendar" WHERE "winning_driver"='brendon hartley' AND "date"='27 april'; |
## Task
Generate a SQL query to answer the following question:
`Which Round has the Winning Driver of brendon hartley, and a Date of 27 april?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has the Winning Driver of brendon hartley, and a Date of 27 april?`:
```sql
|
SELECT "date" FROM "calendar" WHERE "pole_position"='michael devaney'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Pole Position of michael devaney?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Pole Position of michael devaney?`:
```sql
|
SELECT "report" FROM "races" WHERE "winning_driver"='emerson fittipaldi'; |
## Task
Generate a SQL query to answer the following question:
`Which Report has a Winning driver of emerson fittipaldi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Report has a Winning driver of emerson fittipaldi?`:
```sql
|
SELECT "circuit" FROM "races" WHERE "pole_position"='andré ribeiro'; |
## Task
Generate a SQL query to answer the following question:
`Which Circuit has a Pole position of andré ribeiro?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Circuit has a Pole position of andré ribeiro?`:
```sql
|
SELECT "circuit" FROM "races" WHERE "winning_driver"='scott pruett'; |
## Task
Generate a SQL query to answer the following question:
`Which Circuit has a Winning driver of scott pruett?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Circuit has a Winning driver of scott pruett?`:
```sql
|
SELECT "winning_driver" FROM "races" WHERE "pole_position"='bryan herta'; |
## Task
Generate a SQL query to answer the following question:
`Who's the Winning driver with a Pole position of bryan herta?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Winning driver with a Pole position of bryan herta?`:
```sql
|
SELECT "date" FROM "races" WHERE "city_location"='vancouver, british columbia'; |
## Task
Generate a SQL query to answer the following question:
`Which Date had a City/Location of vancouver, british columbia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date had a City/Location of vancouver, british columbia?`:
```sql
|
SELECT "winning_team" FROM "races" WHERE "pole_position"='robby gordon' AND "date"='june 11'; |
## Task
Generate a SQL query to answer the following question:
`Who's the Winning team with a Pole position of robby gordon, and a Date of june 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Winning team with a Pole position of robby gordon, and a Date of june 11?`:
```sql
|
SELECT AVG("subject") FROM "personal_pronouns_nominative_case" WHERE "plural"='am(ô)ra (we)'; |
## Task
Generate a SQL query to answer the following question:
`What subject has a plural of am(ô)ra (we)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personal_pronouns_nominative_case" (
"subject" real,
"proximity" text,
"honor" text,
"singular" text,
"plural" text
);
### SQL
Given the database schema, here is the SQL query that answers `What subject has a plural of am(ô)ra (we)?`:
```sql
|
SELECT "round" FROM "nfl_draft" WHERE "college"='mississippi valley state'; |
## Task
Generate a SQL query to answer the following question:
`What round was the player drafted from mississippi valley state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the player drafted from mississippi valley state?`:
```sql
|
SELECT "college" FROM "nfl_draft" WHERE "position"='center'; |
## Task
Generate a SQL query to answer the following question:
`What college was the draft pick from who plays center position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college was the draft pick from who plays center position?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "opponent"='toronto huskies'; |
## Task
Generate a SQL query to answer the following question:
`What is the record of the game with the toronto huskies as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game with the toronto huskies as the opponent?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "date"='november 14'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on November 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on November 14?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "game">7 AND "location"='boston garden' AND "opponent"='providence steam rollers'; |
## Task
Generate a SQL query to answer the following question:
`What is the record of the game with a game number greater than 7 at boston garden with the providence steam rollers as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game with a game number greater than 7 at boston garden with the providence steam rollers as the opponent?`:
```sql
|
SELECT SUM("pick") FROM "nfl_draft" WHERE "player"='jim pilot' AND "round">5; |
## Task
Generate a SQL query to answer the following question:
`What pick in round 5 did the 49ers pick Jim Pilot?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick in round 5 did the 49ers pick Jim Pilot?`:
```sql
|
SELECT "pick" FROM "nfl_draft" WHERE "round"<4 AND "school_club_team"='ucla'; |
## Task
Generate a SQL query to answer the following question:
`What pick in a round earlier than 4 did UCLA choose their pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick in a round earlier than 4 did UCLA choose their pick?`:
```sql
|
SELECT "position" FROM "nfl_draft" WHERE "pick"=36; |
## Task
Generate a SQL query to answer the following question:
`What position did pick 36 play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did pick 36 play?`:
```sql
|
SELECT "owner" FROM "winners_of_the_distaff_turf_mile_stakes_" WHERE "winner"='miss terrible'; |
## Task
Generate a SQL query to answer the following question:
`Who is the owner of Miss Terrible?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_distaff_turf_mile_stakes_" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the owner of Miss Terrible?`:
```sql
|
SELECT MAX("year") FROM "winners_of_the_distaff_turf_mile_stakes_" WHERE "time"='1:36.69'; |
## Task
Generate a SQL query to answer the following question:
`What is the most recent year that had a time of 1:36.69?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_distaff_turf_mile_stakes_" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year that had a time of 1:36.69?`:
```sql
|
SELECT "time" FROM "winners_of_the_distaff_turf_mile_stakes_" WHERE "trainer"='todd pletcher'; |
## Task
Generate a SQL query to answer the following question:
`What time does the trainer, Todd Pletcher have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_distaff_turf_mile_stakes_" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time does the trainer, Todd Pletcher have?`:
```sql
|
SELECT MAX("year") FROM "winners_of_the_distaff_turf_mile_stakes_" WHERE "winner"='iftiraas'; |
## Task
Generate a SQL query to answer the following question:
`What is the most recent year that Iftiraas was the winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_distaff_turf_mile_stakes_" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year that Iftiraas was the winner?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.