output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "outcome" FROM "finals_14_9_titles_5_runners_up" WHERE "opponent"='nguyen tien minh' AND "tournament"='bulgaria open'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the match against Nguyen Tien Minh in the Bulgaria Open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "finals_14_9_titles_5_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the match against Nguyen Tien Minh in the Bulgaria Open?`:
```sql
|
SELECT "final_score" FROM "1989" WHERE "visiting_team"='new york jets'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score when the New York Jets were the Visiting Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score when the New York Jets were the Visiting Team?`:
```sql
|
SELECT "date" FROM "1989" WHERE "visiting_team"='cleveland browns'; |
## Task
Generate a SQL query to answer the following question:
`When were the Cleveland Browns the visiting team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `When were the Cleveland Browns the visiting team?`:
```sql
|
SELECT "stadium" FROM "1989" WHERE "visiting_team"='new york jets'; |
## Task
Generate a SQL query to answer the following question:
`Where were the New York Jets visiting?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where were the New York Jets visiting?`:
```sql
|
SELECT "final_score" FROM "1989" WHERE "stadium"='robert f. kennedy memorial stadium'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score in Robert F. Kennedy Memorial Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score in Robert F. Kennedy Memorial Stadium?`:
```sql
|
SELECT "visiting_team" FROM "1989" WHERE "date"='november 12'; |
## Task
Generate a SQL query to answer the following question:
`What was the visiting team on November 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the visiting team on November 12?`:
```sql
|
SELECT "stadium" FROM "1989" WHERE "visiting_team"='new england patriots'; |
## Task
Generate a SQL query to answer the following question:
`In what stadium were the New England Patriots the visiting team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what stadium were the New England Patriots the visiting team?`:
```sql
|
SELECT MIN("goals_conceded") FROM "league_standings" WHERE "played"<18; |
## Task
Generate a SQL query to answer the following question:
`If the games played are smaller than 18, what are the lowest goals conceded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the games played are smaller than 18, what are the lowest goals conceded?`:
```sql
|
SELECT COUNT("goals_conceded") FROM "league_standings" WHERE "place"<8 AND "played">18; |
## Task
Generate a SQL query to answer the following question:
`If the place is smaller than 8 and they played more than 18, what is the total number of goals conceded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the place is smaller than 8 and they played more than 18, what is the total number of goals conceded?`:
```sql
|
SELECT SUM("place") FROM "league_standings" WHERE "lost"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the place that has less than 2 losses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the place that has less than 2 losses?`:
```sql
|
SELECT "aspect_ratio" FROM "epic_m_and_epic_x" WHERE "max_fps_hd_rx"=80; |
## Task
Generate a SQL query to answer the following question:
`What is the aspect ration when the max fps HDRx is 80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "epic_m_and_epic_x" (
"frame_size" text,
"width" real,
"height" real,
"mpix" real,
"aspect_ratio" text,
"max_fps" real,
"max_fps_hd_rx" real,
"lowest_possible_redcode_at_24_fps" text,
"lowest_possible_redcode_at_max_fps" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aspect ration when the max fps HDRx is 80?`:
```sql
|
SELECT MIN("width") FROM "epic_m_and_epic_x" WHERE "frame_size"='5k' AND "height"<2700; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest width for a frame size of 5k and a height shorter than 2700?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "epic_m_and_epic_x" (
"frame_size" text,
"width" real,
"height" real,
"mpix" real,
"aspect_ratio" text,
"max_fps" real,
"max_fps_hd_rx" real,
"lowest_possible_redcode_at_24_fps" text,
"lowest_possible_redcode_at_max_fps" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest width for a frame size of 5k and a height shorter than 2700?`:
```sql
|
SELECT "opponent" FROM "august" WHERE "date"='august 29'; |
## Task
Generate a SQL query to answer the following question:
`What was the opponent on August 29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "august" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opponent on August 29?`:
```sql
|
SELECT "loss" FROM "august" WHERE "attendance"='16,468'; |
## Task
Generate a SQL query to answer the following question:
`Which team had the attendance of 16,468 and lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "august" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had the attendance of 16,468 and lost?`:
```sql
|
SELECT "opponent" FROM "august" WHERE "loss"='trachsel (10-11)'; |
## Task
Generate a SQL query to answer the following question:
`What opponent has a loss of Trachsel (10-11)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "august" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has a loss of Trachsel (10-11)?`:
```sql
|
SELECT "attendance" FROM "august" WHERE "date"='august 8'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance on August 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "august" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on August 8?`:
```sql
|
SELECT "rapid" FROM "stations" WHERE "distance_km"<14.2 AND "station"='kōmyōji'; |
## Task
Generate a SQL query to answer the following question:
`Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"station" text,
"japanese" text,
"distance_km" real,
"rapid" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji?`:
```sql
|
SELECT SUM("other") FROM "appearances" WHERE "name"='simon gillett category:articles with hcards' AND "total"<34; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34?`:
```sql
|
SELECT SUM("league_cup") FROM "appearances" WHERE "total"<1 AND "league"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0?`:
```sql
|
SELECT MAX("total") FROM "appearances" WHERE "fa_cup"=0 AND "name"='robbie williams category:articles with hcards' AND "league_cup"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest Total, when the FA Cup is 0, when the Name is Robbie Williams Category:Articles with hCards, and when the League Cup is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest Total, when the FA Cup is 0, when the Name is Robbie Williams Category:Articles with hCards, and when the League Cup is less than 0?`:
```sql
|
SELECT AVG("total") FROM "appearances" WHERE "name"='simon gillett category:articles with hcards' AND "other">3; |
## Task
Generate a SQL query to answer the following question:
`What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?`:
```sql
|
SELECT SUM("league_cup") FROM "appearances" WHERE "other"<1 AND "name"='gareth farrelly category:articles with hcards' AND "league">1; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of League Cup, when the Other is less than 1, when the Name is Gareth Farrelly Category:Articles with hCards, and when the League is greater than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of League Cup, when the Other is less than 1, when the Name is Gareth Farrelly Category:Articles with hCards, and when the League is greater than 1?`:
```sql
|
SELECT "runner_up" FROM "list_of_champions" WHERE "3rd_place"='terry hollands'; |
## Task
Generate a SQL query to answer the following question:
`Name the runner-up which has 3rd place of terry hollands`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the runner-up which has 3rd place of terry hollands`:
```sql
|
SELECT "champion" FROM "list_of_champions" WHERE "runner_up"='christopher miles'; |
## Task
Generate a SQL query to answer the following question:
`Name the champion for christopher miles runner-up`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the champion for christopher miles runner-up`:
```sql
|
SELECT "champion" FROM "list_of_champions" WHERE "year"='2000'; |
## Task
Generate a SQL query to answer the following question:
`Name the champion for 2000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the champion for 2000`:
```sql
|
SELECT "champion" FROM "list_of_champions" WHERE "3rd_place"='tbc' AND "runner_up"='tbc'; |
## Task
Generate a SQL query to answer the following question:
`Name the champion for 3rd place tbc and runner-up tbc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the champion for 3rd place tbc and runner-up tbc`:
```sql
|
SELECT "location" FROM "list_of_champions" WHERE "year"='1998'; |
## Task
Generate a SQL query to answer the following question:
`Name the location for 1998`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location for 1998`:
```sql
|
SELECT "gold" FROM "medal_table" WHERE "total">4; |
## Task
Generate a SQL query to answer the following question:
`How many gold medals correspond with a total over 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gold medals correspond with a total over 4?`:
```sql
|
SELECT SUM("gold") FROM "medal_table" WHERE "total"=12 AND "bronze"<4; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals?`:
```sql
|
SELECT MIN("gold") FROM "medal_table" WHERE "rank"='total' AND "bronze">4; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "gold">4; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of bronze medals with more than 4 gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of bronze medals with more than 4 gold medals?`:
```sql
|
SELECT "gender" FROM "7_seats" WHERE "riding"='st. john''s south—mount pearl'; |
## Task
Generate a SQL query to answer the following question:
`The candidate with Riding of st. john's south—mount pearl is what gender?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "7_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `The candidate with Riding of st. john's south—mount pearl is what gender?`:
```sql
|
SELECT "rank" FROM "7_seats" WHERE "residence"='st. john''s' AND "candidate_s_name"='walter noel'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of walter noel from st. john's?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "7_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of walter noel from st. john's?`:
```sql
|
SELECT "candidate_s_name" FROM "7_seats" WHERE "gender"='m' AND "residence"='happy valley-goose bay'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the candidate from happy valley-goose bay with a gender of m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "7_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the candidate from happy valley-goose bay with a gender of m?`:
```sql
|
SELECT "number" FROM "language" WHERE "percentage_pct"='0.35'; |
## Task
Generate a SQL query to answer the following question:
`Which number has a 0.35 percentage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which number has a 0.35 percentage?`:
```sql
|
SELECT "percentage_pct" FROM "language" WHERE "language"='russian'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage for Russian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage for Russian?`:
```sql
|
SELECT "males" FROM "language" WHERE "language"='russian'; |
## Task
Generate a SQL query to answer the following question:
`How many males speak Russian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many males speak Russian?`:
```sql
|
SELECT "writer_s" FROM "2007" WHERE "recipient"='red rose chain ltd'; |
## Task
Generate a SQL query to answer the following question:
`Who is the writer for Red Rose Chain LTD?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"recipient" text,
"award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the writer for Red Rose Chain LTD?`:
```sql
|
SELECT "producer_s" FROM "2007" WHERE "director_s"='daniel cormack'; |
## Task
Generate a SQL query to answer the following question:
`Which producer did Daniel Cormack direct?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"recipient" text,
"award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which producer did Daniel Cormack direct?`:
```sql
|
SELECT "producer_s" FROM "2007" WHERE "recipient"='laura tunstall'; |
## Task
Generate a SQL query to answer the following question:
`Who produced Laura Tunstall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"recipient" text,
"award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who produced Laura Tunstall?`:
```sql
|
SELECT "writer_s" FROM "2007" WHERE "film"='jehovah''s witness'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the film Jehovah's Witness?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"recipient" text,
"award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the film Jehovah's Witness?`:
```sql
|
SELECT "date" FROM "personal_records" WHERE "distance"='5,000m'; |
## Task
Generate a SQL query to answer the following question:
`When did Hein Vergeer have a distance of 5,000m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Hein Vergeer have a distance of 5,000m?`:
```sql
|
SELECT "notes" FROM "personal_records" WHERE "distance"='men''s speed skating'; |
## Task
Generate a SQL query to answer the following question:
`What were the notes during the distance of Men's Speed Skating?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the notes during the distance of Men's Speed Skating?`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "competition"='uefa euro 2012 qualifying'; |
## Task
Generate a SQL query to answer the following question:
`What date has the competition of uefa euro 2012 qualifying?`
### 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 date has the competition of uefa euro 2012 qualifying?`:
```sql
|
SELECT "grade" FROM "step_races" WHERE "priority_entry_rights_to_derby"='turf 1600m'; |
## Task
Generate a SQL query to answer the following question:
`What is the Grade that has Turf 1600m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "step_races" (
"race_name" real,
"grade" text,
"racecourse" text,
"distance" text,
"priority_entry_rights_to_derby" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Grade that has Turf 1600m?`:
```sql
|
SELECT "priority_entry_rights_to_derby" FROM "step_races" WHERE "race_name"=4; |
## Task
Generate a SQL query to answer the following question:
`What is the Priority-entry-rights to Derby in rank 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "step_races" (
"race_name" real,
"grade" text,
"racecourse" text,
"distance" text,
"priority_entry_rights_to_derby" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Priority-entry-rights to Derby in rank 4?`:
```sql
|
SELECT COUNT("baia_mare") FROM "distribution" WHERE "electrica_north_transylvania"<14.476 AND "bistrita"=643 AND "zalau"<737; |
## Task
Generate a SQL query to answer the following question:
`How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "distribution" (
"installation" text,
"cluj" real,
"oradea" real,
"baia_mare" real,
"bistrita" real,
"satu_mare" real,
"zalau" real,
"electrica_north_transylvania" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?`:
```sql
|
SELECT MIN("satu_mare") FROM "distribution" WHERE "baia_mare">523; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest Satu Mare value associated with Baia Mare over 523?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "distribution" (
"installation" text,
"cluj" real,
"oradea" real,
"baia_mare" real,
"bistrita" real,
"satu_mare" real,
"zalau" real,
"electrica_north_transylvania" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Satu Mare value associated with Baia Mare over 523?`:
```sql
|
SELECT "word_wrap_support" FROM "features" WHERE "format"='mobipocket'; |
## Task
Generate a SQL query to answer the following question:
`Which Word wrap support has a Format of mobipocket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Word wrap support has a Format of mobipocket?`:
```sql
|
SELECT "interactivity_support" FROM "features" WHERE "format"='fictionbook'; |
## Task
Generate a SQL query to answer the following question:
`Which Interactivity support has a Format of fictionbook?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Interactivity support has a Format of fictionbook?`:
```sql
|
SELECT "filename_extension" FROM "features" WHERE "interactivity_support"='no' AND "open_standard"='yes' AND "image_support"='no'; |
## Task
Generate a SQL query to answer the following question:
`Which Filename extension has an Interactivity support of no, an Open standard of yes, and an Image support of no?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Filename extension has an Interactivity support of no, an Open standard of yes, and an Image support of no?`:
```sql
|
SELECT "filename_extension" FROM "features" WHERE "word_wrap_support"='yes' AND "open_standard"='no' AND "interactivity_support"='yes'; |
## Task
Generate a SQL query to answer the following question:
`Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes?`:
```sql
|
SELECT "format" FROM "features" WHERE "interactivity_support"='no' AND "word_wrap_support"='yes' AND "image_support"='yes' AND "open_standard"='yes'; |
## Task
Generate a SQL query to answer the following question:
`Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?`:
```sql
|
SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "position"='guard' AND "pick_num">9; |
## Task
Generate a SQL query to answer the following question:
`Position of guard, and a Pick # larger than 9 is what highest round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Position of guard, and a Pick # larger than 9 is what highest round?`:
```sql
|
SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "pick_num"<11 AND "name"='von hutchins'; |
## Task
Generate a SQL query to answer the following question:
`Pick # smaller than 11, and a Name of von hutchins belongs to what college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Pick # smaller than 11, and a Name of von hutchins belongs to what college?`:
```sql
|
SELECT AVG("round") FROM "indianapolis_colts_draft_history" WHERE "college"='idaho' AND "overall"<141; |
## Task
Generate a SQL query to answer the following question:
`College of idaho, and an Overall smaller than 141 is what average round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `College of idaho, and an Overall smaller than 141 is what average round?`:
```sql
|
SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "name"='david kimball' AND "overall"<229; |
## Task
Generate a SQL query to answer the following question:
`Name of David Kimball, and an Overall smaller than 229 is what highest round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name of David Kimball, and an Overall smaller than 229 is what highest round?`:
```sql
|
SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='brm v8'; |
## Task
Generate a SQL query to answer the following question:
`How many points did the car with the brm v8 engine have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the car with the brm v8 engine have?`:
```sql
|
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"<1966 AND "points">0; |
## Task
Generate a SQL query to answer the following question:
`Which chassis has more than 0 points and was before 1966?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis has more than 0 points and was before 1966?`:
```sql
|
SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "year"=1964; |
## Task
Generate a SQL query to answer the following question:
`How many points did he average in 1964?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did he average in 1964?`:
```sql
|
SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='climax v8' AND "year"<1963; |
## Task
Generate a SQL query to answer the following question:
`Before the year 1963 what was the fewest points the climax v8 engine had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Before the year 1963 what was the fewest points the climax v8 engine had?`:
```sql
|
SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "points"<1; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest year that had less than 1 point?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year that had less than 1 point?`:
```sql
|
SELECT "8_00" FROM "friday" WHERE "7_00"='je'; |
## Task
Generate a SQL query to answer the following question:
`What is the 8:00 feature with je at 7:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 8:00 feature with je at 7:00?`:
```sql
|
SELECT "10_00" FROM "friday" WHERE "8_30"='1 vs. 100'; |
## Task
Generate a SQL query to answer the following question:
`What is the 10:00 feature with 1 vs. 100 at 8:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 10:00 feature with 1 vs. 100 at 8:30?`:
```sql
|
SELECT "7_00" FROM "friday" WHERE "7_30"='entertainment tonight'; |
## Task
Generate a SQL query to answer the following question:
`What is the 7:00 feature with entertainment tonight at 7:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 7:00 feature with entertainment tonight at 7:30?`:
```sql
|
SELECT "7_30" FROM "friday" WHERE "10_00"='le tva 22 heures'; |
## Task
Generate a SQL query to answer the following question:
`What is the 7:30 feature with le tva 22 heures at 10:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 7:30 feature with le tva 22 heures at 10:00?`:
```sql
|
SELECT "9_30" FROM "friday" WHERE "8_30"='la porte des étoiles'; |
## Task
Generate a SQL query to answer the following question:
`What is the 9:30 feature with la porte des étoiles at 8:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 9:30 feature with la porte des étoiles at 8:30?`:
```sql
|
SELECT MAX("attendance") FROM "season_schedule" WHERE "date"='october 27, 1963'; |
## Task
Generate a SQL query to answer the following question:
`How many were in attendance on October 27, 1963?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance on October 27, 1963?`:
```sql
|
SELECT "num_county" FROM "membership" WHERE "year_joined"<1981 AND "location"='chalmers'; |
## Task
Generate a SQL query to answer the following question:
`which # / county is correct for year less than 1981 and chalmers as location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `which # / county is correct for year less than 1981 and chalmers as location?`:
```sql
|
SELECT "year_joined" FROM "membership" WHERE "num_county"='09 cass'; |
## Task
Generate a SQL query to answer the following question:
`what is the correct year for # / county of 09 cass?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the correct year for # / county of 09 cass?`:
```sql
|
SELECT "mascot" FROM "membership" WHERE "num_county"='66 pulaski 2'; |
## Task
Generate a SQL query to answer the following question:
`what's the mascot for 66 pulaski 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the mascot for 66 pulaski 2?`:
```sql
|
SELECT SUM("bronze") FROM "sporting_events" WHERE "silver"=2 AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the total bronze with a Silver of 2, and a Gold smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sporting_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total bronze with a Silver of 2, and a Gold smaller than 0?`:
```sql
|
SELECT AVG("total") FROM "sporting_events" WHERE "rank">11 AND "nation"='switzerland' AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the average total with a Rank larger than 11, a Nation of switzerland, and a Silver smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sporting_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total with a Rank larger than 11, a Nation of switzerland, and a Silver smaller than 0?`:
```sql
|
SELECT SUM("gold") FROM "sporting_events" WHERE "bronze"<7 AND "total"=1 AND "nation"='cape verde' AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the total Gold with a Bronze smaller than 7, a Total of 1, a Nation of cape verde, and a Silver smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sporting_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total Gold with a Bronze smaller than 7, a Total of 1, a Nation of cape verde, and a Silver smaller than 0?`:
```sql
|
SELECT "power" FROM "models" WHERE "year"<1999; |
## Task
Generate a SQL query to answer the following question:
`How powerful is the model before 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `How powerful is the model before 1999?`:
```sql
|
SELECT "displacement" FROM "models" WHERE "year"=1999 AND "torque"='280n·m (207lb·ft) @ 1750'; |
## Task
Generate a SQL query to answer the following question:
`What displacement is the model in 1999 with a Torque of 280n·m (207lb·ft) @ 1750?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What displacement is the model in 1999 with a Torque of 280n·m (207lb·ft) @ 1750?`:
```sql
|
SELECT MIN("year") FROM "models" WHERE "power"='90kw (121hp) @ 4000'; |
## Task
Generate a SQL query to answer the following question:
`When is the earliest year with a Power of 90kw (121hp) @ 4000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `When is the earliest year with a Power of 90kw (121hp) @ 4000?`:
```sql
|
SELECT MIN("year") FROM "models" WHERE "torque"='330n·m (243lb·ft) @ 2000-2500'; |
## Task
Generate a SQL query to answer the following question:
`When is the earliest year with a Torque of 330n·m (243lb·ft) @ 2000-2500?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `When is the earliest year with a Torque of 330n·m (243lb·ft) @ 2000-2500?`:
```sql
|
SELECT MIN("attendance") FROM "schedule" WHERE "week"=14; |
## Task
Generate a SQL query to answer the following question:
`What week 14 has the lowest 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,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week 14 has the lowest attendance?`:
```sql
|
SELECT SUM("week") FROM "schedule" WHERE "attendance">'55,767' AND "date"='september 28, 1986'; |
## Task
Generate a SQL query to answer the following question:
`Which sum of week that had an attendance larger than 55,767 on September 28, 1986?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which sum of week that had an attendance larger than 55,767 on September 28, 1986?`:
```sql
|
SELECT MAX("attendance") FROM "schedule" WHERE "date"='september 14, 1986'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance on September 14, 1986?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance on September 14, 1986?`:
```sql
|
SELECT "type" FROM "stage_results" WHERE "course"='vicenza to marostica'; |
## Task
Generate a SQL query to answer the following question:
`What type is the race with the vicenza to marostica course?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type is the race with the vicenza to marostica course?`:
```sql
|
SELECT "2005" FROM "women_s_doubles_performance_timeline" WHERE "2003"='a' AND "2011"='3r'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2005 for 2003 of a and 2011 of 3r`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2005 for 2003 of a and 2011 of 3r`:
```sql
|
SELECT "2006" FROM "women_s_doubles_performance_timeline" WHERE "2003"='a' AND "2012"='a'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2006 with 2003 of a and 2012 of a`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2006 with 2003 of a and 2012 of a`:
```sql
|
SELECT "2010" FROM "women_s_doubles_performance_timeline" WHERE "2006"='2r'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2010 for 2006 of 2r`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2010 for 2006 of 2r`:
```sql
|
SELECT "2007" FROM "women_s_doubles_performance_timeline" WHERE "2005"='a' AND "2003"='a' AND "2009"='sf'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2007 for 2005 of a and 003 of a with 2009 of sf`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2007 for 2005 of a and 003 of a with 2009 of sf`:
```sql
|
SELECT "2011" FROM "women_s_doubles_performance_timeline" WHERE "2006"='2r'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2011 with 2006 of 2r`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 with 2006 of 2r`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "date"='7 october 2011'; |
## Task
Generate a SQL query to answer the following question:
`what was the venue on 7 october 2011?`
### 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 venue on 7 october 2011?`:
```sql
|
SELECT MAX("number") FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "opponent"='julio césar vásquez'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of the match with julio césar vásquez as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of the match with julio césar vásquez as the opponent?`:
```sql
|
SELECT "opponent" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "date"='2006-04-08'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent of the match on 2006-04-08?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent of the match on 2006-04-08?`:
```sql
|
SELECT "result" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "opponent"='zab judah'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the match with Zab Judah as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the match with Zab Judah as the opponent?`:
```sql
|
SELECT "date" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "result"='ud 12/12' AND "name"='pernell whitaker' AND "opponent"='james mcgirt'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the match with a result of ud 12/12 between Pernell Whitaker and James Mcgirt?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match with a result of ud 12/12 between Pernell Whitaker and James Mcgirt?`:
```sql
|
SELECT "score" FROM "biggest_wins" WHERE "date"='13 june 2004'; |
## Task
Generate a SQL query to answer the following question:
`What score was on 13 June 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "biggest_wins" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score was on 13 June 2004?`:
```sql
|
SELECT "rider" FROM "grand_tour_finishers" WHERE "final_position_tour"<50 AND "final_position_vuelta"<11 AND "year"<2008; |
## Task
Generate a SQL query to answer the following question:
`Who is the rider with less than 50 final position-tours and less than 11 final position-vuelta before 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider with less than 50 final position-tours and less than 11 final position-vuelta before 2008?`:
```sql
|
SELECT MIN("year") FROM "grand_tour_finishers" WHERE "final_position_tour">72 AND "final_position_vuelta"<77 AND "final_position_giro"<57 AND "rider"='valdimir poelnikov'; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?`:
```sql
|
SELECT COUNT("final_position_tour") FROM "grand_tour_finishers" WHERE "final_position_giro">20 AND "rider"='mariano piccoli' AND "year"<1999; |
## Task
Generate a SQL query to answer the following question:
`What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has?`:
```sql
|
SELECT SUM("year") FROM "grand_tour_finishers" WHERE "final_position_tour"=88 AND "final_position_giro"<11; |
## Task
Generate a SQL query to answer the following question:
`What year was the rider with a final position-tour of 88 and less than 11 final position-giros?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the rider with a final position-tour of 88 and less than 11 final position-giros?`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "date"='april 26'; |
## Task
Generate a SQL query to answer the following question:
`How much did they lose by on April 26?`
### 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 `How much did they lose by on April 26?`:
```sql
|
SELECT MAX("attendance") FROM "game_log" WHERE "opponent"='indians' AND "record"='13-4'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance when the opponent was the Indians and the record was 13-4?`
### 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 `What was the highest attendance when the opponent was the Indians and the record was 13-4?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='15-4'; |
## Task
Generate a SQL query to answer the following question:
`What day did the record reach 15-4?`
### 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 `What day did the record reach 15-4?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.