output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "report" FROM "season_review" WHERE "race"='argentine grand prix'; |
## Task
Generate a SQL query to answer the following question:
`What is the report for the race of Argentine Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the report for the race of Argentine Grand Prix?`:
```sql
|
SELECT "tyre" FROM "season_review" WHERE "pole_position"='jerry hoyt'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tyre when Jerry Hoyt was the pole position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tyre when Jerry Hoyt was the pole position?`:
```sql
|
SELECT "constructor" FROM "season_review" WHERE "tyre"='c' AND "pole_position"='eugenio castellotti'; |
## Task
Generate a SQL query to answer the following question:
`Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?`:
```sql
|
SELECT "fastest_lap" FROM "season_review" WHERE "constructor"='mercedes' AND "race"='british grand prix'; |
## Task
Generate a SQL query to answer the following question:
`What was the fastest lap time at the British Grand Prix with Mercedes as the constructor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the fastest lap time at the British Grand Prix with Mercedes as the constructor?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='nick collison (14)'; |
## Task
Generate a SQL query to answer the following question:
`Who scored the High points in the game with High rebounds by Nick Collison (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,
"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 scored the High points in the game with High rebounds by Nick Collison (14)?`:
```sql
|
SELECT "transfer_fee" FROM "in" WHERE "source"='fcbarcelona.cat' AND "country"='fra' AND "name"='henry'; |
## Task
Generate a SQL query to answer the following question:
`What is henry transfer fee at fcbarcelona.cat in fra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text,
"source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is henry transfer fee at fcbarcelona.cat in fra?`:
```sql
|
SELECT "grid" FROM "race" WHERE "time_retired"='hydraulics'; |
## Task
Generate a SQL query to answer the following question:
`What was the Grid with a hydraulics time/required?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Grid with a hydraulics time/required?`:
```sql
|
SELECT "grid" FROM "race" WHERE "constructor"='toyota' AND "time_retired"='+1:09.718'; |
## Task
Generate a SQL query to answer the following question:
`What is the grid with a Toyota constructor and +1:09.718 as time/retired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid with a Toyota constructor and +1:09.718 as time/retired?`:
```sql
|
SELECT "grid" FROM "race" WHERE "laps"='71' AND "driver"='allan mcnish'; |
## Task
Generate a SQL query to answer the following question:
`What is the grid with 71 laps and the driver, Allan McNish.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid with 71 laps and the driver, Allan McNish.`:
```sql
|
SELECT "laps" FROM "race" WHERE "driver"='jacques villeneuve'; |
## Task
Generate a SQL query to answer the following question:
`How many laps did Jacques Villeneuve have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did Jacques Villeneuve have?`:
```sql
|
SELECT "constructor" FROM "race" WHERE "driver"='heinz-harald frentzen'; |
## Task
Generate a SQL query to answer the following question:
`What is the constructor of the driver Heinz-Harald Frentzen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the constructor of the driver Heinz-Harald Frentzen?`:
```sql
|
SELECT "rank" FROM "politics" WHERE "year"='2012' AND "out_of">176; |
## Task
Generate a SQL query to answer the following question:
`Tell me the rank for year of 2012 and out of larger than 176`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "politics" (
"index" text,
"organization" text,
"year" text,
"rank" real,
"out_of" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the rank for year of 2012 and out of larger than 176`:
```sql
|
SELECT "year" FROM "politics" WHERE "rank">35 AND "out_of"=167; |
## Task
Generate a SQL query to answer the following question:
`Tell me the year for rank more than 35 and out of 167`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "politics" (
"index" text,
"organization" text,
"year" text,
"rank" real,
"out_of" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the year for rank more than 35 and out of 167`:
```sql
|
SELECT "uci_points" FROM "general_classification" WHERE "team"='rabobank'; |
## Task
Generate a SQL query to answer the following question:
`How many UCI points did Rabobank score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_classification" (
"cyclist" text,
"country" text,
"team" text,
"time" text,
"uci_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many UCI points did Rabobank score?`:
```sql
|
SELECT "team" FROM "general_classification" WHERE "country"='france' AND "uci_points"='15'; |
## Task
Generate a SQL query to answer the following question:
`What team in France had 15 UCi points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_classification" (
"cyclist" text,
"country" text,
"team" text,
"time" text,
"uci_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team in France had 15 UCi points?`:
```sql
|
SELECT "country" FROM "largest_sovereign_wealth_funds" WHERE "assets_us_billion"='x' AND "inception"='2007' AND "abbreviation"='adic'; |
## Task
Generate a SQL query to answer the following question:
`Which country has assets of x, an inception of 2007, and an abbreviation of adic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "largest_sovereign_wealth_funds" (
"country" text,
"abbreviation" text,
"assets_us_billion" text,
"inception" text,
"origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has assets of x, an inception of 2007, and an abbreviation of adic?`:
```sql
|
SELECT "abbreviation" FROM "largest_sovereign_wealth_funds" WHERE "country"='libya'; |
## Task
Generate a SQL query to answer the following question:
`What's the abbreviation for libya?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "largest_sovereign_wealth_funds" (
"country" text,
"abbreviation" text,
"assets_us_billion" text,
"inception" text,
"origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the abbreviation for libya?`:
```sql
|
SELECT "origin" FROM "largest_sovereign_wealth_funds" WHERE "abbreviation"='atf'; |
## Task
Generate a SQL query to answer the following question:
`What's the origin for the country abbreviated atf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "largest_sovereign_wealth_funds" (
"country" text,
"abbreviation" text,
"assets_us_billion" text,
"inception" text,
"origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the origin for the country abbreviated atf?`:
```sql
|
SELECT "inception" FROM "largest_sovereign_wealth_funds" WHERE "assets_us_billion"='25.5' AND "abbreviation"='psf'; |
## Task
Generate a SQL query to answer the following question:
`What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "largest_sovereign_wealth_funds" (
"country" text,
"abbreviation" text,
"assets_us_billion" text,
"inception" text,
"origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?`:
```sql
|
SELECT "country" FROM "largest_sovereign_wealth_funds" WHERE "abbreviation"='kia'; |
## Task
Generate a SQL query to answer the following question:
`Which country has an abbreviation of kia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "largest_sovereign_wealth_funds" (
"country" text,
"abbreviation" text,
"assets_us_billion" text,
"inception" text,
"origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has an abbreviation of kia?`:
```sql
|
SELECT "abbreviation" FROM "largest_sovereign_wealth_funds" WHERE "inception"='1999' AND "assets_us_billion"='7.1'; |
## Task
Generate a SQL query to answer the following question:
`What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "largest_sovereign_wealth_funds" (
"country" text,
"abbreviation" text,
"assets_us_billion" text,
"inception" text,
"origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?`:
```sql
|
SELECT "away_team" FROM "round_1" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What was the opponent of the home team of essendon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"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 opponent of the home team of essendon?`:
```sql
|
SELECT "crowd" FROM "round_1" WHERE "home_team_score"='15.15 (105)'; |
## Task
Generate a SQL query to answer the following question:
`How big was the crowd in a game that had a home team score of 15.15 (105)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"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 big was the crowd in a game that had a home team score of 15.15 (105)?`:
```sql
|
SELECT "home_team_score" FROM "round_1" WHERE "away_team_score"='9.11 (65)'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the home team when the opposing team had a score of 9.11 (65)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"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 score of the home team when the opposing team had a score of 9.11 (65)?`:
```sql
|
SELECT "cast" FROM "list_of_film_serials_by_studio" WHERE "director"='b. reeves eason and joseph kane'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the cast for b. reeves eason and joseph kane`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_film_serials_by_studio" (
"serial_title" text,
"year" text,
"chapters" text,
"director" text,
"cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the cast for b. reeves eason and joseph kane`:
```sql
|
SELECT "director" FROM "list_of_film_serials_by_studio" WHERE "serial_title"='heroes of the wild'; |
## Task
Generate a SQL query to answer the following question:
`I want the director for heroes of the wild`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_film_serials_by_studio" (
"serial_title" text,
"year" text,
"chapters" text,
"director" text,
"cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the director for heroes of the wild`:
```sql
|
SELECT "year" FROM "list_of_film_serials_by_studio" WHERE "serial_title"='the three musketeers'; |
## Task
Generate a SQL query to answer the following question:
`I want the year for the three musketeers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_film_serials_by_studio" (
"serial_title" text,
"year" text,
"chapters" text,
"director" text,
"cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the year for the three musketeers`:
```sql
|
SELECT "cast" FROM "list_of_film_serials_by_studio" WHERE "director"='colbert clark and armand schaefer' AND "serial_title"='burn ''em up barnes'; |
## Task
Generate a SQL query to answer the following question:
`I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_film_serials_by_studio" (
"serial_title" text,
"year" text,
"chapters" text,
"director" text,
"cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes`:
```sql
|
SELECT "away_team_score" FROM "round_3" WHERE "away_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What is North Melbourne's Away team score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"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 North Melbourne's Away team score?`:
```sql
|
SELECT SUM("crowd") FROM "round_3" WHERE "venue"='kardinia park'; |
## Task
Generate a SQL query to answer the following question:
`How large was the crowd at the Kardinia Park venue games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"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 large was the crowd at the Kardinia Park venue games?`:
```sql
|
SELECT "home_team_score" FROM "round_3" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the Home team that played against Carlton's Away game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"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 score of the Home team that played against Carlton's Away game?`:
```sql
|
SELECT "pick" FROM "nfl_draft" WHERE "player"='mark hayes'; |
## Task
Generate a SQL query to answer the following question:
`What was the pick number when mark hayes was drafted?`
### 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 was the pick number when mark hayes was drafted?`:
```sql
|
SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"=63; |
## Task
Generate a SQL query to answer the following question:
`Which team had a pick of 63?`
### 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 `Which team had a pick of 63?`:
```sql
|
SELECT "school_club_team" FROM "nfl_draft" WHERE "position"='linebacker' AND "pick"<288; |
## Task
Generate a SQL query to answer the following question:
`Which team had a position of linebacker with a pick smaller of 288?`
### 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 `Which team had a position of linebacker with a pick smaller of 288?`:
```sql
|
SELECT "player" FROM "nfl_draft" WHERE "round"<8 AND "school_club_team"='louisville'; |
## Task
Generate a SQL query to answer the following question:
`What player did louisville pick when the round was below 8?`
### 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 player did louisville pick when the round was below 8?`:
```sql
|
SELECT "outcome" FROM "itf_singles_finals_19" WHERE "score"='3–6, 6–3, 6–0'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the game that had a score of 3–6, 6–3, 6–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_singles_finals_19" (
"outcome" text,
"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 outcome of the game that had a score of 3–6, 6–3, 6–0?`:
```sql
|
SELECT "outcome" FROM "itf_singles_finals_19" WHERE "score"='7–5, 6–3' AND "date"='27 july 2003'; |
## Task
Generate a SQL query to answer the following question:
`On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_singles_finals_19" (
"outcome" text,
"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 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?`:
```sql
|
SELECT "score" FROM "itf_singles_finals_19" WHERE "opponent_in_the_final"='lenka novotná'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game against Lenka Novotná?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_singles_finals_19" (
"outcome" text,
"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 final score of the game against Lenka Novotná?`:
```sql
|
SELECT "opponent_in_the_final" FROM "itf_singles_finals_19" WHERE "surface"='clay' AND "score"='6–4, 6–4'; |
## Task
Generate a SQL query to answer the following question:
`In the surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_singles_finals_19" (
"outcome" text,
"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 `In the surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?`:
```sql
|
SELECT "score" FROM "itf_singles_finals_19" WHERE "opponent_in_the_final"='ana ivanovic'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game against opponent Ana Ivanovic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_singles_finals_19" (
"outcome" text,
"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 final score of the game against opponent Ana Ivanovic?`:
```sql
|
SELECT SUM("grid") FROM "race" WHERE "time_retired"='+58.182' AND "laps"<67; |
## Task
Generate a SQL query to answer the following question:
`What is the total grid number where the time/retired is +58.182 and the lap number is less than 67?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total grid number where the time/retired is +58.182 and the lap number is less than 67?`:
```sql
|
SELECT "name_of_horse" FROM "horses" WHERE "year_inducted"=2011 AND "broodmare_sire"='cowboy p-12'; |
## Task
Generate a SQL query to answer the following question:
`What horse was induced in 2011 with a sire of cowboy p-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "horses" (
"name_of_horse" text,
"year_inducted" real,
"year_foaled" text,
"sire" text,
"broodmare_sire" text,
"discipline" text
);
### SQL
Given the database schema, here is the SQL query that answers `What horse was induced in 2011 with a sire of cowboy p-12?`:
```sql
|
SELECT "home_team" FROM "round_13" WHERE "away_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team that played against hawthorn?`
### 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 `Who was the home team that played against hawthorn?`:
```sql
|
SELECT "away_team" FROM "round_13" WHERE "home_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team playing against collingwood?`
### 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 `Who was the away team playing against collingwood?`:
```sql
|
SELECT MAX("crowd") FROM "round_13" WHERE "venue"='punt road oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the biggest crowd at punt road oval?`
### 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 biggest crowd at punt road oval?`:
```sql
|
SELECT "home_team" FROM "round_13" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team based at windy hill?`
### 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 `Who is the home team based at windy hill?`:
```sql
|
SELECT "assistant_dean_of_men" FROM "historical_list_of_staff_and_faculty" WHERE "assistant_dean_of_women"='autumn teele'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Assistant Dean of Men when Autumn Teele was the Assistant Dean of Women?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "historical_list_of_staff_and_faculty" (
"year" text,
"president" text,
"chair_of_global_ministries" text,
"chair_of_pastoral" text,
"chair_of_music" text,
"dean_of_students" text,
"dean_of_men" text,
"dean_of_women" text,
"assistant_dean_of_men" text,
"assistant_dean_of_women" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Assistant Dean of Men when Autumn Teele was the Assistant Dean of Women?`:
```sql
|
SELECT MIN("gold") FROM "medal_count" WHERE "silver"<23 AND "rank">5 AND "bronze"=6; |
## Task
Generate a SQL query to answer the following question:
`What is the low gold total for nations with under 23 silvers, ranked beloe 5, and 6 bronzes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the low gold total for nations with under 23 silvers, ranked beloe 5, and 6 bronzes?`:
```sql
|
SELECT MAX("silver") FROM "medal_count" WHERE "gold"=3 AND "bronze"<5; |
## Task
Generate a SQL query to answer the following question:
`What is the high silver total for nations with 3 golds and under 5 bronzes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high silver total for nations with 3 golds and under 5 bronzes?`:
```sql
|
SELECT COUNT("silver") FROM "medal_count" WHERE "bronze"<6 AND "gold">3; |
## Task
Generate a SQL query to answer the following question:
`How many silvers for nations with over 3 golds and under 6 bronzes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silvers for nations with over 3 golds and under 6 bronzes?`:
```sql
|
SELECT COUNT("crowd") FROM "round_19" WHERE "away_team_score"='8.25 (73)'; |
## Task
Generate a SQL query to answer the following question:
`What is the crowd number for the event that has a score of 8.25 (73) for the Away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"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 crowd number for the event that has a score of 8.25 (73) for the Away team?`:
```sql
|
SELECT "away_team" FROM "round_19" WHERE "away_team_score"='13.9 (87)'; |
## Task
Generate a SQL query to answer the following question:
`When the away team has a total score of 13.9 (87), what is the name of the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"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 the away team has a total score of 13.9 (87), what is the name of the away team?`:
```sql
|
SELECT "date" FROM "round_19" WHERE "away_team_score"='8.8 (56)'; |
## Task
Generate a SQL query to answer the following question:
`What was the date that featured a score of 8.8 (56) for the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"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 date that featured a score of 8.8 (56) for the away team?`:
```sql
|
SELECT "away_team_score" FROM "round_19" WHERE "home_team_score"='13.19 (97)'; |
## Task
Generate a SQL query to answer the following question:
`When the home team had a score of 13.19 (97), what was the score of the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"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 the home team had a score of 13.19 (97), what was the score of the away team?`:
```sql
|
SELECT MIN("crowd") FROM "round_10" WHERE "venue"='corio oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd in games at the corio oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"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 smallest crowd in games at the corio oval?`:
```sql
|
SELECT "away_team_score" FROM "round_10" WHERE "away_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`In the match where Melbourne was the away team, how much did they score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"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 `In the match where Melbourne was the away team, how much did they score?`:
```sql
|
SELECT "date" FROM "round_10" WHERE "home_team_score"='8.18 (66)'; |
## Task
Generate a SQL query to answer the following question:
`On what day did a home team score 8.18 (66)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"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 `On what day did a home team score 8.18 (66)?`:
```sql
|
SELECT "decision" FROM "october" WHERE "visitor"='buffalo'; |
## Task
Generate a SQL query to answer the following question:
`Who had the decision when buffalo was the visitor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the decision when buffalo was the visitor?`:
```sql
|
SELECT "venue" FROM "round_13" WHERE "away_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the venue for north melbourne`
### 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 `Tell me the venue for north melbourne`:
```sql
|
SELECT "name" FROM "superfund_sites" WHERE "listed"='03/31/1989' AND "county"='spartanburg'; |
## Task
Generate a SQL query to answer the following question:
`What name has a listed of 03/31/1989 in spartanburg county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has a listed of 03/31/1989 in spartanburg county?`:
```sql
|
SELECT "proposed" FROM "superfund_sites" WHERE "listed"='12/16/1994' AND "county"='beaufort'; |
## Task
Generate a SQL query to answer the following question:
`What date was proposed when the listed date was 12/16/1994 in the County of beaufort?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was proposed when the listed date was 12/16/1994 in the County of beaufort?`:
```sql
|
SELECT "name" FROM "superfund_sites" WHERE "listed"='02/21/1990' AND "cerclis_id"='scd980844005'; |
## Task
Generate a SQL query to answer the following question:
`What name was listed 02/21/1990, and a CERCLIS ID of scd980844005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name was listed 02/21/1990, and a CERCLIS ID of scd980844005?`:
```sql
|
SELECT "county" FROM "superfund_sites" WHERE "cerclis_id"='scd037405362'; |
## Task
Generate a SQL query to answer the following question:
`What county has a CERCLIS ID of scd037405362?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What county has a CERCLIS ID of scd037405362?`:
```sql
|
SELECT "name" FROM "superfund_sites" WHERE "county"='charleston' AND "cerclis_id"='scd980711279'; |
## Task
Generate a SQL query to answer the following question:
`What is the name for Charleston County with a CERCLIS ID of scd980711279?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for Charleston County with a CERCLIS ID of scd980711279?`:
```sql
|
SELECT "name" FROM "superfund_sites" WHERE "listed"='11/21/1989'; |
## Task
Generate a SQL query to answer the following question:
`What is the name for the listed date of 11/21/1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for the listed date of 11/21/1989?`:
```sql
|
SELECT "category" FROM "original_broadway_production" WHERE "result"='nominated' AND "nominee"='gene barry'; |
## Task
Generate a SQL query to answer the following question:
`Which category was Gene Barry nominated in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "original_broadway_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which category was Gene Barry nominated in?`:
```sql
|
SELECT "year" FROM "original_broadway_production" WHERE "award"='drama desk award' AND "result"='won' AND "nominee"='george hearn'; |
## Task
Generate a SQL query to answer the following question:
`What year was the Drama Desk award won by nominee George Hearn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "original_broadway_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the Drama Desk award won by nominee George Hearn?`:
```sql
|
SELECT "time_retired" FROM "classification" WHERE "grid"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for grid 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/retired for grid 5?`:
```sql
|
SELECT "date" FROM "recent_results_and_forthcoming_fixtures" WHERE "opponent"='liberia' AND "score"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`When was the event that had Liberia as an opponent and resulted in a 1-0 score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recent_results_and_forthcoming_fixtures" (
"date" text,
"location" text,
"opponent" text,
"score" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the event that had Liberia as an opponent and resulted in a 1-0 score?`:
```sql
|
SELECT "date" FROM "recent_results_and_forthcoming_fixtures" WHERE "competition"='2014 world cup qualification' AND "location"='kampala' AND "opponent"='angola'; |
## Task
Generate a SQL query to answer the following question:
`When was the 2014 World Cup Qualification in Kampala that had Angola as an opponent`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recent_results_and_forthcoming_fixtures" (
"date" text,
"location" text,
"opponent" text,
"score" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the 2014 World Cup Qualification in Kampala that had Angola as an opponent`:
```sql
|
SELECT "opponent" FROM "fed_cup_singles_performances_9" WHERE "zone"='europe/africa group i'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Europe/Africa group i's opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fed_cup_singles_performances_9" (
"edition" real,
"zone" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"outcome" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Europe/Africa group i's opponent?`:
```sql
|
SELECT "zone" FROM "fed_cup_singles_performances_9" WHERE "round"='semifinal' AND "against"='israel' AND "opponent"='anna smashnova'; |
## Task
Generate a SQL query to answer the following question:
`What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fed_cup_singles_performances_9" (
"edition" real,
"zone" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"outcome" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?`:
```sql
|
SELECT "surface" FROM "fed_cup_singles_performances_9" WHERE "opponent"='shahar pe''er'; |
## Task
Generate a SQL query to answer the following question:
`What surface was played on against Shahar Pe'er?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fed_cup_singles_performances_9" (
"edition" real,
"zone" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"outcome" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What surface was played on against Shahar Pe'er?`:
```sql
|
SELECT "years" FROM "multiple_winners" WHERE "distance"='marathon' AND "wins"=3; |
## Task
Generate a SQL query to answer the following question:
`I want the years for marathon distance and wins of 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "multiple_winners" (
"athlete" text,
"country" text,
"wins" real,
"years" text,
"distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the years for marathon distance and wins of 3`:
```sql
|
SELECT "country" FROM "multiple_winners" WHERE "athlete"='ziedonis zaļkalns'; |
## Task
Generate a SQL query to answer the following question:
`Name the country for athlete of ziedonis zaļkalns`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "multiple_winners" (
"athlete" text,
"country" text,
"wins" real,
"years" text,
"distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for athlete of ziedonis zaļkalns`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "result"='l 49–21'; |
## Task
Generate a SQL query to answer the following question:
`I want the attendance which has a result of l 49–21`
### 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 `I want the attendance which has a result of l 49–21`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "result"='l 26–3'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the attendance with a result of l 26–3`
### 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 `Tell me the attendance with a result of l 26–3`:
```sql
|
SELECT MIN("week") FROM "schedule" WHERE "date"='december 19, 2004'; |
## Task
Generate a SQL query to answer the following question:
`I want to know the lowest week with a date of december 19, 2004`
### 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 `I want to know the lowest week with a date of december 19, 2004`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='new orleans'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the location where New Orleans's team plays?`
### 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 `What is the attendance of the location where New Orleans's team plays?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "high_points"='raymond felton (26)'; |
## Task
Generate a SQL query to answer the following question:
`Which team has the high points of Raymond Felton (26)?`
### 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 `Which team has the high points of Raymond Felton (26)?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "grid"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the time of the driver on grid 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the driver on grid 7?`:
```sql
|
SELECT "constructor" FROM "race" WHERE "grid"=2; |
## Task
Generate a SQL query to answer the following question:
`Which Constructor has grid 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Constructor has grid 2?`:
```sql
|
SELECT MAX("grid") FROM "race" WHERE "laps"=55; |
## Task
Generate a SQL query to answer the following question:
`What is the highest grid that has 55 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest grid that has 55 laps?`:
```sql
|
SELECT "away_team_score" FROM "round_15" WHERE "home_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`Who was Richmond's away team opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_15" (
"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 was Richmond's away team opponent?`:
```sql
|
SELECT "away_team_score" FROM "round_15" WHERE "venue"='vfl park'; |
## Task
Generate a SQL query to answer the following question:
`What was the away score at VFL Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_15" (
"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 score at VFL Park?`:
```sql
|
SELECT "home_team_score" FROM "round_6" WHERE "home_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the home team score for richmond home team`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"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 `Tell me the home team score for richmond home team`:
```sql
|
SELECT "venue" FROM "round_6" WHERE "date"='8 june 1931' AND "away_team"='st kilda'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the venue for 8 june 1931 for st kilda away team`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"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 `Tell me the venue for 8 june 1931 for st kilda away team`:
```sql
|
SELECT "away_team_score" FROM "round_22" WHERE "home_team"='fitzroy'; |
## Task
Generate a SQL query to answer the following question:
`When fitzroy was the home team, how much did the away team score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"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 fitzroy was the home team, how much did the away team score?`:
```sql
|
SELECT "venue" FROM "round_22" WHERE "home_team_score"='15.11 (101)' AND "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`In the game where the home team scored 15.11 (101) and carlton was away, where was the venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"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 `In the game where the home team scored 15.11 (101) and carlton was away, where was the venue?`:
```sql
|
SELECT "home_team_score" FROM "round_22" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`When essendon was the home team, how much did they score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"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 essendon was the home team, how much did they score?`:
```sql
|
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='shintaro ishiwatari'; |
## Task
Generate a SQL query to answer the following question:
`What is shintaro ishiwatari's time?`
### 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,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is shintaro ishiwatari's time?`:
```sql
|
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='sakae kasuya'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds have an Opponent of sakae kasuya?`
### 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,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds have an Opponent of sakae kasuya?`:
```sql
|
SELECT "time" FROM "mixed_martial_arts_record" WHERE "method"='decision(majority)' AND "opponent"='keisuke yamada'; |
## Task
Generate a SQL query to answer the following question:
`Which time has a Method of decision(majority), and an Opponent of keisuke yamada?`
### 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,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which time has a Method of decision(majority), and an Opponent of keisuke yamada?`:
```sql
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='shooto' AND "round"=2 AND "opponent"='issei tamura'; |
## Task
Generate a SQL query to answer the following question:
`Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura?`
### 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,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura?`:
```sql
|
SELECT "away_team" FROM "round_15" WHERE "venue"='punt road oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the away team that played at punt road oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_15" (
"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 away team that played at punt road oval?`:
```sql
|
SELECT "home_team_score" FROM "round_15" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`What is the home team score that played at windy hill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_15" (
"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 score that played at windy hill?`:
```sql
|
SELECT SUM("crowd") FROM "round_15" WHERE "away_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`How big was the crowd at the game the away team geelong played at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_15" (
"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 big was the crowd at the game the away team geelong played at?`:
```sql
|
SELECT "constructor" FROM "non_championship_race_results" WHERE "race_name"='i news of the world trophy'; |
## Task
Generate a SQL query to answer the following question:
`Which constructor has a race called I News of the World Trophy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which constructor has a race called I News of the World Trophy?`:
```sql
|
SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='goodwood'; |
## Task
Generate a SQL query to answer the following question:
`Which Constructor has the goodwood circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Constructor has the goodwood circuit?`:
```sql
|
SELECT "winning_driver" FROM "non_championship_race_results" WHERE "race_name"='vii rand grand prix'; |
## Task
Generate a SQL query to answer the following question:
`What driver won the VII Rand Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What driver won the VII Rand Grand Prix?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.