cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the title no in season 2?`

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

CREATE TABLE "table1_1876825_8" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title no in season 2?`:
```sql
                SELECT "title" FROM "table1_1876825_8" WHERE "no_in_season"=2;
```
## Task
Generate a SQL query to answer the following question:
`What date did Micky Adams vacate his position?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did Micky Adams vacate his position?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Micky Adams';
```
## Task
Generate a SQL query to answer the following question:
`Which vacancy happened on 4 November 2008?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which vacancy happened on 4 November 2008?`:
```sql
                SELECT "position_in_table" FROM "managerial_changes" WHERE "date_of_vacancy"='4 November 2008';
```
## Task
Generate a SQL query to answer the following question:
`How many times did Keith Downing depart a position?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Keith Downing depart a position?`:
```sql
                SELECT COUNT("position_in_table") FROM "managerial_changes" WHERE "outgoing_manager"='Keith Downing';
```
## Task
Generate a SQL query to answer the following question:
`Which team appointed a person on 23 December 2008?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team appointed a person on 23 December 2008?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='23 December 2008';
```
## Task
Generate a SQL query to answer the following question:
`What date did the Milton Keynes Dons appoint?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Milton Keynes Dons appoint?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Milton Keynes Dons';
```
## Task
Generate a SQL query to answer the following question:
`Which vacancy occurred on 16 February 2009?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which vacancy occurred on 16 February 2009?`:
```sql
                SELECT "position_in_table" FROM "managerial_changes" WHERE "date_of_vacancy"='16 February 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is title of episode 06-02-407?`

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

CREATE TABLE "table1_1876825_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is title of episode 06-02-407?`:
```sql
                SELECT "title" FROM "table1_1876825_5" WHERE "production_code"='06-02-407';
```
## Task
Generate a SQL query to answer the following question:
`What is title of episode 06-02-406?`

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

CREATE TABLE "table1_1876825_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is title of episode 06-02-406?`:
```sql
                SELECT "title" FROM "table1_1876825_5" WHERE "production_code"='06-02-406';
```
## Task
Generate a SQL query to answer the following question:
`What is title of episode aired on March 2, 2003?`

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

CREATE TABLE "table1_1876825_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is title of episode aired on March 2, 2003?`:
```sql
                SELECT "title" FROM "table1_1876825_5" WHERE "original_air_date"='March 2, 2003';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote episode 74?`

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

CREATE TABLE "table1_1876825_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode 74?`:
```sql
                SELECT "written_by" FROM "table1_1876825_5" WHERE "no_in_series"=74;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote "Academic Octathalon"?`

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

CREATE TABLE "table1_1876825_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote "Academic Octathalon"?`:
```sql
                SELECT "written_by" FROM "table1_1876825_5" WHERE "title"='\"Academic Octathalon\"';
```
## Task
Generate a SQL query to answer the following question:
`Which position in the table is the team watford?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position in the table is the team watford?`:
```sql
                SELECT "position_in_table" FROM "managerial_changes" WHERE "team"='Watford';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of number in series for production code of 06-04-621`

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

CREATE TABLE "table1_1876825_7" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of number in series for production code of 06-04-621`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_1876825_7" WHERE "production_code"='06-04-621';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of written by for original air date for may 8, 2005`

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

CREATE TABLE "table1_1876825_7" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of written by for original air date for may 8, 2005`:
```sql
                SELECT COUNT("written_by") FROM "table1_1876825_7" WHERE "original_air_date"='May 8, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What was the place and how many people attended the game on July 11?`

### 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 was the place and how many people attended the game on July 11?`:
```sql
                SELECT "location_attendance" FROM "regular_season" WHERE "date"='July 11';
```
## Task
Generate a SQL query to answer the following question:
`Who had the most assist and how many on July 26?`

### 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 `Who had the most assist and how many on July 26?`:
```sql
                SELECT "high_assists" FROM "regular_season" WHERE "date"='July 26';
```
## Task
Generate a SQL query to answer the following question:
`Who had the high assist in the game where the record is 13-11?`

### 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 `Who had the high assist in the game where the record is 13-11?`:
```sql
                SELECT "high_assists" FROM "regular_season" WHERE "record"='13-11';
```
## Task
Generate a SQL query to answer the following question:
`At what date did the 23rd manager vacate the position?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what date did the 23rd manager vacate the position?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "position_in_table"='23rd';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of appointment for the manager that replaced Simon Davies? `

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of appointment for the manager that replaced Simon Davies? `:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Simon Davies';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of appointment for the manager of the 23rd team?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of appointment for the manager of the 23rd team?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "position_in_table"='23rd';
```
## Task
Generate a SQL query to answer the following question:
`How many categories for, replaced by, exist when the outgoing manager is Alan Buckley? `

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many categories for, replaced by, exist when the outgoing manager is Alan Buckley? `:
```sql
                SELECT COUNT("replaced_by") FROM "managerial_changes" WHERE "outgoing_manager"='Alan Buckley';
```
## Task
Generate a SQL query to answer the following question:
`Which driver starts 3?`

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

CREATE TABLE "drivers" (
  "pos" real,
  "driver" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver starts 3?`:
```sql
                SELECT "driver" FROM "drivers" WHERE "starts"=3;
```
## Task
Generate a SQL query to answer the following question:
`How many podiums for the driver with 18 stage wins?`

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

CREATE TABLE "drivers" (
  "pos" real,
  "driver" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many podiums for the driver with 18 stage wins?`:
```sql
                SELECT COUNT("podiums") FROM "drivers" WHERE "stage_wins"=18;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest pos for a driver with 1 podium?`

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

CREATE TABLE "drivers" (
  "pos" real,
  "driver" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pos for a driver with 1 podium?`:
```sql
                SELECT MAX("pos") FROM "drivers" WHERE "podiums"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is every TV network with a weekly schedule of Monday to Thursday @ 11:00 pm?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "tv_network_s" text,
  "series_premiere" text,
  "weekly_schedule" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every TV network with a weekly schedule of Monday to Thursday @ 11:00 pm?`:
```sql
                SELECT "tv_network_s" FROM "international_broadcasts" WHERE "weekly_schedule"='Monday to Thursday @ 11:00 pm';
```
## Task
Generate a SQL query to answer the following question:
`What is every country with a TV network of AXN India?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "tv_network_s" text,
  "series_premiere" text,
  "weekly_schedule" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every country with a TV network of AXN India?`:
```sql
                SELECT "country" FROM "international_broadcasts" WHERE "tv_network_s"='AXN India';
```
## Task
Generate a SQL query to answer the following question:
`What is every weekly schedule in the country of Norway?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "tv_network_s" text,
  "series_premiere" text,
  "weekly_schedule" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every weekly schedule in the country of Norway?`:
```sql
                SELECT "weekly_schedule" FROM "international_broadcasts" WHERE "country"='Norway';
```
## Task
Generate a SQL query to answer the following question:
`What is every TV network in Belgium?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "tv_network_s" text,
  "series_premiere" text,
  "weekly_schedule" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every TV network in Belgium?`:
```sql
                SELECT "tv_network_s" FROM "international_broadcasts" WHERE "country"='Belgium';
```
## Task
Generate a SQL query to answer the following question:
`What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "tv_network_s" text,
  "series_premiere" text,
  "weekly_schedule" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?`:
```sql
                SELECT "status" FROM "international_broadcasts" WHERE "weekly_schedule"='Monday to Thursday @ 11:00 pm';
```
## Task
Generate a SQL query to answer the following question:
`What is every weekly schedule of TV network Viasat 4?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "tv_network_s" text,
  "series_premiere" text,
  "weekly_schedule" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every weekly schedule of TV network Viasat 4?`:
```sql
                SELECT "weekly_schedule" FROM "international_broadcasts" WHERE "tv_network_s"='Viasat 4';
```
## Task
Generate a SQL query to answer the following question:
`How much was the prize money for  rwe-sporthalle, mülheim ?`

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

CREATE TABLE "final_results" (
  "year" real,
  "champion_average_in_final" text,
  "legs" text,
  "runner_up_average_in_final" text,
  "sponsor" text,
  "prize_fund" text,
  "champion" text,
  "runner_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much was the prize money for  rwe-sporthalle, mülheim ?`:
```sql
                SELECT "prize_fund" FROM "final_results" WHERE "venue"='RWE-Sporthalle, Mülheim';
```
## Task
Generate a SQL query to answer the following question:
`In 2009, how many were runner-up?`

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

CREATE TABLE "final_results" (
  "year" real,
  "champion_average_in_final" text,
  "legs" text,
  "runner_up_average_in_final" text,
  "sponsor" text,
  "prize_fund" text,
  "champion" text,
  "runner_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 2009, how many were runner-up?`:
```sql
                SELECT COUNT("runner_up") FROM "final_results" WHERE "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`How much does the champion get for stadthalle dinslaken, dinslaken?`

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

CREATE TABLE "final_results" (
  "year" real,
  "champion_average_in_final" text,
  "legs" text,
  "runner_up_average_in_final" text,
  "sponsor" text,
  "prize_fund" text,
  "champion" text,
  "runner_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much does the champion get for stadthalle dinslaken, dinslaken?`:
```sql
                SELECT "champion" FROM "final_results" WHERE "venue"='Stadthalle Dinslaken, Dinslaken';
```
## Task
Generate a SQL query to answer the following question:
`what is [po 4 3− ]/[a] (%) where [h 2 po 4 − ]/[a] (%) is 94.5?`

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

CREATE TABLE "aqueous_solution" (
  "a_mol_l" text,
  "p_h" text,
  "h_3_po_4_a_pct" text,
  "h_2_po_4_a_pct" text,
  "hpo_4_2_a_pct" text,
  "po_4_3_a_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is [po 4 3− ]/[a] (%) where [h 2 po 4 − ]/[a] (%) is 94.5?`:
```sql
                SELECT "po_4_3_a_pct" FROM "aqueous_solution" WHERE "h_2_po_4_a_pct"='94.5';
```
## Task
Generate a SQL query to answer the following question:
`what is the [a] (mol/l) where [hpo 4 2− ]/[a] (%) is 0.612?`

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

CREATE TABLE "aqueous_solution" (
  "a_mol_l" text,
  "p_h" text,
  "h_3_po_4_a_pct" text,
  "h_2_po_4_a_pct" text,
  "hpo_4_2_a_pct" text,
  "po_4_3_a_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the [a] (mol/l) where [hpo 4 2− ]/[a] (%) is 0.612?`:
```sql
                SELECT COUNT("a_mol_l") FROM "aqueous_solution" WHERE "hpo_4_2_a_pct"='0.612';
```
## Task
Generate a SQL query to answer the following question:
`When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?`

### 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,
  "tdp" 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 `When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?`:
```sql
                SELECT "l2_cache" FROM "45_nm" WHERE "release_date"='September 2009' AND "part_number_s"='BY80607002529AF';
```
## Task
Generate a SQL query to answer the following question:
`When by80607002907ahbx80607i7720qm is the part number what is the socket?`

### 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,
  "tdp" 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 `When by80607002907ahbx80607i7720qm is the part number what is the socket?`:
```sql
                SELECT "socket" FROM "45_nm" WHERE "part_number_s"='BY80607002907AHBX80607I7720QM';
```
## Task
Generate a SQL query to answer the following question:
`When slblw(b1) is the sspec number what is the mult.?`

### 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,
  "tdp" 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 `When slblw(b1) is the sspec number what is the mult.?`:
```sql
                SELECT "mult" FROM "45_nm" WHERE "s_spec_number"='SLBLW(B1)';
```
## Task
Generate a SQL query to answer the following question:
`When socketg1 is the socket what is the release price in dollars?`

### 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,
  "tdp" 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 `When socketg1 is the socket what is the release price in dollars?`:
```sql
                SELECT "release_price_usd" FROM "45_nm" WHERE "socket"='SocketG1';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the opposing team score on Dec. 19, 1982?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "bills_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the opposing team score on Dec. 19, 1982?`:
```sql
                SELECT MAX("opponents") FROM "schedule" WHERE "date"='Dec. 19';
```
## Task
Generate a SQL query to answer the following question:
`How many bills where originally cosponsored in those years where the total of all amendments cosponsored was 0?`

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

CREATE TABLE "legislation_sponsored_by_john_mc_cain" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "bills_originally_cosponsored" real,
  "amendments_originally_cosponsored" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bills where originally cosponsored in those years where the total of all amendments cosponsored was 0?`:
```sql
                SELECT "bills_originally_cosponsored" FROM "legislation_sponsored_by_john_mc_cain" WHERE "all_amendments_cosponsored"=0;
```
## Task
Generate a SQL query to answer the following question:
`How many bill cosponsored during those years where bills originally cosponsored is 113?`

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

CREATE TABLE "legislation_sponsored_by_john_mc_cain" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "bills_originally_cosponsored" real,
  "amendments_originally_cosponsored" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bill cosponsored during those years where bills originally cosponsored is 113?`:
```sql
                SELECT "all_bills_cosponsored" FROM "legislation_sponsored_by_john_mc_cain" WHERE "bills_originally_cosponsored"=113;
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest number of bills sponsored in any year?`

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

CREATE TABLE "legislation_sponsored_by_john_mc_cain" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "bills_originally_cosponsored" real,
  "amendments_originally_cosponsored" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest number of bills sponsored in any year?`:
```sql
                SELECT MAX("all_bills_sponsored") FROM "legislation_sponsored_by_john_mc_cain";
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest cr number?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest cr number?`:
```sql
                SELECT MIN("cr_no") FROM "numbers_and_names";
```
## Task
Generate a SQL query to answer the following question:
`When 2/1939 is the withdrawn when was it built?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 2/1939 is the withdrawn when was it built?`:
```sql
                SELECT "built" FROM "numbers_and_names" WHERE "withdrawn"='2/1939';
```
## Task
Generate a SQL query to answer the following question:
`When river ness is the hr name what is the hr number?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `When river ness is the hr name what is the hr number?`:
```sql
                SELECT "hr_no" FROM "numbers_and_names" WHERE "hr_name"='River Ness';
```
## Task
Generate a SQL query to answer the following question:
`When (river garry) is the hr name how many builts are there?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `When (river garry) is the hr name how many builts are there?`:
```sql
                SELECT COUNT("built") FROM "numbers_and_names" WHERE "hr_name"='(River Garry)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest cr number?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest cr number?`:
```sql
                SELECT MAX("cr_no") FROM "numbers_and_names";
```
## Task
Generate a SQL query to answer the following question:
`When river ness is the hr name how many builts are there?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `When river ness is the hr name how many builts are there?`:
```sql
                SELECT COUNT("built") FROM "numbers_and_names" WHERE "hr_name"='River Ness';
```
## Task
Generate a SQL query to answer the following question:
`How many opponents are at Minnesota Vikings?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "dolphins_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents are at Minnesota Vikings?`:
```sql
                SELECT MAX("opponents") FROM "schedule" WHERE "opponent"='at Minnesota Vikings';
```
## Task
Generate a SQL query to answer the following question:
`What is the date when the opponent is the New England Patriots?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "dolphins_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date when the opponent is the New England Patriots?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='New England Patriots';
```
## Task
Generate a SQL query to answer the following question:
`How many dates do the dolphins have 6 points?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "dolphins_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates do the dolphins have 6 points?`:
```sql
                SELECT "date" FROM "schedule" WHERE "dolphins_points"=6;
```
## Task
Generate a SQL query to answer the following question:
`What country does robert allenby represent?`

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

CREATE TABLE "western_open" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country does robert allenby represent?`:
```sql
                SELECT "country" FROM "western_open" WHERE "player"='Robert Allenby';
```
## Task
Generate a SQL query to answer the following question:
`What score to par won in 1998?`

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

CREATE TABLE "western_open" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score to par won in 1998?`:
```sql
                SELECT "to_par" FROM "western_open" WHERE "year"=1998;
```
## Task
Generate a SQL query to answer the following question:
`What player(s) had the score of 64-70-67-69=270?`

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

CREATE TABLE "western_open" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player(s) had the score of 64-70-67-69=270?`:
```sql
                SELECT "player" FROM "western_open" WHERE "score"='64-70-67-69=270';
```
## Task
Generate a SQL query to answer the following question:
`What players had teh score of 64-71-67-67=269?`

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

CREATE TABLE "western_open" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What players had teh score of 64-71-67-67=269?`:
```sql
                SELECT "player" FROM "western_open" WHERE "score"='64-71-67-67=269';
```
## Task
Generate a SQL query to answer the following question:
`What is the first yar that someone won with a score of 68-66-68-71=273?`

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

CREATE TABLE "western_open" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first yar that someone won with a score of 68-66-68-71=273?`:
```sql
                SELECT MIN("year") FROM "western_open" WHERE "score"='68-66-68-71=273';
```
## Task
Generate a SQL query to answer the following question:
`How many socialist have a lead of 12.6%?`

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

CREATE TABLE "116_seats_needed_for_a_majority" (
  "date_released" text,
  "polling_institute" text,
  "social_democratic" text,
  "socialist" text,
  "green_communist" text,
  "democratic_and_social_centre" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many socialist have a lead of 12.6%?`:
```sql
                SELECT COUNT("socialist") FROM "116_seats_needed_for_a_majority" WHERE "lead"='12.6%';
```
## Task
Generate a SQL query to answer the following question:
`What is every GA if coach is Bob Ferguson and T is 6?`

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

CREATE TABLE "table1_1888157_1" (
  "season" text,
  "league" text,
  "division" text,
  "gp" real,
  "w" real,
  "l" real,
  "t" real,
  "otl" real,
  "sol" real,
  "pts" real,
  "pct" text,
  "gf" real,
  "ga" real,
  "pim" real,
  "coach_es" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every GA if coach is Bob Ferguson and T is 6?`:
```sql
                SELECT "ga" FROM "table1_1888157_1" WHERE "coach_es"='Bob Ferguson' AND "t"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest SOL?`

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

CREATE TABLE "table1_1888157_1" (
  "season" text,
  "league" text,
  "division" text,
  "gp" real,
  "w" real,
  "l" real,
  "t" real,
  "otl" real,
  "sol" real,
  "pts" real,
  "pct" text,
  "gf" real,
  "ga" real,
  "pim" real,
  "coach_es" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest SOL?`:
```sql
                SELECT MIN("sol") FROM "table1_1888157_1";
```
## Task
Generate a SQL query to answer the following question:
`What is the highest GA when GF is 39?`

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

CREATE TABLE "table1_1888157_1" (
  "season" text,
  "league" text,
  "division" text,
  "gp" real,
  "w" real,
  "l" real,
  "t" real,
  "otl" real,
  "sol" real,
  "pts" real,
  "pct" text,
  "gf" real,
  "ga" real,
  "pim" real,
  "coach_es" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest GA when GF is 39?`:
```sql
                SELECT MAX("ga") FROM "table1_1888157_1" WHERE "gf"=39;
```
## Task
Generate a SQL query to answer the following question:
`What is every league for coach Jim Burton?`

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

CREATE TABLE "table1_1888157_1" (
  "season" text,
  "league" text,
  "division" text,
  "gp" real,
  "w" real,
  "l" real,
  "t" real,
  "otl" real,
  "sol" real,
  "pts" real,
  "pct" text,
  "gf" real,
  "ga" real,
  "pim" real,
  "coach_es" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every league for coach Jim Burton?`:
```sql
                SELECT "league" FROM "table1_1888157_1" WHERE "coach_es"='Jim Burton';
```
## Task
Generate a SQL query to answer the following question:
`How many different records were there in the games that ended in w 70-66?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different records were there in the games that ended in w 70-66?`:
```sql
                SELECT COUNT("record") FROM "regular_season" WHERE "score"='W 70-66';
```
## Task
Generate a SQL query to answer the following question:
`What was the record of the game in which Dydek (10) did the most high rebounds?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record of the game in which Dydek (10) did the most high rebounds?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "high_rebounds"='Dydek (10)';
```
## Task
Generate a SQL query to answer the following question:
`Who did the most high rebounds in the game where Sales (17) did the high points?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the most high rebounds in the game where Sales (17) did the high points?`:
```sql
                SELECT "high_rebounds" FROM "regular_season" WHERE "high_points"='Sales (17)';
```
## Task
Generate a SQL query to answer the following question:
`When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)?`

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

CREATE TABLE "table1_1889619_5" (
  "doctor" text,
  "season" text,
  "story_no" text,
  "serial" text,
  "number_of_episodes" text,
  "total_footage_remaining_from_missing_episodes_mm_ss" text,
  "missing_episodes_with_recovered_footage" text,
  "country_territory" text,
  "source" text,
  "format" text,
  "total_footage_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)?`:
```sql
                SELECT "total_footage_remaining_from_missing_episodes_mm_ss" FROM "table1_1889619_5" WHERE "story_no"='018' AND "source"='Private individual';
```
## Task
Generate a SQL query to answer the following question:
`When 01:18 is the  total footage remaining from missing episodes (mm:ss) and bbc is the source what is the country/territory? `

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

CREATE TABLE "table1_1889619_5" (
  "doctor" text,
  "season" text,
  "story_no" text,
  "serial" text,
  "number_of_episodes" text,
  "total_footage_remaining_from_missing_episodes_mm_ss" text,
  "missing_episodes_with_recovered_footage" text,
  "country_territory" text,
  "source" text,
  "format" text,
  "total_footage_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 01:18 is the  total footage remaining from missing episodes (mm:ss) and bbc is the source what is the country/territory? `:
```sql
                SELECT "country_territory" FROM "table1_1889619_5" WHERE "source"='BBC' AND "total_footage_remaining_from_missing_episodes_mm_ss"='01:18';
```
## Task
Generate a SQL query to answer the following question:
`When 00:21 is the total footage (mm:ss) what is the serial?`

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

CREATE TABLE "table1_1889619_5" (
  "doctor" text,
  "season" text,
  "story_no" text,
  "serial" text,
  "number_of_episodes" text,
  "total_footage_remaining_from_missing_episodes_mm_ss" text,
  "missing_episodes_with_recovered_footage" text,
  "country_territory" text,
  "source" text,
  "format" text,
  "total_footage_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 00:21 is the total footage (mm:ss) what is the serial?`:
```sql
                SELECT "serial" FROM "table1_1889619_5" WHERE "total_footage_mm_ss"='00:21';
```
## Task
Generate a SQL query to answer the following question:
`When episode 4 is the missing episode with recovered footage and the 032 is the story number what is the country/territory?`

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

CREATE TABLE "table1_1889619_5" (
  "doctor" text,
  "season" text,
  "story_no" text,
  "serial" text,
  "number_of_episodes" text,
  "total_footage_remaining_from_missing_episodes_mm_ss" text,
  "missing_episodes_with_recovered_footage" text,
  "country_territory" text,
  "source" text,
  "format" text,
  "total_footage_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `When episode 4 is the missing episode with recovered footage and the 032 is the story number what is the country/territory?`:
```sql
                SELECT "country_territory" FROM "table1_1889619_5" WHERE "story_no"='032' AND "missing_episodes_with_recovered_footage"='Episode 4';
```
## Task
Generate a SQL query to answer the following question:
`When 00:02 is the total footage (mm:ss) what is the story number?`

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

CREATE TABLE "table1_1889619_5" (
  "doctor" text,
  "season" text,
  "story_no" text,
  "serial" text,
  "number_of_episodes" text,
  "total_footage_remaining_from_missing_episodes_mm_ss" text,
  "missing_episodes_with_recovered_footage" text,
  "country_territory" text,
  "source" text,
  "format" text,
  "total_footage_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 00:02 is the total footage (mm:ss) what is the story number?`:
```sql
                SELECT "story_no" FROM "table1_1889619_5" WHERE "total_footage_mm_ss"='00:02';
```
## Task
Generate a SQL query to answer the following question:
`Name the least game for 8-3`

### 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 `Name the least game for 8-3`:
```sql
                SELECT MIN("game") FROM "regular_season" WHERE "record"='8-3';
```