cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## 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 COUNT("tot_enlisted") FROM "growth_personnel" WHERE "enlisted_o_s"=801471;
```
## 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 "tot_officers" FROM "growth_personnel" WHERE "tot_enlisted"=329640;
```
## 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 MAX("tot_enlisted") FROM "growth_personnel" WHERE "total_usaaf"=2329534;
```
## 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 COUNT("age") FROM "official_delegates" WHERE "represent"='Mitteldeutschland';
```
## 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 "height_mtr" FROM "official_delegates" WHERE "contestant"='Ulrike Wolful';
```
## 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.76';
```
## 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 "represent" FROM "official_delegates" WHERE "height_mtr"='1.70';
```
## 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 MAX("points") FROM "2010_wimbledon_championships" WHERE "seed"=2;
```
## 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 "status" FROM "2010_wimbledon_championships" WHERE "new_points"=1720;
```
## 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 "winning_party_coalition" FROM "table1_23512864_4" WHERE "election_year"=1980;
```
## 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"='Munu Adhi (2) K. Rajaram';
```
## 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 MAX("election_year") FROM "table1_23512864_4" WHERE "speaker"='R. Muthiah';
```
## 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 "speaker" FROM "table1_23512864_4" WHERE "chief_minister"='M.G. Ramachandran';
```
## 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 MAX("election_year") FROM "table1_23512864_4" WHERE "assembly"='Sixth Assembly';
```
## 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 "number_of_crews" FROM "tactical_organization" WHERE "type_of_unit"='Light bombardment group';
```
## 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 "type_of_aircraft" FROM "tactical_organization" WHERE "number_of_crews"='21';
```
## 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 "enlisted" FROM "tactical_organization" WHERE "type_of_unit"='Troop carrier group';
```
## 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 "title" FROM "table1_23513241_5" WHERE "u_s_viewers_millions"='1.121';
```
## 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 MIN("series_episode") FROM "table1_23513241_5" WHERE "prod_code"=406;
```
## 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 "title" FROM "table1_23513241_5" WHERE "series_episode"=38;
```
## 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 "u_s_viewers_millions" FROM "table1_23513241_5" WHERE "title"='\"Here Comes the Neighborhood\"';
```
## 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 "formula" FROM "winners_of_the_danish_grand_prix" WHERE "driver"='Stirling Moss';
```
## 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 "year" FROM "winners_of_the_danish_grand_prix" WHERE "driver"='Randy Lewis';
```
## 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 "constructor" FROM "winners_of_the_danish_grand_prix" WHERE "year"=1975;
```
## 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 "weight" FROM "smartphones" WHERE "market_name"='Xperia U';
```
## 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 "release_date" FROM "smartphones" WHERE "code_name"='Aoba';
```
## 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 "battery_m_ah" FROM "smartphones" WHERE "nfc"='Yes' AND "weight"='126g';
```
## 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 "platform" FROM "smartphones" WHERE "weight"='131.5g';
```
## 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 "android_version" FROM "smartphones" WHERE "code_name"='Lotus';
```
## 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"='Middle Assyrian Empire';
```
## 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 "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 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"='Hittite Middle Kingdom , New Kingdom 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 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:
`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 "result" FROM "singles_14" WHERE "opponent"='Loic Didavi';
```
## 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 "against" FROM "singles_14" WHERE "w_l"='Loss' AND "round"='GI PO';
```
## 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 "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:
`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 "playoffs" FROM "year_by_year" WHERE "regular_season"='2nd, Great Lakes';
```
## 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 MIN("division") FROM "year_by_year";
```
## 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 "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 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 "open_cup" FROM "year_by_year" WHERE "year"=2009;
```
## 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 "scores" FROM "table1_23575917_6" WHERE "lees_team"='Victoria Coren and Rhod Gilbert';
```
## 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 "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 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 "episode" FROM "table1_23575917_6" WHERE "davids_team"='Bill Oddie and Frank Skinner';
```
## 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 "scores" FROM "table1_23575917_6" WHERE "lees_team"='Kevin Bridges and Katy Wix';
```
## 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 COUNT("episode") FROM "table1_23575917_8" WHERE "davids_team"='Vernon Kay and Dara Ó Briain';
```
## 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 "hometown"='Windhoek';
```
## 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 "represented" FROM "contestants" WHERE "height_in"='5''7\"';
```
## 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 "contestant" FROM "contestants" WHERE "hometown"='Omuthiya';
```
## 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 "height_in" FROM "contestants" WHERE "represented"='Erongo';
```
## 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 COUNT("week") FROM "schedule" WHERE "date"='September 29';
```
## 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"='October 28';
```
## 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 "final_score" FROM "schedule" WHERE "date"='September 20';
```
## 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 "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:
`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 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:
`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 "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:
`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 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:
`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 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:
`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_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  % 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_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 % 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_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 % 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_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  % 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 "pct_40_59" FROM "external_links" WHERE "pct_60_74"='12,40%';
```
## 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 "horse_power" FROM "wooden_s_steamboat_of_chile_and_peru_at_" WHERE "warship"='Covadonga';
```
## 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 "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:
`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 "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 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 "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:
`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 "location" FROM "schedule" WHERE "date"='October 28';
```
## 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 "final_score" FROM "schedule" WHERE "attendance"=22210;
```
## 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"='July 22';
```
## 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 "opponent" FROM "schedule" WHERE "date"='September 5';
```
## 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 "final_score" FROM "schedule" WHERE "date"='July 16';
```
## 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 "date" FROM "schedule" WHERE "location"='Taylor Field';
```
## 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 COUNT("regular_season") FROM "year_by_year" WHERE "year"=2007;
```
## 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 MAX("year") FROM "year_by_year" WHERE "playoffs"='Conference Finals';
```