output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "date" FROM "round_2" WHERE "home_team_score"='9.6 (60)'; |
## Task
Generate a SQL query to answer the following question:
`When did a home team score 9.6 (60)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did a home team score 9.6 (60)?`:
```sql
|
SELECT "away_team_score" FROM "round_2" WHERE "venue"='corio oval'; |
## Task
Generate a SQL query to answer the following question:
`What did the away team score at corio oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the away team score at corio oval?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "attendance"='65,537'; |
## Task
Generate a SQL query to answer the following question:
`Who did the cowboys play when 65,537 attended?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the cowboys play when 65,537 attended?`:
```sql
|
SELECT "tournament" FROM "doubles_finals_2_4" WHERE "opponents"='antonia xenia tout nataša zorić'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the tournament when antonia xenia tout nataša zorić was the opponenet?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_finals_2_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the tournament when antonia xenia tout nataša zorić was the opponenet?`:
```sql
|
SELECT "date" FROM "doubles_finals_2_4" WHERE "opponents"='georgie stoop emily webley-smith'; |
## Task
Generate a SQL query to answer the following question:
`What date was georgie stoop emily webley-smith the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_finals_2_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was georgie stoop emily webley-smith the opponent?`:
```sql
|
SELECT "surface" FROM "doubles_finals_2_4" WHERE "opponents"='iryna bremond valeria savinykh'; |
## Task
Generate a SQL query to answer the following question:
`What is the surface of the match when the opponent was iryna bremond valeria savinykh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_finals_2_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface of the match when the opponent was iryna bremond valeria savinykh?`:
```sql
|
SELECT "opponents" FROM "doubles_finals_2_4" WHERE "tournament"='sutton'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the opponent for the Sutton tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_finals_2_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the opponent for the Sutton tournament?`:
```sql
|
SELECT "opponents" FROM "doubles_finals_2_4" WHERE "partner"='anastasia pivovarova'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the opponent when anastasia pivovarova was the partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_finals_2_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the opponent when anastasia pivovarova was the partner?`:
```sql
|
SELECT "home_team" FROM "round_2" WHERE "away_team_score"='15.15 (105)'; |
## Task
Generate a SQL query to answer the following question:
`What is the home team's score when the away team's score is 15.15 (105)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team's score when the away team's score is 15.15 (105)?`:
```sql
|
SELECT "home_team_score" FROM "round_2" WHERE "home_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What is south melbourne's home side score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is south melbourne's home side score?`:
```sql
|
SELECT "rounds" FROM "teams_and_drivers" WHERE "entrant"='david brown corporation' AND "driver"='roy salvadori'; |
## Task
Generate a SQL query to answer the following question:
`What rounds did Roy Salvadori drive for David Brown Corporation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rounds did Roy Salvadori drive for David Brown Corporation?`:
```sql
|
SELECT "result" FROM "indian_television_academy_awards" WHERE "year">2007; |
## Task
Generate a SQL query to answer the following question:
`What are the results for years after 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_television_academy_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results for years after 2007?`:
```sql
|
SELECT "character" FROM "indian_television_academy_awards" WHERE "result"='won' AND "year">2003; |
## Task
Generate a SQL query to answer the following question:
`Which characters after 2003 won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_television_academy_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which characters after 2003 won?`:
```sql
|
SELECT "category" FROM "indian_television_academy_awards" WHERE "for_the_show"='kasautii zindagii kay' AND "year"=2006; |
## Task
Generate a SQL query to answer the following question:
`For 2006 what category has the Show of kasautii zindagii kay?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_television_academy_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For 2006 what category has the Show of kasautii zindagii kay?`:
```sql
|
SELECT "character" FROM "indian_television_academy_awards" WHERE "year"=2005; |
## Task
Generate a SQL query to answer the following question:
`What is the character for 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_television_academy_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the character for 2005?`:
```sql
|
SELECT "category" FROM "indian_television_academy_awards" WHERE "year"<2012; |
## Task
Generate a SQL query to answer the following question:
`What is a category before 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_television_academy_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is a category before 2012?`:
```sql
|
SELECT MAX("crude_birth_rate_per_1000") FROM "vital_statistics" WHERE "natural_change"=215 AND "natural_change_per_1000">7.2; |
## Task
Generate a SQL query to answer the following question:
`What is the largest crude birth rate when natural change is 215 at a rate greater than 7.2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vital_statistics" (
"average_population" text,
"live_births" real,
"deaths" real,
"natural_change" real,
"crude_birth_rate_per_1000" real,
"crude_death_rate_per_1000" real,
"natural_change_per_1000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest crude birth rate when natural change is 215 at a rate greater than 7.2?`:
```sql
|
SELECT "natural_change" FROM "vital_statistics" WHERE "crude_death_rate_per_1000"=8.7 AND "live_births"<472; |
## Task
Generate a SQL query to answer the following question:
`What is natural change with a crude death rate of 8.7 and less than 472 live births?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vital_statistics" (
"average_population" text,
"live_births" real,
"deaths" real,
"natural_change" real,
"crude_birth_rate_per_1000" real,
"crude_death_rate_per_1000" real,
"natural_change_per_1000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is natural change with a crude death rate of 8.7 and less than 472 live births?`:
```sql
|
SELECT "owner_s" FROM "industrial_diesel_shunters" WHERE "description"='operational'; |
## Task
Generate a SQL query to answer the following question:
`What owner or owners have an operational description?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "industrial_diesel_shunters" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What owner or owners have an operational description?`:
```sql
|
SELECT "date" FROM "industrial_diesel_shunters" WHERE "livery"='operational'; |
## Task
Generate a SQL query to answer the following question:
`What is the date for the Operational Livery?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "industrial_diesel_shunters" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the Operational Livery?`:
```sql
|
SELECT "date" FROM "industrial_diesel_shunters" WHERE "description"='undergoing overhaul, restoration or repairs'; |
## Task
Generate a SQL query to answer the following question:
`What is the date listed for the item that has undergoing overhaul, restoration or repairs listed under description?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "industrial_diesel_shunters" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date listed for the item that has undergoing overhaul, restoration or repairs listed under description?`:
```sql
|
SELECT "home_team" FROM "round_20" WHERE "home_team_score"='12.14 (86)' AND "away_team_score"='22.15 (147)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team that scored 12.14 (86) when their opponent scored 22.15 (147)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team that scored 12.14 (86) when their opponent scored 22.15 (147)?`:
```sql
|
SELECT "home_team_score" FROM "round_20" WHERE "venue"='mcg'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team that played at MCG?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team that played at MCG?`:
```sql
|
SELECT MIN("crowd") FROM "round_20" WHERE "venue"='arden street oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the size of the smallest crowd that watched a game at Arden Street Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the size of the smallest crowd that watched a game at Arden Street Oval?`:
```sql
|
SELECT "away_team_score" FROM "round_20" WHERE "home_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the away team who played home team Hawthorn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the away team who played home team Hawthorn?`:
```sql
|
SELECT "away_team" FROM "round_20" WHERE "home_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`Who is the away team that played home team Footscray?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team that played home team Footscray?`:
```sql
|
SELECT COUNT("crowd") FROM "round_18" WHERE "away_team"='fitzroy'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game where Fitzroy was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game where Fitzroy was the away team?`:
```sql
|
SELECT "ngc_number" FROM "2901_3000" WHERE "constellation"='leo' AND "object_type"='irregular galaxy'; |
## Task
Generate a SQL query to answer the following question:
`I want the NGC number for leo of irregular galaxy`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2901_3000" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the NGC number for leo of irregular galaxy`:
```sql
|
SELECT MAX("ngc_number") FROM "2901_3000" WHERE "right_ascension_j2000"='09h40m28.5s'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the highest NGC number for right ascension of 09h40m28.5s`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2901_3000" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the highest NGC number for right ascension of 09h40m28.5s`:
```sql
|
SELECT "constellation" FROM "2901_3000" WHERE "object_type"='open cluster'; |
## Task
Generate a SQL query to answer the following question:
`What is the constellation for open cluster?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2901_3000" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the constellation for open cluster?`:
```sql
|
SELECT "event" FROM "women" WHERE "athlete"='tatyana lebedeva'; |
## Task
Generate a SQL query to answer the following question:
`Which event was Tatyana Lebedeva in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"record" text,
"athlete" text,
"nationality" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event was Tatyana Lebedeva in?`:
```sql
|
SELECT "event" FROM "women" WHERE "athlete"='fatima whitbread trine hattestad'; |
## Task
Generate a SQL query to answer the following question:
`What event was Fatima Whitbread Trine Hattestad in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"record" text,
"athlete" text,
"nationality" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event was Fatima Whitbread Trine Hattestad in?`:
```sql
|
SELECT "record" FROM "women" WHERE "athlete"='milcah chemos'; |
## Task
Generate a SQL query to answer the following question:
`What is Milcah Chemos' record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"record" text,
"athlete" text,
"nationality" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Milcah Chemos' record?`:
```sql
|
SELECT "record" FROM "women" WHERE "date"='4 september 2009' AND "event"='400 m'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for the 400 m event on 4 september 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"record" text,
"athlete" text,
"nationality" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the 400 m event on 4 september 2009?`:
```sql
|
SELECT "event" FROM "women" WHERE "date"='26 august 2005'; |
## Task
Generate a SQL query to answer the following question:
`What event was on 26 August 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"record" text,
"athlete" text,
"nationality" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event was on 26 August 2005?`:
```sql
|
SELECT "date" FROM "women" WHERE "nationality"='bulgaria' AND "event"='discus throw'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the discus throw for Bulgaria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"record" text,
"athlete" text,
"nationality" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the discus throw for Bulgaria?`:
```sql
|
SELECT "venue" FROM "round_13" WHERE "away_team_score"='16.11 (107)'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game held when the away team scored 16.11 (107)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game held when the away team scored 16.11 (107)?`:
```sql
|
SELECT "away_team_score" FROM "round_13" WHERE "home_team_score"='16.19 (115)'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team's score when the home team scored 16.19 (115)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team's score when the home team scored 16.19 (115)?`:
```sql
|
SELECT "home_team_score" FROM "round_13" WHERE "away_team_score"='16.14 (110)'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team's score when the away team scored 16.14 (110)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team's score when the away team scored 16.14 (110)?`:
```sql
|
SELECT "date" FROM "friendly" WHERE "ground"='a' AND "opponent"='cartagena'; |
## Task
Generate a SQL query to answer the following question:
`What is the date ground A and Cartagena as an opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friendly" (
"match" real,
"date" text,
"competition_or_tour" text,
"ground" text,
"opponent" text,
"score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date ground A and Cartagena as an opponent?`:
```sql
|
SELECT "ground" FROM "friendly" WHERE "match"<2; |
## Task
Generate a SQL query to answer the following question:
`What ground has a match smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friendly" (
"match" real,
"date" text,
"competition_or_tour" text,
"ground" text,
"opponent" text,
"score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ground has a match smaller than 2?`:
```sql
|
SELECT "score1" FROM "friendly" WHERE "competition_or_tour"='friendly' AND "match"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the competition of friendly, at match 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friendly" (
"match" real,
"date" text,
"competition_or_tour" text,
"ground" text,
"opponent" text,
"score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the competition of friendly, at match 7?`:
```sql
|
SELECT MIN("pick") FROM "draft_picks" WHERE "nationality"='canada' AND "draft"<1985 AND "player"='brian bradley'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest Pick number of Player Brian Bradley from Canada, in a Draft year before 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"draft" real,
"round" text,
"pick" real,
"player" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest Pick number of Player Brian Bradley from Canada, in a Draft year before 1985?`:
```sql
|
SELECT "round" FROM "draft_picks" WHERE "pick">231 AND "draft">1988 AND "player"='adam cracknell'; |
## Task
Generate a SQL query to answer the following question:
`Which Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"draft" real,
"round" text,
"pick" real,
"player" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988?`:
```sql
|
SELECT COUNT("yards") FROM "receiving" WHERE "avg"=9 AND "rec"=1; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of yards for avg of 9 and rec of 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "receiving" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"long" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of yards for avg of 9 and rec of 1`:
```sql
|
SELECT MAX("losses") FROM "year_by_year_stats" WHERE "points_for"<79 AND "games_played"=10 AND "point_differential"<34; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year_stats" (
"team" real,
"games_played" real,
"wins" real,
"losses" real,
"winning_percentage" real,
"points_for" real,
"points_against" real,
"point_differential" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34?`:
```sql
|
SELECT "player" FROM "delisted_players_who_did_not_play_a_seni" WHERE "date_of_birth_age_when_delisted"='13 february 1987 (aged 24)'; |
## Task
Generate a SQL query to answer the following question:
`Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delisted_players_who_did_not_play_a_seni" (
"player" text,
"date_of_birth_age_when_delisted" text,
"draft_details" text,
"rookie_list" text,
"senior_list" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)?`:
```sql
|
SELECT "senior_list" FROM "delisted_players_who_did_not_play_a_seni" WHERE "date_of_birth_age_when_delisted"='5 june 1984 (aged 23)'; |
## Task
Generate a SQL query to answer the following question:
`What is listed under Senior List for Date of Birth (Age When Delisted) of 5 June 1984 (aged 23)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delisted_players_who_did_not_play_a_seni" (
"player" text,
"date_of_birth_age_when_delisted" text,
"draft_details" text,
"rookie_list" text,
"senior_list" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed under Senior List for Date of Birth (Age When Delisted) of 5 June 1984 (aged 23)?`:
```sql
|
SELECT AVG("year_began_making_autos") FROM "brand_reorganization" WHERE "year_joined_gm"=1917; |
## Task
Generate a SQL query to answer the following question:
`What is the average year to begin making autos for a brand that joined GM in 1917?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brand_reorganization" (
"brand" text,
"year_founded" real,
"year_began_making_autos" real,
"year_joined_gm" real,
"markets_served_today" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year to begin making autos for a brand that joined GM in 1917?`:
```sql
|
SELECT "date" FROM "round_4" WHERE "home_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Name the date with a home team of melbourne`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date with a home team of melbourne`:
```sql
|
SELECT "venue" FROM "round_4" WHERE "home_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`Name the venue for collingwood home team`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue for collingwood home team`:
```sql
|
SELECT "home_team_score" FROM "round_4" WHERE "away_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`I want to know the home team score for essendon away team`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the home team score for essendon away team`:
```sql
|
SELECT "year" FROM "history_of_board_members_2002_present" WHERE "gen_secretary"='silvana jansen'; |
## Task
Generate a SQL query to answer the following question:
`Which year has a Gen.-Secretary of silvana jansen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history_of_board_members_2002_present" (
"year" text,
"president" text,
"vice_president" text,
"gen_secretary" text,
"treasurer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year has a Gen.-Secretary of silvana jansen?`:
```sql
|
SELECT "gen_secretary" FROM "history_of_board_members_2002_present" WHERE "vice_president"='charlotte saes'; |
## Task
Generate a SQL query to answer the following question:
`Which Gen.-Secretary that has a Vice President named charlotte saes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history_of_board_members_2002_present" (
"year" text,
"president" text,
"vice_president" text,
"gen_secretary" text,
"treasurer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gen.-Secretary that has a Vice President named charlotte saes?`:
```sql
|
SELECT "treasurer" FROM "history_of_board_members_2002_present" WHERE "gen_secretary"='jonneke de koning' AND "vice_president"='laura tolen'; |
## Task
Generate a SQL query to answer the following question:
`Which treasurer has a Gen.-Secretary of jonneke de koning, and a Vice President of laura tolen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history_of_board_members_2002_present" (
"year" text,
"president" text,
"vice_president" text,
"gen_secretary" text,
"treasurer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which treasurer has a Gen.-Secretary of jonneke de koning, and a Vice President of laura tolen?`:
```sql
|
SELECT "vice_president" FROM "history_of_board_members_2002_present" WHERE "president"='daniel masny' AND "treasurer"='rebecca t. altmann'; |
## Task
Generate a SQL query to answer the following question:
`Which Vice President has a President of daniel masny, and a Treasurer of rebecca t. altmann?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history_of_board_members_2002_present" (
"year" text,
"president" text,
"vice_president" text,
"gen_secretary" text,
"treasurer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Vice President has a President of daniel masny, and a Treasurer of rebecca t. altmann?`:
```sql
|
SELECT "president" FROM "history_of_board_members_2002_present" WHERE "year"='2002-2003, second semester'; |
## Task
Generate a SQL query to answer the following question:
`Who was president Year of 2002-2003, second semester?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history_of_board_members_2002_present" (
"year" text,
"president" text,
"vice_president" text,
"gen_secretary" text,
"treasurer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was president Year of 2002-2003, second semester?`:
```sql
|
SELECT "treasurer" FROM "history_of_board_members_2002_present" WHERE "president"='sebastian ihler'; |
## Task
Generate a SQL query to answer the following question:
`Which treasurer has a President of sebastian ihler?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history_of_board_members_2002_present" (
"year" text,
"president" text,
"vice_president" text,
"gen_secretary" text,
"treasurer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which treasurer has a President of sebastian ihler?`:
```sql
|
SELECT "opponent" FROM "singles_10_3_7" WHERE "surface"='grass'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent used a grass surface?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10_3_7" (
"outcome" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent used a grass surface?`:
```sql
|
SELECT "tournament" FROM "singles_10_3_7" WHERE "score"='6–7 (0–7) , 6–2, 4–6'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament had a score of 6–7 (0–7) , 6–2, 4–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10_3_7" (
"outcome" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a score of 6–7 (0–7) , 6–2, 4–6?`:
```sql
|
SELECT COUNT("points") FROM "world_championship_group_b_slovenia" WHERE "lost"<4; |
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of points for lost less than 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_group_b_slovenia" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the total number of points for lost less than 4`:
```sql
|
SELECT SUM("drawn") FROM "world_championship_group_b_slovenia" WHERE "lost"<0; |
## Task
Generate a SQL query to answer the following question:
`I want the sum of drawn for lost less than 0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_group_b_slovenia" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the sum of drawn for lost less than 0`:
```sql
|
SELECT "points_difference" FROM "world_championship_group_b_slovenia" WHERE "points"=14; |
## Task
Generate a SQL query to answer the following question:
`I want the points difference for points of 14`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_group_b_slovenia" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the points difference for points of 14`:
```sql
|
SELECT SUM("rank") FROM "medal_table" WHERE "gold">0 AND "total">32 AND "silver"<23; |
## Task
Generate a SQL query to answer the following question:
`Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32`:
```sql
|
SELECT SUM("silver") FROM "medal_table" WHERE "nation"='liechtenstein' AND "bronze">4; |
## Task
Generate a SQL query to answer the following question:
`Tell me the sum of silver for liechtenstein and bronze more than 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the sum of silver for liechtenstein and bronze more than 4`:
```sql
|
SELECT "tournament" FROM "singles_titles" WHERE "score"='6–4, 4–6, 7–5'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament had a score of 6–4, 4–6, 7–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a score of 6–4, 4–6, 7–5?`:
```sql
|
SELECT "tournament" FROM "singles_titles" WHERE "score"='7–5, 2–6, 7–6'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament had a score of 7–5, 2–6, 7–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a score of 7–5, 2–6, 7–6?`:
```sql
|
SELECT "opponent_in_the_final" FROM "singles_titles" WHERE "surface"='hard' AND "score"='6–3, 3–6, 7–5'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the final in which the court surface was hard and the score was 6–3, 3–6, 7–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the final in which the court surface was hard and the score was 6–3, 3–6, 7–5?`:
```sql
|
SELECT "surface" FROM "singles_titles" WHERE "score"='6–4, 6–1'; |
## Task
Generate a SQL query to answer the following question:
`What was the court surface when the score was 6–4, 6–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the court surface when the score was 6–4, 6–1?`:
```sql
|
SELECT "date" FROM "singles_titles" WHERE "opponent_in_the_final"='gwinyai tongoona'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the opponent in the final Gwinyai Tongoona?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the opponent in the final Gwinyai Tongoona?`:
```sql
|
SELECT "record" FROM "november" WHERE "visitor"='golden state warriors' AND "date"='11/18'; |
## Task
Generate a SQL query to answer the following question:
`What was the record from the Golden State Warriors on 11/18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record from the Golden State Warriors on 11/18?`:
```sql
|
SELECT "class" FROM "1923_1937" WHERE "wheels"='4-4-0' AND "no_built"<40; |
## Task
Generate a SQL query to answer the following question:
`What class has 4-4-0 wheels and was less than number 40 built?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1923_1937" (
"class" text,
"wheels" text,
"date" text,
"builder" text,
"no_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What class has 4-4-0 wheels and was less than number 40 built?`:
```sql
|
SELECT "space_crusade" FROM "translations" WHERE "english"='finnish'; |
## Task
Generate a SQL query to answer the following question:
`Name the space crusade when the english is of finnish`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translations" (
"english" text,
"space_crusade" text,
"aliens" text,
"chaos_marines" text,
"genestealers" text,
"imperial_fists" text,
"ultramarines" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the space crusade when the english is of finnish`:
```sql
|
SELECT "space_crusade" FROM "translations" WHERE "genestealers"='genrøvere (gene robbers)'; |
## Task
Generate a SQL query to answer the following question:
`Name the space crusade which has Genestealers of genrøvere (gene robbers)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translations" (
"english" text,
"space_crusade" text,
"aliens" text,
"chaos_marines" text,
"genestealers" text,
"imperial_fists" text,
"ultramarines" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the space crusade which has Genestealers of genrøvere (gene robbers)`:
```sql
|
SELECT "score" FROM "winners" WHERE "winners"='galatasaray' AND "runners_up"='trabzonspor' AND "year"=1990; |
## Task
Generate a SQL query to answer the following question:
`What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winners" text,
"score" text,
"runners_up" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?`:
```sql
|
SELECT COUNT("matches") FROM "calendar" WHERE "prize_money"='£1,000,000'; |
## Task
Generate a SQL query to answer the following question:
`How many matches were there in the round with £1,000,000 in prize money?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" text,
"date" text,
"matches" real,
"clubs" text,
"new_entries_this_round" text,
"prize_money" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many matches were there in the round with £1,000,000 in prize money?`:
```sql
|
SELECT "date" FROM "calendar" WHERE "matches"=1; |
## Task
Generate a SQL query to answer the following question:
`What was the date for a round that only had 1 match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" text,
"date" text,
"matches" real,
"clubs" text,
"new_entries_this_round" text,
"prize_money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for a round that only had 1 match?`:
```sql
|
SELECT "date" FROM "round_2" WHERE "away_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`What date did Hawthorn play as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did Hawthorn play as the away team?`:
```sql
|
SELECT "hometown" FROM "2011_team" WHERE "college"='wisconsin'; |
## Task
Generate a SQL query to answer the following question:
`What is the hometown for a college in Wisconsin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown for a college in Wisconsin?`:
```sql
|
SELECT "college" FROM "2011_team" WHERE "position"='linebacker' AND "school"='lessburg high school'; |
## Task
Generate a SQL query to answer the following question:
`Which college has a linebacker from Lessburg High School?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college has a linebacker from Lessburg High School?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"=11; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has a week of 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a week of 11?`:
```sql
|
SELECT MIN("week") FROM "schedule" WHERE "date"='december 4, 1976' AND "attendance"<'57,366'; |
## Task
Generate a SQL query to answer the following question:
`Which December 4, 1976 week has an attendance less than 57,366?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which December 4, 1976 week has an attendance less than 57,366?`:
```sql
|
SELECT "comune" FROM "municipalities" WHERE "total_km">70.99; |
## Task
Generate a SQL query to answer the following question:
`Who has a larger than 70.99 km2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"province" text,
"comune" text,
"population_inh" real,
"area_km" real,
"total_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a larger than 70.99 km2?`:
```sql
|
SELECT AVG("area_km") FROM "municipalities" WHERE "population_inh">'8,328' AND "total_km">121.14; |
## Task
Generate a SQL query to answer the following question:
`What is the km2 area with more than 8,328 people with a total of 121.14 km2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"province" text,
"comune" text,
"population_inh" real,
"area_km" real,
"total_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the km2 area with more than 8,328 people with a total of 121.14 km2?`:
```sql
|
SELECT MIN("area_km") FROM "municipalities" WHERE "province"='napoli' AND "comune"='piano di sorrento' AND "total_km"<121.14; |
## Task
Generate a SQL query to answer the following question:
`What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"province" text,
"comune" text,
"population_inh" real,
"area_km" real,
"total_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2?`:
```sql
|
SELECT "writer" FROM "feature_films" WHERE "producer_executive_producer"='dka, jl, as'; |
## Task
Generate a SQL query to answer the following question:
`Which writer had a producer DKA, JL, AS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "feature_films" (
"film_title" text,
"director" text,
"writer" text,
"voiced_character_s" text,
"producer_executive_producer" text,
"sound" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which writer had a producer DKA, JL, AS?`:
```sql
|
SELECT "film_title" FROM "feature_films" WHERE "director"='lu'; |
## Task
Generate a SQL query to answer the following question:
`Name the film that Lu directed.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "feature_films" (
"film_title" text,
"director" text,
"writer" text,
"voiced_character_s" text,
"producer_executive_producer" text,
"sound" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the film that Lu directed.`:
```sql
|
SELECT "writer" FROM "feature_films" WHERE "film_title"='toy story'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote Toy Story?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "feature_films" (
"film_title" text,
"director" text,
"writer" text,
"voiced_character_s" text,
"producer_executive_producer" text,
"sound" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote Toy Story?`:
```sql
|
SELECT "writer" FROM "feature_films" WHERE "voiced_character_s"='jdr, bb, tn, lr, ps'; |
## Task
Generate a SQL query to answer the following question:
`Which writer had voice characters of JDR, BB, TN, LR, PS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "feature_films" (
"film_title" text,
"director" text,
"writer" text,
"voiced_character_s" text,
"producer_executive_producer" text,
"sound" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which writer had voice characters of JDR, BB, TN, LR, PS?`:
```sql
|
SELECT "sound" FROM "feature_films" WHERE "producer_executive_producer"='jl'; |
## Task
Generate a SQL query to answer the following question:
`Who was the sound producer that worked under Executive Producer JL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "feature_films" (
"film_title" text,
"director" text,
"writer" text,
"voiced_character_s" text,
"producer_executive_producer" text,
"sound" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the sound producer that worked under Executive Producer JL?`:
```sql
|
SELECT "away_team" FROM "round_16" WHERE "venue"='mcg'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team at mcg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team at mcg?`:
```sql
|
SELECT "name" FROM "players_out" WHERE "country"='nga'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player from NGA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player from NGA?`:
```sql
|
SELECT "moving_to" FROM "players_out" WHERE "transfer_fee"='undisclosed' AND "name"='odjidja-ofoe'; |
## Task
Generate a SQL query to answer the following question:
`Where is Odjidja-Ofoe, with an undisclosed transfer fee, moving to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Odjidja-Ofoe, with an undisclosed transfer fee, moving to?`:
```sql
|
SELECT "country" FROM "players_out" WHERE "transfer_fee"='undisclosed' AND "moving_to"='nacional'; |
## Task
Generate a SQL query to answer the following question:
`What country is the player, with an undisclosed transfer fee and moving to Nacional, from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is the player, with an undisclosed transfer fee and moving to Nacional, from?`:
```sql
|
SELECT "transfer_fee" FROM "players_out" WHERE "name"='odjidja-ofoe'; |
## Task
Generate a SQL query to answer the following question:
`What is Odjidja-Ofoe's transfer fee?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Odjidja-Ofoe's transfer fee?`:
```sql
|
SELECT "name" FROM "players_out" WHERE "country"='cod'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player from Cod?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player from Cod?`:
```sql
|
SELECT "country" FROM "players_out" WHERE "moving_to"='hamburger sv'; |
## Task
Generate a SQL query to answer the following question:
`What country is the player moving to Hamburger SV from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is the player moving to Hamburger SV from?`:
```sql
|
SELECT "driver" FROM "drivers_and_constructors" WHERE "entrant"='arrows racing team' AND "rounds"='1-3'; |
## Task
Generate a SQL query to answer the following question:
`Which Driver has an Entrant of Arrows Racing Team and Rounds 1-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Driver has an Entrant of Arrows Racing Team and Rounds 1-3?`:
```sql
|
SELECT "constructor" FROM "drivers_and_constructors" WHERE "rounds"='all' AND "driver"='bruno giacomelli'; |
## Task
Generate a SQL query to answer the following question:
`Which Constructor has Rounds, All and Driver, Bruno Giacomelli?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Constructor has Rounds, All and Driver, Bruno Giacomelli?`:
```sql
|
SELECT "winning_score" FROM "european_tour_wins_5" WHERE "runner_s_up"='damien mcgrane'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning score when Damien McGrane was runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score when Damien McGrane was runner-up?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.