cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the best time for marcus marshall?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best time for marcus marshall?`:
```sql
                SELECT AVG("best") FROM "qualifying_results" WHERE "name"='marcus marshall';
```
## Task
Generate a SQL query to answer the following question:
`What is the best time for a rusport driver with a qual 2 time of 1:10.166?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best time for a rusport driver with a qual 2 time of 1:10.166?`:
```sql
                SELECT MAX("best") FROM "qualifying_results" WHERE "team"='rusport' AND "qual_2"='1:10.166';
```
## Task
Generate a SQL query to answer the following question:
`What team had a qual 2 time of 58.385?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team had a qual 2 time of 58.385?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "qual_2"='58.385';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0?`

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

CREATE TABLE "composition_of_the_20th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0?`:
```sql
                SELECT COUNT("university_of_dublin") FROM "composition_of_the_20th_seanad" WHERE "agricultural_panel"=0 AND "nominated_by_the_taoiseach">0 AND "industrial_and_commercial_panel"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average for the agricultural panel that has a National University of Ireland less than 0?`

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

CREATE TABLE "composition_of_the_20th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the agricultural panel that has a National University of Ireland less than 0?`:
```sql
                SELECT AVG("agricultural_panel") FROM "composition_of_the_20th_seanad" WHERE "national_university_of_ireland"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2?`

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

CREATE TABLE "composition_of_the_20th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2?`:
```sql
                SELECT MIN("university_of_dublin") FROM "composition_of_the_20th_seanad" WHERE "administrative_panel"=3 AND "cultural_and_educational_panel"<2;
```
## Task
Generate a SQL query to answer the following question:
`What was the record at Memorial Stadium on September 19, 1965?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at Memorial Stadium on September 19, 1965?`:
```sql
                SELECT "record" FROM "schedule" WHERE "game_site"='memorial stadium' AND "date"='september 19, 1965';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest attendance at Memorial Stadium on December 12, 1965?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest attendance at Memorial Stadium on December 12, 1965?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "game_site"='memorial stadium' AND "date"='december 12, 1965';
```
## Task
Generate a SQL query to answer the following question:
`Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0?`

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

CREATE TABLE "scoring_leaders" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0?`:
```sql
                SELECT MAX("extra_points") FROM "scoring_leaders" WHERE "player"='herman everhardus' AND "field_goals">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1?`

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

CREATE TABLE "scoring_leaders" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1?`:
```sql
                SELECT SUM("extra_points") FROM "scoring_leaders" WHERE "points"<12 AND "player"='chuck bernard' AND "touchdowns">1;
```
## Task
Generate a SQL query to answer the following question:
`How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0?`

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

CREATE TABLE "scoring_leaders" (
  "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 Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0?`:
```sql
                SELECT SUM("field_goals") FROM "scoring_leaders" WHERE "touchdowns"<3 AND "player"='willis ward' AND "extra_points"<0;
```
## Task
Generate a SQL query to answer the following question:
`Whicih Extra points are the average ones that have Points smaller than 6?`

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

CREATE TABLE "scoring_leaders" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Whicih Extra points are the average ones that have Points smaller than 6?`:
```sql
                SELECT AVG("extra_points") FROM "scoring_leaders" WHERE "points"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which position is round 7?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position is round 7?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "round"=7;
```
## Task
Generate a SQL query to answer the following question:
`Which college has a position of goaltender?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college has a position of goaltender?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='goaltender';
```
## Task
Generate a SQL query to answer the following question:
`What is Darryl Fedorak's highest round?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Darryl Fedorak's highest round?`:
```sql
                SELECT MAX("round") FROM "draft_picks" WHERE "player"='darryl fedorak';
```
## Task
Generate a SQL query to answer the following question:
`What nationality has a higher round than 8?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality has a higher round than 8?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "round">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?`

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

CREATE TABLE "music" (
  "name" text,
  "born_died" text,
  "notable_for" text,
  "connection_with_australia" text,
  "connection_with_america" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?`:
```sql
                SELECT "connection_with_australia" FROM "music" WHERE "connection_with_america"='born in the u.s.; mother is u.s. citizen';
```
## Task
Generate a SQL query to answer the following question:
`What is the person born in Australia, rick springfield notable for?`

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

CREATE TABLE "music" (
  "name" text,
  "born_died" text,
  "notable_for" text,
  "connection_with_australia" text,
  "connection_with_america" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the person born in Australia, rick springfield notable for?`:
```sql
                SELECT "notable_for" FROM "music" WHERE "connection_with_australia"='born in australia' AND "name"='rick springfield';
```
## Task
Generate a SQL query to answer the following question:
`What is the Born–Died for the person whose family moved to Australia at age 6?`

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

CREATE TABLE "music" (
  "name" text,
  "born_died" text,
  "notable_for" text,
  "connection_with_australia" text,
  "connection_with_america" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Born–Died for the person whose family moved to Australia at age 6?`:
```sql
                SELECT "born_died" FROM "music" WHERE "connection_with_australia"='family moved to australia at age 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz?`

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

CREATE TABLE "2000s" (
  "date" real,
  "name" text,
  "developer" text,
  "clock" text,
  "process" text,
  "cores_per_die_dies_per_module" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz?`:
```sql
                SELECT MAX("date") FROM "2000s" WHERE "cores_per_die_dies_per_module"='2 / 1' AND "clock"='1.4-1.6ghz';
```
## Task
Generate a SQL query to answer the following question:
`Which process has a date later than 2000 and a Clock of 1.4-1.6ghz?`

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

CREATE TABLE "2000s" (
  "date" real,
  "name" text,
  "developer" text,
  "clock" text,
  "process" text,
  "cores_per_die_dies_per_module" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which process has a date later than 2000 and a Clock of 1.4-1.6ghz?`:
```sql
                SELECT "process" FROM "2000s" WHERE "date">2000 AND "clock"='1.4-1.6ghz';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Clock of 0.8-1.6ghz?`

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

CREATE TABLE "2000s" (
  "date" real,
  "name" text,
  "developer" text,
  "clock" text,
  "process" text,
  "cores_per_die_dies_per_module" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Clock of 0.8-1.6ghz?`:
```sql
                SELECT "date" FROM "2000s" WHERE "clock"='0.8-1.6ghz';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on May 21?`

### 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 was the record on May 21?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='may 21';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the attendance 24,976?`

### 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 `On what date was the attendance 24,976?`:
```sql
                SELECT "date" FROM "game_log" WHERE "attendance"='24,976';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the record 21-26?`

### 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 `On what date was the record 21-26?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='21-26';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance with a loss of Prokopec (2-7)?`

### 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 `How many were in attendance with a loss of Prokopec (2-7)?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "loss"='prokopec (2-7)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on May 20?`

### 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 `Who was the opponent on May 20?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='may 20';
```
## Task
Generate a SQL query to answer the following question:
`What is the tournament on Apr 6?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tournament on Apr 6?`:
```sql
                SELECT "tournament" FROM "tournament_results" WHERE "date"='apr 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st prize of the tournament in Scotland?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st prize of the tournament in Scotland?`:
```sql
                SELECT "1st_prize" FROM "tournament_results" WHERE "location"='scotland';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the Sea Pines Heritage Classic tournament?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the Sea Pines Heritage Classic tournament?`:
```sql
                SELECT "location" FROM "tournament_results" WHERE "tournament"='sea pines heritage classic';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the Tournament Players Championship?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the Tournament Players Championship?`:
```sql
                SELECT "score" FROM "tournament_results" WHERE "tournament"='tournament players championship';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st prize at the U.S. Open?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st prize at the U.S. Open?`:
```sql
                SELECT "1st_prize" FROM "tournament_results" WHERE "tournament"='u.s. open';
```
## Task
Generate a SQL query to answer the following question:
`What is the average first prize of the tournament with a score of 279 (–9)?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average first prize of the tournament with a score of 279 (–9)?`:
```sql
                SELECT AVG("1st_prize") FROM "tournament_results" WHERE "score"='279 (–9)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest first prize of the Mercedes Championships tournament in California?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest first prize of the Mercedes Championships tournament in California?`:
```sql
                SELECT MIN("1st_prize") FROM "tournament_results" WHERE "location"='california' AND "tournament"='mercedes championships';
```
## Task
Generate a SQL query to answer the following question:
`What is the average capacity for the venue where the team kommunalnik played?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average capacity for the venue where the team kommunalnik played?`:
```sql
                SELECT AVG("capacity") FROM "teams_and_venues" WHERE "team"='kommunalnik';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the team that played at the venue, Central, Gomel?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the team that played at the venue, Central, Gomel?`:
```sql
                SELECT "position_in_1999" FROM "teams_and_venues" WHERE "venue"='central, gomel';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the team that played at the venue with more than 6,500 capacity?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the team that played at the venue with more than 6,500 capacity?`:
```sql
                SELECT "position_in_1999" FROM "teams_and_venues" WHERE "capacity">'6,500';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of assists with 70 Pims and less than 19 goals?`

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

CREATE TABLE "points_for_the_2007_08_season" (
  "name" text,
  "pld" real,
  "goals" real,
  "assists" real,
  "points" real,
  "pims" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of assists with 70 Pims and less than 19 goals?`:
```sql
                SELECT MIN("assists") FROM "points_for_the_2007_08_season" WHERE "pims"=70 AND "goals"<19;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of assists for Ben Duggan with less than 7 points?`

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

CREATE TABLE "points_for_the_2007_08_season" (
  "name" text,
  "pld" real,
  "goals" real,
  "assists" real,
  "points" real,
  "pims" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of assists for Ben Duggan with less than 7 points?`:
```sql
                SELECT MIN("assists") FROM "points_for_the_2007_08_season" WHERE "name"='ben duggan' AND "points"<7;
```
## Task
Generate a SQL query to answer the following question:
`In what Year was Rhode Island the National Champion?`

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

CREATE TABLE "division_1" (
  "year" text,
  "national_champion" text,
  "runner_up" text,
  "location" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Year was Rhode Island the National Champion?`:
```sql
                SELECT "year" FROM "division_1" WHERE "national_champion"='rhode island';
```
## Task
Generate a SQL query to answer the following question:
`What was the Runner-up in the Monroe County Sports Commission?`

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

CREATE TABLE "division_1" (
  "year" text,
  "national_champion" text,
  "runner_up" text,
  "location" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Runner-up in the Monroe County Sports Commission?`:
```sql
                SELECT "runner_up" FROM "division_1" WHERE "host"='monroe county sports commission';
```
## Task
Generate a SQL query to answer the following question:
`At what Location was the Runner-up TBD?`

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

CREATE TABLE "division_1" (
  "year" text,
  "national_champion" text,
  "runner_up" text,
  "location" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what Location was the Runner-up TBD?`:
```sql
                SELECT "location" FROM "division_1" WHERE "runner_up"='tbd';
```
## Task
Generate a SQL query to answer the following question:
`At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?`

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

CREATE TABLE "division_1" (
  "year" text,
  "national_champion" text,
  "runner_up" text,
  "location" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?`:
```sql
                SELECT "location" FROM "division_1" WHERE "host"='robert morris university (illinois)' AND "national_champion"='lindenwood';
```
## Task
Generate a SQL query to answer the following question:
`What was the Runner-up with Ohio as the National Champion in Tucson, AZ?`

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

CREATE TABLE "division_1" (
  "year" text,
  "national_champion" text,
  "runner_up" text,
  "location" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Runner-up with Ohio as the National Champion in Tucson, AZ?`:
```sql
                SELECT "runner_up" FROM "division_1" WHERE "national_champion"='ohio' AND "location"='tucson, az';
```
## Task
Generate a SQL query to answer the following question:
`Which graphics spec has a VRAM spec of 512MB?`

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

CREATE TABLE "comparison_table" (
  "model" text,
  "processor" text,
  "memory" text,
  "storage" text,
  "graphics" text,
  "vram" text,
  "display_resolution" text,
  "msrp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which graphics spec has a VRAM spec of 512MB?`:
```sql
                SELECT "graphics" FROM "comparison_table" WHERE "vram"='512mb';
```
## Task
Generate a SQL query to answer the following question:
`What is the MSRP for the laptop with storage of 128-512 GB SSD?`

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

CREATE TABLE "comparison_table" (
  "model" text,
  "processor" text,
  "memory" text,
  "storage" text,
  "graphics" text,
  "vram" text,
  "display_resolution" text,
  "msrp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the MSRP for the laptop with storage of 128-512 GB SSD?`:
```sql
                SELECT "msrp" FROM "comparison_table" WHERE "storage"='128-512 gb ssd';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent for game 5`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for game 5`:
```sql
                SELECT "opponent" FROM "playoffs" WHERE "game"=5;
```
## Task
Generate a SQL query to answer the following question:
`What status is shown for Cadeby?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What status is shown for Cadeby?`:
```sql
                SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='cadeby';
```
## Task
Generate a SQL query to answer the following question:
`What is the Former local authority for Ecclesfield?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Former local authority for Ecclesfield?`:
```sql
                SELECT "former_local_authority" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='ecclesfield';
```
## Task
Generate a SQL query to answer the following question:
`What is the Status of Mexborough?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Status of Mexborough?`:
```sql
                SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='mexborough';
```
## Task
Generate a SQL query to answer the following question:
`What is the Status for the District of doncaster, and a Former local authority of doncaster rural district, with a Population of 203?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Status for the District of doncaster, and a Former local authority of doncaster rural district, with a Population of 203?`:
```sql
                SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "district"='doncaster' AND "former_local_authority"='doncaster rural district' AND "population"=203;
```
## Task
Generate a SQL query to answer the following question:
`What is the score on December 1?`

### 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 is the score on December 1?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "date"='december 1';
```
## Task
Generate a SQL query to answer the following question:
`Which skip has Oliver Dupont as a second?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which skip has Oliver Dupont as a second?`:
```sql
                SELECT "skip" FROM "teams" WHERE "second"='oliver dupont';
```
## Task
Generate a SQL query to answer the following question:
`Which second's third is Jean-Michel Arsenault?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which second's third is Jean-Michel Arsenault?`:
```sql
                SELECT "second" FROM "teams" WHERE "third"='jean-michel arsenault';
```
## Task
Generate a SQL query to answer the following question:
`Which skip's third is Steffen Walstad?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which skip's third is Steffen Walstad?`:
```sql
                SELECT "skip" FROM "teams" WHERE "third"='steffen walstad';
```
## Task
Generate a SQL query to answer the following question:
`Which skip's second is Martin Hejhal?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which skip's second is Martin Hejhal?`:
```sql
                SELECT "skip" FROM "teams" WHERE "second"='martin hejhal';
```
## Task
Generate a SQL query to answer the following question:
`Which skip's lead is Gordon McDougall?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which skip's lead is Gordon McDougall?`:
```sql
                SELECT "skip" FROM "teams" WHERE "lead"='gordon mcdougall';
```
## Task
Generate a SQL query to answer the following question:
`Which second's skip is Chris Plys?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which second's skip is Chris Plys?`:
```sql
                SELECT "second" FROM "teams" WHERE "skip"='chris plys';
```
## Task
Generate a SQL query to answer the following question:
`How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3?`

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

CREATE TABLE "by_season" (
  "year" text,
  "class" text,
  "team" text,
  "bike" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "f_laps" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3?`:
```sql
                SELECT SUM("poles") FROM "by_season" WHERE "class"='125cc' AND "team"='matteoni racing team' AND "points">3;
```
## Task
Generate a SQL query to answer the following question:
`How many Podiums have a Class of 250cc, and an F laps of 0?`

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

CREATE TABLE "by_season" (
  "year" text,
  "class" text,
  "team" text,
  "bike" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "f_laps" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Podiums have a Class of 250cc, and an F laps of 0?`:
```sql
                SELECT SUM("podiums") FROM "by_season" WHERE "class"='250cc' AND "f_laps"=0;
```
## Task
Generate a SQL query to answer the following question:
`Team of elgin city, and a Highest smaller than 537 had what total number of average?`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Team of elgin city, and a Highest smaller than 537 had what total number of average?`:
```sql
                SELECT COUNT("average") FROM "stadia_and_attendances" WHERE "team"='elgin city' AND "highest"<537;
```
## Task
Generate a SQL query to answer the following question:
`Average larger than 450, and a Capacity smaller than 5,177, and a Stadium of ochilview park is what sum of the highest?`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Average larger than 450, and a Capacity smaller than 5,177, and a Stadium of ochilview park is what sum of the highest?`:
```sql
                SELECT SUM("highest") FROM "stadia_and_attendances" WHERE "average">450 AND "capacity"<'5,177' AND "stadium"='ochilview park';
```
## Task
Generate a SQL query to answer the following question:
`Capacity smaller than 3,292, and a Highest larger than 812, and a Stadium of strathclyde homes stadium has what sum of the average?`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Capacity smaller than 3,292, and a Highest larger than 812, and a Stadium of strathclyde homes stadium has what sum of the average?`:
```sql
                SELECT SUM("average") FROM "stadia_and_attendances" WHERE "capacity"<'3,292' AND "highest">812 AND "stadium"='strathclyde homes stadium';
```
## Task
Generate a SQL query to answer the following question:
`Lowest larger than 288, and a Team of east stirlingshire has what lowest average?`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Lowest larger than 288, and a Team of east stirlingshire has what lowest average?`:
```sql
                SELECT MIN("average") FROM "stadia_and_attendances" WHERE "lowest">288 AND "team"='east stirlingshire';
```
## Task
Generate a SQL query to answer the following question:
`what is the owner of the c501`

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

CREATE TABLE "locomotives" (
  "locomotive" text,
  "entered_service" text,
  "owner" text,
  "operator" text,
  "livery" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the owner of the c501`:
```sql
                SELECT "owner" FROM "locomotives" WHERE "locomotive"='c501';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Game larger than 32, and a December smaller than 21?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Game larger than 32, and a December smaller than 21?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "game">32 AND "december"<21;
```
## Task
Generate a SQL query to answer the following question:
`Which Score has Points larger than 46, and a Game smaller than 35, and a December of 21?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has Points larger than 46, and a Game smaller than 35, and a December of 21?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "points">46 AND "game"<35 AND "december"=21;
```
## Task
Generate a SQL query to answer the following question:
`Which December is the lowest one that has Points of 52?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which December is the lowest one that has Points of 52?`:
```sql
                SELECT MIN("december") FROM "regular_season" WHERE "points"=52;
```
## Task
Generate a SQL query to answer the following question:
`Which December has Points of 48, and a Game larger than 33?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which December has Points of 48, and a Game larger than 33?`:
```sql
                SELECT SUM("december") FROM "regular_season" WHERE "points"=48 AND "game">33;
```
## Task
Generate a SQL query to answer the following question:
`WHich Regular Season Champions has a Year of 1943–44?`

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

CREATE TABLE "champions_by_year" (
  "year" text,
  "regular_season_champion_s" text,
  "record" text,
  "tournament_champion" text,
  "tournament_venue" text,
  "tournament_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Regular Season Champions has a Year of 1943–44?`:
```sql
                SELECT "regular_season_champion_s" FROM "champions_by_year" WHERE "year"='1943–44';
```
## Task
Generate a SQL query to answer the following question:
`WHich Tournament venue has a Tournament Champion of duke and a Record of 15–1?`

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

CREATE TABLE "champions_by_year" (
  "year" text,
  "regular_season_champion_s" text,
  "record" text,
  "tournament_champion" text,
  "tournament_venue" text,
  "tournament_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Tournament venue has a Tournament Champion of duke and a Record of 15–1?`:
```sql
                SELECT "tournament_venue" FROM "champions_by_year" WHERE "tournament_champion"='duke' AND "record"='15–1';
```
## Task
Generate a SQL query to answer the following question:
`When has a Tournament venue of richmond arena, and a Record of 12–1, and a Regular Season Champion(s) of virginia tech?`

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

CREATE TABLE "champions_by_year" (
  "year" text,
  "regular_season_champion_s" text,
  "record" text,
  "tournament_champion" text,
  "tournament_venue" text,
  "tournament_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Tournament venue of richmond arena, and a Record of 12–1, and a Regular Season Champion(s) of virginia tech?`:
```sql
                SELECT "year" FROM "champions_by_year" WHERE "tournament_venue"='richmond arena' AND "record"='12–1' AND "regular_season_champion_s"='virginia tech';
```
## Task
Generate a SQL query to answer the following question:
`When has a Record of 9–1, and a Tournament Champion of duke?`

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

CREATE TABLE "champions_by_year" (
  "year" text,
  "regular_season_champion_s" text,
  "record" text,
  "tournament_champion" text,
  "tournament_venue" text,
  "tournament_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Record of 9–1, and a Tournament Champion of duke?`:
```sql
                SELECT "year" FROM "champions_by_year" WHERE "record"='9–1' AND "tournament_champion"='duke';
```
## Task
Generate a SQL query to answer the following question:
`Which Regular Season Champion(s) has a Tournament Champion of west virginia in 1955–56?`

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

CREATE TABLE "champions_by_year" (
  "year" text,
  "regular_season_champion_s" text,
  "record" text,
  "tournament_champion" text,
  "tournament_venue" text,
  "tournament_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Regular Season Champion(s) has a Tournament Champion of west virginia in 1955–56?`:
```sql
                SELECT "regular_season_champion_s" FROM "champions_by_year" WHERE "tournament_champion"='west virginia' AND "year"='1955–56';
```
## Task
Generate a SQL query to answer the following question:
`Which Regular Season Champion(s) has a Record of 9–0, and a Tournament Champion of north carolina?`

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

CREATE TABLE "champions_by_year" (
  "year" text,
  "regular_season_champion_s" text,
  "record" text,
  "tournament_champion" text,
  "tournament_venue" text,
  "tournament_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Regular Season Champion(s) has a Record of 9–0, and a Tournament Champion of north carolina?`:
```sql
                SELECT "regular_season_champion_s" FROM "champions_by_year" WHERE "record"='9–0' AND "tournament_champion"='north carolina';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round for a player selected from a college of New Hampshire?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round for a player selected from a college of New Hampshire?`:
```sql
                SELECT MIN("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='new hampshire';
```