cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s?`:
```sql
                SELECT SUM("events") FROM "summary" WHERE "cuts_made">12 AND "top_5">2 AND "top_10">11;
```
## Task
Generate a SQL query to answer the following question:
`How many total wins are associated with events with 1 top-10?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total wins are associated with events with 1 top-10?`:
```sql
                SELECT SUM("wins") FROM "summary" WHERE "top_10"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s?`:
```sql
                SELECT AVG("cuts_made") FROM "summary" WHERE "top_10"=11 AND "wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`What week did they have a bye?`

### 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,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week did they have a bye?`:
```sql
                SELECT "week" FROM "schedule" WHERE "date"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What tournament in 2006 had a score of 0-0?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" 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 tournament in 2006 had a score of 0-0?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2006"='0-0';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total?`

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

CREATE TABLE "michigan_63_oberlin_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total?`:
```sql
                SELECT MAX("extra_points") FROM "michigan_63_oberlin_0" WHERE "player"='albert herrnstein' AND "points">15;
```
## Task
Generate a SQL query to answer the following question:
`How many touchdowns were scored by William Cole?`

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

CREATE TABLE "michigan_63_oberlin_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns were scored by William Cole?`:
```sql
                SELECT "touchdowns" FROM "michigan_63_oberlin_0" WHERE "player"='william cole';
```
## Task
Generate a SQL query to answer the following question:
`For the game with 26,236 attendance, what was the 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 `For the game with 26,236 attendance, what was the record?`:
```sql
                SELECT "record" FROM "game_log" WHERE "attendance"='26,236';
```
## Task
Generate a SQL query to answer the following question:
`What's the record for the game with an attendance of 49,222?`

### 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 `What's the record for the game with an attendance of 49,222?`:
```sql
                SELECT "record" FROM "game_log" WHERE "attendance"='49,222';
```
## Task
Generate a SQL query to answer the following question:
`Who had the most rebounds and how many did he have during the game on June 11?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most rebounds and how many did he have during the game on June 11?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "date"='june 11';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer and how many did he score for the game on June 13?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer and how many did he score for the game on June 13?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "date"='june 13';
```
## Task
Generate a SQL query to answer the following question:
`What College/Junior/Club Team has Pick 50 before Round 8?`

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

CREATE TABLE "nhl_amateur_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What College/Junior/Club Team has Pick 50 before Round 8?`:
```sql
                SELECT "college_junior_club_team" FROM "nhl_amateur_draft" WHERE "round"<8 AND "pick"=50;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest overall prior to 1996 with a slalom of 39?`

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

CREATE TABLE "season_standings" (
  "season" real,
  "overall" real,
  "slalom" text,
  "giant_slalom" real,
  "super_g" real,
  "downhill" text,
  "combined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest overall prior to 1996 with a slalom of 39?`:
```sql
                SELECT MAX("overall") FROM "season_standings" WHERE "slalom"='39' AND "season"<1996;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall score prior to 1992 with a downhill score of 1?`

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

CREATE TABLE "season_standings" (
  "season" real,
  "overall" real,
  "slalom" text,
  "giant_slalom" real,
  "super_g" real,
  "downhill" text,
  "combined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall score prior to 1992 with a downhill score of 1?`:
```sql
                SELECT MIN("overall") FROM "season_standings" WHERE "downhill"='1' AND "season"<1992;
```
## Task
Generate a SQL query to answer the following question:
`What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12?`

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

CREATE TABLE "season_standings" (
  "season" real,
  "overall" real,
  "slalom" text,
  "giant_slalom" real,
  "super_g" real,
  "downhill" text,
  "combined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12?`:
```sql
                SELECT "giant_slalom" FROM "season_standings" WHERE "overall">3 AND "super_g"=12;
```
## Task
Generate a SQL query to answer the following question:
`What was her highest Super G score with a Slalom score of 58 and an Overall larger than 2?`

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

CREATE TABLE "season_standings" (
  "season" real,
  "overall" real,
  "slalom" text,
  "giant_slalom" real,
  "super_g" real,
  "downhill" text,
  "combined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was her highest Super G score with a Slalom score of 58 and an Overall larger than 2?`:
```sql
                SELECT MAX("super_g") FROM "season_standings" WHERE "slalom"='58' AND "overall">2;
```
## Task
Generate a SQL query to answer the following question:
`What location has the name of Sakakita BS?`

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

CREATE TABLE "list_of_interchanges_and_features" (
  "name" text,
  "dist_from_origin" text,
  "dist_from_terminus" text,
  "speed_limit" text,
  "location_all_in_nagano" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location has the name of Sakakita BS?`:
```sql
                SELECT "location_all_in_nagano" FROM "list_of_interchanges_and_features" WHERE "name"='sakakita bs';
```
## Task
Generate a SQL query to answer the following question:
`Which location includes Sakakita BS?`

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

CREATE TABLE "list_of_interchanges_and_features" (
  "name" text,
  "dist_from_origin" text,
  "dist_from_terminus" text,
  "speed_limit" text,
  "location_all_in_nagano" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location includes Sakakita BS?`:
```sql
                SELECT "location_all_in_nagano" FROM "list_of_interchanges_and_features" WHERE "name"='sakakita bs';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance from origin in Azumino including Toyoshina IC?`

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

CREATE TABLE "list_of_interchanges_and_features" (
  "name" text,
  "dist_from_origin" text,
  "dist_from_terminus" text,
  "speed_limit" text,
  "location_all_in_nagano" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance from origin in Azumino including Toyoshina IC?`:
```sql
                SELECT "dist_from_origin" FROM "list_of_interchanges_and_features" WHERE "location_all_in_nagano"='azumino' AND "name"='toyoshina ic';
```
## Task
Generate a SQL query to answer the following question:
`Which district had first elected earlier than 2006 for representation of Broken Arrow, Tulsa?`

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

CREATE TABLE "senate" (
  "district" text,
  "name" text,
  "party" text,
  "hometown" text,
  "first_elected" real,
  "towns_represented" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which district had first elected earlier than 2006 for representation of Broken Arrow, Tulsa?`:
```sql
                SELECT "district" FROM "senate" WHERE "first_elected"<2006 AND "towns_represented"='broken arrow, tulsa';
```
## Task
Generate a SQL query to answer the following question:
`How many values of first elected are for district 16?`

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

CREATE TABLE "senate" (
  "district" text,
  "name" text,
  "party" text,
  "hometown" text,
  "first_elected" real,
  "towns_represented" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of first elected are for district 16?`:
```sql
                SELECT COUNT("first_elected") FROM "senate" WHERE "district"='16';
```
## Task
Generate a SQL query to answer the following question:
`Which towns are represented in district 31?`

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

CREATE TABLE "senate" (
  "district" text,
  "name" text,
  "party" text,
  "hometown" text,
  "first_elected" real,
  "towns_represented" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which towns are represented in district 31?`:
```sql
                SELECT "towns_represented" FROM "senate" WHERE "district"='31';
```
## Task
Generate a SQL query to answer the following question:
`How many deposits had a Non-Interest Income of 0.9500000000000001 and number of branch/offices less than 17?`

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

CREATE TABLE "financial_comparisons_between_top_10_ban" (
  "bank" text,
  "asset" real,
  "loans" real,
  "npl_net" text,
  "deposits" real,
  "net_interest_income" real,
  "non_interest_income" real,
  "net_profit" real,
  "no_of_employees" text,
  "no_of_branches_offices" real,
  "no_of_at_ms" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many deposits had a Non-Interest Income of 0.9500000000000001 and number of branch/offices less than 17?`:
```sql
                SELECT COUNT("deposits") FROM "financial_comparisons_between_top_10_ban" WHERE "non_interest_income"=0.9500000000000001 AND "no_of_branches_offices"<17;
```
## Task
Generate a SQL query to answer the following question:
`Which NPL net's bank was citibank?`

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

CREATE TABLE "financial_comparisons_between_top_10_ban" (
  "bank" text,
  "asset" real,
  "loans" real,
  "npl_net" text,
  "deposits" real,
  "net_interest_income" real,
  "non_interest_income" real,
  "net_profit" real,
  "no_of_employees" text,
  "no_of_branches_offices" real,
  "no_of_at_ms" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NPL net's bank was citibank?`:
```sql
                SELECT "npl_net" FROM "financial_comparisons_between_top_10_ban" WHERE "bank"='citibank';
```
## Task
Generate a SQL query to answer the following question:
`Which championship has a winning score of (77-76-74-73=300)?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship has a winning score of (77-76-74-73=300)?`:
```sql
                SELECT "championship" FROM "wins_5" WHERE "winning_score"='(77-76-74-73=300)';
```
## Task
Generate a SQL query to answer the following question:
`Which championship has a margin of 8 strokes?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship has a margin of 8 strokes?`:
```sql
                SELECT "championship" FROM "wins_5" WHERE "margin"='8 strokes';
```
## Task
Generate a SQL query to answer the following question:
`Which championship has a 5 shot lead for 54 holes?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship has a 5 shot lead for 54 holes?`:
```sql
                SELECT "championship" FROM "wins_5" WHERE "54_holes"='5 shot lead';
```
## Task
Generate a SQL query to answer the following question:
`What is the 54 holes for The Open Championship (4)?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 54 holes for The Open Championship (4)?`:
```sql
                SELECT "54_holes" FROM "wins_5" WHERE "championship"='the open championship (4)';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a 2007 of wta premier 5 tournaments?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" 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 `Which Tournament has a 2007 of wta premier 5 tournaments?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2007"='wta premier 5 tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament was played in NH in 2011?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" 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 `Which Tournament was played in NH in 2011?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2011"='nh';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a 2010 of 2r, and a 2011 of 1r?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" 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 `Which Tournament has a 2010 of 2r, and a 2011 of 1r?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2010"='2r' AND "2011"='1r';
```
## Task
Generate a SQL query to answer the following question:
`When was Color of green first issued?`

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

CREATE TABLE "banknotes" (
  "value" text,
  "color" text,
  "obverse" text,
  "reverse" text,
  "first_issued" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was Color of green first issued?`:
```sql
                SELECT MIN("first_issued") FROM "banknotes" WHERE "color"='green';
```
## Task
Generate a SQL query to answer the following question:
`When was Color of green last issued?`

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

CREATE TABLE "banknotes" (
  "value" text,
  "color" text,
  "obverse" text,
  "reverse" text,
  "first_issued" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was Color of green last issued?`:
```sql
                SELECT MAX("first_issued") FROM "banknotes" WHERE "color"='green';
```
## Task
Generate a SQL query to answer the following question:
`What reverse has a color of green?`

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

CREATE TABLE "banknotes" (
  "value" text,
  "color" text,
  "obverse" text,
  "reverse" text,
  "first_issued" real
);
### SQL
Given the database schema, here is the SQL query that answers `What reverse has a color of green?`:
```sql
                SELECT "reverse" FROM "banknotes" WHERE "color"='green';
```
## Task
Generate a SQL query to answer the following question:
`How much was a Reverse of guitar of agustín pío barrios before 1998?`

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

CREATE TABLE "banknotes" (
  "value" text,
  "color" text,
  "obverse" text,
  "reverse" text,
  "first_issued" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much was a Reverse of guitar of agustín pío barrios before 1998?`:
```sql
                SELECT "value" FROM "banknotes" WHERE "first_issued"<1998 AND "reverse"='guitar of agustín pío barrios';
```
## Task
Generate a SQL query to answer the following question:
`What is BYU's lowest pick?`

### 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 `What is BYU's lowest pick?`:
```sql
                SELECT MIN("pick_num") FROM "atlanta_falcons_draft_history" WHERE "college"='byu';
```
## Task
Generate a SQL query to answer the following question:
`Which cornerback round has a pick number lower than 26 and an overall higher than 41?`

### 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 cornerback round has a pick number lower than 26 and an overall higher than 41?`:
```sql
                SELECT SUM("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"<26 AND "position"='cornerback' AND "overall">41;
```
## Task
Generate a SQL query to answer the following question:
`What is the overall number for the College of Wyoming?`

### 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 `What is the overall number for the College of Wyoming?`:
```sql
                SELECT COUNT("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='wyoming';
```
## Task
Generate a SQL query to answer the following question:
`What is the total round for a wide receiver with an overall of more than 145?`

### 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 `What is the total round for a wide receiver with an overall of more than 145?`:
```sql
                SELECT COUNT("round") FROM "atlanta_falcons_draft_history" WHERE "position"='wide receiver' AND "overall">145;
```
## Task
Generate a SQL query to answer the following question:
`What is College of Ohio State's pick number with an overall lower than 145?`

### 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 `What is College of Ohio State's pick number with an overall lower than 145?`:
```sql
                SELECT "pick_num" FROM "atlanta_falcons_draft_history" WHERE "overall"<145 AND "college"='ohio state';
```
## Task
Generate a SQL query to answer the following question:
`How many are enrolled at 49 Marion with the Warriors as their mascot?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many are enrolled at 49 Marion with the Warriors as their mascot?`:
```sql
                SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "num_county"='49 marion' AND "mascot"='warriors';
```
## Task
Generate a SQL query to answer the following question:
`Where is Terre Haute North located?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Terre Haute North located?`:
```sql
                SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "school"='terre haute north';
```
## Task
Generate a SQL query to answer the following question:
`What's the enrollment at 41 Johnson?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the enrollment at 41 Johnson?`:
```sql
                SELECT AVG("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "num_county"='41 johnson';
```
## Task
Generate a SQL query to answer the following question:
`At Indianapolis North Central that has greater than 1,829 enrolled, what is the IHSAA Football Class?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `At Indianapolis North Central that has greater than 1,829 enrolled, what is the IHSAA Football Class?`:
```sql
                SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">'1,829' AND "school"='indianapolis north central';
```
## Task
Generate a SQL query to answer the following question:
`What school has the greyhounds as mascots?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has the greyhounds as mascots?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='greyhounds';
```
## Task
Generate a SQL query to answer the following question:
`for type diesel-mechanical and configuration b-b, what is the status?`

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

CREATE TABLE "locomotive_collection" (
  "name" text,
  "livery" text,
  "arrival" real,
  "type" text,
  "configuration" text,
  "builder" text,
  "built" real,
  "status" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `for type diesel-mechanical and configuration b-b, what is the status?`:
```sql
                SELECT "status" FROM "locomotive_collection" WHERE "configuration"='b-b' AND "type"='diesel-mechanical';
```
## Task
Generate a SQL query to answer the following question:
`Where is the origin of the tth version?`

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

CREATE TABLE "aircraft_inventory" (
  "aircraft" text,
  "origin" text,
  "type" text,
  "versions" text,
  "in_service" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the origin of the tth version?`:
```sql
                SELECT "origin" FROM "aircraft_inventory" WHERE "versions"='tth';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of game 7?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of game 7?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "game"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of points of the game before game 2 before October 10?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of points of the game before game 2 before October 10?`:
```sql
                SELECT MIN("points") FROM "regular_season" WHERE "october"<10 AND "game"<2;
```
## Task
Generate a SQL query to answer the following question:
`what team played on july 9`

### 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 team played on july 9`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='july 9';
```
## Task
Generate a SQL query to answer the following question:
`What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894?`

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

CREATE TABLE "ohio" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894?`:
```sql
                SELECT "party" FROM "ohio" WHERE "result"='re-elected' AND "first_elected"<1894 AND "incumbent"='charles h. grosvenor';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent from the Ohio 13 district?`

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

CREATE TABLE "ohio" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent from the Ohio 13 district?`:
```sql
                SELECT "incumbent" FROM "ohio" WHERE "district"='ohio 13';
```
## Task
Generate a SQL query to answer the following question:
`What is the party of the representative first elected in 1894 from the Ohio 16 district?`

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

CREATE TABLE "ohio" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party of the representative first elected in 1894 from the Ohio 16 district?`:
```sql
                SELECT "party" FROM "ohio" WHERE "first_elected"=1894 AND "district"='ohio 16';
```
## Task
Generate a SQL query to answer the following question:
`What score has Leicestershire as the opponent after 1906?`

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

CREATE TABLE "narrowest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score has Leicestershire as the opponent after 1906?`:
```sql
                SELECT "score" FROM "narrowest_margin_of_runs_victory" WHERE "opposition"='leicestershire' AND "year">1906;
```
## Task
Generate a SQL query to answer the following question:
`Where in Buxton has 3 runs?`

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

CREATE TABLE "narrowest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where in Buxton has 3 runs?`:
```sql
                SELECT "venue" FROM "narrowest_margin_of_runs_victory" WHERE "score"='3 runs' AND "city"='buxton';
```
## Task
Generate a SQL query to answer the following question:
`What city was in 1889?`

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

CREATE TABLE "narrowest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What city was in 1889?`:
```sql
                SELECT "city" FROM "narrowest_margin_of_runs_victory" WHERE "year"=1889;
```
## Task
Generate a SQL query to answer the following question:
`What is the score in Leicester?`

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

CREATE TABLE "narrowest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score in Leicester?`:
```sql
                SELECT "score" FROM "narrowest_margin_of_runs_victory" WHERE "city"='leicester';
```
## Task
Generate a SQL query to answer the following question:
`How many years has 1 run?`

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

CREATE TABLE "narrowest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years has 1 run?`:
```sql
                SELECT COUNT("year") FROM "narrowest_margin_of_runs_victory" WHERE "score"='1 run';
```
## Task
Generate a SQL query to answer the following question:
`What year was in Aigburth?`

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

CREATE TABLE "narrowest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was in Aigburth?`:
```sql
                SELECT MAX("year") FROM "narrowest_margin_of_runs_victory" WHERE "venue"='aigburth';
```
## Task
Generate a SQL query to answer the following question:
`Which season has q145 as its format?`

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

CREATE TABLE "season_8" (
  "episode_num" real,
  "season_num" real,
  "format_num" text,
  "title" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season has q145 as its format?`:
```sql
                SELECT MIN("season_num") FROM "season_8" WHERE "format_num"='q145';
```
## Task
Generate a SQL query to answer the following question:
`What is the average episode number with q146 format?`

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

CREATE TABLE "season_8" (
  "episode_num" real,
  "season_num" real,
  "format_num" text,
  "title" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average episode number with q146 format?`:
```sql
                SELECT AVG("episode_num") FROM "season_8" WHERE "format_num"='q146';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent of Game 1 with a 3-2-0 record?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent of Game 1 with a 3-2-0 record?`:
```sql
                SELECT "opponent" FROM "schedule_and_results" WHERE "game">1 AND "record"='3-2-0';
```
## Task
Generate a SQL query to answer the following question:
`What is game 9's record?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is game 9's record?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "game"=9;
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent of the team with a 1-1-0 record?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent of the team with a 1-1-0 record?`:
```sql
                SELECT "opponent" FROM "schedule_and_results" WHERE "record"='1-1-0';
```
## Task
Generate a SQL query to answer the following question:
`What date has Liga 3rd of Dynamo Dresden?`

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

CREATE TABLE "3rd_liga_promotion_round" (
  "date" text,
  "2nd_bundesliga_16th" text,
  "3rd_liga_3rd" text,
  "game_1" text,
  "game_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has Liga 3rd of Dynamo Dresden?`:
```sql
                SELECT "date" FROM "3rd_liga_promotion_round" WHERE "3rd_liga_3rd"='dynamo dresden';
```
## Task
Generate a SQL query to answer the following question:
`What is the 3rd Liga from 2010-11?`

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

CREATE TABLE "3rd_liga_promotion_round" (
  "date" text,
  "2nd_bundesliga_16th" text,
  "3rd_liga_3rd" text,
  "game_1" text,
  "game_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3rd Liga from 2010-11?`:
```sql
                SELECT "3rd_liga_3rd" FROM "3rd_liga_promotion_round" WHERE "date"='2010-11';
```
## Task
Generate a SQL query to answer the following question:
`What is the 3rd Liga from Game 1 of 0-1 between the years 2008-09?`

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

CREATE TABLE "3rd_liga_promotion_round" (
  "date" text,
  "2nd_bundesliga_16th" text,
  "3rd_liga_3rd" text,
  "game_1" text,
  "game_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3rd Liga from Game 1 of 0-1 between the years 2008-09?`:
```sql
                SELECT "3rd_liga_3rd" FROM "3rd_liga_promotion_round" WHERE "game_1"='0-1' AND "date"='2008-09';
```
## Task
Generate a SQL query to answer the following question:
`Which Score in the final has an Outcome of winner, and a Surface of hard (i)?`

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

CREATE TABLE "doubles_15_9_6" (
  "outcome" text,
  "date" real,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score in the final has an Outcome of winner, and a Surface of hard (i)?`:
```sql
                SELECT "score_in_the_final" FROM "doubles_15_9_6" WHERE "outcome"='winner' AND "surface"='hard (i)';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Partner of jim thomas, and a Date of 2007?`

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

CREATE TABLE "doubles_15_9_6" (
  "outcome" text,
  "date" real,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Partner of jim thomas, and a Date of 2007?`:
```sql
                SELECT "surface" FROM "doubles_15_9_6" WHERE "partner"='jim thomas' AND "date"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance in the game with a Result of won 5-2?`

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

CREATE TABLE "november" (
  "date" real,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance in the game with a Result of won 5-2?`:
```sql
                SELECT "attendance" FROM "november" WHERE "result"='won 5-2';
```
## Task
Generate a SQL query to answer the following question:
`What was the home Competition with Attendance of 1,268?`

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

CREATE TABLE "november" (
  "date" real,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home Competition with Attendance of 1,268?`:
```sql
                SELECT "competition" FROM "november" WHERE "venue"='home' AND "attendance"='1,268';
```
## Task
Generate a SQL query to answer the following question:
`What school or club team did the player chosen for the Sacramento Monarchs play for?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "nationality" text,
  "wnba_team" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school or club team did the player chosen for the Sacramento Monarchs play for?`:
```sql
                SELECT "school_club_team" FROM "round_1" WHERE "wnba_team"='sacramento monarchs';
```
## Task
Generate a SQL query to answer the following question:
`What player was chosen for the Chicago Sky?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "nationality" text,
  "wnba_team" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was chosen for the Chicago Sky?`:
```sql
                SELECT "player" FROM "round_1" WHERE "wnba_team"='chicago sky';
```
## Task
Generate a SQL query to answer the following question:
`Which player was picked for the Chicago Sky?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "nationality" text,
  "wnba_team" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player was picked for the Chicago Sky?`:
```sql
                SELECT "player" FROM "round_1" WHERE "wnba_team"='chicago sky';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a height of 205 and shirt no 8?`

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

CREATE TABLE "team_roster_season_2009_10" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player with a height of 205 and shirt no 8?`:
```sql
                SELECT "position" FROM "team_roster_season_2009_10" WHERE "height"=205 AND "shirt_no"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player who is a height of 182?`

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

CREATE TABLE "team_roster_season_2009_10" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player who is a height of 182?`:
```sql
                SELECT "player" FROM "team_roster_season_2009_10" WHERE "height"=182;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Gold with Participants that are 4 and a Silver that is smaller than 0?`

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

CREATE TABLE "medal_tally" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real,
  "participants" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Gold with Participants that are 4 and a Silver that is smaller than 0?`:
```sql
                SELECT SUM("gold") FROM "medal_tally" WHERE "participants"=4 AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with a score of 141–102?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent with a score of 141–102?`:
```sql
                SELECT "opponent" FROM "season_schedule" WHERE "score"='141–102';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with a score of 109–108?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent with a score of 109–108?`:
```sql
                SELECT "opponent" FROM "season_schedule" WHERE "score"='109–108';
```