output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT SUM("1955") FROM "1950s" WHERE "1956">2.9 AND "1953">4.5; |
## Task
Generate a SQL query to answer the following question:
`What is the 1955 rate when the 1956 is more than 2.9, and 1953 is larger than 4.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1950s" (
"country" text,
"1951" real,
"1952" real,
"1953" real,
"1954" real,
"1955" real,
"1956" real,
"1957" real,
"1958" real,
"1959" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1955 rate when the 1956 is more than 2.9, and 1953 is larger than 4.5?`:
```sql
|
SELECT "from" FROM "signings" WHERE "year">2010 AND "player"='alex song'; |
## Task
Generate a SQL query to answer the following question:
`Where was Alex Song signed from after 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "signings" (
"rank" real,
"player" text,
"from" text,
"transfer_fee_millions" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was Alex Song signed from after 2010?`:
```sql
|
SELECT COUNT("year") FROM "signings" WHERE "from"='sevilla'; |
## Task
Generate a SQL query to answer the following question:
`How many players were signed from Sevilla?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "signings" (
"rank" real,
"player" text,
"from" text,
"transfer_fee_millions" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many players were signed from Sevilla?`:
```sql
|
SELECT MAX("week") FROM "dansefeber" WHERE "result"='bottom 3' AND "partner"='endre jansen'; |
## Task
Generate a SQL query to answer the following question:
`In what Week resulting in the bottom 3 was Endre Jansen Partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dansefeber" (
"week" real,
"partner" text,
"dance" text,
"music" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Week resulting in the bottom 3 was Endre Jansen Partner?`:
```sql
|
SELECT "dance" FROM "dansefeber" WHERE "result"='safe' AND "week"=1; |
## Task
Generate a SQL query to answer the following question:
`What Dance in Week 1 resulted in Safe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dansefeber" (
"week" real,
"partner" text,
"dance" text,
"music" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Dance in Week 1 resulted in Safe?`:
```sql
|
SELECT MAX("week") FROM "dansefeber" WHERE "dance"='locking'; |
## Task
Generate a SQL query to answer the following question:
`In what Week was the Locking Dance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dansefeber" (
"week" real,
"partner" text,
"dance" text,
"music" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Week was the Locking Dance?`:
```sql
|
SELECT "position" FROM "nfl_draft" WHERE "round"=7 AND "pick_num"<214; |
## Task
Generate a SQL query to answer the following question:
`What position has 7 as the round, with a pick # less than 214?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has 7 as the round, with a pick # less than 214?`:
```sql
|
SELECT "college" FROM "nfl_draft" WHERE "round">1 AND "player"='dylan mcfarland'; |
## Task
Generate a SQL query to answer the following question:
`What college has a round greater than 1, with dylan mcfarland as the player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college has a round greater than 1, with dylan mcfarland as the player?`:
```sql
|
SELECT "player" FROM "nfl_draft" WHERE "pick_num">207; |
## Task
Generate a SQL query to answer the following question:
`What player has a pick # greater than 207?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a pick # greater than 207?`:
```sql
|
SELECT "artist" FROM "top_10_american_albums" WHERE "certification"='4x platinum'; |
## Task
Generate a SQL query to answer the following question:
`Which artist had a 4x platinum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_american_albums" (
"rank" real,
"artist" text,
"album" text,
"peak_position" real,
"sales" real,
"certification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist had a 4x platinum?`:
```sql
|
SELECT MAX("peak_position") FROM "top_10_american_albums" WHERE "album"='one of the boys'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest peak position for the album one of the boys?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_american_albums" (
"rank" real,
"artist" text,
"album" text,
"peak_position" real,
"sales" real,
"certification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest peak position for the album one of the boys?`:
```sql
|
SELECT COUNT("sales") FROM "top_10_american_albums" WHERE "peak_position"=1 AND "certification"='6x platinum'; |
## Task
Generate a SQL query to answer the following question:
`How many sales had a peak position of 1 and a certification of 6x platinum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_american_albums" (
"rank" real,
"artist" text,
"album" text,
"peak_position" real,
"sales" real,
"certification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sales had a peak position of 1 and a certification of 6x platinum?`:
```sql
|
SELECT "album" FROM "top_10_american_albums" WHERE "certification"='3x platinum' AND "peak_position"=6; |
## Task
Generate a SQL query to answer the following question:
`What album had a peak position of 6 and a certification of 3x platinum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_american_albums" (
"rank" real,
"artist" text,
"album" text,
"peak_position" real,
"sales" real,
"certification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What album had a peak position of 6 and a certification of 3x platinum?`:
```sql
|
SELECT COUNT("sales") FROM "top_10_american_albums" WHERE "peak_position">2 AND "certification"='3x platinum'; |
## Task
Generate a SQL query to answer the following question:
`How many sales had a peak position more than 2 and a Certification of 3x platinum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_american_albums" (
"rank" real,
"artist" text,
"album" text,
"peak_position" real,
"sales" real,
"certification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sales had a peak position more than 2 and a Certification of 3x platinum?`:
```sql
|
SELECT "rowers" FROM "heat_3" WHERE "time"='7:39.70'; |
## Task
Generate a SQL query to answer the following question:
`Who were the rowers who had a time of 7:39.70?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_3" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the rowers who had a time of 7:39.70?`:
```sql
|
SELECT "rowers" FROM "heat_3" WHERE "rank"<4 AND "country"='china'; |
## Task
Generate a SQL query to answer the following question:
`Who were the rowers from china wh had a rank smaller than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_3" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the rowers from china wh had a rank smaller than 4?`:
```sql
|
SELECT "notes" FROM "heat_3" WHERE "country"='denmark'; |
## Task
Generate a SQL query to answer the following question:
`What is the notes for the rowers from denmark?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_3" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the notes for the rowers from denmark?`:
```sql
|
SELECT MAX("bronze") FROM "medals_table" WHERE "nation"='austria' AND "total">6; |
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Nation of austria, and a Total larger than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Nation of austria, and a Total larger than 6?`:
```sql
|
SELECT "rank" FROM "medals_table" WHERE "silver"=1 AND "gold"=0 AND "nation"='austria'; |
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Silver of 1, and a Gold of 0, and a Nation of austria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Silver of 1, and a Gold of 0, and a Nation of austria?`:
```sql
|
SELECT AVG("total") FROM "medals_table" WHERE "rank"='5' AND "bronze"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Total has a Rank of 5, and a Bronze smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Rank of 5, and a Bronze smaller than 0?`:
```sql
|
SELECT MIN("total") FROM "medals_table" WHERE "bronze"=5 AND "silver"<1; |
## Task
Generate a SQL query to answer the following question:
`Which Total has a Bronze of 5, and a Silver smaller than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Bronze of 5, and a Silver smaller than 1?`:
```sql
|
SELECT MAX("year") FROM "winners_of_the_circuit_des_ardennes" WHERE "formula"='grand prix'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest year with a formula of Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_circuit_des_ardennes" (
"year" real,
"formula" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year with a formula of Grand Prix?`:
```sql
|
SELECT "formula" FROM "winners_of_the_circuit_des_ardennes" WHERE "driver"='john moore-brabazon'; |
## Task
Generate a SQL query to answer the following question:
`Which formula had a driver of John Moore-Brabazon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_circuit_des_ardennes" (
"year" real,
"formula" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which formula had a driver of John Moore-Brabazon?`:
```sql
|
SELECT "driver" FROM "winners_of_the_circuit_des_ardennes" WHERE "year"<1905; |
## Task
Generate a SQL query to answer the following question:
`Which driver had a year under 1905?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_circuit_des_ardennes" (
"year" real,
"formula" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver had a year under 1905?`:
```sql
|
SELECT COUNT("year") FROM "winners_of_the_circuit_des_ardennes" WHERE "formula"='grand prix'; |
## Task
Generate a SQL query to answer the following question:
`How many years had a formula of Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_circuit_des_ardennes" (
"year" real,
"formula" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years had a formula of Grand Prix?`:
```sql
|
SELECT "location" FROM "winners_of_the_circuit_des_ardennes" WHERE "driver"='george heath'; |
## Task
Generate a SQL query to answer the following question:
`Which location was won by George Heath?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_circuit_des_ardennes" (
"year" real,
"formula" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location was won by George Heath?`:
```sql
|
SELECT COUNT("2010") FROM "2010_statistics_at_least_1_000_000_passe" WHERE "country"='ghana'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2010 total for ghana?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_statistics_at_least_1_000_000_passe" (
"country" text,
"airport" text,
"city" text,
"2010" real,
"change_10_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010 total for ghana?`:
```sql
|
SELECT "country" FROM "2010_statistics_at_least_1_000_000_passe" WHERE "airport"='nnamdi azikiwe international airport'; |
## Task
Generate a SQL query to answer the following question:
`Which country is the nnamdi azikiwe international airport in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_statistics_at_least_1_000_000_passe" (
"country" text,
"airport" text,
"city" text,
"2010" real,
"change_10_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is the nnamdi azikiwe international airport in?`:
```sql
|
SELECT AVG("lane") FROM "heat_3" WHERE "nationality"='kenya' AND "react">0.212; |
## Task
Generate a SQL query to answer the following question:
`What is the average lane for Kenya with react larger than 0.212?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_3" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average lane for Kenya with react larger than 0.212?`:
```sql
|
SELECT MAX("rank") FROM "heat_1" WHERE "athlete"='tim maeyens'; |
## Task
Generate a SQL query to answer the following question:
`what is the highest rank for tim maeyens?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest rank for tim maeyens?`:
```sql
|
SELECT "notes" FROM "heat_1" WHERE "athlete"='andre vonarburg'; |
## Task
Generate a SQL query to answer the following question:
`what is the notes for andre vonarburg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the notes for andre vonarburg?`:
```sql
|
SELECT "athlete" FROM "heat_1" WHERE "country"='greece'; |
## Task
Generate a SQL query to answer the following question:
`Who is the athlete from greece?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the athlete from greece?`:
```sql
|
SELECT "athlete" FROM "heat_1" WHERE "rank"<2; |
## Task
Generate a SQL query to answer the following question:
`who is the athlete with the rank smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the athlete with the rank smaller than 2?`:
```sql
|
SELECT "notes" FROM "heat_1" WHERE "time"='7:38.87'; |
## Task
Generate a SQL query to answer the following question:
`what is the notes for the athlete with the time of 7:38.87?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the notes for the athlete with the time of 7:38.87?`:
```sql
|
SELECT SUM("gold") FROM "medals_table" WHERE "silver"=4 AND "total">6; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the gold medals of the nation with 4 silvers and more than 6 total medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"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 sum of the gold medals of the nation with 4 silvers and more than 6 total medals?`:
```sql
|
SELECT MAX("bronze") FROM "medals_table" WHERE "nation"='west germany' AND "gold">0; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of bronze medals of west germany, which has more than 0 golds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"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 highest number of bronze medals of west germany, which has more than 0 golds?`:
```sql
|
SELECT AVG("total") FROM "medals_table" WHERE "bronze">2 AND "silver">0 AND "nation"='soviet union'; |
## Task
Generate a SQL query to answer the following question:
`What is the average total medals of the soviet union, which has more than 2 bronze and more than 0 silver medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total medals of the soviet union, which has more than 2 bronze and more than 0 silver medals?`:
```sql
|
SELECT AVG("year") FROM "westbound_record_breakers_blue_riband_ho" WHERE "ship"='europa' AND "dates"='14 – 23 october'; |
## Task
Generate a SQL query to answer the following question:
`What year did the ship Europa, have the dates of 14 – 23 October?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
"ship" text,
"year" real,
"dates" text,
"line" text,
"from" text,
"distance" text,
"days_hours_minutes" text,
"speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the ship Europa, have the dates of 14 – 23 October?`:
```sql
|
SELECT "ship" FROM "westbound_record_breakers_blue_riband_ho" WHERE "line"='cunard' AND "from"='liverpool' AND "dates"='19 – 29 july'; |
## Task
Generate a SQL query to answer the following question:
`What is the ship in the Cunard line from Liverpool 19 – 29 July?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
"ship" text,
"year" real,
"dates" text,
"line" text,
"from" text,
"distance" text,
"days_hours_minutes" text,
"speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ship in the Cunard line from Liverpool 19 – 29 July?`:
```sql
|
SELECT "distance" FROM "westbound_record_breakers_blue_riband_ho" WHERE "days_hours_minutes"='5 d, 23 h, 7 m'; |
## Task
Generate a SQL query to answer the following question:
`What is the distance for 5 d, 23 h, 7 m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
"ship" text,
"year" real,
"dates" text,
"line" text,
"from" text,
"distance" text,
"days_hours_minutes" text,
"speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance for 5 d, 23 h, 7 m?`:
```sql
|
SELECT "days_hours_minutes" FROM "westbound_record_breakers_blue_riband_ho" WHERE "line"='gw' AND "from"='liverpool'; |
## Task
Generate a SQL query to answer the following question:
`What is the Days, hours, minutes for the GW line from Liverpool?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
"ship" text,
"year" real,
"dates" text,
"line" text,
"from" text,
"distance" text,
"days_hours_minutes" text,
"speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Days, hours, minutes for the GW line from Liverpool?`:
```sql
|
SELECT "days_hours_minutes" FROM "westbound_record_breakers_blue_riband_ho" WHERE "dates"='21 – 26 october'; |
## Task
Generate a SQL query to answer the following question:
`What is the Days, hours, minutes for 21 – 26 October?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
"ship" text,
"year" real,
"dates" text,
"line" text,
"from" text,
"distance" text,
"days_hours_minutes" text,
"speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Days, hours, minutes for 21 – 26 October?`:
```sql
|
SELECT "year_joined" FROM "former_members" WHERE "mascot"='vikings'; |
## Task
Generate a SQL query to answer the following question:
`Which year did the school with the mascot of the Vikings join?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" text,
"year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year did the school with the mascot of the Vikings join?`:
```sql
|
SELECT "writer_s" FROM "track_listing" WHERE "recorded_at"='funhouse studios' AND "time"='3:27'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the album recorded at funhouse studios with a time of 3:27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"title" text,
"time" text,
"writer_s" text,
"performer_s" text,
"producer_s" text,
"recorded_at" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the album recorded at funhouse studios with a time of 3:27?`:
```sql
|
SELECT "performer_s" FROM "track_listing" WHERE "recorded_at"='the cabin in the woods studio' AND "time"='3:16'; |
## Task
Generate a SQL query to answer the following question:
`Who performed the song recorded at the Cabin in the Woods Studio with a Time of 3:16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"title" text,
"time" text,
"writer_s" text,
"performer_s" text,
"producer_s" text,
"recorded_at" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who performed the song recorded at the Cabin in the Woods Studio with a Time of 3:16?`:
```sql
|
SELECT "league_cup_goals" FROM "appearances_and_goals" WHERE "league_cup_apps"='1 (1)'; |
## Task
Generate a SQL query to answer the following question:
`Which League Cup Goals have a League Cup Apps of 1 (1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_and_goals" (
"name" text,
"nation" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"flt_apps" text,
"flt_goals" real,
"total_apps" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which League Cup Goals have a League Cup Apps of 1 (1)?`:
```sql
|
SELECT "fa_cup_apps" FROM "appearances_and_goals" WHERE "total_goals">6 AND "fa_cup_goals"<1; |
## Task
Generate a SQL query to answer the following question:
`Which FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_and_goals" (
"name" text,
"nation" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"flt_apps" text,
"flt_goals" real,
"total_apps" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1?`:
```sql
|
SELECT COUNT("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='0 (1)'; |
## Task
Generate a SQL query to answer the following question:
`How many League Goals have an FA Cup Apps of 0 (1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_and_goals" (
"name" text,
"nation" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"flt_apps" text,
"flt_goals" real,
"total_apps" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many League Goals have an FA Cup Apps of 0 (1)?`:
```sql
|
SELECT MIN("round") FROM "nfl_draft" WHERE "player"='will wilcox'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest round number in which Will Wilcox was selected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round number in which Will Wilcox was selected?`:
```sql
|
SELECT "player" FROM "nfl_draft" WHERE "college"='tennessee-chattanooga'; |
## Task
Generate a SQL query to answer the following question:
`Which player went to college at Tennessee-Chattanooga?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to college at Tennessee-Chattanooga?`:
```sql
|
SELECT MIN("col_m") FROM "scandinavia" WHERE "elevation_m"<'1,624'; |
## Task
Generate a SQL query to answer the following question:
`Which Col (m) has an Elevation (m) smaller than 1,624?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scandinavia" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Col (m) has an Elevation (m) smaller than 1,624?`:
```sql
|
SELECT SUM("elevation_m") FROM "scandinavia" WHERE "prominence_m">'1,754'; |
## Task
Generate a SQL query to answer the following question:
`How much Elevation (m) has a Prominence (m) larger than 1,754?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scandinavia" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Elevation (m) has a Prominence (m) larger than 1,754?`:
```sql
|
SELECT MIN("col_m") FROM "scandinavia" WHERE "prominence_m">'1,519' AND "peak"='jiehkkevárri' AND "elevation_m">'1,834'; |
## Task
Generate a SQL query to answer the following question:
`Which Col (m) has a Prominence (m) larger than 1,519, and a Peak of jiehkkevárri, and an Elevation (m) larger than 1,834?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scandinavia" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Col (m) has a Prominence (m) larger than 1,519, and a Peak of jiehkkevárri, and an Elevation (m) larger than 1,834?`:
```sql
|
SELECT MAX("score") FROM "ranking_round" WHERE "1st_half"<289 AND "rank"<61; |
## Task
Generate a SQL query to answer the following question:
`What is the highest score when the 1st half is smaller than 289 and rank smaller than 61?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ranking_round" (
"rank" real,
"archer" text,
"1st_half" real,
"2nd_half" real,
"score" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest score when the 1st half is smaller than 289 and rank smaller than 61?`:
```sql
|
SELECT MIN("1st_half") FROM "ranking_round" WHERE "score">621 AND "rank"=35; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest first half when the score is larger than 621 and the rank 35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ranking_round" (
"rank" real,
"archer" text,
"1st_half" real,
"2nd_half" real,
"score" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest first half when the score is larger than 621 and the rank 35?`:
```sql
|
SELECT "grid" FROM "race" WHERE "points">10 AND "time_retired"='+13.7 secs'; |
## Task
Generate a SQL query to answer the following question:
`Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs?`:
```sql
|
SELECT "team" FROM "race" WHERE "points"=0 AND "grid">13 AND "driver"='alex yoong'; |
## Task
Generate a SQL query to answer the following question:
`Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong?`:
```sql
|
SELECT MAX("silver") FROM "medal_table" WHERE "rank"='19' AND "gold"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the hioghest amount of silver medals for a nation ranked higher than 19 and less than 2 gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"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 hioghest amount of silver medals for a nation ranked higher than 19 and less than 2 gold medals?`:
```sql
|
SELECT "nation" FROM "medal_table" WHERE "silver"=11; |
## Task
Generate a SQL query to answer the following question:
`What nation finished with 11 silver medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation finished with 11 silver medals?`:
```sql
|
SELECT "pick" FROM "round_1" WHERE "player"='benito cheng'; |
## Task
Generate a SQL query to answer the following question:
`What is Benito Cheng's Pick number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Benito Cheng's Pick number?`:
```sql
|
SELECT "country_of_origin" FROM "round_1" WHERE "pick"=6; |
## Task
Generate a SQL query to answer the following question:
`What is the Country of origin of PIck 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country of origin of PIck 6?`:
```sql
|
SELECT "pba_team" FROM "round_1" WHERE "player"='richard bachmann'; |
## Task
Generate a SQL query to answer the following question:
`What is Richard Bachmann's PBA team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Richard Bachmann's PBA team?`:
```sql
|
SELECT "pick" FROM "round_1" WHERE "college"='far eastern' AND "player"='johnny abarrientos'; |
## Task
Generate a SQL query to answer the following question:
`What is Far Eastern College Johnny Abarrientos' Pick number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Far Eastern College Johnny Abarrientos' Pick number?`:
```sql
|
SELECT "home_team" FROM "third_round_proper" WHERE "tie_no"='10'; |
## Task
Generate a SQL query to answer the following question:
`What home team has 10 as the tie no?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team has 10 as the tie no?`:
```sql
|
SELECT "score" FROM "third_round_proper" WHERE "tie_no"='7'; |
## Task
Generate a SQL query to answer the following question:
`What is the game score when the tie no is 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game score when the tie no is 7?`:
```sql
|
SELECT "away_team" FROM "third_round_proper" WHERE "date"='10 january 1979' AND "tie_no"='17'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team on 10 January 1979 who had a tie no of 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team on 10 January 1979 who had a tie no of 17?`:
```sql
|
SELECT "date" FROM "third_round_proper" WHERE "tie_no"='2'; |
## Task
Generate a SQL query to answer the following question:
`When was the game that has tie no 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game that has tie no 2?`:
```sql
|
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "event"='golden trophy 1999'; |
## Task
Generate a SQL query to answer the following question:
`What round did the match at the Golden Trophy 1999 event end?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did the match at the Golden Trophy 1999 event end?`:
```sql
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='8–5–1'; |
## Task
Generate a SQL query to answer the following question:
`What event had a record of 8–5–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event had a record of 8–5–1?`:
```sql
|
SELECT "hdr_output_exr_hdr_logluv_etc" FROM "hdr_tonemapping_and_exposure_fusion" WHERE "name"='name'; |
## Task
Generate a SQL query to answer the following question:
`What's the HDR Output that has a name of name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hdr_tonemapping_and_exposure_fusion" (
"name" text,
"merging_to_hdr_from_ldr_images" text,
"hdr_output_exr_hdr_logluv_etc" text,
"tonemapping" text,
"exposure_fusion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the HDR Output that has a name of name?`:
```sql
|
SELECT "exposure_fusion" FROM "hdr_tonemapping_and_exposure_fusion" WHERE "name"='panoramaplus x4'; |
## Task
Generate a SQL query to answer the following question:
`What's the exposure fusion of Panoramaplus x4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hdr_tonemapping_and_exposure_fusion" (
"name" text,
"merging_to_hdr_from_ldr_images" text,
"hdr_output_exr_hdr_logluv_etc" text,
"tonemapping" text,
"exposure_fusion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the exposure fusion of Panoramaplus x4?`:
```sql
|
SELECT "hdr_output_exr_hdr_logluv_etc" FROM "hdr_tonemapping_and_exposure_fusion" WHERE "name"='photovista panorama'; |
## Task
Generate a SQL query to answer the following question:
`What's the HDR output of Photovista Panorama?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hdr_tonemapping_and_exposure_fusion" (
"name" text,
"merging_to_hdr_from_ldr_images" text,
"hdr_output_exr_hdr_logluv_etc" text,
"tonemapping" text,
"exposure_fusion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the HDR output of Photovista Panorama?`:
```sql
|
SELECT "location" FROM "top_10_largest_american_football_stadium" WHERE "capacity"='101,119'; |
## Task
Generate a SQL query to answer the following question:
`Which location has 101,119 as the capacity?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_largest_american_football_stadium" (
"rank" real,
"stadium" text,
"capacity" text,
"location" text,
"home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has 101,119 as the capacity?`:
```sql
|
SELECT MIN("rank") FROM "top_10_largest_american_football_stadium" WHERE "location"='university park, pa'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank that has university park, pa as the location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_largest_american_football_stadium" (
"rank" real,
"stadium" text,
"capacity" text,
"location" text,
"home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank that has university park, pa as the location?`:
```sql
|
SELECT "home_team" FROM "top_10_largest_american_football_stadium" WHERE "rank">6 AND "capacity"='94,392'; |
## Task
Generate a SQL query to answer the following question:
`What home team has a rank greater than 6, and 94,392 as the capacity?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_largest_american_football_stadium" (
"rank" real,
"stadium" text,
"capacity" text,
"location" text,
"home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team has a rank greater than 6, and 94,392 as the capacity?`:
```sql
|
SELECT "builder" FROM "ships_in_class" WHERE "name"='uss cambridge'; |
## Task
Generate a SQL query to answer the following question:
`Who was the builder for the USS cambridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships_in_class" (
"hull_number" text,
"name" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the builder for the USS cambridge?`:
```sql
|
SELECT "laid_down" FROM "ships_in_class" WHERE "name"='uss cambridge'; |
## Task
Generate a SQL query to answer the following question:
`What year was the USS Cambridge laid down?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships_in_class" (
"hull_number" text,
"name" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the USS Cambridge laid down?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "record"='11-12'; |
## Task
Generate a SQL query to answer the following question:
`What was the number of the game when the record was 11-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of the game when the record was 11-12?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "game"='16'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of Game 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of Game 16?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "record"='9-6'; |
## Task
Generate a SQL query to answer the following question:
`What was the location and attendance at the game when the record was 9-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location and attendance at the game when the record was 9-6?`:
```sql
|
SELECT "date" FROM "league_cup" WHERE "round_leg"='3'; |
## Task
Generate a SQL query to answer the following question:
`What date has 3 as the round (leg)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_cup" (
"round_leg" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 3 as the round (leg)?`:
```sql
|
SELECT MIN("year") FROM "golden_globe_awards" WHERE "result"='nominated' AND "film"='bridget jones: the edge of reason'; |
## Task
Generate a SQL query to answer the following question:
`What was the year of Bridget Jones: The Edge of Reason that was nominated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "golden_globe_awards" (
"year" real,
"category" text,
"film" text,
"result" text,
"lost_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year of Bridget Jones: The Edge of Reason that was nominated?`:
```sql
|
SELECT "lost_to" FROM "golden_globe_awards" WHERE "film"='chicago'; |
## Task
Generate a SQL query to answer the following question:
`Who was the loss to for the film Chicago?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "golden_globe_awards" (
"year" real,
"category" text,
"film" text,
"result" text,
"lost_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the loss to for the film Chicago?`:
```sql
|
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "location"='nashville'; |
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville?`:
```sql
|
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=640; |
## Task
Generate a SQL query to answer the following question:
`Which Mascot has an Enrollment of 640?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Mascot has an Enrollment of 640?`:
```sql
|
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "location"='brazil'; |
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Class has a Location of brazil?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Class has a Location of brazil?`:
```sql
|
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=908; |
## Task
Generate a SQL query to answer the following question:
`Which School has a Enrollment of 908?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School has a Enrollment of 908?`:
```sql
|
SELECT "currency" FROM "criteria" WHERE "code"='sek'; |
## Task
Generate a SQL query to answer the following question:
`What type of currency has a code of SEK?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "criteria" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" text,
"official_target_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of currency has a code of SEK?`:
```sql
|
SELECT "code" FROM "criteria" WHERE "currency"='croatian kuna'; |
## Task
Generate a SQL query to answer the following question:
`What code is used to represent the currency of Croatian Kuna?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "criteria" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" text,
"official_target_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What code is used to represent the currency of Croatian Kuna?`:
```sql
|
SELECT "model" FROM "models" WHERE "chassis_code"='w116.036'; |
## Task
Generate a SQL query to answer the following question:
`What's the model that has chassis code W116.036?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"chassis_code" text,
"model_years" text,
"model" text,
"engine" text,
"no_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the model that has chassis code W116.036?`:
```sql
|
SELECT "model_years" FROM "models" WHERE "no_built">'150,593' AND "chassis_code"='w116.025'; |
## Task
Generate a SQL query to answer the following question:
`What's the years that has a chassis code of W116.025 and number built was more than 150,593?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"chassis_code" text,
"model_years" text,
"model" text,
"engine" text,
"no_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the years that has a chassis code of W116.025 and number built was more than 150,593?`:
```sql
|
SELECT "score" FROM "west_german_champions_1973_1997" WHERE "year"='1992'; |
## Task
Generate a SQL query to answer the following question:
`What the score of the 1992 game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_german_champions_1973_1997" (
"year" text,
"champions" text,
"score" text,
"runners_up" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the score of the 1992 game?`:
```sql
|
SELECT "score" FROM "west_german_champions_1973_1997" WHERE "runners_up"='tsv siegen'; |
## Task
Generate a SQL query to answer the following question:
`What is the score when TSV Siegen was the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_german_champions_1973_1997" (
"year" text,
"champions" text,
"score" text,
"runners_up" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when TSV Siegen was the runner-up?`:
```sql
|
SELECT "year" FROM "west_german_champions_1973_1997" WHERE "venue"='bad neuenahr eppelborn'; |
## Task
Generate a SQL query to answer the following question:
`What year was the game at Bad Neuenahr Eppelborn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_german_champions_1973_1997" (
"year" text,
"champions" text,
"score" text,
"runners_up" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the game at Bad Neuenahr Eppelborn?`:
```sql
|
SELECT "venue" FROM "west_german_champions_1973_1997" WHERE "runners_up"='tennis borussia berlin' AND "score"='4 – 2 *'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue when the runner up was Tennis Borussia Berlin, and the score was 4 – 2 *?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_german_champions_1973_1997" (
"year" text,
"champions" text,
"score" text,
"runners_up" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue when the runner up was Tennis Borussia Berlin, and the score was 4 – 2 *?`:
```sql
|
SELECT "runners_up" FROM "west_german_champions_1973_1997" WHERE "venue"='bergisch gladbach' AND "year"='1983'; |
## Task
Generate a SQL query to answer the following question:
`What team was runner-up at Bergisch Gladbach in 1983?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_german_champions_1973_1997" (
"year" text,
"champions" text,
"score" text,
"runners_up" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was runner-up at Bergisch Gladbach in 1983?`:
```sql
|
SELECT "time" FROM "semifinal_2" WHERE "lane"=7; |
## Task
Generate a SQL query to answer the following question:
`What was the time of the swimmer in lane 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time of the swimmer in lane 7?`:
```sql
|
SELECT "rank" FROM "semifinal_2" WHERE "time"='1:55.40'; |
## Task
Generate a SQL query to answer the following question:
`What was the rank of the swimmer with a time of 1:55.40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the swimmer with a time of 1:55.40?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "game"='13'; |
## Task
Generate a SQL query to answer the following question:
`What was the date for game 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for game 13?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "opponent"='st. louis cardinals'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for the opponent St. Louis Cardinals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the opponent St. Louis Cardinals?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.