cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?`:
```sql
                SELECT AVG("loss") FROM "rushing" WHERE "long">12 AND "name"='opponents' AND "gain">1751;
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner/2nd place finisher in the Caulfield Guineas?`

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

CREATE TABLE "2001_02_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "time" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner/2nd place finisher in the Caulfield Guineas?`:
```sql
                SELECT "winner_2nd" FROM "2001_02_season_as_a_three_year_old" WHERE "race"='caulfield guineas';
```
## Task
Generate a SQL query to answer the following question:
`Which jockey had a group of G3?`

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

CREATE TABLE "2001_02_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "time" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which jockey had a group of G3?`:
```sql
                SELECT "jockey" FROM "2001_02_season_as_a_three_year_old" WHERE "group"='g3';
```
## Task
Generate a SQL query to answer the following question:
`What was the time for the G2 group at the Hobartville Stakes?`

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

CREATE TABLE "2001_02_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "time" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for the G2 group at the Hobartville Stakes?`:
```sql
                SELECT "time" FROM "2001_02_season_as_a_three_year_old" WHERE "group"='g2' AND "race"='hobartville stakes';
```
## Task
Generate a SQL query to answer the following question:
`Which airport has perth as the city?`

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

CREATE TABLE "destinations" (
  "city" text,
  "state_territory" text,
  "iata" text,
  "icao" text,
  "airport" text,
  "begin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which airport has perth as the city?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "city"='perth';
```
## Task
Generate a SQL query to answer the following question:
`Which city has tasmania as the state/territory and a ICAO of ymhb?`

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

CREATE TABLE "destinations" (
  "city" text,
  "state_territory" text,
  "iata" text,
  "icao" text,
  "airport" text,
  "begin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has tasmania as the state/territory and a ICAO of ymhb?`:
```sql
                SELECT "city" FROM "destinations" WHERE "state_territory"='tasmania' AND "icao"='ymhb';
```
## Task
Generate a SQL query to answer the following question:
`Which airport has an ICAO of ybcg?`

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

CREATE TABLE "destinations" (
  "city" text,
  "state_territory" text,
  "iata" text,
  "icao" text,
  "airport" text,
  "begin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which airport has an ICAO of ybcg?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "icao"='ybcg';
```
## Task
Generate a SQL query to answer the following question:
`What is the IATA that has new south wales as the state/territory beginning on july 2009?`

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

CREATE TABLE "destinations" (
  "city" text,
  "state_territory" text,
  "iata" text,
  "icao" text,
  "airport" text,
  "begin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IATA that has new south wales as the state/territory beginning on july 2009?`:
```sql
                SELECT "iata" FROM "destinations" WHERE "state_territory"='new south wales' AND "begin"='july 2009';
```
## Task
Generate a SQL query to answer the following question:
`What IATA has queensland as the state/territory and an ICAO of ybrk?`

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

CREATE TABLE "destinations" (
  "city" text,
  "state_territory" text,
  "iata" text,
  "icao" text,
  "airport" text,
  "begin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What IATA has queensland as the state/territory and an ICAO of ybrk?`:
```sql
                SELECT "iata" FROM "destinations" WHERE "state_territory"='queensland' AND "icao"='ybrk';
```
## Task
Generate a SQL query to answer the following question:
`What begin has victoria as the state/territory and a ICA0 of ymml?`

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

CREATE TABLE "destinations" (
  "city" text,
  "state_territory" text,
  "iata" text,
  "icao" text,
  "airport" text,
  "begin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What begin has victoria as the state/territory and a ICA0 of ymml?`:
```sql
                SELECT "begin" FROM "destinations" WHERE "state_territory"='victoria' AND "icao"='ymml';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visitor on March 27?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visitor on March 27?`:
```sql
                SELECT "visitor" FROM "march" WHERE "date"='march 27';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on March 14?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on March 14?`:
```sql
                SELECT "record" FROM "march" WHERE "date"='march 14';
```
## Task
Generate a SQL query to answer the following question:
`What format is at frequency 99.5 FM?`

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

CREATE TABLE "fm_stations" (
  "frequency" text,
  "name" text,
  "format" text,
  "call_sign" text,
  "covered_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What format is at frequency 99.5 FM?`:
```sql
                SELECT "format" FROM "fm_stations" WHERE "frequency"='99.5 fm';
```
## Task
Generate a SQL query to answer the following question:
`What format has the call sign DZFE?`

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

CREATE TABLE "fm_stations" (
  "frequency" text,
  "name" text,
  "format" text,
  "call_sign" text,
  "covered_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What format has the call sign DZFE?`:
```sql
                SELECT "format" FROM "fm_stations" WHERE "call_sign"='dzfe';
```
## Task
Generate a SQL query to answer the following question:
`What covered location has a frequency of 90.7 FM`

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

CREATE TABLE "fm_stations" (
  "frequency" text,
  "name" text,
  "format" text,
  "call_sign" text,
  "covered_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What covered location has a frequency of 90.7 FM`:
```sql
                SELECT "covered_location" FROM "fm_stations" WHERE "frequency"='90.7 fm';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of 104.3 business radio?`

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

CREATE TABLE "fm_stations" (
  "frequency" text,
  "name" text,
  "format" text,
  "call_sign" text,
  "covered_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of 104.3 business radio?`:
```sql
                SELECT "frequency" FROM "fm_stations" WHERE "name"='104.3 business radio';
```
## Task
Generate a SQL query to answer the following question:
`What name has the call sign DWYS?`

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

CREATE TABLE "fm_stations" (
  "frequency" text,
  "name" text,
  "format" text,
  "call_sign" text,
  "covered_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has the call sign DWYS?`:
```sql
                SELECT "name" FROM "fm_stations" WHERE "call_sign"='dwys';
```
## Task
Generate a SQL query to answer the following question:
`Who has a DCSF number of 3373?`

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

CREATE TABLE "villages" (
  "name" text,
  "faith" text,
  "type" text,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a DCSF number of 3373?`:
```sql
                SELECT "name" FROM "villages" WHERE "dcsf_number"=3373;
```
## Task
Generate a SQL query to answer the following question:
`What is the average primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335?`

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

CREATE TABLE "villages" (
  "name" text,
  "faith" text,
  "type" text,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335?`:
```sql
                SELECT AVG("intake") FROM "villages" WHERE "type"='primary' AND "ofsted_number"=117433 AND "dcsf_number">3335;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?`

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

CREATE TABLE "villages" (
  "name" text,
  "faith" text,
  "type" text,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?`:
```sql
                SELECT MIN("ofsted_number") FROM "villages" WHERE "type"='primary' AND "faith"='ce' AND "intake"=30 AND "dcsf_number"<3349;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Opponent that has the Result of w 37-14?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Opponent that has the Result of w 37-14?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "result"='w 37-14';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Opponent that has the Date of october 11, 1953?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Opponent that has the Date of october 11, 1953?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='october 11, 1953';
```
## Task
Generate a SQL query to answer the following question:
`What year was the West Coast League established than the championships are greater than 0?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "established" real,
  "championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the West Coast League established than the championships are greater than 0?`:
```sql
                SELECT "established" FROM "professional_sports" WHERE "championships">0 AND "league"='west coast league';
```
## Task
Generate a SQL query to answer the following question:
`During the Apple Bowl having 0 championships, what was the established year?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "established" real,
  "championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `During the Apple Bowl having 0 championships, what was the established year?`:
```sql
                SELECT MAX("established") FROM "professional_sports" WHERE "championships"=0 AND "venue"='apple bowl';
```
## Task
Generate a SQL query to answer the following question:
`What sport happened at Wildcat Stadium?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "established" real,
  "championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What sport happened at Wildcat Stadium?`:
```sql
                SELECT "sport" FROM "professional_sports" WHERE "venue"='wildcat stadium';
```
## Task
Generate a SQL query to answer the following question:
`How many championships does Evergreen Premier League have?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "established" real,
  "championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many championships does Evergreen Premier League have?`:
```sql
                SELECT MAX("championships") FROM "professional_sports" WHERE "league"='evergreen premier league';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Round larger than 10, and a Name of shawn mccarthy?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Round larger than 10, and a Name of shawn mccarthy?`:
```sql
                SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "round">10 AND "name"='shawn mccarthy';
```
## Task
Generate a SQL query to answer the following question:
`How many Pick #s have a Name of tory epps, and a Round larger than 8?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Pick #s have a Name of tory epps, and a Round larger than 8?`:
```sql
                SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='tory epps' AND "round">8;
```
## Task
Generate a SQL query to answer the following question:
`Which team was the visitor with a record of 5-2-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 `Which team was the visitor with a record of 5-2-0?`:
```sql
                SELECT "visitor" FROM "schedule" WHERE "record"='5-2-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the November 3 game?`

### 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 for the November 3 game?`:
```sql
                SELECT "score" FROM "schedule" WHERE "date"='november 3';
```
## Task
Generate a SQL query to answer the following question:
`What percent of others did ogm/news count when MARTIN had 9%?`

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

CREATE TABLE "opinion_polls" (
  "source" text,
  "date" text,
  "martin" text,
  "gr_ne" text,
  "others" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percent of others did ogm/news count when MARTIN had 9%?`:
```sql
                SELECT "others" FROM "opinion_polls" WHERE "martin"='9%' AND "source"='ogm/news';
```
## Task
Generate a SQL query to answer the following question:
`What is the Undecided the others was 4%?`

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

CREATE TABLE "opinion_polls" (
  "source" text,
  "date" text,
  "martin" text,
  "gr_ne" text,
  "others" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Undecided the others was 4%?`:
```sql
                SELECT "undecided" FROM "opinion_polls" WHERE "others"='4%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Undecided on 2009-05-24?`

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

CREATE TABLE "opinion_polls" (
  "source" text,
  "date" text,
  "martin" text,
  "gr_ne" text,
  "others" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Undecided on 2009-05-24?`:
```sql
                SELECT "undecided" FROM "opinion_polls" WHERE "date"='2009-05-24';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date that has MARTIN of 7–9% and no Undecided?`

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

CREATE TABLE "opinion_polls" (
  "source" text,
  "date" text,
  "martin" text,
  "gr_ne" text,
  "others" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date that has MARTIN of 7–9% and no Undecided?`:
```sql
                SELECT "date" FROM "opinion_polls" WHERE "undecided"='–' AND "martin"='7–9%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date when MARTIN had 8%?`

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

CREATE TABLE "opinion_polls" (
  "source" text,
  "date" text,
  "martin" text,
  "gr_ne" text,
  "others" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date when MARTIN had 8%?`:
```sql
                SELECT "date" FROM "opinion_polls" WHERE "martin"='8%';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Game smaller than 3, and a Date of october 31?`

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

CREATE TABLE "summary" (
  "game" real,
  "date" text,
  "score" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Game smaller than 3, and a Date of october 31?`:
```sql
                SELECT COUNT("attendance") FROM "summary" WHERE "game"<3 AND "date"='october 31';
```
## Task
Generate a SQL query to answer the following question:
`What is rank of player Charles Eady and a Bowling of 12/63?`

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

CREATE TABLE "best_figures_in_a_match" (
  "rank" text,
  "bowling" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is rank of player Charles Eady and a Bowling of 12/63?`:
```sql
                SELECT "rank" FROM "best_figures_in_a_match" WHERE "player"='charles eady' AND "bowling"='12/63';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Opponent partnering with Jordan Kerr, on a hard surface that was the winner?`

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

CREATE TABLE "doubles_37_17_20" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partnering" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Opponent partnering with Jordan Kerr, on a hard surface that was the winner?`:
```sql
                SELECT "opponent" FROM "doubles_37_17_20" WHERE "surface"='hard' AND "outcome"='winner' AND "partnering"='jordan kerr';
```
## Task
Generate a SQL query to answer the following question:
`What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT?`

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

CREATE TABLE "engines" (
  "year" real,
  "trim" text,
  "engine" text,
  "power" text,
  "torque" text,
  "epa_2008_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT?`:
```sql
                SELECT AVG("year") FROM "engines" WHERE "power"='bhp (kw)' AND "trim"='ls/2lt';
```
## Task
Generate a SQL query to answer the following question:
`Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?`

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

CREATE TABLE "engines" (
  "year" real,
  "trim" text,
  "engine" text,
  "power" text,
  "torque" text,
  "epa_2008_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?`:
```sql
                SELECT "engine" FROM "engines" WHERE "year">2006 AND "power"='bhp (kw)';
```
## Task
Generate a SQL query to answer the following question:
`What Torque has a Power of HP (KW)?`

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

CREATE TABLE "engines" (
  "year" real,
  "trim" text,
  "engine" text,
  "power" text,
  "torque" text,
  "epa_2008_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Torque has a Power of HP (KW)?`:
```sql
                SELECT "torque" FROM "engines" WHERE "power"='hp (kw)';
```
## Task
Generate a SQL query to answer the following question:
`What's the Year average that's got Trim of LS/LT and Power of HP (KW)?`

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

CREATE TABLE "engines" (
  "year" real,
  "trim" text,
  "engine" text,
  "power" text,
  "torque" text,
  "epa_2008_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Year average that's got Trim of LS/LT and Power of HP (KW)?`:
```sql
                SELECT AVG("year") FROM "engines" WHERE "trim"='ls/lt' AND "power"='hp (kw)';
```
## Task
Generate a SQL query to answer the following question:
`Name the college with overall of 17`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college with overall of 17`:
```sql
                SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "overall"=17;
```
## Task
Generate a SQL query to answer the following question:
`Name the least overall for tony baker`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least overall for tony baker`:
```sql
                SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "name"='tony baker';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team when Winnipeg was the home team?`

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

CREATE TABLE "regular_season" (
  "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 `Who was the visiting team when Winnipeg was the home team?`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "home"='winnipeg';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with a decision of Peeters and a record of 29–3–11?`

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

CREATE TABLE "regular_season" (
  "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 of the game with a decision of Peeters and a record of 29–3–11?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "decision"='peeters' AND "record"='29–3–11';
```
## Task
Generate a SQL query to answer the following question:
`What is the Label of Catalogue # HVNLP26CD from United Kingdom?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Label of Catalogue # HVNLP26CD from United Kingdom?`:
```sql
                SELECT "label" FROM "release_history" WHERE "country"='united kingdom' AND "catalogue_num"='hvnlp26cd';
```
## Task
Generate a SQL query to answer the following question:
`What Country is Catalogue # ASW 50248 (724385024825) from?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Country is Catalogue # ASW 50248 (724385024825) from?`:
```sql
                SELECT "country" FROM "release_history" WHERE "catalogue_num"='asw 50248 (724385024825)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winning team of the South Pacific Trophy?`

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

CREATE TABLE "races" (
  "round" text,
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_car" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winning team of the South Pacific Trophy?`:
```sql
                SELECT "winning_team" FROM "races" WHERE "name"='south pacific trophy';
```
## Task
Generate a SQL query to answer the following question:
`Loss of gonzález (0–3) had what attendance?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Loss of gonzález (0–3) had what attendance?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "loss"='gonzález (0–3)';
```
## Task
Generate a SQL query to answer the following question:
`Record of 92–70 had what date?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Record of 92–70 had what date?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='92–70';
```
## Task
Generate a SQL query to answer the following question:
`Loss of kendrick (11–8) had what record?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Loss of kendrick (11–8) had what record?`:
```sql
                SELECT "record" FROM "game_log" WHERE "loss"='kendrick (11–8)';
```
## Task
Generate a SQL query to answer the following question:
`Date of september 28 had what record?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of september 28 had what record?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='september 28';
```
## Task
Generate a SQL query to answer the following question:
`Attendance of 23,150 had what opponent?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Attendance of 23,150 had what opponent?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "attendance"='23,150';
```
## Task
Generate a SQL query to answer the following question:
`Attendance of 36,796 had what 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,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Attendance of 36,796 had what score?`:
```sql
                SELECT "score" FROM "game_log" WHERE "attendance"='36,796';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Long for derrick locke?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Long for derrick locke?`:
```sql
                SELECT SUM("long") FROM "rushing" WHERE "name"='derrick locke';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Loss with Gain larger than 319 for derrick locke?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Loss with Gain larger than 319 for derrick locke?`:
```sql
                SELECT MIN("loss") FROM "rushing" WHERE "name"='derrick locke' AND "gain">319;
```
## Task
Generate a SQL query to answer the following question:
`Head Coach of wojciech kamiński is what club?`

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

CREATE TABLE "overview" (
  "club" text,
  "sport" text,
  "founded" real,
  "league" text,
  "venue" text,
  "head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Head Coach of wojciech kamiński is what club?`:
```sql
                SELECT "club" FROM "overview" WHERE "head_coach"='wojciech kamiński';
```
## Task
Generate a SQL query to answer the following question:
`Sport of football, and a Venue of stadion polonii is what league?`

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

CREATE TABLE "overview" (
  "club" text,
  "sport" text,
  "founded" real,
  "league" text,
  "venue" text,
  "head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Sport of football, and a Venue of stadion polonii is what league?`:
```sql
                SELECT "league" FROM "overview" WHERE "sport"='football' AND "venue"='stadion polonii';
```
## Task
Generate a SQL query to answer the following question:
`Sport of gaelic football and hurling is what league?`

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

CREATE TABLE "overview" (
  "club" text,
  "sport" text,
  "founded" real,
  "league" text,
  "venue" text,
  "head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Sport of gaelic football and hurling is what league?`:
```sql
                SELECT "league" FROM "overview" WHERE "sport"='gaelic football and hurling';
```
## Task
Generate a SQL query to answer the following question:
`Venue of Pepsi arena involved what club?`

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

CREATE TABLE "overview" (
  "club" text,
  "sport" text,
  "founded" real,
  "league" text,
  "venue" text,
  "head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Venue of Pepsi arena involved what club?`:
```sql
                SELECT "club" FROM "overview" WHERE "venue"='pepsi arena';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest earnings for Tom watson who had a ranking larger than 2?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest earnings for Tom watson who had a ranking larger than 2?`:
```sql
                SELECT MAX("earnings") FROM "leaders" WHERE "player"='tom watson' AND "rank">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank for the player who earns $4,263,133?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank for the player who earns $4,263,133?`:
```sql
                SELECT MAX("rank") FROM "leaders" WHERE "earnings"='4,263,133';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of wins for the player with a rank larger than 3 and earnings of $3,707,586?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of wins for the player with a rank larger than 3 and earnings of $3,707,586?`:
```sql
                SELECT AVG("wins") FROM "leaders" WHERE "rank">3 AND "earnings"='3,707,586';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins for Tom Watson who earns less than $4,974,845?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of wins for Tom Watson who earns less than $4,974,845?`:
```sql
                SELECT MAX("wins") FROM "leaders" WHERE "player"='tom watson' AND "earnings"<'4,974,845';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest earnings for curtis strange?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest earnings for curtis strange?`:
```sql
                SELECT MAX("earnings") FROM "leaders" WHERE "player"='curtis strange';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year with an average start smaller than 6.3 and fewer than 0 wins?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year with an average start smaller than 6.3 and fewer than 0 wins?`:
```sql
                SELECT AVG("year") FROM "nascar_nationwide_series" WHERE "avg_start"<6.3 AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Second has a Skip of barbora vojtusova?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Second has a Skip of barbora vojtusova?`:
```sql
                SELECT "second" FROM "group_b2" WHERE "skip"='barbora vojtusova';
```
## Task
Generate a SQL query to answer the following question:
`Which Skip did marju velga lead?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Skip did marju velga lead?`:
```sql
                SELECT "skip" FROM "group_b2" WHERE "lead"='marju velga';
```
## Task
Generate a SQL query to answer the following question:
`Which Lead has a Second of katrin kuusk?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead has a Second of katrin kuusk?`:
```sql
                SELECT "lead" FROM "group_b2" WHERE "second"='katrin kuusk';
```
## Task
Generate a SQL query to answer the following question:
`Which Third has a Skip of ellen vogt?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Third has a Skip of ellen vogt?`:
```sql
                SELECT "third" FROM "group_b2" WHERE "skip"='ellen vogt';
```
## Task
Generate a SQL query to answer the following question:
`Which Third has a Second of agnieszka ogrodniczek?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Third has a Second of agnieszka ogrodniczek?`:
```sql
                SELECT "third" FROM "group_b2" WHERE "second"='agnieszka ogrodniczek';
```
## Task
Generate a SQL query to answer the following question:
`What is Spain's skip?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Spain's skip?`:
```sql
                SELECT "skip" FROM "group_b2" WHERE "nation"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What is the Per capita income associated with over 116,716,292 households and a Median household income of $42,706?`

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

CREATE TABLE "vermont_counties_ranked_by_per_capita_in" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Per capita income associated with over 116,716,292 households and a Median household income of $42,706?`:
```sql
                SELECT "per_capita_income" FROM "vermont_counties_ranked_by_per_capita_in" WHERE "number_of_households">'116,716,292' AND "median_household_income"='$42,706';
```
## Task
Generate a SQL query to answer the following question:
`What is the Per capita income associated with a Median household income of $55,800?`

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

CREATE TABLE "vermont_counties_ranked_by_per_capita_in" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Per capita income associated with a Median household income of $55,800?`:
```sql
                SELECT "per_capita_income" FROM "vermont_counties_ranked_by_per_capita_in" WHERE "median_household_income"='$55,800';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory at the Texas International Open?`

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

CREATE TABLE "pga_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory at the Texas International Open?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_6" WHERE "tournament"='texas international open';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory in the tournament with a winning score of −3 (74-68-72-71=285)?`

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

CREATE TABLE "pga_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory in the tournament with a winning score of −3 (74-68-72-71=285)?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_6" WHERE "winning_score"='−3 (74-68-72-71=285)';
```
## Task
Generate a SQL query to answer the following question:
`Which Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "cmp_att_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13?`:
```sql
                SELECT SUM("avg_g") FROM "passing" WHERE "effic">129.73 AND "cmp_att_int"='333-500-13';
```
## Task
Generate a SQL query to answer the following question:
`Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "cmp_att_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13?`:
```sql
                SELECT MAX("effic") FROM "passing" WHERE "avg_g"<305.6 AND "gp_gs"='13-13';
```
## Task
Generate a SQL query to answer the following question:
`Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "cmp_att_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73?`:
```sql
                SELECT SUM("avg_g") FROM "passing" WHERE "name"='opponents' AND "effic"<129.73;
```
## Task
Generate a SQL query to answer the following question:
`Which Cmp-Att-Int has a GP-GS of 3-0?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "cmp_att_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Cmp-Att-Int has a GP-GS of 3-0?`:
```sql
                SELECT "cmp_att_int" FROM "passing" WHERE "gp_gs"='3-0';
```