output
stringlengths 27
479
| instruction
stringlengths 407
1.39k
|
---|---|
SELECT MIN("laps") FROM "indy_500_results" WHERE "finish"='7' AND "start"='6'; |
## Task
Generate a SQL query to answer the following question:
`What's the smallest amount of Laps that had a finish of 7 with a start of 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest amount of Laps that had a finish of 7 with a start of 6?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "gold"<3 AND "silver">1 AND "rank"=6 AND "nation"='hungary'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest bronze with a Gold smaller than 3, and a Silver larger than 1, and a Rank of 6, and a Nation of hungary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest bronze with a Gold smaller than 3, and a Silver larger than 1, and a Rank of 6, and a Nation of hungary?`:
```sql
|
SELECT AVG("bronze") FROM "medal_table" WHERE "rank"=4 AND "silver"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the average bronze with a rank of 4 and less than 1 silver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average bronze with a rank of 4 and less than 1 silver?`:
```sql
|
SELECT "silver" FROM "medal_table" WHERE "gold">4 AND "rank"=1; |
## Task
Generate a SQL query to answer the following question:
`Which silver has a Gold larger than 4, and a Rank of 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which silver has a Gold larger than 4, and a Rank of 1?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "total"=3 AND "nation"='hungary' AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller than 0?`:
```sql
|
SELECT SUM("gold") FROM "medal_table" WHERE "rank"=7 AND "bronze"=1 AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?`:
```sql
|
SELECT COUNT("total") FROM "medal_table" WHERE "silver"<2 AND "nation"='ukraine' AND "gold"<3; |
## Task
Generate a SQL query to answer the following question:
`How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3?`:
```sql
|
SELECT "player" FROM "best_figures_in_an_innings" WHERE "season"='2007'; |
## Task
Generate a SQL query to answer the following question:
`Which player played in 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_figures_in_an_innings" (
"bowling" text,
"player" text,
"opponent" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player played in 2007?`:
```sql
|
SELECT "bowling" FROM "best_figures_in_an_innings" WHERE "player"='min patel'; |
## Task
Generate a SQL query to answer the following question:
`What was Min Patel's bowling?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_figures_in_an_innings" (
"bowling" text,
"player" text,
"opponent" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Min Patel's bowling?`:
```sql
|
SELECT "week_1" FROM "table_of_nominations" WHERE "week_2"='piia jarkko'; |
## Task
Generate a SQL query to answer the following question:
`Who was the week 1 nomination when the week 2 nomination was Piia Jarkko?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_nominations" (
"week_1" text,
"week_2" text,
"week_6" text,
"week_9" text,
"week_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the week 1 nomination when the week 2 nomination was Piia Jarkko?`:
```sql
|
SELECT "week_12" FROM "table_of_nominations" WHERE "week_9"='walked (day 11)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the week 12 nomination when the week 9 nomination walked (day 11)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_nominations" (
"week_1" text,
"week_2" text,
"week_6" text,
"week_9" text,
"week_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the week 12 nomination when the week 9 nomination walked (day 11)?`:
```sql
|
SELECT "week_12" FROM "table_of_nominations" WHERE "week_1"='maria maxine' AND "week_2"='henri satu'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_nominations" (
"week_1" text,
"week_2" text,
"week_6" text,
"week_9" text,
"week_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu?`:
```sql
|
SELECT "height_m_ft" FROM "stations" WHERE "city_of_license"='malone, ny'; |
## Task
Generate a SQL query to answer the following question:
`Name the heightfor city of license of malone, ny`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"facility_id" real,
"erp_power_w" real,
"height_m_ft" text,
"class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the heightfor city of license of malone, ny`:
```sql
|
SELECT "class" FROM "stations" WHERE "call_sign"='wmhn'; |
## Task
Generate a SQL query to answer the following question:
`Name the class with call sign of wmhn`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"facility_id" real,
"erp_power_w" real,
"height_m_ft" text,
"class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class with call sign of wmhn`:
```sql
|
SELECT "frequency" FROM "stations" WHERE "class"='b'; |
## Task
Generate a SQL query to answer the following question:
`Name the frequency with class of b`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"facility_id" real,
"erp_power_w" real,
"height_m_ft" text,
"class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the frequency with class of b`:
```sql
|
SELECT "city_of_license" FROM "stations" WHERE "frequency"='90.1 fm'; |
## Task
Generate a SQL query to answer the following question:
`Name the city of license with frequency of 90.1 fm`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"facility_id" real,
"erp_power_w" real,
"height_m_ft" text,
"class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the city of license with frequency of 90.1 fm`:
```sql
|
SELECT COUNT("erp_power_w") FROM "stations" WHERE "frequency"='89.3 fm' AND "facility_id"<40430; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"facility_id" real,
"erp_power_w" real,
"height_m_ft" text,
"class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430`:
```sql
|
SELECT "engine_s" FROM "complete_world_championship_formula_one_" WHERE "tyres"='f' AND "year"=1971; |
## Task
Generate a SQL query to answer the following question:
`What is the Engine(s) that has f Tyres in 1971?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Engine(s) that has f Tyres in 1971?`:
```sql
|
SELECT MIN("att") FROM "game_log" WHERE "date"='june 27'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance on June 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"time" text,
"att" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on June 27?`:
```sql
|
SELECT "surface" FROM "singles_titles" WHERE "date"='12 september 2006'; |
## Task
Generate a SQL query to answer the following question:
`Name the surface for 12 september 2006`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface for 12 september 2006`:
```sql
|
SELECT "score" FROM "singles_titles" WHERE "opponent_in_the_final"='paul baccanello'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for opponent in the final being paul baccanello`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for opponent in the final being paul baccanello`:
```sql
|
SELECT "surface" FROM "singles_titles" WHERE "date"='20 march 2007'; |
## Task
Generate a SQL query to answer the following question:
`Name the surface for 20 march 2007`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface for 20 march 2007`:
```sql
|
SELECT "date" FROM "singles_titles" WHERE "opponent_in_the_final"='ignasi villacampa'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for opponent in the final being ignasi villacampa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for opponent in the final being ignasi villacampa`:
```sql
|
SELECT "tournament" FROM "singles_titles" WHERE "surface"='grass' AND "opponent_in_the_final"='paul baccanello'; |
## Task
Generate a SQL query to answer the following question:
`Name the tournament for grass surface and opponent in the final being paul baccanello`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tournament for grass surface and opponent in the final being paul baccanello`:
```sql
|
SELECT MIN("year") FROM "singles" WHERE "location"='milan' AND "champion"='guillermo vilas'; |
## Task
Generate a SQL query to answer the following question:
`When is the earliest year in milan that guillermo vilas was champion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the earliest year in milan that guillermo vilas was champion?`:
```sql
|
SELECT "location" FROM "singles" WHERE "year">1985 AND "runner_up"='tim mayotte'; |
## Task
Generate a SQL query to answer the following question:
`Where in 1985 was tim mayotte runner up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where in 1985 was tim mayotte runner up?`:
```sql
|
SELECT "score" FROM "singles" WHERE "year">1978 AND "champion"='stefan edberg'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when stefan edberg won after 1978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when stefan edberg won after 1978?`:
```sql
|
SELECT MAX("facility_id") FROM "broadcast_translators_of_wpby" WHERE "city_of_license"='wheeling' AND "erp_k_w"<4.5; |
## Task
Generate a SQL query to answer the following question:
`What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "broadcast_translators_of_wpby" (
"station" text,
"city_of_license" text,
"channel" text,
"erp_k_w" real,
"haat_m_ft" text,
"facility_id" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?`:
```sql
|
SELECT "city_of_license" FROM "broadcast_translators_of_wpby" WHERE "erp_k_w">4.5 AND "station"='w23dr-d'; |
## Task
Generate a SQL query to answer the following question:
`What is the City of license that has a ERP kW more than 4.5 and w23dr-d?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "broadcast_translators_of_wpby" (
"station" text,
"city_of_license" text,
"channel" text,
"erp_k_w" real,
"haat_m_ft" text,
"facility_id" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the City of license that has a ERP kW more than 4.5 and w23dr-d?`:
```sql
|
SELECT "location" FROM "tower_remains" WHERE "date_of_demolition"=1940 AND "church_name"='christ church greyfriars'; |
## Task
Generate a SQL query to answer the following question:
`What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tower_remains" (
"church_name" text,
"location" text,
"rebuilt" text,
"date_of_demolition" real,
"subsuming_parish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?`:
```sql
|
SELECT COUNT("date_of_demolition") FROM "tower_remains" WHERE "location"='wood street'; |
## Task
Generate a SQL query to answer the following question:
`How many dates of demolition are located on Wood Street?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tower_remains" (
"church_name" text,
"location" text,
"rebuilt" text,
"date_of_demolition" real,
"subsuming_parish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates of demolition are located on Wood Street?`:
```sql
|
SELECT "score" FROM "doubles_12_8_titles_4_runners_up" WHERE "surface"='clay' AND "date"='19 may 2008'; |
## Task
Generate a SQL query to answer the following question:
`What was Olga Govortsova's score when she played on a clay surface on 19 May 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_12_8_titles_4_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Olga Govortsova's score when she played on a clay surface on 19 May 2008?`:
```sql
|
SELECT "outcome" FROM "doubles_12_8_titles_4_runners_up" WHERE "surface"='grass'; |
## Task
Generate a SQL query to answer the following question:
`What was Olga Govortsova's outcome when she played on a grass surface?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_12_8_titles_4_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Olga Govortsova's outcome when she played on a grass surface?`:
```sql
|
SELECT "score" FROM "doubles_12_8_titles_4_runners_up" WHERE "surface"='clay' AND "date"='26 may 2012'; |
## Task
Generate a SQL query to answer the following question:
`What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_12_8_titles_4_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012?`:
```sql
|
SELECT "mountain_range" FROM "the_50_most_topographically_prominent_mo" WHERE "rank"=19; |
## Task
Generate a SQL query to answer the following question:
`Which mountain range has a rank of 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_50_most_topographically_prominent_mo" (
"rank" real,
"mountain_peak" text,
"province" text,
"mountain_range" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mountain range has a rank of 19?`:
```sql
|
SELECT "location" FROM "the_50_most_topographically_prominent_mo" WHERE "mountain_range"='coast mountains' AND "rank"<18 AND "mountain_peak"='skihist mountain'; |
## Task
Generate a SQL query to answer the following question:
`Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_50_most_topographically_prominent_mo" (
"rank" real,
"mountain_peak" text,
"province" text,
"mountain_range" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain?`:
```sql
|
SELECT "mountain_range" FROM "the_50_most_topographically_prominent_mo" WHERE "mountain_peak"='mount hubbard'; |
## Task
Generate a SQL query to answer the following question:
`Which mountain range includes Mount Hubbard?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_50_most_topographically_prominent_mo" (
"rank" real,
"mountain_peak" text,
"province" text,
"mountain_range" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mountain range includes Mount Hubbard?`:
```sql
|
SELECT "province" FROM "the_50_most_topographically_prominent_mo" WHERE "mountain_range"='axel heiberg island'; |
## Task
Generate a SQL query to answer the following question:
`Which province includes Axel Heiberg Island?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_50_most_topographically_prominent_mo" (
"rank" real,
"mountain_peak" text,
"province" text,
"mountain_range" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province includes Axel Heiberg Island?`:
```sql
|
SELECT "notes" FROM "achievements" WHERE "position"='12th'; |
## Task
Generate a SQL query to answer the following question:
`What are the notes of events that finished in 12th position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes of events that finished in 12th position?`:
```sql
|
SELECT "venue" FROM "achievements" WHERE "position"='2nd' AND "year"=1985; |
## Task
Generate a SQL query to answer the following question:
`Which venue was finished in 2nd position in 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue was finished in 2nd position in 1985?`:
```sql
|
SELECT AVG("year") FROM "achievements" WHERE "venue"='antwerp, belgium'; |
## Task
Generate a SQL query to answer the following question:
`What is the average year of events that took place in Antwerp, Belgium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year of events that took place in Antwerp, Belgium?`:
```sql
|
SELECT MAX("year") FROM "achievements" WHERE "notes"='team competition' AND "venue"='antwerp, belgium'; |
## Task
Generate a SQL query to answer the following question:
`What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes?`:
```sql
|
SELECT "label" FROM "release_history" WHERE "format"='lp' AND "catalog"='ch-9192'; |
## Task
Generate a SQL query to answer the following question:
`What was the label's format LP and catalog of CH-9192?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the label's format LP and catalog of CH-9192?`:
```sql
|
SELECT "date" FROM "release_history" WHERE "catalog"='chd-9192'; |
## Task
Generate a SQL query to answer the following question:
`When was Catalog CHD-9192 published?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Catalog CHD-9192 published?`:
```sql
|
SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz"=107.5; |
## Task
Generate a SQL query to answer the following question:
`I need the FCC info on the radio Frequency MHz 107.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `I need the FCC info on the radio Frequency MHz 107.5?`:
```sql
|
SELECT "frequency_m_hz" FROM "translators" WHERE "city_of_license"='allapattah, florida'; |
## Task
Generate a SQL query to answer the following question:
`Give me the MHz Frequency of Allapattah, Florida.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Give me the MHz Frequency of Allapattah, Florida.`:
```sql
|
SELECT "class" FROM "translators" WHERE "call_sign"='w298ak'; |
## Task
Generate a SQL query to answer the following question:
`What class does the w298ak sign belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class does the w298ak sign belong to?`:
```sql
|
SELECT "class" FROM "translators" WHERE "erp_w"=800; |
## Task
Generate a SQL query to answer the following question:
`What class is ERP W of 800?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class is ERP W of 800?`:
```sql
|
SELECT SUM("goals_conceded") FROM "apertura_2002_standings" WHERE "points"<21 AND "lost"<8; |
## Task
Generate a SQL query to answer the following question:
`What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apertura_2002_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?`:
```sql
|
SELECT SUM("lost") FROM "apertura_2002_standings" WHERE "points">28 AND "draw"=5 AND "place"<1; |
## Task
Generate a SQL query to answer the following question:
`What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apertura_2002_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1?`:
```sql
|
SELECT SUM("goals_scored") FROM "apertura_2002_standings" WHERE "points"<27 AND "team"='c.d. atlético balboa'; |
## Task
Generate a SQL query to answer the following question:
`What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apertura_2002_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?`:
```sql
|
SELECT MAX("played") FROM "apertura_2002_standings" WHERE "place">10; |
## Task
Generate a SQL query to answer the following question:
`What is listed as the Highest Played and that has a Place that is larger than 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apertura_2002_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed as the Highest Played and that has a Place that is larger than 10?`:
```sql
|
SELECT MAX("played") FROM "apertura_2002_standings" WHERE "points"=17 AND "draw"<5; |
## Task
Generate a SQL query to answer the following question:
`What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apertura_2002_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "score"='6-4'; |
## Task
Generate a SQL query to answer the following question:
`When was the game that ended with a score of 6-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game that ended with a score of 6-4?`:
```sql
|
SELECT "score" FROM "april" WHERE "date"='april 8'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on April 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on April 8?`:
```sql
|
SELECT "decision" FROM "april" WHERE "home"='minnesota'; |
## Task
Generate a SQL query to answer the following question:
`What was the decision in Minnesota?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the decision in Minnesota?`:
```sql
|
SELECT "score" FROM "april" WHERE "record"='58–15–8'; |
## Task
Generate a SQL query to answer the following question:
`Which score has a record of 58–15–8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has a record of 58–15–8?`:
```sql
|
SELECT "section" FROM "season_to_season" WHERE "level"='tier 3' AND "position"='6th' AND "season"='1937-38'; |
## Task
Generate a SQL query to answer the following question:
`Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_to_season" (
"season" text,
"level" text,
"division" text,
"section" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?`:
```sql
|
SELECT "section" FROM "season_to_season" WHERE "position"='6th'; |
## Task
Generate a SQL query to answer the following question:
`Which section is in the 6th position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_to_season" (
"season" text,
"level" text,
"division" text,
"section" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which section is in the 6th position?`:
```sql
|
SELECT "attendance" FROM "game_log" WHERE "date"='june 11'; |
## Task
Generate a SQL query to answer the following question:
`Name the attendance with date of june 11`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the attendance with date of june 11`:
```sql
|
SELECT "partnerships" FROM "highest_partnerships_for_each_wicket" WHERE "runs"='27'; |
## Task
Generate a SQL query to answer the following question:
`Which partnership has a run number of 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_partnerships_for_each_wicket" (
"wicket" text,
"runs" text,
"partnerships" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which partnership has a run number of 27?`:
```sql
|
SELECT "venue" FROM "highest_partnerships_for_each_wicket" WHERE "partnerships"='shoaib malik / misbah-ul-haq'; |
## Task
Generate a SQL query to answer the following question:
`What venue did the parntership of shoaib malik / misbah-ul-haq occur?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_partnerships_for_each_wicket" (
"wicket" text,
"runs" text,
"partnerships" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue did the parntership of shoaib malik / misbah-ul-haq occur?`:
```sql
|
SELECT "venue" FROM "highest_partnerships_for_each_wicket" WHERE "partnerships"='herschelle gibbs / justin kemp'; |
## Task
Generate a SQL query to answer the following question:
`What venue did the partnership of herschelle gibbs / justin kemp happen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_partnerships_for_each_wicket" (
"wicket" text,
"runs" text,
"partnerships" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue did the partnership of herschelle gibbs / justin kemp happen?`:
```sql
|
SELECT "played" FROM "2010_2011_table" WHERE "points_for"='310'; |
## Task
Generate a SQL query to answer the following question:
`What is the number Played that has 310 Points for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number Played that has 310 Points for?`:
```sql
|
SELECT "losing_bonus" FROM "2010_2011_table" WHERE "points_against"='588'; |
## Task
Generate a SQL query to answer the following question:
`What Losing bonus has a Points against of 588?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Losing bonus has a Points against of 588?`:
```sql
|
SELECT "tries_against" FROM "2010_2011_table" WHERE "losing_bonus"='7'; |
## Task
Generate a SQL query to answer the following question:
`What Tries against has a Losing bonus of 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Tries against has a Losing bonus of 7?`:
```sql
|
SELECT "try_bonus" FROM "2010_2011_table" WHERE "points_against"='488'; |
## Task
Generate a SQL query to answer the following question:
`What Try bonus has a Points against of 488?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Try bonus has a Points against of 488?`:
```sql
|
SELECT "points_for" FROM "2010_2011_table" WHERE "try_bonus"='140'; |
## Task
Generate a SQL query to answer the following question:
`What Points for has a Try bonus of 140?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Points for has a Try bonus of 140?`:
```sql
|
SELECT "drawn" FROM "2010_2011_table" WHERE "tries_against"='0'; |
## Task
Generate a SQL query to answer the following question:
`What Drawn has a Tries against of 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Drawn has a Tries against of 0?`:
```sql
|
SELECT "days_held" FROM "list_of_champions" WHERE "reign">3 AND "defenses"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the days held the champion with a reign larger than 3 and 1 defense has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_champions" (
"name" text,
"reign" real,
"days_held" text,
"location" text,
"defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the days held the champion with a reign larger than 3 and 1 defense has?`:
```sql
|
SELECT "days_held" FROM "list_of_champions" WHERE "reign">3 AND "defenses"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the days held the champion with a reign larger than 3 and less than 1 defense has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_champions" (
"name" text,
"reign" real,
"days_held" text,
"location" text,
"defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the days held the champion with a reign larger than 3 and less than 1 defense has?`:
```sql
|
SELECT AVG("defenses") FROM "list_of_champions" WHERE "days_held"='404' AND "reign">1; |
## Task
Generate a SQL query to answer the following question:
`What is the average defenses a champion with 404 days held and a reign larger than 1 has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_champions" (
"name" text,
"reign" real,
"days_held" text,
"location" text,
"defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average defenses a champion with 404 days held and a reign larger than 1 has?`:
```sql
|
SELECT MIN("defenses") FROM "list_of_champions" WHERE "days_held"='345'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest defense a champion with 345 days held has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_champions" (
"name" text,
"reign" real,
"days_held" text,
"location" text,
"defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest defense a champion with 345 days held has?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='76-72'; |
## Task
Generate a SQL query to answer the following question:
`On what date was there a record of 76-72?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was there a record of 76-72?`:
```sql
|
SELECT "attendance" FROM "game_log" WHERE "loss"='ponson (1-5)'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance that had a loss of Ponson (1-5)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance that had a loss of Ponson (1-5)?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='36-39'; |
## Task
Generate a SQL query to answer the following question:
`On which day was there a record of 36-39?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which day was there a record of 36-39?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='30-31'; |
## Task
Generate a SQL query to answer the following question:
`On what day was the record 30-31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was the record 30-31?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "loss"='leonard (7–8)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the game that had a loss of Leonard (7–8)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the game that had a loss of Leonard (7–8)?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='18–43'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the record was 18–43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when the record was 18–43?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "opponent"='royals' AND "record"='24–52'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game against the Royals when the record was 24–52?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game against the Royals when the record was 24–52?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='22–46'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the record was 22–46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when the record was 22–46?`:
```sql
|
SELECT "real_name" FROM "characters" WHERE "primary_military_speciality"='shock paratrooper'; |
## Task
Generate a SQL query to answer the following question:
`What is the real name of the person whose primary military specialty is shock paratrooper?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"code_name" text,
"function_figure" text,
"real_name" text,
"birthplace" text,
"serial_number" text,
"primary_military_speciality" text,
"secondary_military_speciality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the real name of the person whose primary military specialty is shock paratrooper?`:
```sql
|
SELECT "birthplace" FROM "characters" WHERE "real_name"='pete sanderson'; |
## Task
Generate a SQL query to answer the following question:
`What is the birthplace of Pete Sanderson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"code_name" text,
"function_figure" text,
"real_name" text,
"birthplace" text,
"serial_number" text,
"primary_military_speciality" text,
"secondary_military_speciality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the birthplace of Pete Sanderson?`:
```sql
|
SELECT "function_figure" FROM "characters" WHERE "real_name"='jean-luc bouvier'; |
## Task
Generate a SQL query to answer the following question:
`What role did Jean-Luc Bouvier serve?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"code_name" text,
"function_figure" text,
"real_name" text,
"birthplace" text,
"serial_number" text,
"primary_military_speciality" text,
"secondary_military_speciality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What role did Jean-Luc Bouvier serve?`:
```sql
|
SELECT "real_name" FROM "characters" WHERE "function_figure"='pilot of the silent attack kayak'; |
## Task
Generate a SQL query to answer the following question:
`What is the real name of the person who is a pilot of the silent attack kayak?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"code_name" text,
"function_figure" text,
"real_name" text,
"birthplace" text,
"serial_number" text,
"primary_military_speciality" text,
"secondary_military_speciality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the real name of the person who is a pilot of the silent attack kayak?`:
```sql
|
SELECT "code_name" FROM "characters" WHERE "birthplace"='liverpool'; |
## Task
Generate a SQL query to answer the following question:
`What is the code name of the person born in Liverpool?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"code_name" text,
"function_figure" text,
"real_name" text,
"birthplace" text,
"serial_number" text,
"primary_military_speciality" text,
"secondary_military_speciality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the code name of the person born in Liverpool?`:
```sql
|
SELECT "name" FROM "list_of_medalists" WHERE "sport"='canoeing'; |
## Task
Generate a SQL query to answer the following question:
`What is the names for the medalist in the sport of canoeing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the names for the medalist in the sport of canoeing?`:
```sql
|
SELECT "games" FROM "list_of_medalists" WHERE "event"='women''s half middleweight'; |
## Task
Generate a SQL query to answer the following question:
`What games had the women's half middleweight event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What games had the women's half middleweight event?`:
```sql
|
SELECT "name" FROM "list_of_medalists" WHERE "medal"='bronze' AND "games"='2000 sydney'; |
## Task
Generate a SQL query to answer the following question:
`Who received the bronze medal in the 2000 Sydney games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who received the bronze medal in the 2000 Sydney games?`:
```sql
|
SELECT COUNT("attendance") FROM "game_log" WHERE "opponent"='twins'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended when opponent was twins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended when opponent was twins?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='41-46'; |
## Task
Generate a SQL query to answer the following question:
`Which date has a Record of 41-46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Record of 41-46?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='48-55'; |
## Task
Generate a SQL query to answer the following question:
`Which score has a Record of 48-55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has a Record of 48-55?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='44-49'; |
## Task
Generate a SQL query to answer the following question:
`Which score has a Record of 44-49?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has a Record of 44-49?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "attendance">'16,571' AND "loss"='mcdowell (0-1)'; |
## Task
Generate a SQL query to answer the following question:
`Which score has an Attendance larger than 16,571, and a Loss of mcdowell (0-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has an Attendance larger than 16,571, and a Loss of mcdowell (0-1)?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "opponent"='white sox' AND "record"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`Which score has an Opponent of white sox, and a Record of 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has an Opponent of white sox, and a Record of 2-0?`:
```sql
|
SELECT AVG("popular_votes") FROM "results_in_federal_elections" WHERE "candidate"='candice sjostrom'; |
## Task
Generate a SQL query to answer the following question:
`How many votes did candice sjostrom receive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_in_federal_elections" (
"year" real,
"office" text,
"candidate" text,
"popular_votes" real,
"percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did candice sjostrom receive?`:
```sql
|
SELECT "percentage" FROM "results_in_federal_elections" WHERE "candidate"='chris wright'; |
## Task
Generate a SQL query to answer the following question:
`What percentage did chris wright receive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_in_federal_elections" (
"year" real,
"office" text,
"candidate" text,
"popular_votes" real,
"percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage did chris wright receive?`:
```sql
|
SELECT AVG("popular_votes") FROM "results_in_federal_elections" WHERE "office"='us representative 4' AND "percentage"='1.59%' AND "year">1992; |
## Task
Generate a SQL query to answer the following question:
`How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_in_federal_elections" (
"year" real,
"office" text,
"candidate" text,
"popular_votes" real,
"percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4?`:
```sql
|
SELECT "years" FROM "external_links" WHERE "representative"='j. smith young'; |
## Task
Generate a SQL query to answer the following question:
`What years did J. Smith Young serve as a Representative?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did J. Smith Young serve as a Representative?`:
```sql
|
SELECT "party" FROM "external_links" WHERE "representative"='thomas l. young'; |
## Task
Generate a SQL query to answer the following question:
`Which party did Thomas L. Young belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party did Thomas L. Young belong to?`:
```sql
|