output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("tot_enlisted") FROM "growth_personnel" WHERE "enlisted_o_s"=801471; |
## Task
Generate a SQL query to answer the following question:
`How many different numbers of Tot enlisted are there on the dates when the number of Enlisted o/s was 801471?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "growth_personnel" (
"date" text,
"total_usaaf" real,
"tot_officers" real,
"tot_enlisted" real,
"num_overseas" real,
"officers_o_s" real,
"enlisted_o_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different numbers of Tot enlisted are there on the dates when the number of Enlisted o/s was 801471?`:
```sql
|
SELECT "tot_officers" FROM "growth_personnel" WHERE "tot_enlisted"=329640; |
## Task
Generate a SQL query to answer the following question:
`How many tot officers were there on the date when the number of tot enlisted was 329640?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "growth_personnel" (
"date" text,
"total_usaaf" real,
"tot_officers" real,
"tot_enlisted" real,
"num_overseas" real,
"officers_o_s" real,
"enlisted_o_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many tot officers were there on the date when the number of tot enlisted was 329640?`:
```sql
|
SELECT MAX("tot_enlisted") FROM "growth_personnel" WHERE "total_usaaf"=2329534; |
## Task
Generate a SQL query to answer the following question:
`How many Tot enlisted were there on the day when the number of total USAAF was 2329534?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "growth_personnel" (
"date" text,
"total_usaaf" real,
"tot_officers" real,
"tot_enlisted" real,
"num_overseas" real,
"officers_o_s" real,
"enlisted_o_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Tot enlisted were there on the day when the number of total USAAF was 2329534?`:
```sql
|
SELECT COUNT("age") FROM "official_delegates" WHERE "represent"='Mitteldeutschland'; |
## Task
Generate a SQL query to answer the following question:
`How many contestants where from mitteldeutschland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_delegates" (
"represent" text,
"contestant" text,
"age" real,
"height_ft" text,
"height_mtr" text,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many contestants where from mitteldeutschland?`:
```sql
|
SELECT "height_mtr" FROM "official_delegates" WHERE "contestant"='Ulrike Wolful'; |
## Task
Generate a SQL query to answer the following question:
`How many meters tall is Ulrike Wolful?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_delegates" (
"represent" text,
"contestant" text,
"age" real,
"height_ft" text,
"height_mtr" text,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many meters tall is Ulrike Wolful?`:
```sql
|
SELECT "represent" FROM "official_delegates" WHERE "height_mtr"='1.76'; |
## Task
Generate a SQL query to answer the following question:
`Which country had a contestant that was 1.76 meters tall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_delegates" (
"represent" text,
"contestant" text,
"age" real,
"height_ft" text,
"height_mtr" text,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country had a contestant that was 1.76 meters tall?`:
```sql
|
SELECT "represent" FROM "official_delegates" WHERE "height_mtr"='1.70'; |
## Task
Generate a SQL query to answer the following question:
`What country had a contestant that was 1.70 meters tall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_delegates" (
"represent" text,
"contestant" text,
"age" real,
"height_ft" text,
"height_mtr" text,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country had a contestant that was 1.70 meters tall?`:
```sql
|
SELECT MAX("points") FROM "2010_wimbledon_championships" WHERE "seed"=2; |
## Task
Generate a SQL query to answer the following question:
`If seed number is 2, what is the maximum amount of points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_wimbledon_championships" (
"seed" real,
"rank" real,
"player" text,
"points" real,
"points_defending" text,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `If seed number is 2, what is the maximum amount of points?`:
```sql
|
SELECT "status" FROM "2010_wimbledon_championships" WHERE "new_points"=1720; |
## Task
Generate a SQL query to answer the following question:
`If new points is 1720, what is the status?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_wimbledon_championships" (
"seed" real,
"rank" real,
"player" text,
"points" real,
"points_defending" text,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `If new points is 1720, what is the status?`:
```sql
|
SELECT "winning_party_coalition" FROM "table1_23512864_4" WHERE "election_year"=1980; |
## Task
Generate a SQL query to answer the following question:
`Who is the winning party/coalition name in election year 1980?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23512864_4" (
"election_year" real,
"assembly" text,
"winning_party_coalition" text,
"chief_minister" text,
"speaker" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winning party/coalition name in election year 1980?`:
```sql
|
SELECT MAX("election_year") FROM "table1_23512864_4" WHERE "speaker"='Munu Adhi (2) K. Rajaram'; |
## Task
Generate a SQL query to answer the following question:
`If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23512864_4" (
"election_year" real,
"assembly" text,
"winning_party_coalition" text,
"chief_minister" text,
"speaker" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum?`:
```sql
|
SELECT MAX("election_year") FROM "table1_23512864_4" WHERE "speaker"='R. Muthiah'; |
## Task
Generate a SQL query to answer the following question:
`If the speaker is R. Muthiah, what is the election year maximum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23512864_4" (
"election_year" real,
"assembly" text,
"winning_party_coalition" text,
"chief_minister" text,
"speaker" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the speaker is R. Muthiah, what is the election year maximum?`:
```sql
|
SELECT "speaker" FROM "table1_23512864_4" WHERE "chief_minister"='M.G. Ramachandran'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the speaker if the chief minister is M.G. Ramachandran?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23512864_4" (
"election_year" real,
"assembly" text,
"winning_party_coalition" text,
"chief_minister" text,
"speaker" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the speaker if the chief minister is M.G. Ramachandran?`:
```sql
|
SELECT MAX("election_year") FROM "table1_23512864_4" WHERE "assembly"='Sixth Assembly'; |
## Task
Generate a SQL query to answer the following question:
`If the assembly is the sixth assembly, what is the maximum election year?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23512864_4" (
"election_year" real,
"assembly" text,
"winning_party_coalition" text,
"chief_minister" text,
"speaker" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the assembly is the sixth assembly, what is the maximum election year?`:
```sql
|
SELECT "number_of_crews" FROM "tactical_organization" WHERE "type_of_unit"='Light bombardment group'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of crews for light bombardment group`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tactical_organization" (
"type_of_unit" text,
"type_of_aircraft" text,
"number_of_aircraft" text,
"number_of_crews" text,
"men_per_crew" text,
"total_personnel" real,
"officers" real,
"enlisted" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of crews for light bombardment group`:
```sql
|
SELECT "type_of_aircraft" FROM "tactical_organization" WHERE "number_of_crews"='21'; |
## Task
Generate a SQL query to answer the following question:
`What is the aircraft for 21 crews?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tactical_organization" (
"type_of_unit" text,
"type_of_aircraft" text,
"number_of_aircraft" text,
"number_of_crews" text,
"men_per_crew" text,
"total_personnel" real,
"officers" real,
"enlisted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aircraft for 21 crews?`:
```sql
|
SELECT "enlisted" FROM "tactical_organization" WHERE "type_of_unit"='Troop carrier group'; |
## Task
Generate a SQL query to answer the following question:
`Nam ethe enlisted for troop carrier group`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tactical_organization" (
"type_of_unit" text,
"type_of_aircraft" text,
"number_of_aircraft" text,
"number_of_crews" text,
"men_per_crew" text,
"total_personnel" real,
"officers" real,
"enlisted" real
);
### SQL
Given the database schema, here is the SQL query that answers `Nam ethe enlisted for troop carrier group`:
```sql
|
SELECT "title" FROM "table1_23513241_5" WHERE "u_s_viewers_millions"='1.121'; |
## Task
Generate a SQL query to answer the following question:
`What was the title when 1.121 million US people watched it?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23513241_5" (
"series_episode" real,
"season_episode" real,
"title" text,
"u_s_viewers_millions" text,
"original_u_s_airdate" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title when 1.121 million US people watched it?`:
```sql
|
SELECT MIN("series_episode") FROM "table1_23513241_5" WHERE "prod_code"=406; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest series episode with a production code of 406?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23513241_5" (
"series_episode" real,
"season_episode" real,
"title" text,
"u_s_viewers_millions" text,
"original_u_s_airdate" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest series episode with a production code of 406?`:
```sql
|
SELECT "title" FROM "table1_23513241_5" WHERE "series_episode"=38; |
## Task
Generate a SQL query to answer the following question:
`List the title of series episode 38.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23513241_5" (
"series_episode" real,
"season_episode" real,
"title" text,
"u_s_viewers_millions" text,
"original_u_s_airdate" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `List the title of series episode 38.`:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_23513241_5" WHERE "title"='\"Here Comes the Neighborhood\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S. viewers watched the episode "Here Comes the Neighborhood"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23513241_5" (
"series_episode" real,
"season_episode" real,
"title" text,
"u_s_viewers_millions" text,
"original_u_s_airdate" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of U.S. viewers watched the episode "Here Comes the Neighborhood"?`:
```sql
|
SELECT "formula" FROM "winners_of_the_danish_grand_prix" WHERE "driver"='Stirling Moss'; |
## Task
Generate a SQL query to answer the following question:
`What type of formula did Stirling Moss drive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_danish_grand_prix" (
"year" real,
"driver" text,
"constructor" text,
"location" text,
"formula" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of formula did Stirling Moss drive?`:
```sql
|
SELECT "year" FROM "winners_of_the_danish_grand_prix" WHERE "driver"='Randy Lewis'; |
## Task
Generate a SQL query to answer the following question:
`What year did Randy Lewis drive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_danish_grand_prix" (
"year" real,
"driver" text,
"constructor" text,
"location" text,
"formula" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Randy Lewis drive?`:
```sql
|
SELECT "constructor" FROM "winners_of_the_danish_grand_prix" WHERE "year"=1975; |
## Task
Generate a SQL query to answer the following question:
`What was the constructor in 1975?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_danish_grand_prix" (
"year" real,
"driver" text,
"constructor" text,
"location" text,
"formula" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the constructor in 1975?`:
```sql
|
SELECT "weight" FROM "smartphones" WHERE "market_name"='Xperia U'; |
## Task
Generate a SQL query to answer the following question:
`If the market name is Xperia U, what is the weight?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "smartphones" (
"code_name" text,
"market_name" text,
"platform" text,
"release_date" text,
"android_version" text,
"system_on_chip" text,
"ram" text,
"rom" text,
"display" text,
"weight" text,
"battery_m_ah" real,
"bluetooth" text,
"wi_fi" text,
"nfc" text,
"camera" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the market name is Xperia U, what is the weight?`:
```sql
|
SELECT "release_date" FROM "smartphones" WHERE "code_name"='Aoba'; |
## Task
Generate a SQL query to answer the following question:
`What is the release date if the code name is Aoba?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "smartphones" (
"code_name" text,
"market_name" text,
"platform" text,
"release_date" text,
"android_version" text,
"system_on_chip" text,
"ram" text,
"rom" text,
"display" text,
"weight" text,
"battery_m_ah" real,
"bluetooth" text,
"wi_fi" text,
"nfc" text,
"camera" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date if the code name is Aoba?`:
```sql
|
SELECT "battery_m_ah" FROM "smartphones" WHERE "nfc"='Yes' AND "weight"='126g'; |
## Task
Generate a SQL query to answer the following question:
`If the weight is 126g and the NFC is yes, what is the battery (MAH)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "smartphones" (
"code_name" text,
"market_name" text,
"platform" text,
"release_date" text,
"android_version" text,
"system_on_chip" text,
"ram" text,
"rom" text,
"display" text,
"weight" text,
"battery_m_ah" real,
"bluetooth" text,
"wi_fi" text,
"nfc" text,
"camera" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the weight is 126g and the NFC is yes, what is the battery (MAH)?`:
```sql
|
SELECT "platform" FROM "smartphones" WHERE "weight"='131.5g'; |
## Task
Generate a SQL query to answer the following question:
`What is the platform if the weight is 131.5g?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "smartphones" (
"code_name" text,
"market_name" text,
"platform" text,
"release_date" text,
"android_version" text,
"system_on_chip" text,
"ram" text,
"rom" text,
"display" text,
"weight" text,
"battery_m_ah" real,
"bluetooth" text,
"wi_fi" text,
"nfc" text,
"camera" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the platform if the weight is 131.5g?`:
```sql
|
SELECT "android_version" FROM "smartphones" WHERE "code_name"='Lotus'; |
## Task
Generate a SQL query to answer the following question:
`What is the Android version is the code name is Lotus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "smartphones" (
"code_name" text,
"market_name" text,
"platform" text,
"release_date" text,
"android_version" text,
"system_on_chip" text,
"ram" text,
"rom" text,
"display" text,
"weight" text,
"battery_m_ah" real,
"bluetooth" text,
"wi_fi" text,
"nfc" text,
"camera" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Android version is the code name is Lotus?`:
```sql
|
SELECT "copper_age" FROM "table1_23537091_1" WHERE "ubaid_period_in_mesopotamia"='Middle Assyrian Empire'; |
## Task
Generate a SQL query to answer the following question:
`When middle assyrian empire is the ubaid period in mesopotamia what is the copper age?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23537091_1" (
"copper_age" text,
"chalcolithic_4500_bc_3300_bc" text,
"early_chalcolithic" text,
"4500_bc_4000_bc" text,
"ubaid_period_in_mesopotamia" text
);
### SQL
Given the database schema, here is the SQL query that answers `When middle assyrian empire is the ubaid period in mesopotamia what is the copper age?`:
```sql
|
SELECT "copper_age" FROM "table1_23537091_1" WHERE "ubaid_period_in_mesopotamia"='Hittite Old Kingdom , Minoan eruption'; |
## Task
Generate a SQL query to answer the following question:
`When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23537091_1" (
"copper_age" text,
"chalcolithic_4500_bc_3300_bc" text,
"early_chalcolithic" text,
"4500_bc_4000_bc" text,
"ubaid_period_in_mesopotamia" text
);
### SQL
Given the database schema, here is the SQL query that answers `When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age?`:
```sql
|
SELECT COUNT("early_chalcolithic") FROM "table1_23537091_1" WHERE "ubaid_period_in_mesopotamia"='Hittite Middle Kingdom , New Kingdom of Egypt'; |
## Task
Generate a SQL query to answer the following question:
`When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalcolithics are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23537091_1" (
"copper_age" text,
"chalcolithic_4500_bc_3300_bc" text,
"early_chalcolithic" text,
"4500_bc_4000_bc" text,
"ubaid_period_in_mesopotamia" text
);
### SQL
Given the database schema, here is the SQL query that answers `When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalcolithics are there?`:
```sql
|
SELECT COUNT("early_chalcolithic") FROM "table1_23537091_1" WHERE "ubaid_period_in_mesopotamia"='Second Intermediate Period of Egypt'; |
## Task
Generate a SQL query to answer the following question:
`When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23537091_1" (
"copper_age" text,
"chalcolithic_4500_bc_3300_bc" text,
"early_chalcolithic" text,
"4500_bc_4000_bc" text,
"ubaid_period_in_mesopotamia" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there?`:
```sql
|
SELECT "result" FROM "singles_14" WHERE "opponent"='Loic Didavi'; |
## Task
Generate a SQL query to answer the following question:
`What was the score against Loic Didavi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score against Loic Didavi?`:
```sql
|
SELECT "against" FROM "singles_14" WHERE "w_l"='Loss' AND "round"='GI PO'; |
## Task
Generate a SQL query to answer the following question:
`Who was played against when there was a loss and in the gi po round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was played against when there was a loss and in the gi po round?`:
```sql
|
SELECT "w_l" FROM "singles_14" WHERE "result"='2β6, 5β7, 7β6 (11β9) , 1β6'; |
## Task
Generate a SQL query to answer the following question:
`What were the w/l when the final score was 2β6, 5β7, 7β6 (11β9) , 1β6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the w/l when the final score was 2β6, 5β7, 7β6 (11β9) , 1β6?`:
```sql
|
SELECT "playoffs" FROM "year_by_year" WHERE "regular_season"='2nd, Great Lakes'; |
## Task
Generate a SQL query to answer the following question:
`When Cleveland was 2nd, great lakes in the regular season what did they get to in the playoffs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Cleveland was 2nd, great lakes in the regular season what did they get to in the playoffs?`:
```sql
|
SELECT MIN("division") FROM "year_by_year"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest numbered division Cleveland played in? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest numbered division Cleveland played in? `:
```sql
|
SELECT "regular_season" FROM "year_by_year" WHERE "year"=2006; |
## Task
Generate a SQL query to answer the following question:
`How did Cleveland do in the regular season in 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did Cleveland do in the regular season in 2006?`:
```sql
|
SELECT "open_cup" FROM "year_by_year" WHERE "year"=2009; |
## Task
Generate a SQL query to answer the following question:
`How did Cleveland do in the Open Cup in 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did Cleveland do in the Open Cup in 2009?`:
```sql
|
SELECT "scores" FROM "table1_23575917_6" WHERE "lees_team"='Victoria Coren and Rhod Gilbert'; |
## Task
Generate a SQL query to answer the following question:
`When victoria coren and rhod gilbert are both on the lees team what is the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23575917_6" (
"episode" text,
"first_broadcast" text,
"davids_team" text,
"lees_team" text,
"scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `When victoria coren and rhod gilbert are both on the lees team what is the score?`:
```sql
|
SELECT "first_broadcast" FROM "table1_23575917_6" WHERE "davids_team"='David O''Doherty and Katherine Parkinson'; |
## Task
Generate a SQL query to answer the following question:
`When david o'doherty and katherine parkinson are both on the davids team when is the first broadcast?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23575917_6" (
"episode" text,
"first_broadcast" text,
"davids_team" text,
"lees_team" text,
"scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `When david o'doherty and katherine parkinson are both on the davids team when is the first broadcast?`:
```sql
|
SELECT "episode" FROM "table1_23575917_6" WHERE "davids_team"='Bill Oddie and Frank Skinner'; |
## Task
Generate a SQL query to answer the following question:
`When bill oddie and frank skinner are both on the davids team what is the episode?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23575917_6" (
"episode" text,
"first_broadcast" text,
"davids_team" text,
"lees_team" text,
"scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `When bill oddie and frank skinner are both on the davids team what is the episode?`:
```sql
|
SELECT "scores" FROM "table1_23575917_6" WHERE "lees_team"='Kevin Bridges and Katy Wix'; |
## Task
Generate a SQL query to answer the following question:
`When kevin bridges and katy wix are both on the less team what is the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23575917_6" (
"episode" text,
"first_broadcast" text,
"davids_team" text,
"lees_team" text,
"scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `When kevin bridges and katy wix are both on the less team what is the score?`:
```sql
|
SELECT COUNT("episode") FROM "table1_23575917_8" WHERE "davids_team"='Vernon Kay and Dara Γ Briain'; |
## Task
Generate a SQL query to answer the following question:
`How many shows did team David consist of vernon kay and dara Γ³ briain`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23575917_8" (
"episode" text,
"first_broadcast" text,
"davids_team" text,
"lees_team" text,
"scores" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many shows did team David consist of vernon kay and dara Γ³ briain`:
```sql
|
SELECT "represented" FROM "contestants" WHERE "hometown"='Windhoek'; |
## Task
Generate a SQL query to answer the following question:
`If the hometown is Windhoek, what is the represented?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"represented" text,
"contestant" text,
"age" real,
"height_in" text,
"height_cm" real,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the hometown is Windhoek, what is the represented?`:
```sql
|
SELECT "represented" FROM "contestants" WHERE "height_in"='5''7\"'; |
## Task
Generate a SQL query to answer the following question:
`If the height in inches is 5'7", what is the represented?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"represented" text,
"contestant" text,
"age" real,
"height_in" text,
"height_cm" real,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the height in inches is 5'7", what is the represented?`:
```sql
|
SELECT "contestant" FROM "contestants" WHERE "hometown"='Omuthiya'; |
## Task
Generate a SQL query to answer the following question:
`If the hometown is Omuthiya, what is the contestant name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"represented" text,
"contestant" text,
"age" real,
"height_in" text,
"height_cm" real,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the hometown is Omuthiya, what is the contestant name?`:
```sql
|
SELECT "height_in" FROM "contestants" WHERE "represented"='Erongo'; |
## Task
Generate a SQL query to answer the following question:
`What is the height in inches if the represented is Erongo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"represented" text,
"contestant" text,
"age" real,
"height_in" text,
"height_cm" real,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height in inches if the represented is Erongo?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "date"='September 29'; |
## Task
Generate a SQL query to answer the following question:
`What week did September 29 fall in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week did September 29 fall in?`:
```sql
|
SELECT "final_score" FROM "schedule" WHERE "date"='October 28'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on the October 28 game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on the October 28 game?`:
```sql
|
SELECT "final_score" FROM "schedule" WHERE "date"='September 20'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on September 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on September 20?`:
```sql
|
SELECT "main_artillery" FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "warship"='Blanco Encalada'; |
## Task
Generate a SQL query to answer the following question:
`What's Blanco Encalada's main artillery?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" (
"warship" text,
"tons_l_ton" real,
"horse_power" real,
"speed_knots" text,
"armour_inch" text,
"main_artillery" text,
"built_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Blanco Encalada's main artillery?`:
```sql
|
SELECT COUNT("horse_power") FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "warship"='Cochrane'; |
## Task
Generate a SQL query to answer the following question:
`How many different horse-powers does the Cochrane have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" (
"warship" text,
"tons_l_ton" real,
"horse_power" real,
"speed_knots" text,
"armour_inch" text,
"main_artillery" text,
"built_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different horse-powers does the Cochrane have?`:
```sql
|
SELECT "warship" FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "horse_power"=1500; |
## Task
Generate a SQL query to answer the following question:
`What warship has horse-power of 1500?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" (
"warship" text,
"tons_l_ton" real,
"horse_power" real,
"speed_knots" text,
"armour_inch" text,
"main_artillery" text,
"built_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What warship has horse-power of 1500?`:
```sql
|
SELECT MIN("tons_l_ton") FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "warship"='Independencia'; |
## Task
Generate a SQL query to answer the following question:
`How much does the Independencia weight?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" (
"warship" text,
"tons_l_ton" real,
"horse_power" real,
"speed_knots" text,
"armour_inch" text,
"main_artillery" text,
"built_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much does the Independencia weight?`:
```sql
|
SELECT COUNT("built_year") FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "tons_l_ton"=1130; |
## Task
Generate a SQL query to answer the following question:
`In how many different years was the warship that weights 1130 tons built?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" (
"warship" text,
"tons_l_ton" real,
"horse_power" real,
"speed_knots" text,
"armour_inch" text,
"main_artillery" text,
"built_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `In how many different years was the warship that weights 1130 tons built?`:
```sql
|
SELECT "pct_20_39" FROM "external_links" WHERE "pct_60_74"='10,46%'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for % 20-39 if % 60-74 is 10,46%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"neighbourhood" text,
"pct_0_19" text,
"pct_20_39" text,
"pct_40_59" text,
"pct_60_74" text,
"pct_75" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for % 20-39 if % 60-74 is 10,46%?`:
```sql
|
SELECT "pct_40_59" FROM "external_links" WHERE "pct_60_74"='12,42%'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for % 40-59 if % 60-74 is 12,42%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"neighbourhood" text,
"pct_0_19" text,
"pct_20_39" text,
"pct_40_59" text,
"pct_60_74" text,
"pct_75" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for % 40-59 if % 60-74 is 12,42%?`:
```sql
|
SELECT "pct_75" FROM "external_links" WHERE "pct_0_19"='19,75%'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for % 75 + if % 0-19 is 19,75%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"neighbourhood" text,
"pct_0_19" text,
"pct_20_39" text,
"pct_40_59" text,
"pct_60_74" text,
"pct_75" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for % 75 + if % 0-19 is 19,75%?`:
```sql
|
SELECT "pct_20_39" FROM "external_links" WHERE "pct_0_19"='21,11%'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for % 20-39 if % 0-19 is 21,11%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"neighbourhood" text,
"pct_0_19" text,
"pct_20_39" text,
"pct_40_59" text,
"pct_60_74" text,
"pct_75" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for % 20-39 if % 0-19 is 21,11%?`:
```sql
|
SELECT "pct_20_39" FROM "external_links" WHERE "pct_0_19"='21,11%'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for % 20-39 if % 0-19 is 21,11%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"neighbourhood" text,
"pct_0_19" text,
"pct_20_39" text,
"pct_40_59" text,
"pct_60_74" text,
"pct_75" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for % 20-39 if % 0-19 is 21,11%?`:
```sql
|
SELECT "pct_40_59" FROM "external_links" WHERE "pct_60_74"='12,40%'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for % 40-59 if % 60-74 is 12,40%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"neighbourhood" text,
"pct_0_19" text,
"pct_20_39" text,
"pct_40_59" text,
"pct_60_74" text,
"pct_75" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for % 40-59 if % 60-74 is 12,40%?`:
```sql
|
SELECT "horse_power" FROM "wooden_s_steamboat_of_chile_and_peru_at_" WHERE "warship"='Covadonga'; |
## Task
Generate a SQL query to answer the following question:
`How man horse power did the ship covadonga have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wooden_s_steamboat_of_chile_and_peru_at_" (
"warship" text,
"tons_l_ton" text,
"horse_power" real,
"speed_knots" real,
"main_artillery" text,
"built_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `How man horse power did the ship covadonga have?`:
```sql
|
SELECT "main_artillery" FROM "wooden_s_steamboat_of_chile_and_peru_at_" WHERE "tons_l_ton"='1,051'; |
## Task
Generate a SQL query to answer the following question:
`What is the primary artillery for the 1,051 ships?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wooden_s_steamboat_of_chile_and_peru_at_" (
"warship" text,
"tons_l_ton" text,
"horse_power" real,
"speed_knots" real,
"main_artillery" text,
"built_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the primary artillery for the 1,051 ships?`:
```sql
|
SELECT "speed_knots" FROM "wooden_s_steamboat_of_chile_and_peru_at_" WHERE "tons_l_ton"='1.150'; |
## Task
Generate a SQL query to answer the following question:
`List the maximum speed for the 1.150 ton ships?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wooden_s_steamboat_of_chile_and_peru_at_" (
"warship" text,
"tons_l_ton" text,
"horse_power" real,
"speed_knots" real,
"main_artillery" text,
"built_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `List the maximum speed for the 1.150 ton ships?`:
```sql
|
SELECT "warship" FROM "wooden_s_steamboat_of_chile_and_peru_at_" WHERE "main_artillery"='1x115-2x70-2x12-pounders'; |
## Task
Generate a SQL query to answer the following question:
`List the ship with 1x115-2x70-2x12-pounders for primary artillery.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wooden_s_steamboat_of_chile_and_peru_at_" (
"warship" text,
"tons_l_ton" text,
"horse_power" real,
"speed_knots" real,
"main_artillery" text,
"built_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `List the ship with 1x115-2x70-2x12-pounders for primary artillery.`:
```sql
|
SELECT "location" FROM "schedule" WHERE "date"='October 28'; |
## Task
Generate a SQL query to answer the following question:
`Which location has the date of October 28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has the date of October 28?`:
```sql
|
SELECT "final_score" FROM "schedule" WHERE "attendance"=22210; |
## Task
Generate a SQL query to answer the following question:
`What is the final score when 22210 is the attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final score when 22210 is the attendance?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='July 22'; |
## Task
Generate a SQL query to answer the following question:
`Which opponents are on the date July 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponents are on the date July 22?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='September 5'; |
## Task
Generate a SQL query to answer the following question:
`Which opponents are on the date September 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponents are on the date September 5?`:
```sql
|
SELECT "final_score" FROM "schedule" WHERE "date"='July 16'; |
## Task
Generate a SQL query to answer the following question:
`What is the final score when July 16 is the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final score when July 16 is the date?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "location"='Taylor Field'; |
## Task
Generate a SQL query to answer the following question:
`On which date is Taylor Field the location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date is Taylor Field the location?`:
```sql
|
SELECT COUNT("regular_season") FROM "year_by_year" WHERE "year"=2007; |
## Task
Generate a SQL query to answer the following question:
`Name the number of regular season for 2007`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of regular season for 2007`:
```sql
|
SELECT MAX("year") FROM "year_by_year" WHERE "playoffs"='Conference Finals'; |
## Task
Generate a SQL query to answer the following question:
`Name the most year for conference finals`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most year for conference finals`:
```sql
|
SELECT "regular_season" FROM "year_by_year" WHERE "playoffs"='Final'; |
## Task
Generate a SQL query to answer the following question:
`Name the regular season for final playoffs`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the regular season for final playoffs`:
```sql
|
SELECT MIN("division") FROM "year_by_year"; |
## Task
Generate a SQL query to answer the following question:
`Name the least division`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least division`:
```sql
|
SELECT "regular_season" FROM "year_by_year" WHERE "league"='USISL D-3 Pro League' AND "playoffs"='Did not qualify'; |
## Task
Generate a SQL query to answer the following question:
`Name the regular season for usisl d-3 pro league did not qualify`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the regular season for usisl d-3 pro league did not qualify`:
```sql
|
SELECT "position" FROM "round_three" WHERE "cfl_team"='Saskatchewan Roughriders'; |
## Task
Generate a SQL query to answer the following question:
`What was the position of the player from Saskatchewan Roughriders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the player from Saskatchewan Roughriders?`:
```sql
|
SELECT "cfl_team" FROM "round_three" WHERE "position"='SB'; |
## Task
Generate a SQL query to answer the following question:
`What CFL team was the player playing on SB position drafted for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What CFL team was the player playing on SB position drafted for?`:
```sql
|
SELECT "position" FROM "round_three" WHERE "player"='Michael Shaver'; |
## Task
Generate a SQL query to answer the following question:
`What was Michael Shaver's position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Michael Shaver's position?`:
```sql
|
SELECT COUNT("player") FROM "round_three" WHERE "cfl_team"='Ottawa Renegades'; |
## Task
Generate a SQL query to answer the following question:
`How many different players got drafted for the Ottawa Renegades?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different players got drafted for the Ottawa Renegades?`:
```sql
|
SELECT "position" FROM "round_three" WHERE "player"='Doug Borden'; |
## Task
Generate a SQL query to answer the following question:
`What's Doug Borden's position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Doug Borden's position?`:
```sql
|
SELECT "pct_of_all_immigrants_2007" FROM "by_country" WHERE "pct_of_all_immigrants_2008"='1.7%'; |
## Task
Generate a SQL query to answer the following question:
`What's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_country" (
"country" text,
"pct_of_all_immigrants_2008" text,
"pct_of_all_immigrants_2007" text,
"pct_of_all_immigrants_2006" text,
"pct_of_all_immigrants_2005" text,
"pct_of_all_immigrants_2004" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008?`:
```sql
|
SELECT COUNT("pct_of_all_immigrants_2006") FROM "by_country" WHERE "country"='Morocco'; |
## Task
Generate a SQL query to answer the following question:
`How many different percentages of immigrants in 2006 can there be for Morocco?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_country" (
"country" text,
"pct_of_all_immigrants_2008" text,
"pct_of_all_immigrants_2007" text,
"pct_of_all_immigrants_2006" text,
"pct_of_all_immigrants_2005" text,
"pct_of_all_immigrants_2004" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different percentages of immigrants in 2006 can there be for Morocco?`:
```sql
|
SELECT "pct_of_all_immigrants_2004" FROM "by_country" WHERE "pct_of_all_immigrants_2006"='2.1%'; |
## Task
Generate a SQL query to answer the following question:
`What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_country" (
"country" text,
"pct_of_all_immigrants_2008" text,
"pct_of_all_immigrants_2007" text,
"pct_of_all_immigrants_2006" text,
"pct_of_all_immigrants_2005" text,
"pct_of_all_immigrants_2004" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006?`:
```sql
|
SELECT "pct_of_all_immigrants_2007" FROM "by_country" WHERE "pct_of_all_immigrants_2006"='14.1%'; |
## Task
Generate a SQL query to answer the following question:
`What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_country" (
"country" text,
"pct_of_all_immigrants_2008" text,
"pct_of_all_immigrants_2007" text,
"pct_of_all_immigrants_2006" text,
"pct_of_all_immigrants_2005" text,
"pct_of_all_immigrants_2004" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006?`:
```sql
|
SELECT COUNT("pct_of_all_immigrants_2007") FROM "by_country" WHERE "pct_of_all_immigrants_2005"='1.2%'; |
## Task
Generate a SQL query to answer the following question:
`How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_country" (
"country" text,
"pct_of_all_immigrants_2008" text,
"pct_of_all_immigrants_2007" text,
"pct_of_all_immigrants_2006" text,
"pct_of_all_immigrants_2005" text,
"pct_of_all_immigrants_2004" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?`:
```sql
|
SELECT "outcome" FROM "men_s_doubles_6_4_titles_2_runner_ups" WHERE "score_in_the_final"='6β7(1), 2β6, 6β4, 7β5, 6β7(2)'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome in the championship where the final score was 6β7(1), 2β6, 6β4, 7β5, 6β7(2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_6_4_titles_2_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome in the championship where the final score was 6β7(1), 2β6, 6β4, 7β5, 6β7(2)?`:
```sql
|
SELECT "opponents_in_the_final" FROM "men_s_doubles_6_4_titles_2_runner_ups" WHERE "score_in_the_final"='6β4, 2β6, 6β4, 7β6(3)'; |
## Task
Generate a SQL query to answer the following question:
`Who were the opponents in the final where the score was 6β4, 2β6, 6β4, 7β6(3)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_6_4_titles_2_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents in the final where the score was 6β4, 2β6, 6β4, 7β6(3)?`:
```sql
|
SELECT "championship" FROM "men_s_doubles_6_4_titles_2_runner_ups" WHERE "score_in_the_final"='6β4, 2β6, 6β4, 7β6(3)'; |
## Task
Generate a SQL query to answer the following question:
`Which championship had a final score of 6β4, 2β6, 6β4, 7β6(3)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_6_4_titles_2_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship had a final score of 6β4, 2β6, 6β4, 7β6(3)?`:
```sql
|
SELECT "score_in_final" FROM "wins_4" WHERE "year"=1988; |
## Task
Generate a SQL query to answer the following question:
`What was the score in the final in 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_4" (
"outcome" text,
"year" real,
"championship" text,
"partnering" text,
"opponents_in_final" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the final in 1988?`:
```sql
|
SELECT "london_great_britain" FROM "records" WHERE "2_15_25"='2:20:57'; |
## Task
Generate a SQL query to answer the following question:
`Name the london, great britain for 2:20:57`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"world_record" text,
"paula_radcliffe_gbr" text,
"2_15_25" text,
"london_great_britain" text,
"13_april_2003" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the london, great britain for 2:20:57`:
```sql
|
SELECT "world_record" FROM "records" WHERE "13_april_2003"='26 April 2009'; |
## Task
Generate a SQL query to answer the following question:
`Name the world record for 26 april 2009`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"world_record" text,
"paula_radcliffe_gbr" text,
"2_15_25" text,
"london_great_britain" text,
"13_april_2003" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the world record for 26 april 2009`:
```sql
|
SELECT "london_great_britain" FROM "records" WHERE "world_record"='Championship record'; |
## Task
Generate a SQL query to answer the following question:
`Name the london great britain for championship record`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"world_record" text,
"paula_radcliffe_gbr" text,
"2_15_25" text,
"london_great_britain" text,
"13_april_2003" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the london great britain for championship record`:
```sql
|
SELECT COUNT("paula_radcliffe_gbr") FROM "records" WHERE "world_record"='African record'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of african record`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"world_record" text,
"paula_radcliffe_gbr" text,
"2_15_25" text,
"london_great_britain" text,
"13_april_2003" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of african record`:
```sql
|
SELECT "mix_artist" FROM "table1_23649244_1" WHERE "artist_1"='Tears for Fears' AND "artist_2"='Eric Prydz'; |
## Task
Generate a SQL query to answer the following question:
`Who are thebmix artists when tears for fears is artist 1 and eric prydz is artist 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23649244_1" (
"song_1_title" text,
"artist_1" text,
"song_2_title" text,
"artist_2" text,
"mix_artist" text,
"guitar_part" text,
"level" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are thebmix artists when tears for fears is artist 1 and eric prydz is artist 2?`:
```sql
|
SELECT "level" FROM "table1_23649244_1" WHERE "artist_1"='Marvin Gaye' AND "artist_2"='David Bowie'; |
## Task
Generate a SQL query to answer the following question:
`Which level has marvin gaye as artist 1 and david bowie as artist 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23649244_1" (
"song_1_title" text,
"artist_1" text,
"song_2_title" text,
"artist_2" text,
"mix_artist" text,
"guitar_part" text,
"level" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which level has marvin gaye as artist 1 and david bowie as artist 2?`:
```sql
|
SELECT "level" FROM "table1_23649244_1" WHERE "artist_1"='Grandmaster Flash'; |
## Task
Generate a SQL query to answer the following question:
`Which level has grandmaster flash as artist 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23649244_1" (
"song_1_title" text,
"artist_1" text,
"song_2_title" text,
"artist_2" text,
"mix_artist" text,
"guitar_part" text,
"level" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which level has grandmaster flash as artist 1?`:
```sql
|
SELECT "level" FROM "table1_23649244_1" WHERE "artist_1"='Wale'; |
## Task
Generate a SQL query to answer the following question:
`Which level has wale as artist 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23649244_1" (
"song_1_title" text,
"artist_1" text,
"song_2_title" text,
"artist_2" text,
"mix_artist" text,
"guitar_part" text,
"level" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which level has wale as artist 1?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.