cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the highest frequency mhz with the call sign w292cu?`

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

CREATE TABLE "low_power_translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest frequency mhz with the call sign w292cu?`:
```sql
                SELECT MAX("frequency_m_hz") FROM "low_power_translators" WHERE "call_sign"='w292cu';
```
## Task
Generate a SQL query to answer the following question:
`Which constructor makes the ej15 ej15b chassis?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which constructor makes the ej15 ej15b chassis?`:
```sql
                SELECT "constructor" FROM "drivers_and_constructors" WHERE "chassis"='ej15 ej15b';
```
## Task
Generate a SQL query to answer the following question:
`Which tyre is on the car driven by Pedro de la Rosa?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tyre is on the car driven by Pedro de la Rosa?`:
```sql
                SELECT "tyre" FROM "drivers_and_constructors" WHERE "driver"='pedro de la rosa';
```
## Task
Generate a SQL query to answer the following question:
`Which constructor made the car with a rb1 chassis and which is driven by David Coulthard?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which constructor made the car with a rb1 chassis and which is driven by David Coulthard?`:
```sql
                SELECT "constructor" FROM "drivers_and_constructors" WHERE "chassis"='rb1' AND "driver"='david coulthard';
```
## Task
Generate a SQL query to answer the following question:
`Which constructor manufactured the car with a c24 chassis and which is driven by Jacques Villeneuve?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which constructor manufactured the car with a c24 chassis and which is driven by Jacques Villeneuve?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "chassis"='c24' AND "driver"='jacques villeneuve';
```
## Task
Generate a SQL query to answer the following question:
`What Region is the MHCL-20004 Catalog?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Region is the MHCL-20004 Catalog?`:
```sql
                SELECT "region" FROM "release_history" WHERE "catalog"='mhcl-20004';
```
## Task
Generate a SQL query to answer the following question:
`What region is the ALCA-272 Catalog?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region is the ALCA-272 Catalog?`:
```sql
                SELECT "region" FROM "release_history" WHERE "catalog"='alca-272';
```
## Task
Generate a SQL query to answer the following question:
`What label is the ALCA-9197 Catalog?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What label is the ALCA-9197 Catalog?`:
```sql
                SELECT "label" FROM "release_history" WHERE "catalog"='alca-9197';
```
## Task
Generate a SQL query to answer the following question:
`What date is the MHCL-20004 Catalog?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date is the MHCL-20004 Catalog?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='mhcl-20004';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the Ed Remaster CD and TOCT-24365 Catalog released?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the Ed Remaster CD and TOCT-24365 Catalog released?`:
```sql
                SELECT "date" FROM "release_history" WHERE "format"='ed remaster cd' AND "catalog"='toct-24365';
```
## Task
Generate a SQL query to answer the following question:
`What identities have more than 5 DVD volumes?`

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

CREATE TABLE "season_2_1989" (
  "episode_title" text,
  "villain_s" text,
  "identity_ies" text,
  "reason_s" text,
  "original_airdate" text,
  "dvd_volume" real
);
### SQL
Given the database schema, here is the SQL query that answers `What identities have more than 5 DVD volumes?`:
```sql
                SELECT "identity_ies" FROM "season_2_1989" WHERE "dvd_volume">5;
```
## Task
Generate a SQL query to answer the following question:
`How many DVD volumes was identified by Skippy Johnson?`

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

CREATE TABLE "season_2_1989" (
  "episode_title" text,
  "villain_s" text,
  "identity_ies" text,
  "reason_s" text,
  "original_airdate" text,
  "dvd_volume" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many DVD volumes was identified by Skippy Johnson?`:
```sql
                SELECT "dvd_volume" FROM "season_2_1989" WHERE "identity_ies"='skippy johnson';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when St. Louis was the visiting team?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when St. Louis was the visiting team?`:
```sql
                SELECT "score" FROM "december" WHERE "visitor"='st. louis';
```
## Task
Generate a SQL query to answer the following question:
`What was the decision when Chicago was the visiting team?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the decision when Chicago was the visiting team?`:
```sql
                SELECT "decision" FROM "december" WHERE "visitor"='chicago';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on December 3 when Detroit was the home team and Legace took the decision?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on December 3 when Detroit was the home team and Legace took the decision?`:
```sql
                SELECT "score" FROM "december" WHERE "home"='detroit' AND "decision"='legace' AND "date"='december 3';
```
## Task
Generate a SQL query to answer the following question:
`What was the record when Minnesota was the visiting team?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when Minnesota was the visiting team?`:
```sql
                SELECT "record" FROM "december" WHERE "visitor"='minnesota';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the record with catalog ALCA-275 released?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the record with catalog ALCA-275 released?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='alca-275';
```
## Task
Generate a SQL query to answer the following question:
`What label released a record on March 25, 1984?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What label released a record on March 25, 1984?`:
```sql
                SELECT "label" FROM "release_history" WHERE "date"='march 25, 1984';
```
## Task
Generate a SQL query to answer the following question:
`What label released a record on December 19, 2001?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What label released a record on December 19, 2001?`:
```sql
                SELECT "label" FROM "release_history" WHERE "date"='december 19, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the catalog of the record released on May 27, 2009?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the catalog of the record released on May 27, 2009?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "date"='may 27, 2009';
```
## Task
Generate a SQL query to answer the following question:
`On what date was a record from Village Records with catalog VRCL-2205 released?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was a record from Village Records with catalog VRCL-2205 released?`:
```sql
                SELECT "date" FROM "release_history" WHERE "label"='village records' AND "catalog"='vrcl-2205';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest year that Yvette Alexander took office and was up for reelection after 2016?`

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

CREATE TABLE "current_members" (
  "name" text,
  "position" text,
  "party" text,
  "took_office" real,
  "up_for_reelection" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year that Yvette Alexander took office and was up for reelection after 2016?`:
```sql
                SELECT MIN("took_office") FROM "current_members" WHERE "name"='yvette alexander' AND "up_for_reelection">2016;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year a Chairman who took office after 2011 is up for reelection?`

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

CREATE TABLE "current_members" (
  "name" text,
  "position" text,
  "party" text,
  "took_office" real,
  "up_for_reelection" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year a Chairman who took office after 2011 is up for reelection?`:
```sql
                SELECT MIN("up_for_reelection") FROM "current_members" WHERE "took_office">2011 AND "position"='chairman';
```
## Task
Generate a SQL query to answer the following question:
`What year had less than 36 laps?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year had less than 36 laps?`:
```sql
                SELECT "year" FROM "indy_500_results" WHERE "laps"<36;
```
## Task
Generate a SQL query to answer the following question:
`What was the most laps with a finish of 10 and qualification of 106.185?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the most laps with a finish of 10 and qualification of 106.185?`:
```sql
                SELECT MAX("laps") FROM "indy_500_results" WHERE "finish"='10' AND "qual"='106.185';
```
## Task
Generate a SQL query to answer the following question:
`What is the most laps with a qualification of 106.185?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most laps with a qualification of 106.185?`:
```sql
                SELECT MAX("laps") FROM "indy_500_results" WHERE "qual"='106.185';
```
## Task
Generate a SQL query to answer the following question:
`In what year were laps less than 64 and the finish at 25?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year were laps less than 64 and the finish at 25?`:
```sql
                SELECT "year" FROM "indy_500_results" WHERE "laps"<64 AND "finish"='25';
```
## Task
Generate a SQL query to answer the following question:
`What was the qualification in 1932?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the qualification in 1932?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "year"='1932';
```
## Task
Generate a SQL query to answer the following question:
`What was the start with a rank of  3 in 1936?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the start with a rank of  3 in 1936?`:
```sql
                SELECT "start" FROM "indy_500_results" WHERE "rank"='3' AND "year"='1936';
```
## Task
Generate a SQL query to answer the following question:
`Which 2nd leg came after a 1st leg of 0-3?`

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

CREATE TABLE "round_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2nd leg came after a 1st leg of 0-3?`:
```sql
                SELECT "2nd_leg" FROM "round_16" WHERE "1st_leg"='0-3';
```
## Task
Generate a SQL query to answer the following question:
`For a Team 1 of Al-Merrikh, what was the aggregate?`

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

CREATE TABLE "round_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a Team 1 of Al-Merrikh, what was the aggregate?`:
```sql
                SELECT "agg" FROM "round_16" WHERE "team_1"='al-merrikh';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Team 1 for a 2nd leg of 1-4?`

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

CREATE TABLE "round_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Team 1 for a 2nd leg of 1-4?`:
```sql
                SELECT "team_1" FROM "round_16" WHERE "2nd_leg"='1-4';
```
## Task
Generate a SQL query to answer the following question:
`For an aggregate of 1-3, what was the 2nd leg?`

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

CREATE TABLE "round_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `For an aggregate of 1-3, what was the 2nd leg?`:
```sql
                SELECT "2nd_leg" FROM "round_16" WHERE "agg"='1-3';
```
## Task
Generate a SQL query to answer the following question:
`For a team 2 of Al-Faisaly, what was the 2nd leg?`

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

CREATE TABLE "round_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a team 2 of Al-Faisaly, what was the 2nd leg?`:
```sql
                SELECT "2nd_leg" FROM "round_16" WHERE "team_2"='al-faisaly';
```
## Task
Generate a SQL query to answer the following question:
`What years is the private school in upper hutt?`

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

CREATE TABLE "upper_hutt_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years is the private school in upper hutt?`:
```sql
                SELECT "years" FROM "upper_hutt_city" WHERE "area"='upper hutt' AND "authority"='private';
```
## Task
Generate a SQL query to answer the following question:
`What school with a decile of 7 is in upper hutt?`

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

CREATE TABLE "upper_hutt_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school with a decile of 7 is in upper hutt?`:
```sql
                SELECT "name" FROM "upper_hutt_city" WHERE "decile"='7' AND "area"='upper hutt';
```
## Task
Generate a SQL query to answer the following question:
`What authority is the coed school in pinehaven?`

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

CREATE TABLE "upper_hutt_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" text
);
### SQL
Given the database schema, here is the SQL query that answers `What authority is the coed school in pinehaven?`:
```sql
                SELECT "authority" FROM "upper_hutt_city" WHERE "gender"='coed' AND "area"='pinehaven';
```
## Task
Generate a SQL query to answer the following question:
`What years does plateau school serve?`

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

CREATE TABLE "upper_hutt_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years does plateau school serve?`:
```sql
                SELECT "years" FROM "upper_hutt_city" WHERE "name"='plateau school';
```
## Task
Generate a SQL query to answer the following question:
`Is Upper valley middle school public or private?`

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

CREATE TABLE "upper_hutt_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" text
);
### SQL
Given the database schema, here is the SQL query that answers `Is Upper valley middle school public or private?`:
```sql
                SELECT "authority" FROM "upper_hutt_city" WHERE "name"='upper valley middle school';
```
## Task
Generate a SQL query to answer the following question:
`What is the record on June 13?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record on June 13?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='june 13';
```
## Task
Generate a SQL query to answer the following question:
`Name the most lot number with notes of b4 bogies and diagram of 185`

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

CREATE TABLE "orders" (
  "lot_no" real,
  "diagram" real,
  "mark" text,
  "builder" text,
  "fleet_numbers" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most lot number with notes of b4 bogies and diagram of 185`:
```sql
                SELECT MAX("lot_no") FROM "orders" WHERE "notes"='b4 bogies' AND "diagram"=185;
```
## Task
Generate a SQL query to answer the following question:
`Name the fleet numbers for diagram of 186 and lot number of 30798`

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

CREATE TABLE "orders" (
  "lot_no" real,
  "diagram" real,
  "mark" text,
  "builder" text,
  "fleet_numbers" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fleet numbers for diagram of 186 and lot number of 30798`:
```sql
                SELECT "fleet_numbers" FROM "orders" WHERE "diagram"=186 AND "lot_no"=30798;
```
## Task
Generate a SQL query to answer the following question:
`What line is 24.7 km and head towards Toyohashi East?`

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

CREATE TABLE "lines" (
  "direction" text,
  "name" text,
  "japanese" text,
  "terminals" text,
  "length_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What line is 24.7 km and head towards Toyohashi East?`:
```sql
                SELECT "name" FROM "lines" WHERE "direction"='toyohashi east' AND "length_km"=24.7;
```
## Task
Generate a SQL query to answer the following question:
`What is the record on November 18?`

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

CREATE TABLE "schedule" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record on November 18?`:
```sql
                SELECT "record" FROM "schedule" WHERE "date"='november 18';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when attendance is more than 19,658 and Los Angeles Rams are the visiting team?`

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

CREATE TABLE "schedule" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when attendance is more than 19,658 and Los Angeles Rams are the visiting team?`:
```sql
                SELECT "record" FROM "schedule" WHERE "attendance">'19,658' AND "visitor"='los angeles rams';
```
## Task
Generate a SQL query to answer the following question:
`What was the average attendance when Chicago Bears were the home team?`

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

CREATE TABLE "schedule" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average attendance when Chicago Bears were the home team?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "home"='chicago bears';
```
## Task
Generate a SQL query to answer the following question:
`What is the score when the record is 5-4-1?`

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

CREATE TABLE "schedule" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when the record is 5-4-1?`:
```sql
                SELECT "score" FROM "schedule" WHERE "record"='5-4-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number in attendance when the record is 1-1-0?`

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

CREATE TABLE "schedule" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number in attendance when the record is 1-1-0?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "record"='1-1-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the GDP of the nation with 56,210,000 people?`

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

CREATE TABLE "1973_enlargement" (
  "member_countries" text,
  "population" text,
  "area_km" text,
  "gdp_billion_us" text,
  "gdp_per_capita_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GDP of the nation with 56,210,000 people?`:
```sql
                SELECT "gdp_per_capita_us" FROM "1973_enlargement" WHERE "population"='56,210,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the area of the nation with GDP per capita (US$) of 11,929?`

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

CREATE TABLE "1973_enlargement" (
  "member_countries" text,
  "population" text,
  "area_km" text,
  "gdp_billion_us" text,
  "gdp_per_capita_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area of the nation with GDP per capita (US$) of 11,929?`:
```sql
                SELECT "area_km" FROM "1973_enlargement" WHERE "gdp_per_capita_us"='11,929';
```
## Task
Generate a SQL query to answer the following question:
`What is the population of the nation that has a GDP per capita (US$) of 11,929?`

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

CREATE TABLE "1973_enlargement" (
  "member_countries" text,
  "population" text,
  "area_km" text,
  "gdp_billion_us" text,
  "gdp_per_capita_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of the nation that has a GDP per capita (US$) of 11,929?`:
```sql
                SELECT "population" FROM "1973_enlargement" WHERE "gdp_per_capita_us"='11,929';
```
## Task
Generate a SQL query to answer the following question:
`What is the Population of the nation that has an Area (km²) of 70,273?`

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

CREATE TABLE "1973_enlargement" (
  "member_countries" text,
  "population" text,
  "area_km" text,
  "gdp_billion_us" text,
  "gdp_per_capita_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Population of the nation that has an Area (km²) of 70,273?`:
```sql
                SELECT "population" FROM "1973_enlargement" WHERE "area_km"='70,273';
```
## Task
Generate a SQL query to answer the following question:
`What is the Population of the nation that has a Member countries consisting of existing members (1973)?`

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

CREATE TABLE "1973_enlargement" (
  "member_countries" text,
  "population" text,
  "area_km" text,
  "gdp_billion_us" text,
  "gdp_per_capita_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Population of the nation that has a Member countries consisting of existing members (1973)?`:
```sql
                SELECT "population" FROM "1973_enlargement" WHERE "member_countries"='existing members (1973)';
```
## Task
Generate a SQL query to answer the following question:
`What television network, founded in 2002, has a community type of network?`

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

CREATE TABLE "table_of_broadcast_networks" (
  "television_network" text,
  "founded" text,
  "pct_of_venezuelan_households_reached" text,
  "num_of_households_viewable" text,
  "type_of_network" text,
  "num_of_full_power_affiliates" text,
  "num_of_low_power_class_a_affiliates_transmitters" text
);
### SQL
Given the database schema, here is the SQL query that answers `What television network, founded in 2002, has a community type of network?`:
```sql
                SELECT "television_network" FROM "table_of_broadcast_networks" WHERE "type_of_network"='community' AND "founded"='2002';
```
## Task
Generate a SQL query to answer the following question:
`At what stadium did the Green Bay Packers play an away game?`

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

CREATE TABLE "1992" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what stadium did the Green Bay Packers play an away game?`:
```sql
                SELECT "stadium" FROM "1992" WHERE "visiting_team"='green bay packers';
```
## Task
Generate a SQL query to answer the following question:
`At what stadium was the final score 31-28?`

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

CREATE TABLE "1992" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what stadium was the final score 31-28?`:
```sql
                SELECT "stadium" FROM "1992" WHERE "final_score"='31-28';
```
## Task
Generate a SQL query to answer the following question:
`Which team hosted the Kansas City Chiefs?`

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

CREATE TABLE "1992" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team hosted the Kansas City Chiefs?`:
```sql
                SELECT "host_team" FROM "1992" WHERE "visiting_team"='kansas city chiefs';
```
## Task
Generate a SQL query to answer the following question:
`What team hosted at Tampa Stadium?`

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

CREATE TABLE "1992" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team hosted at Tampa Stadium?`:
```sql
                SELECT "host_team" FROM "1992" WHERE "stadium"='tampa stadium';
```
## Task
Generate a SQL query to answer the following question:
`With a record of 43-26, what was the score that game?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a record of 43-26, what was the score that game?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='43-26';
```
## Task
Generate a SQL query to answer the following question:
`On June 8, what's the loss when the Blue Jays played the Tigers?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On June 8, what's the loss when the Blue Jays played the Tigers?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "opponent"='tigers' AND "date"='june 8';
```
## Task
Generate a SQL query to answer the following question:
`What date was the record 38-22?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the record 38-22?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='38-22';
```
## Task
Generate a SQL query to answer the following question:
`The game that had a record of 39-25, what was the score?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `The game that had a record of 39-25, what was the score?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='39-25';
```
## Task
Generate a SQL query to answer the following question:
`Which runner-up has a 10 strokes margin of victory?`

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

CREATE TABLE "epd_tour_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which runner-up has a 10 strokes margin of victory?`:
```sql
                SELECT "runner_up" FROM "epd_tour_6" WHERE "margin_of_victory"='10 strokes';
```
## Task
Generate a SQL query to answer the following question:
`Which of the events only lasted no more than 0:55?`

### 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 `Which of the events only lasted no more than 0:55?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='0:55';
```
## Task
Generate a SQL query to answer the following question:
`Which event only lasted for 3 rounds against Fernando Terere?`

### 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 `Which event only lasted for 3 rounds against Fernando Terere?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"=3 AND "opponent"='fernando terere';
```
## Task
Generate a SQL query to answer the following question:
`What is the Primary Sponsor for the team owned by Randy Humphrey?`

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

CREATE TABLE "part_time_teams" (
  "team" text,
  "car_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "owner_s" text,
  "crew_chief" text,
  "rounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Primary Sponsor for the team owned by Randy Humphrey?`:
```sql
                SELECT "primary_sponsor_s" FROM "part_time_teams" WHERE "owner_s"='randy humphrey';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Driver on Bob Keselowski's team?`

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

CREATE TABLE "part_time_teams" (
  "team" text,
  "car_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "owner_s" text,
  "crew_chief" text,
  "rounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Driver on Bob Keselowski's team?`:
```sql
                SELECT "driver_s" FROM "part_time_teams" WHERE "owner_s"='bob keselowski';
```
## Task
Generate a SQL query to answer the following question:
`Walter Giles is Crew Chief of what team?`

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

CREATE TABLE "part_time_teams" (
  "team" text,
  "car_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "owner_s" text,
  "crew_chief" text,
  "rounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `Walter Giles is Crew Chief of what team?`:
```sql
                SELECT "team" FROM "part_time_teams" WHERE "crew_chief"='walter giles';
```
## Task
Generate a SQL query to answer the following question:
`What club does the stadium stc krymteplitsia belong to?`

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

CREATE TABLE "stadia" (
  "rank" real,
  "stadium" text,
  "capacity" real,
  "club" text,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club does the stadium stc krymteplitsia belong to?`:
```sql
                SELECT "club" FROM "stadia" WHERE "stadium"='stc krymteplitsia';
```
## Task
Generate a SQL query to answer the following question:
`What was Tony Bettenhausen's qualifying time in 1947?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Tony Bettenhausen's qualifying time in 1947?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "year"='1947';
```
## Task
Generate a SQL query to answer the following question:
`Which year did Tony Bettenhausen complete more than 200 laps?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year did Tony Bettenhausen complete more than 200 laps?`:
```sql
                SELECT "year" FROM "indy_500_results" WHERE "laps">200;
```
## Task
Generate a SQL query to answer the following question:
`What was the value in 2006 when 2003 was not held and 2012 was A?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value in 2006 when 2003 was not held and 2012 was A?`:
```sql
                SELECT "2006" FROM "singles_performance_timeline" WHERE "2003"='not held' AND "2012"='a';
```
## Task
Generate a SQL query to answer the following question:
`What was the 2008 value when 2012 was Grand Slam Tournaments?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2008 value when 2012 was Grand Slam Tournaments?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What was the value in 2008 when 2012 was 1R, 2010 was A, and 2005 was A?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value in 2008 when 2012 was 1R, 2010 was A, and 2005 was A?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='1r' AND "2010"='a' AND "2005"='a';
```
## Task
Generate a SQL query to answer the following question:
`What was the value in 2003 when 2006 was WTA Premier Mandatory Tournaments?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value in 2003 when 2006 was WTA Premier Mandatory Tournaments?`:
```sql
                SELECT "2003" FROM "singles_performance_timeline" WHERE "2006"='wta premier mandatory tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What was the value in 2009 when 2005 was A for the Australian Open?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value in 2009 when 2005 was A for the Australian Open?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2005"='a' AND "tournament"='australian open';
```
## Task
Generate a SQL query to answer the following question:
`What was the value in 2012 when 2002 was Q1 and 2010 was 1R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value in 2012 when 2002 was Q1 and 2010 was 1R?`:
```sql
                SELECT "2012" FROM "singles_performance_timeline" WHERE "2002"='q1' AND "2010"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What type has a GNIS ID of 1139805`

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

CREATE TABLE "see_also" (
  "name" text,
  "type" text,
  "elevation" text,
  "usgs_map" text,
  "gnis_id" real
);
### SQL
Given the database schema, here is the SQL query that answers `What type has a GNIS ID of 1139805`:
```sql
                SELECT "type" FROM "see_also" WHERE "gnis_id"=1139805;
```
## Task
Generate a SQL query to answer the following question:
`Which name has a USGS Map of clear lake?`

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

CREATE TABLE "see_also" (
  "name" text,
  "type" text,
  "elevation" text,
  "usgs_map" text,
  "gnis_id" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has a USGS Map of clear lake?`:
```sql
                SELECT "name" FROM "see_also" WHERE "usgs_map"='clear lake';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of Norris?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of Norris?`:
```sql
                SELECT "status" FROM "out" WHERE "name"='norris';
```
## Task
Generate a SQL query to answer the following question:
`What is the source for Laird?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the source for Laird?`:
```sql
                SELECT "source" FROM "out" WHERE "name"='laird';
```
## Task
Generate a SQL query to answer the following question:
`What 1958 CIE is class s?`

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

CREATE TABLE "great_northern_railway" (
  "class" text,
  "type" text,
  "fleet_numbers" text,
  "quantity_made" real,
  "date_made" text,
  "1958_ci" text,
  "1958_uta" text,
  "date_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1958 CIE is class s?`:
```sql
                SELECT "1958_ci" FROM "great_northern_railway" WHERE "class"='s';
```