cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How much Money( £ )australia has ?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Money( £ )australia has ?`:
```sql
                SELECT "money" FROM "final_round" WHERE "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`Count the Money ( £ ) of south africa with a To par of +1, and a Player of ernie els?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Count the Money ( £ ) of south africa with a To par of +1, and a Player of ernie els?`:
```sql
                SELECT "money" FROM "final_round" WHERE "country"='south africa' AND "to_par"='+1' AND "player"='ernie els';
```
## Task
Generate a SQL query to answer the following question:
`Where has a Player of tom watson?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where has a Player of tom watson?`:
```sql
                SELECT "place" FROM "final_round" WHERE "player"='tom watson';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a To par of +1 in sweden?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a To par of +1 in sweden?`:
```sql
                SELECT "score" FROM "final_round" WHERE "to_par"='+1' AND "country"='sweden';
```
## Task
Generate a SQL query to answer the following question:
`Which To par is of thomas aiken?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par is of thomas aiken?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "player"='thomas aiken';
```
## Task
Generate a SQL query to answer the following question:
`What is the average expenditures on R&D for Croatia after 2007?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "list" (
  "rank" real,
  "country_region" text,
  "expenditures_on_r_d_billions_of_us_ppp" real,
  "pct_of_gdp_ppp" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average expenditures on R&D for Croatia after 2007?`:
```sql
                SELECT AVG("expenditures_on_r_d_billions_of_us_ppp") FROM "list" WHERE "country_region"='croatia' AND "year">2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest expenditures on R&D for Poland after 2011?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "list" (
  "rank" real,
  "country_region" text,
  "expenditures_on_r_d_billions_of_us_ppp" real,
  "pct_of_gdp_ppp" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest expenditures on R&D for Poland after 2011?`:
```sql
                SELECT MIN("expenditures_on_r_d_billions_of_us_ppp") FROM "list" WHERE "country_region"='poland' AND "year">2011;
```
## Task
Generate a SQL query to answer the following question:
`What is the Opposition in the First Round of the UEFA Cup with a Score of 3–1 (h), 2–0 (a)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "matches" (
  "season" text,
  "competition" text,
  "round" text,
  "opposition" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opposition in the First Round of the UEFA Cup with a Score of 3–1 (h), 2–0 (a)?`:
```sql
                SELECT "opposition" FROM "matches" WHERE "round"='first round' AND "competition"='uefa cup' AND "score"='3–1 (h), 2–0 (a)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Season of the game with a Score of 0–2 (a), 3–1 (h)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "matches" (
  "season" text,
  "competition" text,
  "round" text,
  "opposition" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Season of the game with a Score of 0–2 (a), 3–1 (h)?`:
```sql
                SELECT "season" FROM "matches" WHERE "score"='0–2 (a), 3–1 (h)';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?`:
```sql
                SELECT "location" FROM "former_members" WHERE "year_joined"=1966 AND "previous_conference"='noble county' AND "school"='wawaka';
```
## Task
Generate a SQL query to answer the following question:
`How much Year Left has a Location of howe?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Year Left has a Location of howe?`:
```sql
                SELECT SUM("year_left") FROM "former_members" WHERE "location"='howe';
```
## Task
Generate a SQL query to answer the following question:
`Which School has a Year Left of 1966, and a Mascot of indians?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School has a Year Left of 1966, and a Mascot of indians?`:
```sql
                SELECT "school" FROM "former_members" WHERE "year_left"=1966 AND "mascot"='indians';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Elevator of Giacomo Colonna?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "cardinal_elections" (
  "elector" text,
  "nationality" text,
  "cardinalatial_order_and_title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Elevator of Giacomo Colonna?`:
```sql
                SELECT "elevator" FROM "cardinal_elections" WHERE "elector"='giacomo colonna';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of elevation for the Cardinal elevated by Nicholas III to the title of Cardinal-Deacon of S. Eustachio?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "cardinal_elections" (
  "elector" text,
  "nationality" text,
  "cardinalatial_order_and_title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of elevation for the Cardinal elevated by Nicholas III to the title of Cardinal-Deacon of S. Eustachio?`:
```sql
                SELECT "elevated" FROM "cardinal_elections" WHERE "elevator"='nicholas iii' AND "cardinalatial_order_and_title"='cardinal-deacon of s. eustachio';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "cardinal_elections" (
  "elector" text,
  "nationality" text,
  "cardinalatial_order_and_title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana?`:
```sql
                SELECT "elevated" FROM "cardinal_elections" WHERE "cardinalatial_order_and_title"='cardinal-priest of s. pudenziana';
```
## Task
Generate a SQL query to answer the following question:
`What are the games behind for the Oklahoma City Thunder division?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "seasons" (
  "season" text,
  "team" text,
  "conference_conf" text,
  "division_div" text,
  "div_finish" text,
  "games_behind_gb" text,
  "head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the games behind for the Oklahoma City Thunder division?`:
```sql
                SELECT "games_behind_gb" FROM "seasons" WHERE "division_div"='oklahoma city thunder';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest elevation of a place where the lowest point is the Allaine River, National border?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "references" (
  "rank" real,
  "canton" text,
  "highest_point" text,
  "highest_elevation" text,
  "lowest_point" text,
  "lowest_elevation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest elevation of a place where the lowest point is the Allaine River, National border?`:
```sql
                SELECT "highest_elevation" FROM "references" WHERE "lowest_point"='allaine river, national border';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest elevation value whose highest point is Mont Raimeux?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "references" (
  "rank" real,
  "canton" text,
  "highest_point" text,
  "highest_elevation" text,
  "lowest_point" text,
  "lowest_elevation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest elevation value whose highest point is Mont Raimeux?`:
```sql
                SELECT "lowest_elevation" FROM "references" WHERE "highest_point"='mont raimeux';
```
## Task
Generate a SQL query to answer the following question:
`What rank is Vaud with the lowest point is Lake Geneva?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "references" (
  "rank" real,
  "canton" text,
  "highest_point" text,
  "highest_elevation" text,
  "lowest_point" text,
  "lowest_elevation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is Vaud with the lowest point is Lake Geneva?`:
```sql
                SELECT SUM("rank") FROM "references" WHERE "lowest_point"='lake geneva' AND "canton"='vaud';
```
## Task
Generate a SQL query to answer the following question:
`Wich rank is given to the Canton of Schaffhausen?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "references" (
  "rank" real,
  "canton" text,
  "highest_point" text,
  "highest_elevation" text,
  "lowest_point" text,
  "lowest_elevation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Wich rank is given to the Canton of Schaffhausen?`:
```sql
                SELECT SUM("rank") FROM "references" WHERE "canton"='schaffhausen';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest elevation for the highest point of Schnebelhorn?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "references" (
  "rank" real,
  "canton" text,
  "highest_point" text,
  "highest_elevation" text,
  "lowest_point" text,
  "lowest_elevation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest elevation for the highest point of Schnebelhorn?`:
```sql
                SELECT "highest_elevation" FROM "references" WHERE "highest_point"='schnebelhorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the Canton of Vaud's highest point?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "references" (
  "rank" real,
  "canton" text,
  "highest_point" text,
  "highest_elevation" text,
  "lowest_point" text,
  "lowest_elevation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Canton of Vaud's highest point?`:
```sql
                SELECT "highest_point" FROM "references" WHERE "canton"='vaud';
```
## Task
Generate a SQL query to answer the following question:
`What type of ship is a Kobben class vessel that has been in service longer than 2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "vessels" (
  "vessel" text,
  "origin" text,
  "type" text,
  "in_service" real,
  "unit" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of ship is a Kobben class vessel that has been in service longer than 2?`:
```sql
                SELECT "type" FROM "vessels" WHERE "in_service">2 AND "vessel"='kobben class';
```
## Task
Generate a SQL query to answer the following question:
`What is the unit for a submarine type ship from Norway?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "vessels" (
  "vessel" text,
  "origin" text,
  "type" text,
  "in_service" real,
  "unit" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the unit for a submarine type ship from Norway?`:
```sql
                SELECT "unit" FROM "vessels" WHERE "type"='submarine' AND "origin"='norway';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with a 32-25 record?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent with a 32-25 record?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='32-25';
```
## Task
Generate a SQL query to answer the following question:
`What is the location/ attendance for a 35-28 record?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location/ attendance for a 35-28 record?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='35-28';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year when Neal Baer was a nominee, and the result was nominated?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "wga_awards" (
  "year" real,
  "category" text,
  "nominee_s" text,
  "episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year when Neal Baer was a nominee, and the result was nominated?`:
```sql
                SELECT MAX("year") FROM "wga_awards" WHERE "result"='nominated' AND "nominee_s"='neal baer';
```
## Task
Generate a SQL query to answer the following question:
`That is the total year that Neal Baer is a nominee?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "wga_awards" (
  "year" real,
  "category" text,
  "nominee_s" text,
  "episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `That is the total year that Neal Baer is a nominee?`:
```sql
                SELECT SUM("year") FROM "wga_awards" WHERE "nominee_s"='neal baer';
```
## Task
Generate a SQL query to answer the following question:
`For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "wga_awards" (
  "year" real,
  "category" text,
  "nominee_s" text,
  "episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result?`:
```sql
                SELECT "episode" FROM "wga_awards" WHERE "result"='nominated' AND "nominee_s"='walon green, joe sachs';
```
## Task
Generate a SQL query to answer the following question:
`Nominee Neal Baer had what result?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "wga_awards" (
  "year" real,
  "category" text,
  "nominee_s" text,
  "episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Nominee Neal Baer had what result?`:
```sql
                SELECT "result" FROM "wga_awards" WHERE "nominee_s"='neal baer';
```
## Task
Generate a SQL query to answer the following question:
`What episode after 1998 had John Wells as the nominee?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "wga_awards" (
  "year" real,
  "category" text,
  "nominee_s" text,
  "episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode after 1998 had John Wells as the nominee?`:
```sql
                SELECT "episode" FROM "wga_awards" WHERE "year">1998 AND "nominee_s"='john wells';
```
## Task
Generate a SQL query to answer the following question:
`Who has the world record of 153kg in the clean & jerk?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "shi_zhiyong_chn" text,
  "153kg" text,
  "izmir_turkey" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the world record of 153kg in the clean & jerk?`:
```sql
                SELECT "153kg" FROM "records" WHERE "world_record"='clean & jerk';
```
## Task
Generate a SQL query to answer the following question:
`What's the release date for the processor spec number SLBEQ(d0)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "turbo" text,
  "cores" real,
  "l2_cache" text,
  "l3_cache" text,
  "i_o_bus" text,
  "mult" text,
  "memory" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the release date for the processor spec number SLBEQ(d0)?`:
```sql
                SELECT "release_date" FROM "45_nm" WHERE "s_spec_number"='slbeq(d0)';
```
## Task
Generate a SQL query to answer the following question:
`What's the release date of model number CORE I7-940?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "turbo" text,
  "cores" real,
  "l2_cache" text,
  "l3_cache" text,
  "i_o_bus" text,
  "mult" text,
  "memory" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the release date of model number CORE I7-940?`:
```sql
                SELECT "release_date" FROM "45_nm" WHERE "model_number"='core i7-940';
```
## Task
Generate a SQL query to answer the following question:
`What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 × 6.4 gt/s qpi I/O?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "turbo" text,
  "cores" real,
  "l2_cache" text,
  "l3_cache" text,
  "i_o_bus" text,
  "mult" text,
  "memory" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 × 6.4 gt/s qpi I/O?`:
```sql
                SELECT "release_price_usd" FROM "45_nm" WHERE "i_o_bus"='1 × 6.4 gt/s qpi' AND "part_number_s"='bx80601975at80601002274aa';
```
## Task
Generate a SQL query to answer the following question:
`What's the release price of a processor that has a frequency of 3.2 ghz and 1 × 6.4 gt/s qpi I/O?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "turbo" text,
  "cores" real,
  "l2_cache" text,
  "l3_cache" text,
  "i_o_bus" text,
  "mult" text,
  "memory" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the release price of a processor that has a frequency of 3.2 ghz and 1 × 6.4 gt/s qpi I/O?`:
```sql
                SELECT "release_price_usd" FROM "45_nm" WHERE "frequency"='3.2 ghz' AND "i_o_bus"='1 × 6.4 gt/s qpi';
```
## Task
Generate a SQL query to answer the following question:
`Who is the creator of the title 애장판 홍차왕자, aejangpan hongchawangja?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "licensed_titles" (
  "title" text,
  "localized_title" text,
  "creator" text,
  "years" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the creator of the title 애장판 홍차왕자, aejangpan hongchawangja?`:
```sql
                SELECT "creator" FROM "licensed_titles" WHERE "localized_title"='애장판 홍차왕자, aejangpan hongchawangja';
```
## Task
Generate a SQL query to answer the following question:
`What is the title in English for 애장판 홍차왕자, aejangpan hongchawangja?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "licensed_titles" (
  "title" text,
  "localized_title" text,
  "creator" text,
  "years" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title in English for 애장판 홍차왕자, aejangpan hongchawangja?`:
```sql
                SELECT "title" FROM "licensed_titles" WHERE "localized_title"='애장판 홍차왕자, aejangpan hongchawangja';
```
## Task
Generate a SQL query to answer the following question:
`What years did 홍차왕자 air?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "licensed_titles" (
  "title" text,
  "localized_title" text,
  "creator" text,
  "years" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did 홍차왕자 air?`:
```sql
                SELECT "years" FROM "licensed_titles" WHERE "localized_title"='홍차왕자';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of AIDS Orphans as % of Orphans when the Double (AIDS Related) number is 41,000, and the Paternal (Total) is larger than 442,000?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "populations" (
  "country" text,
  "orphans_as_pct_of_all_children" real,
  "aids_orphans_as_pct_of_orphans" real,
  "total_orphans_total" real,
  "total_orphans_aids_related" text,
  "maternal_total" real,
  "maternal_aids_related" text,
  "paternal_total" real,
  "paternal_aids_related" text,
  "double_total" real,
  "double_aids_related" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of AIDS Orphans as % of Orphans when the Double (AIDS Related) number is 41,000, and the Paternal (Total) is larger than 442,000?`:
```sql
                SELECT SUM("aids_orphans_as_pct_of_orphans") FROM "populations" WHERE "double_aids_related"='41,000' AND "paternal_total">'442,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Total Orphans number when the number of Total Orphans (AIDS Related) is < 100, and the Maternal (Total) is smaller than 31,000?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "populations" (
  "country" text,
  "orphans_as_pct_of_all_children" real,
  "aids_orphans_as_pct_of_orphans" real,
  "total_orphans_total" real,
  "total_orphans_aids_related" text,
  "maternal_total" real,
  "maternal_aids_related" text,
  "paternal_total" real,
  "paternal_aids_related" text,
  "double_total" real,
  "double_aids_related" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total Orphans number when the number of Total Orphans (AIDS Related) is < 100, and the Maternal (Total) is smaller than 31,000?`:
```sql
                SELECT MIN("total_orphans_total") FROM "populations" WHERE "total_orphans_aids_related"='< 100' AND "maternal_total"<'31,000';
```
## Task
Generate a SQL query to answer the following question:
`What's the term start date for Meretz?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "deputy_ministers" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the term start date for Meretz?`:
```sql
                SELECT "term_start" FROM "deputy_ministers" WHERE "party"='meretz';
```
## Task
Generate a SQL query to answer the following question:
`How many clubs are involved when the clubs remaining are 2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "team_distribution" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs are involved when the clubs remaining are 2?`:
```sql
                SELECT SUM("clubs_involved") FROM "team_distribution" WHERE "clubs_remaining"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "team_distribution" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league?`:
```sql
                SELECT "new_entries_this_round" FROM "team_distribution" WHERE "leagues_entering_at_this_round"='tff third league & turkish regional amateur league';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of clubs remaining in the second round?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "team_distribution" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of clubs remaining in the second round?`:
```sql
                SELECT MIN("clubs_remaining") FROM "team_distribution" WHERE "round"='second round';
```
## Task
Generate a SQL query to answer the following question:
`Which round has 4 clubs involved?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "team_distribution" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has 4 clubs involved?`:
```sql
                SELECT "round" FROM "team_distribution" WHERE "clubs_involved"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many clubs are involved when there are 4 winners from the previous rounds and more than 4 clubs remaining?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "team_distribution" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs are involved when there are 4 winners from the previous rounds and more than 4 clubs remaining?`:
```sql
                SELECT MIN("clubs_involved") FROM "team_distribution" WHERE "winners_from_previous_round"='4' AND "clubs_remaining">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the Away team at the game with a Score of 4 – 2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away team at the game with a Score of 4 – 2?`:
```sql
                SELECT "away_team" FROM "northern_section" WHERE "score"='4 – 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tie no of the game with an Attendance of 4,658?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tie no of the game with an Attendance of 4,658?`:
```sql
                SELECT "tie_no" FROM "northern_section" WHERE "attendance"='4,658';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team at the Lincoln City Away game?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team at the Lincoln City Away game?`:
```sql
                SELECT "home_team" FROM "northern_section" WHERE "away_team"='lincoln city';
```
## Task
Generate a SQL query to answer the following question:
`What is the Away team at the game with a Score of 1 – 0 and Attendance of 1,791?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away team at the game with a Score of 1 – 0 and Attendance of 1,791?`:
```sql
                SELECT "away_team" FROM "northern_section" WHERE "score"='1 – 0' AND "attendance"='1,791';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team of the game with a Score of 2 – 2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team of the game with a Score of 2 – 2?`:
```sql
                SELECT "home_team" FROM "northern_section" WHERE "score"='2 – 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of the game with a Score of 0 – 0?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of the game with a Score of 0 – 0?`:
```sql
                SELECT "attendance" FROM "northern_section" WHERE "score"='0 – 0';
```
## Task
Generate a SQL query to answer the following question:
`What is the weight for Iraklis in 2008?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight for Iraklis in 2008?`:
```sql
                SELECT "weight" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='iraklis';
```
## Task
Generate a SQL query to answer the following question:
`What year had Nintendo EAD, Monolith Soft as developers?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "g4" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had Nintendo EAD, Monolith Soft as developers?`:
```sql
                SELECT SUM("year") FROM "g4" WHERE "developer_s"='nintendo ead, monolith soft';
```
## Task
Generate a SQL query to answer the following question:
`what is the location when the designer is glen peloso and the restaurant is joe boo's cookoos?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_5" (
  "restaurant_name" text,
  "original_name" text,
  "location" text,
  "chef" text,
  "designer" text,
  "still_open" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location when the designer is glen peloso and the restaurant is joe boo's cookoos?`:
```sql
                SELECT "location" FROM "season_5" WHERE "designer"='glen peloso' AND "restaurant_name"='joe boo''s cookoos';
```
## Task
Generate a SQL query to answer the following question:
`Is the restaurant still open that had the original name of n/a, location of toronto, on and the designer meredith heron?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_5" (
  "restaurant_name" text,
  "original_name" text,
  "location" text,
  "chef" text,
  "designer" text,
  "still_open" text
);
### SQL
Given the database schema, here is the SQL query that answers `Is the restaurant still open that had the original name of n/a, location of toronto, on and the designer meredith heron?`:
```sql
                SELECT "still_open" FROM "season_5" WHERE "original_name"='n/a' AND "location"='toronto, on' AND "designer"='meredith heron';
```
## Task
Generate a SQL query to answer the following question:
`is the restaurant locavore still open?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_5" (
  "restaurant_name" text,
  "original_name" text,
  "location" text,
  "chef" text,
  "designer" text,
  "still_open" text
);
### SQL
Given the database schema, here is the SQL query that answers `is the restaurant locavore still open?`:
```sql
                SELECT "still_open" FROM "season_5" WHERE "restaurant_name"='locavore';
```
## Task
Generate a SQL query to answer the following question:
`is the restaurant bacchus roti with meredith heron as the designer still open?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_5" (
  "restaurant_name" text,
  "original_name" text,
  "location" text,
  "chef" text,
  "designer" text,
  "still_open" text
);
### SQL
Given the database schema, here is the SQL query that answers `is the restaurant bacchus roti with meredith heron as the designer still open?`:
```sql
                SELECT "still_open" FROM "season_5" WHERE "designer"='meredith heron' AND "restaurant_name"='bacchus roti';
```
## Task
Generate a SQL query to answer the following question:
`What year did the team from City of Aurora join?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "membership" (
  "school" text,
  "city" text,
  "team_name" text,
  "enrollment_08_09" real,
  "ihsaa_class" text,
  "ihsaa_class_football" text,
  "county" text,
  "year_joined_or_joining" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the team from City of Aurora join?`:
```sql
                SELECT AVG("year_joined_or_joining") FROM "membership" WHERE "city"='aurora';
```
## Task
Generate a SQL query to answer the following question:
`What was the total enrollment 08-09 of Franklin County?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "membership" (
  "school" text,
  "city" text,
  "team_name" text,
  "enrollment_08_09" real,
  "ihsaa_class" text,
  "ihsaa_class_football" text,
  "county" text,
  "year_joined_or_joining" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total enrollment 08-09 of Franklin County?`:
```sql
                SELECT COUNT("enrollment_08_09") FROM "membership" WHERE "school"='franklin county';
```
## Task
Generate a SQL query to answer the following question:
`What school has a team called the Pirates?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "membership" (
  "school" text,
  "city" text,
  "team_name" text,
  "enrollment_08_09" real,
  "ihsaa_class" text,
  "ihsaa_class_football" text,
  "county" text,
  "year_joined_or_joining" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has a team called the Pirates?`:
```sql
                SELECT "school" FROM "membership" WHERE "team_name"='pirates';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the team with a time of 1:00.61?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the team with a time of 1:00.61?`:
```sql
                SELECT AVG("rank") FROM "semifinal_1" WHERE "time"='1:00.61';
```
## Task
Generate a SQL query to answer the following question:
`What's the lane with a time of 1:00.66?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lane with a time of 1:00.66?`:
```sql
                SELECT AVG("lane") FROM "semifinal_1" WHERE "time"='1:00.66';
```
## Task
Generate a SQL query to answer the following question:
`What's the rank when the time was 59.65?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the rank when the time was 59.65?`:
```sql
                SELECT "rank" FROM "semifinal_1" WHERE "time"='59.65';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when they played New York?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when they played New York?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "opponent"='new york';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the County that has the Year Joined of 1964, and the Location of montezuma?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "year_left" text,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the County that has the Year Joined of 1964, and the Location of montezuma?`:
```sql
                SELECT "county" FROM "former_members" WHERE "year_joined"=1964 AND "location"='montezuma';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Conference Joined that has the Location of terre haute, and the Mascot of golden bears?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "year_left" text,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Conference Joined that has the Location of terre haute, and the Mascot of golden bears?`:
```sql
                SELECT "conference_joined" FROM "former_members" WHERE "location"='terre haute' AND "mascot"='golden bears';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Mascot that has the School of rosedale?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "year_left" text,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Mascot that has the School of rosedale?`:
```sql
                SELECT "mascot" FROM "former_members" WHERE "school"='rosedale';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Conference Joined that has the Mascot of little sycamores?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "year_left" text,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Conference Joined that has the Mascot of little sycamores?`:
```sql
                SELECT "conference_joined" FROM "former_members" WHERE "mascot"='little sycamores';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Location that has the Mascot of lakers?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "year_left" text,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Location that has the Mascot of lakers?`:
```sql
                SELECT "location" FROM "former_members" WHERE "mascot"='lakers';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the rider from the 348cc K4 Honda team with a speed of 97.743mph?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "race_3_junior_classic_race" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the rider from the 348cc K4 Honda team with a speed of 97.743mph?`:
```sql
                SELECT "time" FROM "race_3_junior_classic_race" WHERE "team"='348cc k4 honda' AND "speed"='97.743mph';
```
## Task
Generate a SQL query to answer the following question:
`What is the Lane of the swimmer with a Time of 8:34.25?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lane of the swimmer with a Time of 8:34.25?`:
```sql
                SELECT "lane" FROM "heats" WHERE "time"='8:34.25';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the swimmer with a Time of 9:04.86 in Heat 2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the swimmer with a Time of 9:04.86 in Heat 2?`:
```sql
                SELECT "name" FROM "heats" WHERE "heat"=2 AND "time"='9:04.86';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location of the Event in Round 1 with a Time of 1:25?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the Event in Round 1 with a Time of 1:25?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "time"='1:25';
```