output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MIN("losses") FROM "final_table" WHERE "club"='cádiz cf'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of losses for the club cádiz cf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"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 `What is the lowest number of losses for the club cádiz cf?`:
```sql
|
SELECT "artist" FROM "downloadable_content" WHERE "single_pack"='guitar hero track pack 1'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the artist with a Single / Pack of guitar hero track pack 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "downloadable_content" (
"year" real,
"song_title" text,
"artist" text,
"master_recording" text,
"release_date" text,
"single_pack" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the artist with a Single / Pack of guitar hero track pack 1?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "loss"='lemanczyk (0–1)'; |
## Task
Generate a SQL query to answer the following question:
`What was the record at the game that had a loss of Lemanczyk (0–1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at the game that had a loss of Lemanczyk (0–1)?`:
```sql
|
SELECT "time" FROM "summary" WHERE "game">1 AND "location"='comiskey park (i)' AND "date"='october 9'; |
## Task
Generate a SQL query to answer the following question:
`Game larger than 1, and a Location of comiskey park (i), and a Date of October 9 happened at what time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Game larger than 1, and a Location of comiskey park (i), and a Date of October 9 happened at what time?`:
```sql
|
SELECT "time" FROM "summary" WHERE "date"='october 8'; |
## Task
Generate a SQL query to answer the following question:
`Date of october 8 happened at what time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Date of october 8 happened at what time?`:
```sql
|
SELECT SUM("attendance") FROM "summary" WHERE "game"=1; |
## Task
Generate a SQL query to answer the following question:
`Game 1's sum of attendance is?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Game 1's sum of attendance is?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "year_s_won"='2000'; |
## Task
Generate a SQL query to answer the following question:
`What was the finish of the winner of the 2000 Masters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish of the winner of the 2000 Masters?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "country"='fiji'; |
## Task
Generate a SQL query to answer the following question:
`For the player from Fiji, what was his finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the player from Fiji, what was his finish?`:
```sql
|
SELECT "country" FROM "made_the_cut" WHERE "to_par"='+8'; |
## Task
Generate a SQL query to answer the following question:
`For the player finishing at +8, what is his nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the player finishing at +8, what is his nationality?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='52–103'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that had a record of 52–103?`
### 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 of the game that had a record of 52–103?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='53–104'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when the record was 53–104?`
### 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 date of the game when the record was 53–104?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "loss"='huffman (6–18)'; |
## Task
Generate a SQL query to answer the following question:
`What was the record at the game that had a loss of Huffman (6–18)?`
### 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 record at the game that had a loss of Huffman (6–18)?`:
```sql
|
SELECT "10_00" FROM "wednesday" WHERE "8_00"='kid nation'; |
## Task
Generate a SQL query to answer the following question:
`for the 8:00 of kid nation what is at 10:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wednesday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"10_00" text,
"10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the 8:00 of kid nation what is at 10:00?`:
```sql
|
SELECT "9_00" FROM "wednesday" WHERE "10_00"='the simple life'; |
## Task
Generate a SQL query to answer the following question:
`for the 10:00 of the simple life what is the 9:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wednesday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"10_00" text,
"10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the 10:00 of the simple life what is the 9:00?`:
```sql
|
SELECT "9_00" FROM "wednesday" WHERE "10_00"='le journal du soir'; |
## Task
Generate a SQL query to answer the following question:
`for the 10:00 of le journal du soir what is the 9:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wednesday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"10_00" text,
"10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the 10:00 of le journal du soir what is the 9:00?`:
```sql
|
SELECT "10_00" FROM "wednesday" WHERE "7_30"='access hollywood'; |
## Task
Generate a SQL query to answer the following question:
`for the 7:30 of access hollywood what is the 10:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wednesday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"10_00" text,
"10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the 7:30 of access hollywood what is the 10:00?`:
```sql
|
SELECT "8_30" FROM "wednesday" WHERE "9_00"='bionic woman'; |
## Task
Generate a SQL query to answer the following question:
`for the 9:00 of bionic woman what is the 8:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wednesday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"10_00" text,
"10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the 9:00 of bionic woman what is the 8:30?`:
```sql
|
SELECT "format" FROM "release_history" WHERE "date"='august 29, 1998'; |
## Task
Generate a SQL query to answer the following question:
`Which format is released on August 29, 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which format is released on August 29, 1998?`:
```sql
|
SELECT "catalog" FROM "release_history" WHERE "date"='january 25, 1987'; |
## Task
Generate a SQL query to answer the following question:
`What is the catalog number for the January 25, 1987 release?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the catalog number for the January 25, 1987 release?`:
```sql
|
SELECT "format" FROM "release_history" WHERE "date"='may 27, 2009'; |
## Task
Generate a SQL query to answer the following question:
`Which format is released on May 27, 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which format is released on May 27, 2009?`:
```sql
|
SELECT "catalog" FROM "release_history" WHERE "date"='may 27, 2009'; |
## Task
Generate a SQL query to answer the following question:
`What is the catalog number of the May 27, 2009 release?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the catalog number of the May 27, 2009 release?`:
```sql
|
SELECT "date" FROM "release_history" WHERE "format"='cd' AND "catalog"='alca-9206'; |
## Task
Generate a SQL query to answer the following question:
`What is the release date of a CD with the catalog number ALCA-9206?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date of a CD with the catalog number ALCA-9206?`:
```sql
|
SELECT "format" FROM "release_history" WHERE "date"='may 27, 2009'; |
## Task
Generate a SQL query to answer the following question:
`Which format is released on May 27, 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which format is released on May 27, 2009?`:
```sql
|
SELECT AVG("total_points") FROM "points" WHERE "games"=113 AND "rank"<7; |
## Task
Generate a SQL query to answer the following question:
`What was the average of points with ranks smaller than 7 but with total point games of 113?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points" (
"rank" real,
"player" text,
"years" text,
"games" real,
"ppg_avg" real,
"total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average of points with ranks smaller than 7 but with total point games of 113?`:
```sql
|
SELECT SUM("roll") FROM "gore_district" WHERE "area"='waikaka'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the roll with an area of Waikaka?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gore_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the roll with an area of Waikaka?`:
```sql
|
SELECT COUNT("roll") FROM "gore_district" WHERE "name"='east gore school'; |
## Task
Generate a SQL query to answer the following question:
`What is the roll number for East Gore School?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gore_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the roll number for East Gore School?`:
```sql
|
SELECT MIN("decile") FROM "gore_district" WHERE "years"='1-6' AND "area"='maitland'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest decile with 1-6 years and area of Maitland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gore_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest decile with 1-6 years and area of Maitland?`:
```sql
|
SELECT "gender" FROM "gore_district" WHERE "years"='7-15'; |
## Task
Generate a SQL query to answer the following question:
`Which gender has 7-15 years?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gore_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which gender has 7-15 years?`:
```sql
|
SELECT "gender" FROM "gore_district" WHERE "area"='otama'; |
## Task
Generate a SQL query to answer the following question:
`What is the gender for Otama?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gore_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender for Otama?`:
```sql
|
SELECT "authority" FROM "gore_district" WHERE "roll"=96; |
## Task
Generate a SQL query to answer the following question:
`What is the authority for roll of 96?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gore_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the authority for roll of 96?`:
```sql
|
SELECT "years" FROM "southland_district" WHERE "roll"=9; |
## Task
Generate a SQL query to answer the following question:
`When is a Roll of 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "southland_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `When is a Roll of 9?`:
```sql
|
SELECT "area" FROM "southland_district" WHERE "roll"=26; |
## Task
Generate a SQL query to answer the following question:
`What is the Area with 26 in Roll`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "southland_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Area with 26 in Roll`:
```sql
|
SELECT MIN("total") FROM "medal_table" WHERE "silver">6 AND "gold">10; |
## Task
Generate a SQL query to answer the following question:
`For nations with more than 6 silvers and more than 10 golds, what is the lowest total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `For nations with more than 6 silvers and more than 10 golds, what is the lowest total?`:
```sql
|
SELECT MIN("rank") FROM "medal_table" WHERE "bronze">3 AND "total">36; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank for nations with more than 3 bronze medals and more than 36 total medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank for nations with more than 3 bronze medals and more than 36 total medals?`:
```sql
|
SELECT MAX("bronze") FROM "medals_table" WHERE "silver">1 AND "gold"=1 AND "total"<4; |
## Task
Generate a SQL query to answer the following question:
`Which country has the most bronze and has more than one silver, 1 gold, and less than 4 total medals.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has the most bronze and has more than one silver, 1 gold, and less than 4 total medals.`:
```sql
|
SELECT MAX("bronze") FROM "medals_table" WHERE "total">11; |
## Task
Generate a SQL query to answer the following question:
`What nation has the most bronze medals with over 11 total medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation has the most bronze medals with over 11 total medals?`:
```sql
|
SELECT SUM("silver") FROM "medals_table" WHERE "nation"='cuba'; |
## Task
Generate a SQL query to answer the following question:
`How many silver medals does Cuba have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silver medals does Cuba have?`:
```sql
|
SELECT "location" FROM "2000s_patriots_8_6" WHERE "loser"='indianapolis colts' AND "result"='24-14'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game that the Indianapolis Colts lost 24-14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_patriots_8_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game that the Indianapolis Colts lost 24-14?`:
```sql
|
SELECT "date" FROM "2000s_patriots_8_6" WHERE "loser"='indianapolis colts' AND "year"=2004; |
## Task
Generate a SQL query to answer the following question:
`On what date was the game that the Indianapolis Colts lost in 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_patriots_8_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the game that the Indianapolis Colts lost in 2004?`:
```sql
|
SELECT "winner" FROM "2000s_patriots_8_6" WHERE "loser"='new england patriots' AND "result"='40-21'; |
## Task
Generate a SQL query to answer the following question:
`Which team won against the New England Patriots 40-21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_patriots_8_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team won against the New England Patriots 40-21?`:
```sql
|
SELECT "date" FROM "2000s_patriots_8_6" WHERE "location"='gillette stadium' AND "result"='40-21'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game played at Gillette Stadium with a score of 40-21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_patriots_8_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game played at Gillette Stadium with a score of 40-21?`:
```sql
|
SELECT AVG("year") FROM "2000s_patriots_8_6" WHERE "result"='24-14'; |
## Task
Generate a SQL query to answer the following question:
`What year was the game that ended with a score of 24-14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_patriots_8_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the game that ended with a score of 24-14?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "result"='3-0 win'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the 3-0 Win result?`
### 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 score of the 3-0 Win result?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "date"='10 october 2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game from 10 October 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game from 10 October 2009?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "score"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the competition that has a score of 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the competition that has a score of 2-0?`:
```sql
|
SELECT "men_s_singles" FROM "previous_winners" WHERE "mixed_doubles"='kai abraham petra michalowsky'; |
## Task
Generate a SQL query to answer the following question:
`Which Men's singles has a Mixed doubles of kai abraham petra michalowsky?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Men's singles has a Mixed doubles of kai abraham petra michalowsky?`:
```sql
|
SELECT "women_s_doubles" FROM "previous_winners" WHERE "year"='1992'; |
## Task
Generate a SQL query to answer the following question:
`Which women's doubles has a Year of 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which women's doubles has a Year of 1992?`:
```sql
|
SELECT "year" FROM "previous_winners" WHERE "men_s_doubles"='marcus ellis peter mills'; |
## Task
Generate a SQL query to answer the following question:
`Which year has a Men's doubles of marcus ellis peter mills?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year has a Men's doubles of marcus ellis peter mills?`:
```sql
|
SELECT "visitor" FROM "april" WHERE "home"='dallas'; |
## Task
Generate a SQL query to answer the following question:
`Name the visitor for home of dallas`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the visitor for home of dallas`:
```sql
|
SELECT "period" FROM "chart_performance" WHERE "country"='south korea' AND "peak_position"='#1'; |
## Task
Generate a SQL query to answer the following question:
`Name the period for south korea with peak position of #1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chart_performance" (
"country" text,
"chart" text,
"period" text,
"peak_position" text,
"sales" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the period for south korea with peak position of #1`:
```sql
|
SELECT "period" FROM "chart_performance" WHERE "country"='south korea' AND "peak_position"='#24'; |
## Task
Generate a SQL query to answer the following question:
`Name the period for south korea with peak position of #24`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chart_performance" (
"country" text,
"chart" text,
"period" text,
"peak_position" text,
"sales" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the period for south korea with peak position of #24`:
```sql
|
SELECT "period" FROM "chart_performance" WHERE "chart"='g-music j-pop/k-pop chart'; |
## Task
Generate a SQL query to answer the following question:
`Name the period for Chart of g-music j-pop/k-pop chart`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chart_performance" (
"country" text,
"chart" text,
"period" text,
"peak_position" text,
"sales" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the period for Chart of g-music j-pop/k-pop chart`:
```sql
|
SELECT "sales" FROM "chart_performance" WHERE "peak_position"='#24'; |
## Task
Generate a SQL query to answer the following question:
`Name the sales with peak position of #24`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chart_performance" (
"country" text,
"chart" text,
"period" text,
"peak_position" text,
"sales" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sales with peak position of #24`:
```sql
|
SELECT "aggregate" FROM "european_record" WHERE "club"='ajax'; |
## Task
Generate a SQL query to answer the following question:
`Which aggregate has ajax as the club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_record" (
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which aggregate has ajax as the club?`:
```sql
|
SELECT AVG("attendance") FROM "march" WHERE "date"='march 1'; |
## Task
Generate a SQL query to answer the following question:
`How many attended on march 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many attended on march 1?`:
```sql
|
SELECT "visitor" FROM "march" WHERE "date"='march 21'; |
## Task
Generate a SQL query to answer the following question:
`Who was the visitor on march 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visitor on march 21?`:
```sql
|
SELECT "cyclist" FROM "general_standings" WHERE "nation"='belgium'; |
## Task
Generate a SQL query to answer the following question:
`Who was the cyclist from Belgium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_standings" (
"cyclist" text,
"nation" text,
"team" text,
"time" text,
"uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the cyclist from Belgium?`:
```sql
|
SELECT "nation" FROM "general_standings" WHERE "team"='csc'; |
## Task
Generate a SQL query to answer the following question:
`What is the nation of the person who was from the CSC team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_standings" (
"cyclist" text,
"nation" text,
"team" text,
"time" text,
"uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nation of the person who was from the CSC team?`:
```sql
|
SELECT "cyclist" FROM "general_standings" WHERE "team"='gce' AND "uci_points"<20; |
## Task
Generate a SQL query to answer the following question:
`Who is the cyclist from the GCE team and had UCI points under 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_standings" (
"cyclist" text,
"nation" text,
"team" text,
"time" text,
"uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the cyclist from the GCE team and had UCI points under 20?`:
```sql
|
SELECT "nation" FROM "general_standings" WHERE "cyclist"='danilo di luca'; |
## Task
Generate a SQL query to answer the following question:
`Which nation is Danilo di Luca from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_standings" (
"cyclist" text,
"nation" text,
"team" text,
"time" text,
"uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation is Danilo di Luca from?`:
```sql
|
SELECT "nation" FROM "general_standings" WHERE "cyclist"='robert gesink'; |
## Task
Generate a SQL query to answer the following question:
`Which nation is Robert Gesink from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_standings" (
"cyclist" text,
"nation" text,
"team" text,
"time" text,
"uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation is Robert Gesink from?`:
```sql
|
SELECT SUM("uci_points") FROM "general_standings" WHERE "cyclist"='kim kirchen'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of UCI points for Kim Kirchen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_standings" (
"cyclist" text,
"nation" text,
"team" text,
"time" text,
"uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of UCI points for Kim Kirchen?`:
```sql
|
SELECT COUNT("games") FROM "assists" WHERE "ast_avg">2.7 AND "total_assists">598; |
## Task
Generate a SQL query to answer the following question:
`How many games for the player that has an over 2.7 assist average and over 598 total assists?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"player" text,
"years" text,
"games" real,
"ast_avg" real,
"total_assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games for the player that has an over 2.7 assist average and over 598 total assists?`:
```sql
|
SELECT MAX("ast_avg") FROM "assists" WHERE "player"='cam long' AND "games"<132; |
## Task
Generate a SQL query to answer the following question:
`How many assists does cam long average in under 132 games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"player" text,
"years" text,
"games" real,
"ast_avg" real,
"total_assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists does cam long average in under 132 games?`:
```sql
|
SELECT "location" FROM "stadiums" WHERE "stadium"='gortakeegan'; |
## Task
Generate a SQL query to answer the following question:
`Where is the Stadium of Gortakeegan located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stadiums" (
"rank" real,
"stadium" text,
"total_capacity" text,
"seating_capacity" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Stadium of Gortakeegan located?`:
```sql
|
SELECT MIN("rank") FROM "stadiums" WHERE "seating_capacity"<'7,485' AND "stadium"='st. colman''s park'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest ranking seating capacity smaller than 7,485, and a stadium at St. Colman's Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stadiums" (
"rank" real,
"stadium" text,
"total_capacity" text,
"seating_capacity" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest ranking seating capacity smaller than 7,485, and a stadium at St. Colman's Park?`:
```sql
|
SELECT "points" FROM "complete_formula_one_results" WHERE "year">1972 AND "chassis"='march 721g'; |
## Task
Generate a SQL query to answer the following question:
`In 1972, how many points did the entrant with the March 721G Chassis have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `In 1972, how many points did the entrant with the March 721G Chassis have?`:
```sql
|
SELECT COUNT("points") FROM "complete_formula_one_results" WHERE "entrant"='stp march' AND "year">1971; |
## Task
Generate a SQL query to answer the following question:
`In 1971, how many total points did the entrant stp march have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `In 1971, how many total points did the entrant stp march have?`:
```sql
|
SELECT "chassis" FROM "complete_formula_one_results" WHERE "year"=1971; |
## Task
Generate a SQL query to answer the following question:
`Which Chassis was featured in the year 1971?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Chassis was featured in the year 1971?`:
```sql
|
SELECT "chassis" FROM "complete_formula_one_results" WHERE "entrant"='clarke-mordaunt-guthrie-durlacher'; |
## Task
Generate a SQL query to answer the following question:
`Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry?`:
```sql
|
SELECT AVG("total_g") FROM "squad_stats" WHERE "l_apps"=29 AND "player"='bartolo' AND "c_apps">5; |
## Task
Generate a SQL query to answer the following question:
`What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_stats" (
"player" text,
"l_apps" real,
"c_apps" real,
"total_apps" real,
"total_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5?`:
```sql
|
SELECT MIN("round") FROM "indianapolis_colts_draft_history" WHERE "college"='southern'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest round for Southern 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 `What is the lowest round for Southern College?`:
```sql
|
SELECT "name" FROM "indianapolis_colts_draft_history" WHERE "round">10 AND "position"='placekicker'; |
## Task
Generate a SQL query to answer the following question:
`Who had the placekicker position with a round above 10?`
### 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 `Who had the placekicker position with a round above 10?`:
```sql
|
SELECT "partner" FROM "doubles_10_5_5" WHERE "surface"='clay' AND "opponents"='guillermo garcía-lópez albert portas'; |
## Task
Generate a SQL query to answer the following question:
`What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_10_5_5" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay?`:
```sql
|
SELECT "date" FROM "doubles_10_5_5" WHERE "opponents"='guillermo garcía-lópez albert portas'; |
## Task
Generate a SQL query to answer the following question:
`What are the dates where the opponent was guillermo garcía-lópez albert portas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_10_5_5" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the dates where the opponent was guillermo garcía-lópez albert portas?`:
```sql
|
SELECT MIN("year") FROM "grand_prix_career_statistics" WHERE "class"='125cc' AND "points">102 AND "rank"='2nd'; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?`:
```sql
|
SELECT "team" FROM "grand_prix_career_statistics" WHERE "points"<167 AND "class"='250cc'; |
## Task
Generate a SQL query to answer the following question:
`Which team had fewer than 167 points in the 250cc class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had fewer than 167 points in the 250cc class?`:
```sql
|
SELECT SUM("points") FROM "grand_prix_career_statistics" WHERE "class"='125cc' AND "rank"='3rd' AND "year"<1996; |
## Task
Generate a SQL query to answer the following question:
`For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"=12; |
## Task
Generate a SQL query to answer the following question:
`Who did the Raiders play in week 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Raiders play in week 12?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "game_site"='the kingdome'; |
## Task
Generate a SQL query to answer the following question:
`How many people were at the game that took place at the Kingdome?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were at the game that took place at the Kingdome?`:
```sql
|
SELECT "lms_spr" FROM "teams_championship" WHERE "car_no"='15'; |
## Task
Generate a SQL query to answer the following question:
`Which is the LMS SPR when the car number was 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_championship" (
"team" text,
"car_no" text,
"mnz_spr" text,
"mnz_fea" text,
"spa_spr" text,
"spa_fea" text,
"mon_fea" text,
"sil_spr" text,
"sil_fea" text,
"hun_spr" text,
"hun_fea" text,
"lms_spr" text,
"lms_fea" text,
"cat_spr" text,
"cat_fea" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the LMS SPR when the car number was 15?`:
```sql
|
SELECT "points" FROM "teams_championship" WHERE "cat_fea"='3'; |
## Task
Generate a SQL query to answer the following question:
`When the CAT FEA is 3 how many points were scored?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_championship" (
"team" text,
"car_no" text,
"mnz_spr" text,
"mnz_fea" text,
"spa_spr" text,
"spa_fea" text,
"mon_fea" text,
"sil_spr" text,
"sil_fea" text,
"hun_spr" text,
"hun_fea" text,
"lms_spr" text,
"lms_fea" text,
"cat_spr" text,
"cat_fea" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the CAT FEA is 3 how many points were scored?`:
```sql
|
SELECT "spa_fea" FROM "teams_championship" WHERE "lms_fea"='5'; |
## Task
Generate a SQL query to answer the following question:
`What was the SPA FEA when the LMS FEA was 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_championship" (
"team" text,
"car_no" text,
"mnz_spr" text,
"mnz_fea" text,
"spa_spr" text,
"spa_fea" text,
"mon_fea" text,
"sil_spr" text,
"sil_fea" text,
"hun_spr" text,
"hun_fea" text,
"lms_spr" text,
"lms_fea" text,
"cat_spr" text,
"cat_fea" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the SPA FEA when the LMS FEA was 5?`:
```sql
|
SELECT "mnz_fea" FROM "teams_championship" WHERE "sil_spr"='18'; |
## Task
Generate a SQL query to answer the following question:
`What was the MNZ FEA when the SIL SPR was 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_championship" (
"team" text,
"car_no" text,
"mnz_spr" text,
"mnz_fea" text,
"spa_spr" text,
"spa_fea" text,
"mon_fea" text,
"sil_spr" text,
"sil_fea" text,
"hun_spr" text,
"hun_fea" text,
"lms_spr" text,
"lms_fea" text,
"cat_spr" text,
"cat_fea" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the MNZ FEA when the SIL SPR was 18?`:
```sql
|
SELECT "championships_years" FROM "major_sports_teams" WHERE "club"='tampa bay storm'; |
## Task
Generate a SQL query to answer the following question:
`Which years did the Tampa Bay Storm win the Championships?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "major_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years did the Tampa Bay Storm win the Championships?`:
```sql
|
SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"<1975; |
## Task
Generate a SQL query to answer the following question:
`What is the height of the person born before 1975?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2007_squads" (
"player" text,
"height" real,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the person born before 1975?`:
```sql
|
SELECT COUNT("term_expires") FROM "sources" WHERE "province"='north western' AND "name"='ken wright'; |
## Task
Generate a SQL query to answer the following question:
`How many times did Ken Wright expired in North Western?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sources" (
"name" text,
"party" text,
"province" text,
"term_expires" real,
"term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Ken Wright expired in North Western?`:
```sql
|
SELECT SUM("species_on_r_union") FROM "birds" WHERE "order"='procellariiformes' AND "family"='hydrobatidae' AND "species_worldwide"<21; |
## Task
Generate a SQL query to answer the following question:
`Which species on Réunion island is part of the procellariiformes order and is part of the hydrobatidae family and has less than 21 species worldwide?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "birds" (
"species" text,
"order" text,
"family" text,
"species_worldwide" real,
"species_on_r_union" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which species on Réunion island is part of the procellariiformes order and is part of the hydrobatidae family and has less than 21 species worldwide?`:
```sql
|
SELECT COUNT("species_worldwide") FROM "birds" WHERE "family"='sternidae' AND "species_on_r_union"<9; |
## Task
Generate a SQL query to answer the following question:
`How many species does the sternidae family have worldwide with less than 9 species on Réunion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "birds" (
"species" text,
"order" text,
"family" text,
"species_worldwide" real,
"species_on_r_union" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many species does the sternidae family have worldwide with less than 9 species on Réunion?`:
```sql
|
SELECT SUM("species_on_r_union") FROM "birds" WHERE "family"='dromadidae' AND "species_worldwide">1; |
## Task
Generate a SQL query to answer the following question:
`How many species on Réunion do the dromadidae family have with a worldwide speices larger than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "birds" (
"species" text,
"order" text,
"family" text,
"species_worldwide" real,
"species_on_r_union" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many species on Réunion do the dromadidae family have with a worldwide speices larger than 1?`:
```sql
|
SELECT "2010" FROM "doubles_performance_timeline" WHERE "tournament"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2010 with tournament of grand slam tournaments`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2010 with tournament of grand slam tournaments`:
```sql
|
SELECT "2008" FROM "doubles_performance_timeline" WHERE "2010"='2r' AND "tournament"='wimbledon'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2008 with 2010 of 2r and wimbledon tournament`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2008 with 2010 of 2r and wimbledon tournament`:
```sql
|
SELECT "2013" FROM "doubles_performance_timeline" WHERE "2010"='1r'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2013 for 2010 of 1r`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2013 for 2010 of 1r`:
```sql
|
SELECT "2010" FROM "doubles_performance_timeline" WHERE "2008"='1r' AND "2011"='1r' AND "tournament"='us open'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2010 for 2008 of 1r and tournament of us open`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2010 for 2008 of 1r and tournament of us open`:
```sql
|
SELECT "years" FROM "waitomo_district" WHERE "decile"=4 AND "authority"='state' AND "name"='mapiu school'; |
## Task
Generate a SQL query to answer the following question:
`Which years have a Decile of 4, an Authority of state, and a Name of mapiu school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "waitomo_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which years have a Decile of 4, an Authority of state, and a Name of mapiu school?`:
```sql
|
SELECT "years" FROM "waitomo_district" WHERE "decile"<6 AND "area"='te kuiti' AND "authority"='state integrated'; |
## Task
Generate a SQL query to answer the following question:
`Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "waitomo_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?`:
```sql
|
SELECT AVG("decile") FROM "waitomo_district" WHERE "authority"='state' AND "name"='mapiu school'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Decile with a state authority and a Name of mapiu school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "waitomo_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Decile with a state authority and a Name of mapiu school?`:
```sql
|
SELECT "years" FROM "waitomo_district" WHERE "area"='rangitoto'; |
## Task
Generate a SQL query to answer the following question:
`Which years have an Area of rangitoto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "waitomo_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which years have an Area of rangitoto?`:
```sql
|
SELECT "gender" FROM "waitomo_district" WHERE "name"='rangitoto school'; |
## Task
Generate a SQL query to answer the following question:
`Which gender has a Name of rangitoto school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "waitomo_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which gender has a Name of rangitoto school?`:
```sql
|
SELECT "to_par" FROM "final_leaderboard" WHERE "player"='ralph guldahl'; |
## Task
Generate a SQL query to answer the following question:
`What is the t o par for Ralph Guldahl?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the t o par for Ralph Guldahl?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.