output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "opponent" FROM "game_log" WHERE "save"='||33,389||87–62'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the game with save ||33,389||87–62?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the game with save ||33,389||87–62?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "save"='||33,723||93–64'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the game with save ||33,723||93–64?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the game with save ||33,723||93–64?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='september 8'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on September 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on September 8?`:
```sql
|
SELECT "nationality" FROM "p" WHERE "years_for_jazz"='1984-85'; |
## Task
Generate a SQL query to answer the following question:
`Which nationality has Years for Jazz of 1984-85?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality has Years for Jazz of 1984-85?`:
```sql
|
SELECT "position" FROM "p" WHERE "nationality"='united states' AND "player"='roger powell'; |
## Task
Generate a SQL query to answer the following question:
`Which position has a Nationality of united states, and a Player of roger powell?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has a Nationality of united states, and a Player of roger powell?`:
```sql
|
SELECT "years_for_jazz" FROM "p" WHERE "player"='milt palacio'; |
## Task
Generate a SQL query to answer the following question:
`What years does milt palacio play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years does milt palacio play?`:
```sql
|
SELECT "years_for_jazz" FROM "p" WHERE "school_club_team"='colorado state'; |
## Task
Generate a SQL query to answer the following question:
`Which years have a School/Club Team of colorado state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years have a School/Club Team of colorado state?`:
```sql
|
SELECT "years" FROM "engines" WHERE "engine_code"='m47d20' AND "model"='318td (diesel)'; |
## Task
Generate a SQL query to answer the following question:
`During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured?`:
```sql
|
SELECT "torque" FROM "engines" WHERE "engine_code"='m54b25'; |
## Task
Generate a SQL query to answer the following question:
`What is the Torque of the model with the engine code of M54B25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Torque of the model with the engine code of M54B25?`:
```sql
|
SELECT "torque" FROM "engines" WHERE "model"='320td (diesel)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Torque of the Model 320td (diesel)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Torque of the Model 320td (diesel)?`:
```sql
|
SELECT "years" FROM "engines" WHERE "engine_code"='m54b25'; |
## Task
Generate a SQL query to answer the following question:
`During which years was the model with the Engine code of m54b25 manufactured?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which years was the model with the Engine code of m54b25 manufactured?`:
```sql
|
SELECT "model" FROM "engines" WHERE "years"='2001–2004' AND "torque"='n·m (lb·ft) @ 3750' AND "engine_code"='n42b18 / n46b18'; |
## Task
Generate a SQL query to answer the following question:
`Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "score"='1-12'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the Mariners game that had a score of 1-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the Mariners game that had a score of 1-12?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "attendance"='6,707'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the Mariners game that had an attendance of 6,707?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the Mariners game that had an attendance of 6,707?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "loss"='segui (0-5)'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the Mariners game that had a loss of Segui (0-5)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the Mariners game that had a loss of Segui (0-5)?`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "attendance"='9,065'; |
## Task
Generate a SQL query to answer the following question:
`What was the loss of the Mariners game that had an attendance of 9,065?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the Mariners game that had an attendance of 9,065?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "attendance"='7,893'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Mariners opponent at the game attended by 7,893?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Mariners opponent at the game attended by 7,893?`:
```sql
|
SELECT "surface" FROM "singles_9" WHERE "tournament"='aptos'; |
## Task
Generate a SQL query to answer the following question:
`What is the tournament surface at Aptos?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9" (
"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 is the tournament surface at Aptos?`:
```sql
|
SELECT "score" FROM "singles_9" WHERE "opponent_in_the_final"='paul goldstein'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score of the Paul Goldstein match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9" (
"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 Paul Goldstein match?`:
```sql
|
SELECT "opponent_in_the_final" FROM "singles_9" WHERE "date"='november 23, 1998'; |
## Task
Generate a SQL query to answer the following question:
`Who played the final match on November 23, 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9" (
"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 played the final match on November 23, 1998?`:
```sql
|
SELECT "date" FROM "singles_9" WHERE "opponent_in_the_final"='paul goldstein'; |
## Task
Generate a SQL query to answer the following question:
`What date did Paul Goldstein play the final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9" (
"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 date did Paul Goldstein play the final?`:
```sql
|
SELECT "surface" FROM "singles_9" WHERE "opponent_in_the_final"='takao suzuki'; |
## Task
Generate a SQL query to answer the following question:
`What was the surface type at Takao Suzuki?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9" (
"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 surface type at Takao Suzuki?`:
```sql
|
SELECT "score" FROM "singles_9" WHERE "date"='september 11, 2006'; |
## Task
Generate a SQL query to answer the following question:
`What were the scores on September 11, 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9" (
"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 were the scores on September 11, 2006?`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "date"='may 9'; |
## Task
Generate a SQL query to answer the following question:
`Who did they lose to on may 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did they lose to on may 9?`:
```sql
|
SELECT COUNT("grid") FROM "race" WHERE "driver"='pedro de la rosa'; |
## Task
Generate a SQL query to answer the following question:
`What is Pedro De La Rosa's total number of Grid?`
### 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 Pedro De La Rosa's total number of Grid?`:
```sql
|
SELECT "constructor" FROM "race" WHERE "time_retired"='+37.311'; |
## Task
Generate a SQL query to answer the following question:
`Which constructor has a Time/Retired of +37.311?`
### 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 a Time/Retired of +37.311?`:
```sql
|
SELECT "time_retired" FROM "classification" WHERE "driver"='mika häkkinen'; |
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for mika häkkinen`
### 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 mika häkkinen`:
```sql
|
SELECT "title" FROM "episodes_and_audiences" WHERE "audience"='4.629.000'; |
## Task
Generate a SQL query to answer the following question:
`Which title had an audience of 4.629.000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title had an audience of 4.629.000?`:
```sql
|
SELECT "audience" FROM "episodes_and_audiences" WHERE "episode"='21'; |
## Task
Generate a SQL query to answer the following question:
`What was the audience for Episode 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the audience for Episode 21?`:
```sql
|
SELECT "share" FROM "episodes_and_audiences" WHERE "audience"='3.944.000'; |
## Task
Generate a SQL query to answer the following question:
`What was the share when the audience was 3.944.000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the share when the audience was 3.944.000?`:
```sql
|
SELECT "audience" FROM "episodes_and_audiences" WHERE "title"='mi amigo el monstruo'; |
## Task
Generate a SQL query to answer the following question:
`What was the audience for Mi Amigo el Monstruo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the audience for Mi Amigo el Monstruo?`:
```sql
|
SELECT "title" FROM "episodes_and_audiences" WHERE "share"='19,9%'; |
## Task
Generate a SQL query to answer the following question:
`Which title has a share of 19,9%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title has a share of 19,9%`:
```sql
|
SELECT "share" FROM "episodes_and_audiences" WHERE "audience"='4.693.000'; |
## Task
Generate a SQL query to answer the following question:
`Which share had an audience of 4.693.000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which share had an audience of 4.693.000?`:
```sql
|
SELECT "venue" FROM "round_5" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`what was the venue that hosted Carlton as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_5" (
"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 venue that hosted Carlton as the away team?`:
```sql
|
SELECT "date" FROM "round_5" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the Collingwood away game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_5" (
"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 of the Collingwood away game?`:
```sql
|
SELECT "player" FROM "draft" WHERE "team"='new york knicks' AND "position"='c'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player that plays position c on the New York Knicks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player that plays position c on the New York Knicks?`:
```sql
|
SELECT "position" FROM "draft" WHERE "pick"='1'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the pick 1 player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the pick 1 player?`:
```sql
|
SELECT "player" FROM "draft" WHERE "team"='fort wayne pistons' AND "position"='f'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player that plays position f from Fort Wayne Pistons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player that plays position f from Fort Wayne Pistons?`:
```sql
|
SELECT "round" FROM "draft" WHERE "college"='oregon'; |
## Task
Generate a SQL query to answer the following question:
`Which round is the player from Oregon from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round is the player from Oregon from?`:
```sql
|
SELECT COUNT("goals_for") FROM "final_standing" WHERE "goals_against"<56 AND "games_played">7 AND "wins"<6; |
## Task
Generate a SQL query to answer the following question:
`How many goals for occurred when the goals against was less than 56 and games played was larger than 7 with less than 6 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals for occurred when the goals against was less than 56 and games played was larger than 7 with less than 6 wins?`:
```sql
|
SELECT MIN("wins") FROM "final_standing" WHERE "games_played"=7 AND "goals_against"<46 AND "goals_for">34; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of wins with 7 games played and goals against less than 46 when goals for is more than 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of wins with 7 games played and goals against less than 46 when goals for is more than 34?`:
```sql
|
SELECT AVG("ties") FROM "final_standing" WHERE "goals_against"<56 AND "team"='ottawa hockey club' AND "goals_for">47; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of ties when goals against is less than 56 for Ottawa Hockey Club and the goals for is more than 47?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of ties when goals against is less than 56 for Ottawa Hockey Club and the goals for is more than 47?`:
```sql
|
SELECT COUNT("losses") FROM "final_standing" WHERE "games_played"<8 AND "wins"<3; |
## Task
Generate a SQL query to answer the following question:
`How many losses occurred with less than 8 games played and less than 3 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses occurred with less than 8 games played and less than 3 wins?`:
```sql
|
SELECT COUNT("goals_against") FROM "final_standing" WHERE "goals_for"<48 AND "ties"<0; |
## Task
Generate a SQL query to answer the following question:
`How many goals against were scored when the goals for is less than 48 with 0 ties?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals against were scored when the goals for is less than 48 with 0 ties?`:
```sql
|
SELECT "position" FROM "d" WHERE "school_club_team_country"='valparaiso'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for the player that is from valparaiso`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for the player that is from valparaiso`:
```sql
|
SELECT "height_in_ft" FROM "d" WHERE "position"='guard' AND "school_club_team_country"='north carolina-charlotte'; |
## Task
Generate a SQL query to answer the following question:
`Name the height in feet for the guard from north carolina-charlotte`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the height in feet for the guard from north carolina-charlotte`:
```sql
|
SELECT "height_in_ft" FROM "d" WHERE "school_club_team_country"='valparaiso'; |
## Task
Generate a SQL query to answer the following question:
`Name the height in feet for the player from valparaiso`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the height in feet for the player from valparaiso`:
```sql
|
SELECT "school_club_team_country" FROM "d" WHERE "height_in_ft"='6-5'; |
## Task
Generate a SQL query to answer the following question:
`Name the school/club team/country for the player that is 6-5 ft`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the school/club team/country for the player that is 6-5 ft`:
```sql
|
SELECT "no_s" FROM "d" WHERE "height_in_ft"='6-7' AND "position"='guard'; |
## Task
Generate a SQL query to answer the following question:
`Name the numbers for the player with a height in ft of 6-7 for the guard`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the numbers for the player with a height in ft of 6-7 for the guard`:
```sql
|
SELECT "height_in_ft" FROM "d" WHERE "school_club_team_country"='wyoming'; |
## Task
Generate a SQL query to answer the following question:
`Name the height in ft for the player from wyoming`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the height in ft for the player from wyoming`:
```sql
|
SELECT "college" FROM "round_three" WHERE "cfl_team"='calgary stampeders'; |
## Task
Generate a SQL query to answer the following question:
`Which college did the Calgary Stampeders recruit from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" text,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college did the Calgary Stampeders recruit from?`:
```sql
|
SELECT MIN("year") FROM "2000s" WHERE "co_singer"='solo' AND "film_name"='bhagya debata'; |
## Task
Generate a SQL query to answer the following question:
`Which year has the Co-singer solo and a Film name of bhagya debata?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"film_name" text,
"co_singer" text,
"music_director" text,
"language" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year has the Co-singer solo and a Film name of bhagya debata?`:
```sql
|
SELECT "date" FROM "season_review" WHERE "grand_prix"='portuguese grand prix'; |
## Task
Generate a SQL query to answer the following question:
`What date is the Portuguese Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date is the Portuguese Grand Prix?`:
```sql
|
SELECT "winning_driver" FROM "season_review" WHERE "location"='imola'; |
## Task
Generate a SQL query to answer the following question:
`Which winning driver is located in Imola?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which winning driver is located in Imola?`:
```sql
|
SELECT "pole_position" FROM "season_review" WHERE "grand_prix"='portuguese grand prix'; |
## Task
Generate a SQL query to answer the following question:
`What is the Pole Position of the Portuguese Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pole Position of the Portuguese Grand Prix?`:
```sql
|
SELECT "date" FROM "season_review" WHERE "location"='long beach'; |
## Task
Generate a SQL query to answer the following question:
`On what date did a race occur at Long Beach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did a race occur at Long Beach?`:
```sql
|
SELECT "race" FROM "season_review" WHERE "pole_position"='jody scheckter'; |
## Task
Generate a SQL query to answer the following question:
`What race had Jody Scheckter hold pole position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race had Jody Scheckter hold pole position?`:
```sql
|
SELECT "pole_position" FROM "season_review" WHERE "fastest_lap"='gilles villeneuve' AND "constructor"='ferrari' AND "race_winner"='gilles villeneuve'; |
## Task
Generate a SQL query to answer the following question:
`Who held pole position at the race won by Gilles Villeneuve, with the fastest lap held by Gilles Villeneuve, driving a Ferrari?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who held pole position at the race won by Gilles Villeneuve, with the fastest lap held by Gilles Villeneuve, driving a Ferrari?`:
```sql
|
SELECT "race_winner" FROM "season_review" WHERE "race"='south african grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Who won the South African Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the South African Grand Prix?`:
```sql
|
SELECT "fastest_lap" FROM "season_review" WHERE "race"='german grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap at the German Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap at the German Grand Prix?`:
```sql
|
SELECT "tyre" FROM "season_review" WHERE "race"='united states grand prix'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tyre for the united states 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 Tyre for the united states grand prix?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "competition"='1948 og'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the 1948 og competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the 1948 og competition?`:
```sql
|
SELECT MIN("grid") FROM "classification" WHERE "driver"='rolf stommelen'; |
## Task
Generate a SQL query to answer the following question:
`I want the lowest Grid for Rolf Stommelen`
### 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 `I want the lowest Grid for Rolf Stommelen`:
```sql
|
SELECT "constructor" FROM "classification" WHERE "grid"<20 AND "laps"=6; |
## Task
Generate a SQL query to answer the following question:
`I want the constructor for grid less than 20 and Laps of 6`
### 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 `I want the constructor for grid less than 20 and Laps of 6`:
```sql
|
SELECT "german" FROM "development_of_population" WHERE "year">1910 AND "other"='143' AND "hungarian"='32'; |
## Task
Generate a SQL query to answer the following question:
`What is the german total population after 1910 with an other total of 143 and 32 hungarians?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "development_of_population" (
"year" real,
"total" real,
"german" text,
"romanian" text,
"hungarian" text,
"other" text,
"of_which_romanies_gypsies" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the german total population after 1910 with an other total of 143 and 32 hungarians?`:
```sql
|
SELECT "year" FROM "competition_record" WHERE "notes"='200 m' AND "position"='3rd'; |
## Task
Generate a SQL query to answer the following question:
`What year did Naoki Tsukahara finish 3rd in the 200 m race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Naoki Tsukahara finish 3rd in the 200 m race?`:
```sql
|
SELECT COUNT("attendance") FROM "western_conference_finals" WHERE "home"='dallas' AND "date"='may 12'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance at the Dallas home game on may 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_conference_finals" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance at the Dallas home game on may 12?`:
```sql
|
SELECT "country" FROM "leaders" WHERE "rank"=2; |
## Task
Generate a SQL query to answer the following question:
`What nationality is the player ranked 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is the player ranked 2?`:
```sql
|
SELECT COUNT("wins") FROM "leaders" WHERE "player"='mike hill' AND "rank"<4; |
## Task
Generate a SQL query to answer the following question:
`How many wins for mike hill ranked below 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins for mike hill ranked below 4?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "player"='trevor cann'; |
## Task
Generate a SQL query to answer the following question:
`What is Trevor Cann's nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Trevor Cann's nationality?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "player"='kent patterson'; |
## Task
Generate a SQL query to answer the following question:
`What is Kent Patterson's nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Kent Patterson's nationality?`:
```sql
|
SELECT "unit" FROM "patrol" WHERE "pennant_number"=82; |
## Task
Generate a SQL query to answer the following question:
`Which unit has a Pennant Number of 82?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "patrol" (
"class" text,
"ships_in_class" text,
"pennant_number" real,
"unit" text,
"builder" text,
"commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which unit has a Pennant Number of 82?`:
```sql
|
SELECT MAX("pennant_number") FROM "patrol" WHERE "ships_in_class"='raahe'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest pennant number with ships in raahe class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "patrol" (
"class" text,
"ships_in_class" text,
"pennant_number" real,
"unit" text,
"builder" text,
"commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pennant number with ships in raahe class?`:
```sql
|
SELECT MAX("pennant_number") FROM "patrol" WHERE "ships_in_class"='pori'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest pennant number with ships in pori class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "patrol" (
"class" text,
"ships_in_class" text,
"pennant_number" real,
"unit" text,
"builder" text,
"commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pennant number with ships in pori class?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "score"='2-1'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the competition that ended with a score of 2-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the competition that ended with a score of 2-1?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "score"='1-3'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the competition that ended with a score of 1-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the competition that ended with a score of 1-3?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "date"='28 october 2013'; |
## Task
Generate a SQL query to answer the following question:
`At which venue did the game on 28 october 2013 take place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `At which venue did the game on 28 october 2013 take place?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "score"='2-1'; |
## Task
Generate a SQL query to answer the following question:
`What is the Competition name of the competition that ended with a score of 2-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Competition name of the competition that ended with a score of 2-1?`:
```sql
|
SELECT "year" FROM "complete_formula_one_results" WHERE "engine"='yamaha v12' AND "chassis"='brabham bt60y'; |
## Task
Generate a SQL query to answer the following question:
`In what year did a car have a yamaha v12 engine and a brabham bt60y chassis`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did a car have a yamaha v12 engine and a brabham bt60y chassis`:
```sql
|
SELECT MAX("year") FROM "complete_formula_one_results" WHERE "chassis"='mclaren mp4/10b'; |
## Task
Generate a SQL query to answer the following question:
`waht is the last year with a mclaren mp4/10b chassis`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `waht is the last year with a mclaren mp4/10b chassis`:
```sql
|
SELECT AVG("pts") FROM "complete_formula_one_results" WHERE "chassis"='mclaren mp4/10b' AND "year"<1995; |
## Task
Generate a SQL query to answer the following question:
`before 1995 waht is the aveage pts for a mclaren mp4/10b chassis`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `before 1995 waht is the aveage pts for a mclaren mp4/10b chassis`:
```sql
|
SELECT MAX("year") FROM "complete_formula_one_results" WHERE "entrant"='ligier gitanes blondes'; |
## Task
Generate a SQL query to answer the following question:
`what is the most recent year for a ligier gitanes blondes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the most recent year for a ligier gitanes blondes`:
```sql
|
SELECT SUM("average") FROM "preliminary_competition" WHERE "interview"=8.75 AND "evening_gown">8.75; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_competition" (
"state" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75?`:
```sql
|
SELECT SUM("interview") FROM "preliminary_competition" WHERE "evening_gown"<8.82 AND "state"='kentucky' AND "average">8.85; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_competition" (
"state" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85?`:
```sql
|
SELECT SUM("average") FROM "preliminary_competition" WHERE "swimsuit"=8.42 AND "evening_gown"<8.71; |
## Task
Generate a SQL query to answer the following question:
`How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_competition" (
"state" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71?`:
```sql
|
SELECT "state" FROM "preliminary_competition" WHERE "average"<8.67 AND "swimsuit"=8.27 AND "evening_gown"=8.78 AND "interview"=8.52; |
## Task
Generate a SQL query to answer the following question:
`Which state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_competition" (
"state" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52?`:
```sql
|
SELECT "record" FROM "february" WHERE "visitor"='nashville'; |
## Task
Generate a SQL query to answer the following question:
`What is the record when the visitor was Nashville?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"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 `What is the record when the visitor was Nashville?`:
```sql
|
SELECT "score" FROM "february" WHERE "attendance">'14,381' AND "visitor"='phoenix' AND "home"='chicago'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when there were more than 14,381 in attendance and Phoenix was the visitor and Chicago was home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"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 `What was the score when there were more than 14,381 in attendance and Phoenix was the visitor and Chicago was home?`:
```sql
|
SELECT "date" FROM "best_bowling" WHERE "venue"='pietermaritzburg'; |
## Task
Generate a SQL query to answer the following question:
`When was a competition held at Pietermaritzburg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was a competition held at Pietermaritzburg?`:
```sql
|
SELECT "bowling_figures_wickets_runs_overs" FROM "best_bowling" WHERE "venue"='pietermaritzburg'; |
## Task
Generate a SQL query to answer the following question:
`What were the bowling figures for the competition at Pietermaritzburg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the bowling figures for the competition at Pietermaritzburg?`:
```sql
|
SELECT "versus" FROM "best_bowling" WHERE "bowling_figures_wickets_runs_overs"='5-33 (10)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent during the competition in which the bowling figures were 5-33 (10)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent during the competition in which the bowling figures were 5-33 (10)?`:
```sql
|
SELECT "bowling_figures_wickets_runs_overs" FROM "best_bowling" WHERE "bowler"='gd mcgrath'; |
## Task
Generate a SQL query to answer the following question:
`What were GD Mcgrath's bowling figures?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were GD Mcgrath's bowling figures?`:
```sql
|
SELECT "bowling_figures_wickets_runs_overs" FROM "best_bowling" WHERE "venue"='port elizabeth' AND "versus"='australia'; |
## Task
Generate a SQL query to answer the following question:
`During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures?`:
```sql
|
SELECT MIN("floors") FROM "buildings_completed_as_of_february_2011" WHERE "rank">1 AND "building"='the trillium (residential)'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of floors after rank 1 in the Trillium (residential) building?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"height" text,
"floors" real,
"completed" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of floors after rank 1 in the Trillium (residential) building?`:
```sql
|
SELECT MIN("floors") FROM "buildings_completed_as_of_february_2011" WHERE "completed"<1970 AND "rank">14; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of floors in the building completed before 1970 ranked more than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"height" text,
"floors" real,
"completed" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of floors in the building completed before 1970 ranked more than 14?`:
```sql
|
SELECT MAX("floors") FROM "buildings_completed_as_of_february_2011" WHERE "height"='70m (233ft)' AND "building"='tupper building (educational)'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of floors in the 70m (233ft) Tupper building (educational)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"height" text,
"floors" real,
"completed" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of floors in the 70m (233ft) Tupper building (educational)?`:
```sql
|
SELECT "manufacturer" FROM "moto_gp_classification" WHERE "laps"=23 AND "time_retired"='+45.195'; |
## Task
Generate a SQL query to answer the following question:
`Which manufacturer has 23 laps and a time of +45.195?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer has 23 laps and a time of +45.195?`:
```sql
|
SELECT SUM("laps") FROM "moto_gp_classification" WHERE "rider"='sylvain guintoli'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Sylvain Guintoli's laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Sylvain Guintoli's laps?`:
```sql
|
SELECT "runs" FROM "highest_individual_scores" WHERE "strike_rate"='101.42'; |
## Task
Generate a SQL query to answer the following question:
`How many runs were scored when the strike rate was 101.42?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_individual_scores" (
"runs" text,
"balls" text,
"batsman" text,
"versus" text,
"venue" text,
"date" text,
"strike_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs were scored when the strike rate was 101.42?`:
```sql
|
SELECT "2001" FROM "port_statistics" WHERE "product"='grain'; |
## Task
Generate a SQL query to answer the following question:
`What was the amount of grain in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "port_statistics" (
"product" text,
"2004" text,
"2003" text,
"2002" text,
"2001" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the amount of grain in 2001?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.