output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "result" FROM "history" WHERE "western_champion"='sacramento monarchs' AND "eastern_champion"='connecticut sun'; |
## Task
Generate a SQL query to answer the following question:
`What is the score from the Sacramento monarchs from the west and the Connecticut sun from the east?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history" (
"year" real,
"western_champion" text,
"result" text,
"eastern_champion" text,
"finals_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score from the Sacramento monarchs from the west and the Connecticut sun from the east?`:
```sql
|
SELECT "nominee" FROM "awards" WHERE "category"='best lead actress'; |
## Task
Generate a SQL query to answer the following question:
`Who is the nominee for Best Lead Actress?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"ceremony" text,
"category" text,
"nominee" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the nominee for Best Lead Actress?`:
```sql
|
SELECT "category" FROM "awards" WHERE "nominee"='carmen salinas'; |
## Task
Generate a SQL query to answer the following question:
`In what category is Carmen Salinas nominated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"ceremony" text,
"category" text,
"nominee" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what category is Carmen Salinas nominated?`:
```sql
|
SELECT SUM("year") FROM "awards" WHERE "category"='best supporting actress'; |
## Task
Generate a SQL query to answer the following question:
`What year was there a category of Best Supporting Actress?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"ceremony" text,
"category" text,
"nominee" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was there a category of Best Supporting Actress?`:
```sql
|
SELECT "londonborough" FROM "see_also" WHERE "dialcode"='01992'; |
## Task
Generate a SQL query to answer the following question:
`What Londongborough has a Dialcode of 01992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"location" text,
"londonborough" text,
"post_town" text,
"postcodedistrict" text,
"dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Londongborough has a Dialcode of 01992?`:
```sql
|
SELECT "dialcode" FROM "see_also" WHERE "location"='whitechapel'; |
## Task
Generate a SQL query to answer the following question:
`What is the Dialcode of whitechapel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"location" text,
"londonborough" text,
"post_town" text,
"postcodedistrict" text,
"dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Dialcode of whitechapel?`:
```sql
|
SELECT "postcodedistrict" FROM "see_also" WHERE "location"='eden park'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the Post code district that is in Eden Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"location" text,
"londonborough" text,
"post_town" text,
"postcodedistrict" text,
"dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Post code district that is in Eden Park?`:
```sql
|
SELECT "post_town" FROM "see_also" WHERE "dialcode"='020' AND "location"='hook'; |
## Task
Generate a SQL query to answer the following question:
`Which Post Town has a Dialcode of 020 and is located in Hook?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"location" text,
"londonborough" text,
"post_town" text,
"postcodedistrict" text,
"dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Post Town has a Dialcode of 020 and is located in Hook?`:
```sql
|
SELECT "dialcode" FROM "see_also" WHERE "location"='edmonton'; |
## Task
Generate a SQL query to answer the following question:
`What Dialcode has a location of Edmonton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"location" text,
"londonborough" text,
"post_town" text,
"postcodedistrict" text,
"dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Dialcode has a location of Edmonton?`:
```sql
|
SELECT AVG("rank") FROM "leaders" WHERE "earnings"<'224,589'; |
## Task
Generate a SQL query to answer the following question:
`Which average rank has an Earning amount that is less than $224,589?`
### 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 `Which average rank has an Earning amount that is less than $224,589?`:
```sql
|
SELECT "country" FROM "leaders" WHERE "rank"=2; |
## Task
Generate a SQL query to answer the following question:
`Which country has a rank of 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 `Which country has a rank of 2?`:
```sql
|
SELECT COUNT("roll") FROM "howick_local_board" WHERE "name"='shelly park school'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number on roll for Shelly Park school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "howick_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number on roll for Shelly Park school?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "record"='0-5'; |
## Task
Generate a SQL query to answer the following question:
`What week was the record 0-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the record 0-5?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "attendance"='45,320'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game with the attendance of 45,320?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game with the attendance of 45,320?`:
```sql
|
SELECT "kickoff_a" FROM "schedule" WHERE "date"='september 15, 1985'; |
## Task
Generate a SQL query to answer the following question:
`What time was the kickoff on September 15, 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was the kickoff on September 15, 1985?`:
```sql
|
SELECT "player" FROM "running_backs" WHERE "long"='5' AND "yards"='6'; |
## Task
Generate a SQL query to answer the following question:
`Which Player had a Long of 5 and Yards of 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player had a Long of 5 and Yards of 6?`:
```sql
|
SELECT COUNT("td_s") FROM "running_backs" WHERE "long"='2' AND "player"='lashaun ward'; |
## Task
Generate a SQL query to answer the following question:
`What was the total number of TD's for Player Lashaun Ward while also having a Long of 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of TD's for Player Lashaun Ward while also having a Long of 2?`:
```sql
|
SELECT "yards" FROM "running_backs" WHERE "player"='rob turner'; |
## Task
Generate a SQL query to answer the following question:
`How many Yards did Player Rob Turner collect?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Yards did Player Rob Turner collect?`:
```sql
|
SELECT "home" FROM "game_log" WHERE "date"='march 5'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team on March 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team on March 5?`:
```sql
|
SELECT "visitor" FROM "game_log" WHERE "date"='march 24'; |
## Task
Generate a SQL query to answer the following question:
`Who is the visitor on March 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor on March 24?`:
```sql
|
SELECT "home" FROM "game_log" WHERE "date"='march 24'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team on March 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team on March 24?`:
```sql
|
SELECT COUNT("crowd") FROM "round_11" WHERE "home_team_score"='8.21 (69)'; |
## Task
Generate a SQL query to answer the following question:
`What was the total crowd at the game where the home team score was 8.21 (69)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 total crowd at the game where the home team score was 8.21 (69)`:
```sql
|
SELECT "date" FROM "round_11" WHERE "home_team_score"='16.15 (111)'; |
## Task
Generate a SQL query to answer the following question:
`What date did a home team score 16.15 (111)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did a home team score 16.15 (111)`:
```sql
|
SELECT MIN("crowd") FROM "round_11" WHERE "home_team_score"='18.12 (120)'; |
## Task
Generate a SQL query to answer the following question:
`what was the total crowd in the game where the home teams score was 18.12 (120)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 total crowd in the game where the home teams score was 18.12 (120)`:
```sql
|
SELECT "date" FROM "round_11" WHERE "home_team_score"='22.15 (147)' AND "away_team_score"='9.8 (62)'; |
## Task
Generate a SQL query to answer the following question:
`On which date was the game where the home teams score was 22.15 (147), and the away teams score was 9.8 (62)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 which date was the game where the home teams score was 22.15 (147), and the away teams score was 9.8 (62)`:
```sql
|
SELECT MIN("solo") FROM "defense" WHERE "assisted"<10 AND "td_s"=0 AND "sack"<3 AND "yards">5; |
## Task
Generate a SQL query to answer the following question:
`what is the lowest solo when assisted is less than 10, td's is 0, sack is less than 3 and yards is more than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defense" (
"player" text,
"tackles" real,
"solo" real,
"assisted" real,
"sack" real,
"yards" real,
"td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest solo when assisted is less than 10, td's is 0, sack is less than 3 and yards is more than 5?`:
```sql
|
SELECT "assisted" FROM "defense" WHERE "solo"=6 AND "sack"<5; |
## Task
Generate a SQL query to answer the following question:
`what is the assisted when the solo is 6 and sack is less than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defense" (
"player" text,
"tackles" real,
"solo" real,
"assisted" real,
"sack" real,
"yards" real,
"td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the assisted when the solo is 6 and sack is less than 5?`:
```sql
|
SELECT MAX("td_s") FROM "defense" WHERE "sack"<13 AND "tackles"<8 AND "yards"<0; |
## Task
Generate a SQL query to answer the following question:
`what is the highest td's when the sack is less than 13, tackles is less than 8 and yards is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defense" (
"player" text,
"tackles" real,
"solo" real,
"assisted" real,
"sack" real,
"yards" real,
"td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest td's when the sack is less than 13, tackles is less than 8 and yards is less than 0?`:
```sql
|
SELECT COUNT("losses") FROM "first_phase" WHERE "played">34; |
## Task
Generate a SQL query to answer the following question:
`How many losses had a played number that was more than 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_phase" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses had a played number that was more than 34?`:
```sql
|
SELECT MAX("goals_against") FROM "first_phase" WHERE "wins"=19 AND "goals_for">53; |
## Task
Generate a SQL query to answer the following question:
`Which highest 'goals against' number had wins of 19 and a 'goals for' number that was bigger than 53?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_phase" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which highest 'goals against' number had wins of 19 and a 'goals for' number that was bigger than 53?`:
```sql
|
SELECT AVG("losses") FROM "first_phase" WHERE "played">34; |
## Task
Generate a SQL query to answer the following question:
`Which mean number of losses had a played number that was bigger than 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_phase" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which mean number of losses had a played number that was bigger than 34?`:
```sql
|
SELECT MIN("goals_for") FROM "first_phase" WHERE "played"<34; |
## Task
Generate a SQL query to answer the following question:
`Which lowest goals for number had a played number of less than 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_phase" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which lowest goals for number had a played number of less than 34?`:
```sql
|
SELECT COUNT("played") FROM "first_phase" WHERE "goal_difference">0 AND "club"='valencia cf'; |
## Task
Generate a SQL query to answer the following question:
`Which Played number had a goal difference of more than 0 when the club was Valencia CF?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_phase" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played number had a goal difference of more than 0 when the club was Valencia CF?`:
```sql
|
SELECT "player" FROM "round_5" WHERE "college"='san sebastian'; |
## Task
Generate a SQL query to answer the following question:
`What player has a college named san sebastian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_5" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a college named san sebastian?`:
```sql
|
SELECT "college" FROM "round_5" WHERE "pick"=45; |
## Task
Generate a SQL query to answer the following question:
`What college has pick 45`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_5" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college has pick 45`:
```sql
|
SELECT "original_air_date" FROM "season_7_2011" WHERE "season_num"<14 AND "production_code">709 AND "series_num"<183; |
## Task
Generate a SQL query to answer the following question:
`Name the air date for the seasons before 14 and series less than 183 with production code more than 709`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_7_2011" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the air date for the seasons before 14 and series less than 183 with production code more than 709`:
```sql
|
SELECT "title" FROM "season_7_2011" WHERE "series_num">175 AND "production_code"<706; |
## Task
Generate a SQL query to answer the following question:
`Tell me the title for the production code less than 706 with series number more than 175`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_7_2011" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the title for the production code less than 706 with series number more than 175`:
```sql
|
SELECT MIN("series_num") FROM "season_7_2011" WHERE "production_code"=717 AND "season_num"<17; |
## Task
Generate a SQL query to answer the following question:
`Name the least series number with production code of 717 and season number less than 17`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_7_2011" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least series number with production code of 717 and season number less than 17`:
```sql
|
SELECT "can_yay_nlar" FROM "children_s_books" WHERE "g_zel_aml_nin_kay_p_panteri"='çevreci peri'; |
## Task
Generate a SQL query to answer the following question:
`Which Can Yayınları has a Güzelçamlı’nin Kayıp Panteri of çevreci peri?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "children_s_books" (
"g_zel_aml_nin_kay_p_panteri" text,
"g_zel_aml_s_lost_panther" text,
"collection_of_short_stories" text,
"can_yay_nlar" text,
"2005" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Can Yayınları has a Güzelçamlı’nin Kayıp Panteri of çevreci peri?`:
```sql
|
SELECT "2005" FROM "children_s_books" WHERE "g_zel_aml_s_lost_panther"='green fairy'; |
## Task
Generate a SQL query to answer the following question:
`Which 2005 has a Güzelçamlı’s Lost Panther of green fairy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "children_s_books" (
"g_zel_aml_nin_kay_p_panteri" text,
"g_zel_aml_s_lost_panther" text,
"collection_of_short_stories" text,
"can_yay_nlar" text,
"2005" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2005 has a Güzelçamlı’s Lost Panther of green fairy?`:
```sql
|
SELECT MAX("2005") FROM "children_s_books" WHERE "g_zel_aml_s_lost_panther"='the muse'; |
## Task
Generate a SQL query to answer the following question:
`Which 2005 has a Güzelçamlı’s Lost Panther of the muse?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "children_s_books" (
"g_zel_aml_nin_kay_p_panteri" text,
"g_zel_aml_s_lost_panther" text,
"collection_of_short_stories" text,
"can_yay_nlar" text,
"2005" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2005 has a Güzelçamlı’s Lost Panther of the muse?`:
```sql
|
SELECT "grid" FROM "race" WHERE "driver"='pierre levegh'; |
## Task
Generate a SQL query to answer the following question:
`what is the grid when the driver is pierre levegh?`
### 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 grid when the driver is pierre levegh?`:
```sql
|
SELECT "grid" FROM "race" WHERE "laps"=2; |
## Task
Generate a SQL query to answer the following question:
`what is the grid when the laps is 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 `what is the grid when the laps is 2?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "driver"='toulo de graffenried'; |
## Task
Generate a SQL query to answer the following question:
`what is the time/retired when the driver is toulo de graffenried?`
### 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/retired when the driver is toulo de graffenried?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "grid"<13 AND "constructor"='alfa romeo' AND "laps">12; |
## Task
Generate a SQL query to answer the following question:
`what is the time/retired when the grid is less than 13, the constructor is alfa romeo and the laps is more than 12?`
### 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/retired when the grid is less than 13, the constructor is alfa romeo and the laps is more than 12?`:
```sql
|
SELECT SUM("grid") FROM "race" WHERE "laps">20; |
## Task
Generate a SQL query to answer the following question:
`what is the grid when the laps is more than 20?`
### 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 grid when the laps is more than 20?`:
```sql
|
SELECT "d_49" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_47"='d 67 +'; |
## Task
Generate a SQL query to answer the following question:
`What is the D 49 √ when D 47 √ is d 67 +?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate_composition_as_a_result_of_the_el" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 49 √ when D 47 √ is d 67 +?`:
```sql
|
SELECT "d_44" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_47"='r 7'; |
## Task
Generate a SQL query to answer the following question:
`What is the number for D 44 √ when D 47 √ is r 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate_composition_as_a_result_of_the_el" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for D 44 √ when D 47 √ is r 7?`:
```sql
|
SELECT "d_42" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_45"='r 16'; |
## Task
Generate a SQL query to answer the following question:
`What is the D 42 √ number when the D 45 √ is r 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate_composition_as_a_result_of_the_el" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 42 √ number when the D 45 √ is r 16?`:
```sql
|
SELECT "d_49" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_41"='d 61 √'; |
## Task
Generate a SQL query to answer the following question:
`What is the D 49 √ number when the D 41 √ is d 61 √?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate_composition_as_a_result_of_the_el" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 49 √ number when the D 41 √ is d 61 √?`:
```sql
|
SELECT "d_42" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46"='r 6'; |
## Task
Generate a SQL query to answer the following question:
`What is the D 42 √ figure when D 46 √ is r 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate_composition_as_a_result_of_the_el" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 42 √ figure when D 46 √ is r 6?`:
```sql
|
SELECT "d_50" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_47"='r 27 √'; |
## Task
Generate a SQL query to answer the following question:
`What is the D 50 √ when the D 47 √ is r 27 √?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate_composition_as_a_result_of_the_el" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 50 √ when the D 47 √ is r 27 √?`:
```sql
|
SELECT "player" FROM "goal_to_win" WHERE "competition"='ballarat football league'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the player for ballarat football league`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goal_to_win" (
"player" text,
"competition" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the player for ballarat football league`:
```sql
|
SELECT "player" FROM "goal_to_win" WHERE "team"='east perth'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the player for east perth`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goal_to_win" (
"player" text,
"competition" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the player for east perth`:
```sql
|
SELECT "score" FROM "goal_to_win" WHERE "team"='waaia'; |
## Task
Generate a SQL query to answer the following question:
`Tell met he score for team of waaia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goal_to_win" (
"player" text,
"competition" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell met he score for team of waaia`:
```sql
|
SELECT "team" FROM "goal_to_win" WHERE "competition"='victorian football league'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the team for victorian football league`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goal_to_win" (
"player" text,
"competition" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the team for victorian football league`:
```sql
|
SELECT "debut" FROM "in" WHERE "name"='scott tunbridge'; |
## Task
Generate a SQL query to answer the following question:
`What round was the debut of Scott Tunbridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"name" text,
"position" text,
"from_club" text,
"date_joined" text,
"debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the debut of Scott Tunbridge?`:
```sql
|
SELECT "debut" FROM "in" WHERE "position"='defender' AND "name"='stephen laybutt'; |
## Task
Generate a SQL query to answer the following question:
`What round was the debut of defender Stephen Laybutt?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"name" text,
"position" text,
"from_club" text,
"date_joined" text,
"debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the debut of defender Stephen Laybutt?`:
```sql
|
SELECT "position" FROM "in" WHERE "debut"='round 6'; |
## Task
Generate a SQL query to answer the following question:
`What position had a debut in round 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"name" text,
"position" text,
"from_club" text,
"date_joined" text,
"debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position had a debut in round 6?`:
```sql
|
SELECT "name" FROM "in" WHERE "debut"='round 6'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player that had a debut in round 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"name" text,
"position" text,
"from_club" text,
"date_joined" text,
"debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player that had a debut in round 6?`:
```sql
|
SELECT "date_joined" FROM "in" WHERE "from_club"='santo andré'; |
## Task
Generate a SQL query to answer the following question:
`What date did the player from Santo André debut?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"name" text,
"position" text,
"from_club" text,
"date_joined" text,
"debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the player from Santo André debut?`:
```sql
|
SELECT "venue" FROM "results" WHERE "score"='20½–11½'; |
## Task
Generate a SQL query to answer the following question:
`what is the venue when the score is 20½–11½?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"location" text,
"winning_team" text,
"score" text,
"u_s_captain" text,
"international_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue when the score is 20½–11½?`:
```sql
|
SELECT "winning_team" FROM "results" WHERE "year">2003 AND "score"='19½–14½' AND "venue"='harding park golf club'; |
## Task
Generate a SQL query to answer the following question:
`Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"location" text,
"winning_team" text,
"score" text,
"u_s_captain" text,
"international_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club?`:
```sql
|
SELECT MAX("year") FROM "results" WHERE "u_s_captain"='ken venturi'; |
## Task
Generate a SQL query to answer the following question:
`what is the highest year that the U.S. captain is ken venturi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"location" text,
"winning_team" text,
"score" text,
"u_s_captain" text,
"international_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest year that the U.S. captain is ken venturi?`:
```sql
|
SELECT "location" FROM "results" WHERE "year"<1998 AND "international_captain"='david graham'; |
## Task
Generate a SQL query to answer the following question:
`what is the location when the year is less than 1998 and the international captain is david graham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"location" text,
"winning_team" text,
"score" text,
"u_s_captain" text,
"international_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location when the year is less than 1998 and the international captain is david graham?`:
```sql
|
SELECT COUNT("earnings") FROM "leaders" WHERE "player"='jim colbert' AND "rank"<2; |
## Task
Generate a SQL query to answer the following question:
`How much did jim colbert earned ranked above 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 `How much did jim colbert earned ranked above 2?`:
```sql
|
SELECT "away_team_score" FROM "round_11" WHERE "crowd">'25,000' AND "away_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What is the away team score where the crowd is greater than 25,000 and the Away team is south melbourne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 score where the crowd is greater than 25,000 and the Away team is south melbourne?`:
```sql
|
SELECT MAX("crowd") FROM "round_11" WHERE "home_team_score"='9.17 (71)'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd with a Home team score of 9.17 (71)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 largest crowd with a Home team score of 9.17 (71)?`:
```sql
|
SELECT "date" FROM "round_18" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`What day did the VFL play at Junction Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did the VFL play at Junction Oval?`:
```sql
|
SELECT "venue" FROM "round_18" WHERE "home_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`Where did Footscray play as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Footscray play as the home team?`:
```sql
|
SELECT "away_team_score" FROM "round_18" WHERE "home_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when Footscray played as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when Footscray played as the home team?`:
```sql
|
SELECT COUNT("crowd") FROM "round_18" WHERE "venue"='arden street oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance when the VFL played Arden Street Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when the VFL played Arden Street Oval?`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "date"='june 22'; |
## Task
Generate a SQL query to answer the following question:
`What was the score June 22?`
### 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,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score June 22?`:
```sql
|
SELECT "school" FROM "2007_boys_team" WHERE "hometown"='winter park, fl'; |
## Task
Generate a SQL query to answer the following question:
`Which school has a hometown of winter park, FL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school has a hometown of winter park, FL?`:
```sql
|
SELECT "college" FROM "2007_boys_team" WHERE "height"='6-4' AND "school"='lake howell high school'; |
## Task
Generate a SQL query to answer the following question:
`What's the college of the player with a height of 6-4 and went to lake howell high school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the college of the player with a height of 6-4 and went to lake howell high school?`:
```sql
|
SELECT "hometown" FROM "2007_boys_team" WHERE "college"='lsu'; |
## Task
Generate a SQL query to answer the following question:
`What's the hometown of the player with a college of lsu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the hometown of the player with a college of lsu?`:
```sql
|
SELECT "height" FROM "2007_boys_team" WHERE "school"='lake howell high school'; |
## Task
Generate a SQL query to answer the following question:
`What's the heigh of the player who went to lake howell high school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the heigh of the player who went to lake howell high school?`:
```sql
|
SELECT "height" FROM "2007_boys_team" WHERE "player"='nolan smith'; |
## Task
Generate a SQL query to answer the following question:
`What's the heigh of nolan smith?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the heigh of nolan smith?`:
```sql
|
SELECT "height" FROM "2007_boys_team" WHERE "school"='oak hill academy'; |
## Task
Generate a SQL query to answer the following question:
`What's the height of the player who went to oak hill academy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the height of the player who went to oak hill academy?`:
```sql
|
SELECT "tyre" FROM "season_review" WHERE "fastest_lap"='paul russo'; |
## Task
Generate a SQL query to answer the following question:
`What tyre did Paul Russo have on his fastest lap?`
### 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 tyre did Paul Russo have on his fastest lap?`:
```sql
|
SELECT "date" FROM "season_review" WHERE "constructor"='maserati' AND "fastest_lap"='stirling moss'; |
## Task
Generate a SQL query to answer the following question:
`What is the date that Stirling Moss had his fastest lap in a Maserati?`
### 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 date that Stirling Moss had his fastest lap in a Maserati?`:
```sql
|
SELECT "winning_driver" FROM "season_review" WHERE "date"='30 may'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver on 30 May?`
### 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 winning driver on 30 May?`:
```sql
|
SELECT "fastest_lap" FROM "season_review" WHERE "race"='belgian grand prix'; |
## Task
Generate a SQL query to answer the following question:
`What was the fastest lap in the Belgian 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 was the fastest lap in the Belgian Grand Prix?`:
```sql
|
SELECT "home_team" FROM "round_18" WHERE "away_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the away team was Hawthorn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when the away team was Hawthorn?`:
```sql
|
SELECT "date" FROM "round_18" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`On what date did the game at Windy Hill take place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the game at Windy Hill take place?`:
```sql
|
SELECT "venue" FROM "round_18" WHERE "away_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue when the away team was Hawthorn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue when the away team was Hawthorn?`:
```sql
|
SELECT "home_team" FROM "round_18" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team when the game was at Windy Hill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team when the game was at Windy Hill?`:
```sql
|
SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "laps"<343 AND "year"=2010; |
## Task
Generate a SQL query to answer the following question:
`What position has less than 343 laps in 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has less than 343 laps in 2010?`:
```sql
|
SELECT MIN("laps") FROM "24_hours_of_le_mans_results" WHERE "team"='panoz motor sports' AND "year"<2002; |
## Task
Generate a SQL query to answer the following question:
`What are panoz motor sports' lowest number of laps before 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are panoz motor sports' lowest number of laps before 2002?`:
```sql
|
SELECT SUM("game") FROM "playoffs" WHERE "high_assists"='paul (9)'; |
## Task
Generate a SQL query to answer the following question:
`What's the sum of the games that had paul (9) for high assists?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of the games that had paul (9) for high assists?`:
```sql
|
SELECT "team" FROM "playoffs" WHERE "high_points"='west (20)'; |
## Task
Generate a SQL query to answer the following question:
`What team had a high points of west (20)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team had a high points of west (20)?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "game_site"='robert f. kennedy memorial stadium' AND "attendance">'54,633'; |
## Task
Generate a SQL query to answer the following question:
`What week was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance?`
### 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,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "game_site"='texas stadium' AND "attendance">'46,267' AND "opponent"='pittsburgh steelers'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game played in texas stadium with more than 46,267 in the crowd and against the pittsburgh steelers?`
### 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,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game played in texas stadium with more than 46,267 in the crowd and against the pittsburgh steelers?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "attendance">'50,705' AND "date"='september 13, 1982'; |
## Task
Generate a SQL query to answer the following question:
`What opponent had a game with more than 50,705 in attendace on September 13, 1982?`
### 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,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent had a game with more than 50,705 in attendace on September 13, 1982?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "laps"<73 AND "grid"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the time/retired associated with a grid of 5 and under 73 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 time/retired associated with a grid of 5 and under 73 laps?`:
```sql
|
SELECT "free" FROM "men" WHERE "total"=156.67; |
## Task
Generate a SQL query to answer the following question:
`What was the free score of the skater with a total of 156.67?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"rank" real,
"name" text,
"nation" text,
"placings" real,
"figures" real,
"free" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the free score of the skater with a total of 156.67?`:
```sql
|
SELECT AVG("figures") FROM "men" WHERE "free"<56.35; |
## Task
Generate a SQL query to answer the following question:
`What was the average figure score of the skater with a free score under 56.35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"rank" real,
"name" text,
"nation" text,
"placings" real,
"figures" real,
"free" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average figure score of the skater with a free score under 56.35?`:
```sql
|
SELECT "opponent" FROM "competitive" WHERE "round"='1'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent had round 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competitive" (
"date" text,
"tournament" text,
"round" text,
"ground" text,
"opponent" text,
"score_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent had round 1?`:
```sql
|
SELECT "date" FROM "competitive" WHERE "opponent"='dender' AND "tournament"='jupiler league' AND "ground"='a'; |
## Task
Generate a SQL query to answer the following question:
`Which date's opponent was Dender when the tournament was in the Jupiler League and the ground was a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competitive" (
"date" text,
"tournament" text,
"round" text,
"ground" text,
"opponent" text,
"score_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date's opponent was Dender when the tournament was in the Jupiler League and the ground was a?`:
```sql
|
SELECT "ground" FROM "competitive" WHERE "round"='33'; |
## Task
Generate a SQL query to answer the following question:
`Which ground's round was 33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competitive" (
"date" text,
"tournament" text,
"round" text,
"ground" text,
"opponent" text,
"score_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ground's round was 33?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.