output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "manner_of_departure"='end of tenure as caretaker' AND "replaced_by"='jesper hansen'; |
## Task
Generate a SQL query to answer the following question:
`What Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='pre-season' AND "manner_of_departure"='end of tenure as caretaker'; |
## Task
Generate a SQL query to answer the following question:
`What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker?`:
```sql
|
SELECT "place" FROM "first_round" WHERE "player"='fredrik jacobson'; |
## Task
Generate a SQL query to answer the following question:
`What place is Fredrik Jacobson from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place is Fredrik Jacobson from?`:
```sql
|
SELECT "to_par" FROM "first_round" WHERE "score"<67 AND "place"='t1' AND "player"='tiger woods'; |
## Task
Generate a SQL query to answer the following question:
`What is the to par of Tiger Woods, where his score was less than 67, and he was in t1 place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of Tiger Woods, where his score was less than 67, and he was in t1 place?`:
```sql
|
SELECT "place" FROM "first_round" WHERE "player"='brad faxon'; |
## Task
Generate a SQL query to answer the following question:
`What place is player Brad Faxon from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place is player Brad Faxon from?`:
```sql
|
SELECT MIN("score") FROM "first_round" WHERE "country"='sweden'; |
## Task
Generate a SQL query to answer the following question:
`What is Sweden's lowest score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Sweden's lowest score?`:
```sql
|
SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "year_built">1894 AND "parish_prestegjeld"='jostedal parish'; |
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) was built after 1894 in the Parish (Prestegjeld) of jostedal parish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_luster" (
"parish_prestegjeld" text,
"sub_parish_sogn" text,
"church_name" text,
"year_built" real,
"location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) was built after 1894 in the Parish (Prestegjeld) of jostedal parish?`:
```sql
|
SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "parish_prestegjeld"='hafslo parish' AND "church_name"='hafslo kyrkje'; |
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and has a church called Hafslo Kyrkje?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_luster" (
"parish_prestegjeld" text,
"sub_parish_sogn" text,
"church_name" text,
"year_built" real,
"location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and has a church called Hafslo Kyrkje?`:
```sql
|
SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "parish_prestegjeld"='hafslo parish' AND "location_of_the_church"='urnes'; |
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and is located in the Church of Urnes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_luster" (
"parish_prestegjeld" text,
"sub_parish_sogn" text,
"church_name" text,
"year_built" real,
"location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and is located in the Church of Urnes?`:
```sql
|
SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "year_built"<1883 AND "parish_prestegjeld"='jostedal parish' AND "location_of_the_church"='gaupne'; |
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_luster" (
"parish_prestegjeld" text,
"sub_parish_sogn" text,
"church_name" text,
"year_built" real,
"location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?`:
```sql
|
SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "church_name"='jostedal kyrkje'; |
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) has a church named Jostedal Kyrkje?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_luster" (
"parish_prestegjeld" text,
"sub_parish_sogn" text,
"church_name" text,
"year_built" real,
"location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) has a church named Jostedal Kyrkje?`:
```sql
|
SELECT "national_title" FROM "titleholders" WHERE "miss_international"='ikumi yoshimatsu'; |
## Task
Generate a SQL query to answer the following question:
`What's the national title of miss international ikumi yoshimatsu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titleholders" (
"year" real,
"country_territory" text,
"miss_international" text,
"national_title" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the national title of miss international ikumi yoshimatsu?`:
```sql
|
SELECT MIN("year") FROM "titleholders" WHERE "country_territory"='philippines'; |
## Task
Generate a SQL query to answer the following question:
`What's the earliest year the philippines won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titleholders" (
"year" real,
"country_territory" text,
"miss_international" text,
"national_title" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the earliest year the philippines won?`:
```sql
|
SELECT AVG("year") FROM "titleholders" WHERE "country_territory"='lebanon'; |
## Task
Generate a SQL query to answer the following question:
`What's the average year lebanon won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titleholders" (
"year" real,
"country_territory" text,
"miss_international" text,
"national_title" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average year lebanon won?`:
```sql
|
SELECT "country_territory" FROM "titleholders" WHERE "miss_international"='małgorzata rożniecka'; |
## Task
Generate a SQL query to answer the following question:
`What country or territory is małgorzata rożniecka from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titleholders" (
"year" real,
"country_territory" text,
"miss_international" text,
"national_title" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country or territory is małgorzata rożniecka from?`:
```sql
|
SELECT "teams" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "league"='regionalliga süd'; |
## Task
Generate a SQL query to answer the following question:
`Which team had a league of regionalliga süd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a league of regionalliga süd?`:
```sql
|
SELECT "home" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "season"='1949-50'; |
## Task
Generate a SQL query to answer the following question:
`What was the home for season 1949-50?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home for season 1949-50?`:
```sql
|
SELECT "season" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "home"='2-3'; |
## Task
Generate a SQL query to answer the following question:
`Which season had a home 2-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had a home 2-3?`:
```sql
|
SELECT "teams" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "season"='1954-55'; |
## Task
Generate a SQL query to answer the following question:
`Which team had a season 1954-55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a season 1954-55?`:
```sql
|
SELECT "season" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "away"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`What season has an away 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season has an away 2-0?`:
```sql
|
SELECT "teams" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "home"='2-3'; |
## Task
Generate a SQL query to answer the following question:
`What team has a home of 2-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has a home of 2-3?`:
```sql
|
SELECT MIN("total") FROM "medals_table" WHERE "nation"='lithuania' AND "silver">0; |
## Task
Generate a SQL query to answer the following question:
`What is the total that wehn Lithuania is the nation, and Silver is more than 0?`
### 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 is the total that wehn Lithuania is the nation, and Silver is more than 0?`:
```sql
|
SELECT AVG("rank") FROM "medals_table" WHERE "bronze">0 AND "gold">1 AND "nation"='japan' AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the rank when bronze was more than 0, gold more than 1, Nation is japan, and silver less than 0?`
### 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 is the rank when bronze was more than 0, gold more than 1, Nation is japan, and silver less than 0?`:
```sql
|
SELECT MIN("rank") FROM "medals_table" WHERE "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the rank when the total is less than 1?`
### 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 is the rank when the total is less than 1?`:
```sql
|
SELECT MAX("total") FROM "medals_table" WHERE "silver">0 AND "bronze"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the total when silver is more than 0, and bronze less than 0?`
### 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 is the total when silver is more than 0, and bronze less than 0?`:
```sql
|
SELECT SUM("rank") FROM "medals_table" WHERE "nation"='serbia' AND "gold">0; |
## Task
Generate a SQL query to answer the following question:
`What is the rank that when Serbia is the nation, and gold is larger than 0?`
### 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 is the rank that when Serbia is the nation, and gold is larger than 0?`:
```sql
|
SELECT "year_s_won" FROM "missed_the_cut" WHERE "to_par"<12 AND "player"='john daly'; |
## Task
Generate a SQL query to answer the following question:
`Which Year(s) won has a To par smaller than 12, and a Player of john daly?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year(s) won has a To par smaller than 12, and a Player of john daly?`:
```sql
|
SELECT "player" FROM "missed_the_cut" WHERE "to_par"=12 AND "country"='fiji'; |
## Task
Generate a SQL query to answer the following question:
`Which Player has a To par of 12, and a Country of fiji?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a To par of 12, and a Country of fiji?`:
```sql
|
SELECT MIN("total") FROM "missed_the_cut" WHERE "to_par">12; |
## Task
Generate a SQL query to answer the following question:
`Which Total has a To par larger than 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a To par larger than 12?`:
```sql
|
SELECT SUM("to_par") FROM "missed_the_cut" WHERE "total">149 AND "country"='united states' AND "year_s_won"='1997'; |
## Task
Generate a SQL query to answer the following question:
`How much To par has a Total larger than 149, and a Country of united states, and a Year(s) won of 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much To par has a Total larger than 149, and a Country of united states, and a Year(s) won of 1997?`:
```sql
|
SELECT "network" FROM "list_of_most_watched_television_broadcas" WHERE "rank">5 AND "show"='2012 summer olympics closing ceremony in london'; |
## Task
Generate a SQL query to answer the following question:
`Which Network has a Rank larger than 5, a Show of 2012 summer olympics closing ceremony in london?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_most_watched_television_broadcas" (
"rank" real,
"show" text,
"number_of_viewers" text,
"date" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Network has a Rank larger than 5, a Show of 2012 summer olympics closing ceremony in london?`:
```sql
|
SELECT SUM("rank") FROM "list_of_most_watched_television_broadcas" WHERE "network"='bbc one' AND "number_of_viewers"='30.15million'; |
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_most_watched_television_broadcas" (
"rank" real,
"show" text,
"number_of_viewers" text,
"date" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2`:
```sql
|
SELECT "date" FROM "list_of_most_watched_television_broadcas" WHERE "rank">2 AND "network"='itv'; |
## Task
Generate a SQL query to answer the following question:
`When has a Rank larger than 2 and a Network of itv?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_most_watched_television_broadcas" (
"rank" real,
"show" text,
"number_of_viewers" text,
"date" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Rank larger than 2 and a Network of itv?`:
```sql
|
SELECT "term_of_office" FROM "see_also" WHERE "state"='nsw' AND "member"='leonard reynolds'; |
## Task
Generate a SQL query to answer the following question:
`What is the Term of office for Leonard Reynolds of NSW?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Term of office for Leonard Reynolds of NSW?`:
```sql
|
SELECT "state" FROM "see_also" WHERE "electorate"='cunningham'; |
## Task
Generate a SQL query to answer the following question:
`What state shows for Cunningham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state shows for Cunningham?`:
```sql
|
SELECT "electorate" FROM "see_also" WHERE "term_of_office"='1955–1972' AND "member"='peter howson'; |
## Task
Generate a SQL query to answer the following question:
`What is the Electorate when the term of office was 1955–1972, for Peter Howson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Electorate when the term of office was 1955–1972, for Peter Howson?`:
```sql
|
SELECT "party" FROM "see_also" WHERE "term_of_office"='1951–1966' AND "state"='sa'; |
## Task
Generate a SQL query to answer the following question:
`What party has a term of office of 1951–1966, and a State of sa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party has a term of office of 1951–1966, and a State of sa?`:
```sql
|
SELECT COUNT("attendance") FROM "preseason" WHERE "arena"='jobing.com arena'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance at Jobing.com Arena?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preseason" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance at Jobing.com Arena?`:
```sql
|
SELECT "date" FROM "preseason" WHERE "loss"='leneveu (1–0–1)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game with a Loss of Leneveu (1–0–1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preseason" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the game with a Loss of Leneveu (1–0–1)?`:
```sql
|
SELECT "date" FROM "preseason" WHERE "record"='2–1–1'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date with a game with a Record of 2–1–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preseason" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date with a game with a Record of 2–1–1?`:
```sql
|
SELECT "score" FROM "preseason" WHERE "arena"='jobing.com arena'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score at Jobing.com Arena?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preseason" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score at Jobing.com Arena?`:
```sql
|
SELECT "opponent" FROM "preseason" WHERE "date"='september 26'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent of the game on September 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preseason" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent of the game on September 26?`:
```sql
|
SELECT "label" FROM "release_history" WHERE "region"='united states' AND "format"='cassette'; |
## Task
Generate a SQL query to answer the following question:
`What Label has a Region of united states, and a Format of cassette?`
### 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 Label has a Region of united states, and a Format of cassette?`:
```sql
|
SELECT "date" FROM "release_history" WHERE "label"='grilled cheese'; |
## Task
Generate a SQL query to answer the following question:
`What Date has a Label of grilled cheese?`
### 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 Date has a Label of grilled cheese?`:
```sql
|
SELECT "catalog" FROM "release_history" WHERE "label"='geffen records / universal music special markets'; |
## Task
Generate a SQL query to answer the following question:
`What Catalog has a Label of geffen records / universal music special markets?`
### 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 Catalog has a Label of geffen records / universal music special markets?`:
```sql
|
SELECT "label" FROM "release_history" WHERE "format"='cd' AND "catalog"='crgd 86136'; |
## Task
Generate a SQL query to answer the following question:
`What Label has a Format of cd, and a Catalog of crgd 86136?`
### 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 Label has a Format of cd, and a Catalog of crgd 86136?`:
```sql
|
SELECT "region" FROM "release_history" WHERE "catalog"='crgd 86136'; |
## Task
Generate a SQL query to answer the following question:
`What Region has a Catalog of crgd 86136?`
### 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 Region has a Catalog of crgd 86136?`:
```sql
|
SELECT "label" FROM "release_history" WHERE "catalog"='486 136-2'; |
## Task
Generate a SQL query to answer the following question:
`What Label has a Catalog of 486 136-2?`
### 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 Label has a Catalog of 486 136-2?`:
```sql
|
SELECT "date" FROM "first_division" WHERE "attendance">'51,338' AND "opponent"='manchester united'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has an Attendance larger than 51,338, and an Opponent of manchester united?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_division" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has an Attendance larger than 51,338, and an Opponent of manchester united?`:
```sql
|
SELECT "opponent" FROM "first_division" WHERE "result"='0-3'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Result of 0-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_division" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Result of 0-3?`:
```sql
|
SELECT SUM("attendance") FROM "uefa_cup_winner_s_cup" WHERE "result"='1-0' AND "venue"='h' AND "round"='sf'; |
## Task
Generate a SQL query to answer the following question:
`What is the total attendance with a 1-0 result, at Venue H, and Round SF?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_cup_winner_s_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total attendance with a 1-0 result, at Venue H, and Round SF?`:
```sql
|
SELECT MIN("attendance") FROM "uefa_cup_winner_s_cup" WHERE "venue"='h' AND "round"='r2'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest attendance at Venue H in Round R2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_cup_winner_s_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest attendance at Venue H in Round R2?`:
```sql
|
SELECT MAX("attendance") FROM "uefa_cup_winner_s_cup" WHERE "opponent"='club brugge' AND "venue"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance for the opponents Club Brugge in Venue A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_cup_winner_s_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance for the opponents Club Brugge in Venue A?`:
```sql
|
SELECT "round" FROM "uefa_cup_winner_s_cup" WHERE "opponent"='cska sofia' AND "venue"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is the round for the opponent CSKA Sofia in Venue A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_cup_winner_s_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round for the opponent CSKA Sofia in Venue A?`:
```sql
|
SELECT "player" FROM "first_round" WHERE "place"='t10'; |
## Task
Generate a SQL query to answer the following question:
`What player placed t10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player placed t10?`:
```sql
|
SELECT MAX("score") FROM "first_round" WHERE "player"='bernhard langer'; |
## Task
Generate a SQL query to answer the following question:
`What was Bernhard Langer's highest score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Bernhard Langer's highest score?`:
```sql
|
SELECT MIN("score") FROM "first_round" WHERE "country"='united states' AND "player"='craig stadler'; |
## Task
Generate a SQL query to answer the following question:
`What was Craig Stadler's lowest score for United states?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Craig Stadler's lowest score for United states?`:
```sql
|
SELECT "money" FROM "final_round" WHERE "country"='ireland'; |
## Task
Generate a SQL query to answer the following question:
`What Money (£) has a Country of ireland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"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 Money (£) has a Country of ireland?`:
```sql
|
SELECT "player" FROM "final_round" WHERE "place"='t10'; |
## Task
Generate a SQL query to answer the following question:
`What Player has a Place of t10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"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 Player has a Place of t10?`:
```sql
|
SELECT "to_par" FROM "final_round" WHERE "score"='71-73-71-71=286'; |
## Task
Generate a SQL query to answer the following question:
`What To par has a Score of 71-73-71-71=286?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"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 To par has a Score of 71-73-71-71=286?`:
```sql
|
SELECT "place" FROM "final_round" WHERE "to_par"='–4'; |
## Task
Generate a SQL query to answer the following question:
`What Place has a To par of –4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"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 Place has a To par of –4?`:
```sql
|
SELECT "score" FROM "final_round" WHERE "place"='t8' AND "country"='scotland'; |
## Task
Generate a SQL query to answer the following question:
`What Score has a Place of t8, and a Country of scotland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"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 Score has a Place of t8, and a Country of scotland?`:
```sql
|
SELECT "to_par" FROM "final_round" WHERE "country"='united states' AND "score"='67-66-78-77=288'; |
## Task
Generate a SQL query to answer the following question:
`What To par has a Country of united states, and a Score of 67-66-78-77=288?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"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 To par has a Country of united states, and a Score of 67-66-78-77=288?`:
```sql
|
SELECT AVG("money") FROM "final_leaderboard" WHERE "country"='united states' AND "to_par"='+3'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Money ( $ ), when Country is "United States", and when To par is "+3"?`
### 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 average Money ( $ ), when Country is "United States", and when To par is "+3"?`:
```sql
|
SELECT "money" FROM "final_leaderboard" WHERE "player"='morgan pressel'; |
## Task
Generate a SQL query to answer the following question:
`What is Money ( $ ), when Player is "Morgan Pressel"?`
### 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 Money ( $ ), when Player is "Morgan Pressel"?`:
```sql
|
SELECT "place" FROM "final_leaderboard" WHERE "player"='mi hyun kim'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Player is "Mi Hyun Kim"?`
### 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 Place, when Player is "Mi Hyun Kim"?`:
```sql
|
SELECT AVG("tonnage") FROM "raiding_history" WHERE "date"='30 march 1943'; |
## Task
Generate a SQL query to answer the following question:
`What was the tonnage on 30 march 1943?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "raiding_history" (
"date" text,
"ship" text,
"nationality" text,
"tonnage" real,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tonnage on 30 march 1943?`:
```sql
|
SELECT "fate" FROM "raiding_history" WHERE "date"='27 june 1942'; |
## Task
Generate a SQL query to answer the following question:
`What was the fate on 27 june 1942?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "raiding_history" (
"date" text,
"ship" text,
"nationality" text,
"tonnage" real,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the fate on 27 june 1942?`:
```sql
|
SELECT "tonnage" FROM "raiding_history" WHERE "date"='12 september 1942'; |
## Task
Generate a SQL query to answer the following question:
`What was the tonnage on 12 september 1942?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "raiding_history" (
"date" text,
"ship" text,
"nationality" text,
"tonnage" real,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tonnage on 12 september 1942?`:
```sql
|
SELECT "fate" FROM "raiding_history" WHERE "nationality"='yugoslavia'; |
## Task
Generate a SQL query to answer the following question:
`What was Yugoslavia's fate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "raiding_history" (
"date" text,
"ship" text,
"nationality" text,
"tonnage" real,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Yugoslavia's fate?`:
```sql
|
SELECT "status" FROM "ships_of_the_class" WHERE "name"='ins ranvir'; |
## Task
Generate a SQL query to answer the following question:
`What is the status of the ship INS Ranvir?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships_of_the_class" (
"name" text,
"pennant" text,
"builder" text,
"homeport" text,
"commissioned" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the ship INS Ranvir?`:
```sql
|
SELECT "builder" FROM "ships_of_the_class" WHERE "name"='ins rana'; |
## Task
Generate a SQL query to answer the following question:
`Who was the builder of the ship INS Rana?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships_of_the_class" (
"name" text,
"pennant" text,
"builder" text,
"homeport" text,
"commissioned" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the builder of the ship INS Rana?`:
```sql
|
SELECT "place" FROM "eurovision_song_contest_entries" WHERE "year"=2007 AND "song"='\" work your magic \"'; |
## Task
Generate a SQL query to answer the following question:
`What is the place in 2007 for the song " work your magic "?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eurovision_song_contest_entries" (
"year" real,
"song" text,
"artist" text,
"place" text,
"points" text,
"composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place in 2007 for the song " work your magic "?`:
```sql
|
SELECT "composer" FROM "eurovision_song_contest_entries" WHERE "song"='\" peace will come \"'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Composer of " peace will come "?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eurovision_song_contest_entries" (
"year" real,
"song" text,
"artist" text,
"place" text,
"points" text,
"composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Composer of " peace will come "?`:
```sql
|
SELECT COUNT("year") FROM "eurovision_song_contest_entries" WHERE "points"='248 (sf: 217)'; |
## Task
Generate a SQL query to answer the following question:
`What year shows 248 (sf: 217) points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eurovision_song_contest_entries" (
"year" real,
"song" text,
"artist" text,
"place" text,
"points" text,
"composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year shows 248 (sf: 217) points?`:
```sql
|
SELECT "place" FROM "eurovision_song_contest_entries" WHERE "year">2007 AND "points"='141 (sf:83)'; |
## Task
Generate a SQL query to answer the following question:
`What is the place later than 2007, with 141 (sf:83) points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eurovision_song_contest_entries" (
"year" real,
"song" text,
"artist" text,
"place" text,
"points" text,
"composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place later than 2007, with 141 (sf:83) points?`:
```sql
|
SELECT "artist" FROM "eurovision_song_contest_entries" WHERE "year"=2007 AND "composer"='hayko'; |
## Task
Generate a SQL query to answer the following question:
`What artist shows 2007 and composer of Hayko?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eurovision_song_contest_entries" (
"year" real,
"song" text,
"artist" text,
"place" text,
"points" text,
"composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What artist shows 2007 and composer of Hayko?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "player"='corey pavin'; |
## Task
Generate a SQL query to answer the following question:
`What place is Corey Pavin in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place is Corey Pavin in?`:
```sql
|
SELECT "1991_92" FROM "relegation" WHERE "1993_94"<34 AND "team"='argentinos juniors'; |
## Task
Generate a SQL query to answer the following question:
`Which 1991-92 has a 1993-94 smaller than 34, and a Team of argentinos juniors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1991-92 has a 1993-94 smaller than 34, and a Team of argentinos juniors?`:
```sql
|
SELECT SUM("points") FROM "relegation" WHERE "average"<1 AND "played">38 AND "team"='gimnasia de la plata'; |
## Task
Generate a SQL query to answer the following question:
`How many Points have an Average smaller than 1, a Played larger than 38, and a Team of gimnasia de la plata?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Points have an Average smaller than 1, a Played larger than 38, and a Team of gimnasia de la plata?`:
```sql
|
SELECT "1992_93" FROM "relegation" WHERE "played"=114 AND "1991_92"='48'; |
## Task
Generate a SQL query to answer the following question:
`Which 1992-93 has Played of 114, and a 1991-92 of 48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1992-93 has Played of 114, and a 1991-92 of 48?`:
```sql
|
SELECT "1991_92" FROM "relegation" WHERE "1993_94"=43; |
## Task
Generate a SQL query to answer the following question:
`Which 1991-92 has a 1993-94 of 43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1991-92 has a 1993-94 of 43?`:
```sql
|
SELECT "1992_93" FROM "relegation" WHERE "1993_94"=43; |
## Task
Generate a SQL query to answer the following question:
`Which 1992-93 has a 1993-94 of 43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1992-93 has a 1993-94 of 43?`:
```sql
|
SELECT "atomic_property" FROM "atomic_properties" WHERE "helium"='4.16'; |
## Task
Generate a SQL query to answer the following question:
`Which Atomic property has Helium of 4.16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atomic_properties" (
"atomic_property" text,
"helium" text,
"neon" text,
"argon" text,
"krypton" text,
"xenon" text,
"radon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Atomic property has Helium of 4.16?`:
```sql
|
SELECT "krypton" FROM "atomic_properties" WHERE "neon"='10'; |
## Task
Generate a SQL query to answer the following question:
`Which Krypton has Neon of 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atomic_properties" (
"atomic_property" text,
"helium" text,
"neon" text,
"argon" text,
"krypton" text,
"xenon" text,
"radon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Krypton has Neon of 10?`:
```sql
|
SELECT "radon" FROM "atomic_properties" WHERE "neon"='4.79'; |
## Task
Generate a SQL query to answer the following question:
`Which Radon has Neon of 4.79?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atomic_properties" (
"atomic_property" text,
"helium" text,
"neon" text,
"argon" text,
"krypton" text,
"xenon" text,
"radon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Radon has Neon of 4.79?`:
```sql
|
SELECT "neon" FROM "atomic_properties" WHERE "atomic_property"='average valence electron energy (avee)'; |
## Task
Generate a SQL query to answer the following question:
`Which Neon has Atomic property of average valence electron energy (avee)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atomic_properties" (
"atomic_property" text,
"helium" text,
"neon" text,
"argon" text,
"krypton" text,
"xenon" text,
"radon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Neon has Atomic property of average valence electron energy (avee)?`:
```sql
|
SELECT "radon" FROM "atomic_properties" WHERE "atomic_property"='outer shell electron configuration'; |
## Task
Generate a SQL query to answer the following question:
`Which Radon has Atomic property of outer shell electron configuration?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atomic_properties" (
"atomic_property" text,
"helium" text,
"neon" text,
"argon" text,
"krypton" text,
"xenon" text,
"radon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Radon has Atomic property of outer shell electron configuration?`:
```sql
|
SELECT "xenon" FROM "atomic_properties" WHERE "neon"='20.1797(6)'; |
## Task
Generate a SQL query to answer the following question:
`Which Xenon has Neon of 20.1797(6)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atomic_properties" (
"atomic_property" text,
"helium" text,
"neon" text,
"argon" text,
"krypton" text,
"xenon" text,
"radon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Xenon has Neon of 20.1797(6)?`:
```sql
|
SELECT MAX("attendance") FROM "ties" WHERE "away_team"='eastwood town'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance of the game with eastwood town as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance of the game with eastwood town as the away team?`:
```sql
|
SELECT "place" FROM "final_round" WHERE "player"='scott mccarron'; |
## Task
Generate a SQL query to answer the following question:
`What place is Scott McCarron in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"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 place is Scott McCarron in?`:
```sql
|
SELECT "weight" FROM "kazakhstan" WHERE "name"='alexandr elke'; |
## Task
Generate a SQL query to answer the following question:
`What is Alexandr Elke's Weight?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kazakhstan" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Alexandr Elke's Weight?`:
```sql
|
SELECT "name" FROM "kazakhstan" WHERE "club"='dinamo moscow' AND "pos"='d'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the D Player from the Dinamo Moscow Club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kazakhstan" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the D Player from the Dinamo Moscow Club?`:
```sql
|
SELECT "date_of_birth" FROM "kazakhstan" WHERE "club"='csk vmf moscow'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of Birth of the Player from the CSK VMF Moscow Club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kazakhstan" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of Birth of the Player from the CSK VMF Moscow Club?`:
```sql
|
SELECT "weight" FROM "kazakhstan" WHERE "club"='dshnk almaty' AND "height"='m (ft 6in)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Weight of the Player from DSHNK Almaty Club with a Height of m (ft 6in)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kazakhstan" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Weight of the Player from DSHNK Almaty Club with a Height of m (ft 6in)?`:
```sql
|
SELECT SUM("position") FROM "relegation_playoff" WHERE "goals_against"<43 AND "wins">14 AND "played">38; |
## Task
Generate a SQL query to answer the following question:
`Which Position has Goals against smaller than 43, and Wins larger than 14, and Played larger than 38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation_playoff" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has Goals against smaller than 43, and Wins larger than 14, and Played larger than 38?`:
```sql
|
SELECT MIN("goals_for") FROM "relegation_playoff" WHERE "position"<16 AND "wins"<19 AND "goals_against"<32; |
## Task
Generate a SQL query to answer the following question:
`Which Goals for has a Position smaller than 16, and Wins smaller than 19, and Goals against smaller than 32?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation_playoff" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Goals for has a Position smaller than 16, and Wins smaller than 19, and Goals against smaller than 32?`:
```sql
|
SELECT MAX("points") FROM "relegation_playoff" WHERE "goals_against"=32 AND "played">38; |
## Task
Generate a SQL query to answer the following question:
`Which Points have Goals against of 32, and Played larger than 38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation_playoff" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have Goals against of 32, and Played larger than 38?`:
```sql
|
SELECT AVG("position") FROM "relegation_playoff" WHERE "goals_against"<59 AND "goals_for">32 AND "draws">9 AND "points">35; |
## Task
Generate a SQL query to answer the following question:
`Which Position has Goals against smaller than 59, and Goals for larger than 32, and Draws larger than 9, and Points larger than 35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation_playoff" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has Goals against smaller than 59, and Goals for larger than 32, and Draws larger than 9, and Points larger than 35?`:
```sql
|
SELECT "district" FROM "connecticut" WHERE "party"='republican' AND "results"='re-elected'; |
## Task
Generate a SQL query to answer the following question:
`What district re-elected a Republican?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "connecticut" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district re-elected a Republican?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.