cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the runner-up of the season with Tanel Sokk as the finals MVP and Alar Varrak as the champion's coach?`

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

CREATE TABLE "korvpalli_meistriliiga_finals" (
  "season" text,
  "winner" text,
  "result" text,
  "runner_up" text,
  "1st_of_regular_season" text,
  "record" text,
  "champion_s_coach" text,
  "finals_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the runner-up of the season with Tanel Sokk as the finals MVP and Alar Varrak as the champion's coach?`:
```sql
                SELECT "runner_up" FROM "korvpalli_meistriliiga_finals" WHERE "finals_mvp"='tanel sokk' AND "champion_s_coach"='alar varrak';
```
## Task
Generate a SQL query to answer the following question:
`Which 1991 has an A 1993 ?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1991 has an A 1993 ?`:
```sql
                SELECT "1991" FROM "women_s_doubles_performance_timeline" WHERE "1993"='a';
```
## Task
Generate a SQL query to answer the following question:
`Which 992 has a  1–2 of 1989 ?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 992 has a  1–2 of 1989 ?`:
```sql
                SELECT "1992" FROM "women_s_doubles_performance_timeline" WHERE "1989"='1–2';
```
## Task
Generate a SQL query to answer the following question:
`WHICH 1990 has a 1993 of 1r?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHICH 1990 has a 1993 of 1r?`:
```sql
                SELECT "1990" FROM "women_s_doubles_performance_timeline" WHERE "1993"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Which 1994 has a 1998 of 0–1?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1994 has a 1998 of 0–1?`:
```sql
                SELECT "1994" FROM "women_s_doubles_performance_timeline" WHERE "1998"='0–1';
```
## Task
Generate a SQL query to answer the following question:
`Which 1995 has a 1993 of 3r?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1995 has a 1993 of 3r?`:
```sql
                SELECT "1995" FROM "women_s_doubles_performance_timeline" WHERE "1993"='3r';
```
## Task
Generate a SQL query to answer the following question:
`Which 1992 has a 1996 of sf and a 1993 of a?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1992 has a 1996 of sf and a 1993 of a?`:
```sql
                SELECT "1992" FROM "women_s_doubles_performance_timeline" WHERE "1996"='sf' AND "1993"='a';
```
## Task
Generate a SQL query to answer the following question:
`Which school picked a back in round 16, after pick 89?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school picked a back in round 16, after pick 89?`:
```sql
                SELECT "school" FROM "nfl_draft" WHERE "pick">89 AND "position"='back' AND "round"=16;
```
## Task
Generate a SQL query to answer the following question:
`Who was the visitor in the game that had Ottawa as the home team?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visitor in the game that had Ottawa as the home team?`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "home"='ottawa';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the game where Carolina was the home team and Niittymaki received the decision?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the game where Carolina was the home team and Niittymaki received the decision?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "decision"='niittymaki' AND "home"='carolina';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that had a loss of Johnson (9-8)?`

### 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 was the date of the game that had a loss of Johnson (9-8)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "loss"='johnson (9-8)';
```
## Task
Generate a SQL query to answer the following question:
`Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53?`

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

CREATE TABLE "men" (
  "athlete" text,
  "country" text,
  "run_1" real,
  "run_2" real,
  "run_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53?`:
```sql
                SELECT "athlete" FROM "men" WHERE "run_1"<51.96 AND "run_2">51.13 AND "run_3"=52.53;
```
## Task
Generate a SQL query to answer the following question:
`Who had a run 2 of 50.67?`

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

CREATE TABLE "men" (
  "athlete" text,
  "country" text,
  "run_1" real,
  "run_2" real,
  "run_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a run 2 of 50.67?`:
```sql
                SELECT "athlete" FROM "men" WHERE "run_2"=50.67;
```
## Task
Generate a SQL query to answer the following question:
`What was john farrow's run 2 associated with a run 1 of greater than 52.25?`

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

CREATE TABLE "men" (
  "athlete" text,
  "country" text,
  "run_1" real,
  "run_2" real,
  "run_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was john farrow's run 2 associated with a run 1 of greater than 52.25?`:
```sql
                SELECT MAX("run_2") FROM "men" WHERE "run_1">52.25 AND "athlete"='john farrow';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score in the game against the Buffalo Sabres?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score in the game against the Buffalo Sabres?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "opponent"='buffalo sabres';
```
## Task
Generate a SQL query to answer the following question:
`Rank smaller than 4, and a Name of dalma iványi involved which lowest game?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `Rank smaller than 4, and a Name of dalma iványi involved which lowest game?`:
```sql
                SELECT MIN("games") FROM "assists" WHERE "rank"<4 AND "name"='dalma iványi';
```
## Task
Generate a SQL query to answer the following question:
`Name of sue bird that involves what team?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name of sue bird that involves what team?`:
```sql
                SELECT "team" FROM "assists" WHERE "name"='sue bird';
```
## Task
Generate a SQL query to answer the following question:
`Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?`

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

CREATE TABLE "episodes" (
  "episode" text,
  "season" real,
  "production_code" text,
  "original_air_date" text,
  "directed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?`:
```sql
                SELECT "episode" FROM "episodes" WHERE "season"<25 AND "directed_by"='bob anderson' AND "production_code"='kabf16';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director of the episode with a season after 8 and an episode of XVI?`

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

CREATE TABLE "episodes" (
  "episode" text,
  "season" real,
  "production_code" text,
  "original_air_date" text,
  "directed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the episode with a season after 8 and an episode of XVI?`:
```sql
                SELECT "directed_by" FROM "episodes" WHERE "season">8 AND "episode"='xvi';
```
## Task
Generate a SQL query to answer the following question:
`Date of 7 september 1996 includes which highest rank athlete?`

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

CREATE TABLE "top_5_jamaican_100_m_athletes_women" (
  "rank" real,
  "time" real,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of 7 september 1996 includes which highest rank athlete?`:
```sql
                SELECT MAX("rank") FROM "top_5_jamaican_100_m_athletes_women" WHERE "date"='7 september 1996';
```
## Task
Generate a SQL query to answer the following question:
`Time of 10.82 has what location?`

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

CREATE TABLE "top_5_jamaican_100_m_athletes_women" (
  "rank" real,
  "time" real,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Time of 10.82 has what location?`:
```sql
                SELECT "location" FROM "top_5_jamaican_100_m_athletes_women" WHERE "time"=10.82;
```
## Task
Generate a SQL query to answer the following question:
`Date of 10 july 2009 includes what athlete?`

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

CREATE TABLE "top_5_jamaican_100_m_athletes_women" (
  "rank" real,
  "time" real,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of 10 july 2009 includes what athlete?`:
```sql
                SELECT "athlete" FROM "top_5_jamaican_100_m_athletes_women" WHERE "date"='10 july 2009';
```
## Task
Generate a SQL query to answer the following question:
`Rank smaller than 5, and a Time larger than 10.7, and a Date of 10 july 2009 has what location?`

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

CREATE TABLE "top_5_jamaican_100_m_athletes_women" (
  "rank" real,
  "time" real,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Rank smaller than 5, and a Time larger than 10.7, and a Date of 10 july 2009 has what location?`:
```sql
                SELECT "location" FROM "top_5_jamaican_100_m_athletes_women" WHERE "rank"<5 AND "time">10.7 AND "date"='10 july 2009';
```
## Task
Generate a SQL query to answer the following question:
`Faith of rc, and a Opened larger than 1966 which has the highest DCSF number?`

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

CREATE TABLE "berkhamsted" (
  "name" text,
  "faith" text,
  "type" text,
  "opened" real,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Faith of rc, and a Opened larger than 1966 which has the highest DCSF number?`:
```sql
                SELECT MAX("dcsf_number") FROM "berkhamsted" WHERE "faith"='rc' AND "opened">1966;
```
## Task
Generate a SQL query to answer the following question:
`Faith of –, and a Name of greenway has what type?`

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

CREATE TABLE "berkhamsted" (
  "name" text,
  "faith" text,
  "type" text,
  "opened" real,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Faith of –, and a Name of greenway has what type?`:
```sql
                SELECT "type" FROM "berkhamsted" WHERE "faith"='–' AND "name"='greenway';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54?`

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

CREATE TABLE "lowest_team_totals_against" (
  "rank" text,
  "runs" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54?`:
```sql
                SELECT "opponent" FROM "lowest_team_totals_against" WHERE "venue"='launceston cricket club ground, launceston' AND "season"='1853/54';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of the team during season 2006/07?`

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

CREATE TABLE "lowest_team_totals_against" (
  "rank" text,
  "runs" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the team during season 2006/07?`:
```sql
                SELECT "rank" FROM "lowest_team_totals_against" WHERE "season"='2006/07';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue where there were 55 runs?`

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

CREATE TABLE "lowest_team_totals_against" (
  "rank" text,
  "runs" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue where there were 55 runs?`:
```sql
                SELECT "venue" FROM "lowest_team_totals_against" WHERE "runs"='55';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue where there were 62 runs?`

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

CREATE TABLE "lowest_team_totals_against" (
  "rank" text,
  "runs" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue where there were 62 runs?`:
```sql
                SELECT "venue" FROM "lowest_team_totals_against" WHERE "runs"='62';
```
## Task
Generate a SQL query to answer the following question:
`Which driver had an accident and laps smaller than 53?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver had an accident and laps smaller than 53?`:
```sql
                SELECT "driver" FROM "race" WHERE "laps"<53 AND "time_retired"='accident';
```
## Task
Generate a SQL query to answer the following question:
`What language has a publication range from 1955–1999?`

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

CREATE TABLE "scholarly_journals" (
  "issn" text,
  "language" text,
  "country" text,
  "frequency" text,
  "publication_range" text,
  "status" text,
  "document_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language has a publication range from 1955–1999?`:
```sql
                SELECT "language" FROM "scholarly_journals" WHERE "publication_range"='1955–1999';
```
## Task
Generate a SQL query to answer the following question:
`What is the status for a journal with the ISSN of 0149-1830?`

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

CREATE TABLE "scholarly_journals" (
  "issn" text,
  "language" text,
  "country" text,
  "frequency" text,
  "publication_range" text,
  "status" text,
  "document_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status for a journal with the ISSN of 0149-1830?`:
```sql
                SELECT "status" FROM "scholarly_journals" WHERE "issn"='0149-1830';
```
## Task
Generate a SQL query to answer the following question:
`What is the language with a France publication range of 1992–2003?`

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

CREATE TABLE "scholarly_journals" (
  "issn" text,
  "language" text,
  "country" text,
  "frequency" text,
  "publication_range" text,
  "status" text,
  "document_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the language with a France publication range of 1992–2003?`:
```sql
                SELECT "language" FROM "scholarly_journals" WHERE "country"='france' AND "publication_range"='1992–2003';
```
## Task
Generate a SQL query to answer the following question:
`What is the ISSN number of a publication range of 1984-?`

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

CREATE TABLE "scholarly_journals" (
  "issn" text,
  "language" text,
  "country" text,
  "frequency" text,
  "publication_range" text,
  "status" text,
  "document_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ISSN number of a publication range of 1984-?`:
```sql
                SELECT "issn" FROM "scholarly_journals" WHERE "publication_range"='1984-';
```
## Task
Generate a SQL query to answer the following question:
`What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385?`

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

CREATE TABLE "scholarly_journals" (
  "issn" text,
  "language" text,
  "country" text,
  "frequency" text,
  "publication_range" text,
  "status" text,
  "document_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385?`:
```sql
                SELECT "language" FROM "scholarly_journals" WHERE "frequency"='3 times per year' AND "issn"='1136-7385';
```
## Task
Generate a SQL query to answer the following question:
`What is the region 4 release that has july 20, 2009 as the region 2?`

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

CREATE TABLE "dvd_releases" (
  "volume" text,
  "discs" real,
  "episodes" real,
  "region_1_release" text,
  "region_2_release" text,
  "region_4_release" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region 4 release that has july 20, 2009 as the region 2?`:
```sql
                SELECT "region_4_release" FROM "dvd_releases" WHERE "region_2_release"='july 20, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the region 1 release that has july 20, 2009 as the region 2?`

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

CREATE TABLE "dvd_releases" (
  "volume" text,
  "discs" real,
  "episodes" real,
  "region_1_release" text,
  "region_2_release" text,
  "region_4_release" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region 1 release that has july 20, 2009 as the region 2?`:
```sql
                SELECT "region_1_release" FROM "dvd_releases" WHERE "region_2_release"='july 20, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the average episode that has September 11, 2007 as a region 1?`

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

CREATE TABLE "dvd_releases" (
  "volume" text,
  "discs" real,
  "episodes" real,
  "region_1_release" text,
  "region_2_release" text,
  "region_4_release" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average episode that has September 11, 2007 as a region 1?`:
```sql
                SELECT AVG("episodes") FROM "dvd_releases" WHERE "region_1_release"='september 11, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90 2.5MW, and a farm of Glenough Extension?`

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

CREATE TABLE "proposed_or_under_construction" (
  "wind_farm" text,
  "scheduled" text,
  "capacity_mw" real,
  "turbines" real,
  "type" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90 2.5MW, and a farm of Glenough Extension?`:
```sql
                SELECT "scheduled" FROM "proposed_or_under_construction" WHERE "capacity_mw"<32.5 AND "type"='nordex n90 2.5mw' AND "wind_farm"='glenough extension';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of turbine having fewer than 17 units and located in County Laois?`

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

CREATE TABLE "proposed_or_under_construction" (
  "wind_farm" text,
  "scheduled" text,
  "capacity_mw" real,
  "turbines" real,
  "type" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of turbine having fewer than 17 units and located in County Laois?`:
```sql
                SELECT "type" FROM "proposed_or_under_construction" WHERE "turbines"<17 AND "location"='county laois';
```
## Task
Generate a SQL query to answer the following question:
`When is the scheduled date for the farm having 17 turbines?`

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

CREATE TABLE "proposed_or_under_construction" (
  "wind_farm" text,
  "scheduled" text,
  "capacity_mw" real,
  "turbines" real,
  "type" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the scheduled date for the farm having 17 turbines?`:
```sql
                SELECT "scheduled" FROM "proposed_or_under_construction" WHERE "turbines"=17;
```
## Task
Generate a SQL query to answer the following question:
`What is the average capacity for the farm at Gortahile having more than 8 turbines?`

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

CREATE TABLE "proposed_or_under_construction" (
  "wind_farm" text,
  "scheduled" text,
  "capacity_mw" real,
  "turbines" real,
  "type" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average capacity for the farm at Gortahile having more than 8 turbines?`:
```sql
                SELECT AVG("capacity_mw") FROM "proposed_or_under_construction" WHERE "wind_farm"='gortahile' AND "turbines">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the king who left office in 982 and entered office in 949?`

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

CREATE TABLE "933_1062" (
  "throne_name" text,
  "title" text,
  "born_died" text,
  "entered_office" text,
  "left_office" text,
  "family_relations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the king who left office in 982 and entered office in 949?`:
```sql
                SELECT "title" FROM "933_1062" WHERE "left_office"='982' AND "entered_office"='949';
```
## Task
Generate a SQL query to answer the following question:
`When did the king who entered office in 1012 leave office?`

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

CREATE TABLE "933_1062" (
  "throne_name" text,
  "title" text,
  "born_died" text,
  "entered_office" text,
  "left_office" text,
  "family_relations" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the king who entered office in 1012 leave office?`:
```sql
                SELECT "left_office" FROM "933_1062" WHERE "entered_office"='1012';
```
## Task
Generate a SQL query to answer the following question:
`What are the family relations of the king with the throne name 303?`

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

CREATE TABLE "933_1062" (
  "throne_name" text,
  "title" text,
  "born_died" text,
  "entered_office" text,
  "left_office" text,
  "family_relations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the family relations of the king with the throne name 303?`:
```sql
                SELECT "family_relations" FROM "933_1062" WHERE "throne_name"='303';
```
## Task
Generate a SQL query to answer the following question:
`What is teh born-died dates of the king with a throne name 315 and left office in 1021?`

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

CREATE TABLE "933_1062" (
  "throne_name" text,
  "title" text,
  "born_died" text,
  "entered_office" text,
  "left_office" text,
  "family_relations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is teh born-died dates of the king with a throne name 315 and left office in 1021?`:
```sql
                SELECT "born_died" FROM "933_1062" WHERE "left_office"='1021' AND "throne_name"='315';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponents have a Partner of irina-camelia begu, and a Surface of hard?`

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

CREATE TABLE "doubles_10_2_titles_8_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents have a Partner of irina-camelia begu, and a Surface of hard?`:
```sql
                SELECT "opponents" FROM "doubles_10_2_titles_8_runners_up" WHERE "partner"='irina-camelia begu' AND "surface"='hard';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Partner of galina voskoboeva?`

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

CREATE TABLE "doubles_10_2_titles_8_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Partner of galina voskoboeva?`:
```sql
                SELECT "surface" FROM "doubles_10_2_titles_8_runners_up" WHERE "partner"='galina voskoboeva';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová?`

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

CREATE TABLE "doubles_10_2_titles_8_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová?`:
```sql
                SELECT "opponents" FROM "doubles_10_2_titles_8_runners_up" WHERE "surface"='hard' AND "outcome"='runner-up' AND "partner"='jarmila gajdošová';
```
## Task
Generate a SQL query to answer the following question:
`Which Partner has a Date of 12 july 2009?`

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

CREATE TABLE "doubles_10_2_titles_8_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Partner has a Date of 12 july 2009?`:
```sql
                SELECT "partner" FROM "doubles_10_2_titles_8_runners_up" WHERE "date"='12 july 2009';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Partner of sorana cîrstea?`

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

CREATE TABLE "doubles_10_2_titles_8_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Partner of sorana cîrstea?`:
```sql
                SELECT "surface" FROM "doubles_10_2_titles_8_runners_up" WHERE "partner"='sorana cîrstea';
```
## Task
Generate a SQL query to answer the following question:
`Name the least overall with pick number more than 27`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least overall with pick number more than 27`:
```sql
                SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num">27;
```
## Task
Generate a SQL query to answer the following question:
`what's the first leg with gran canaria as team #2?`

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

CREATE TABLE "eighthfinals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the first leg with gran canaria as team #2?`:
```sql
                SELECT "1st_leg" FROM "eighthfinals" WHERE "team_num2"='gran canaria';
```
## Task
Generate a SQL query to answer the following question:
`with team #1 as lukoil academic what is team #2?`

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

CREATE TABLE "eighthfinals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `with team #1 as lukoil academic what is team #2?`:
```sql
                SELECT "team_num2" FROM "eighthfinals" WHERE "team_num1"='lukoil academic';
```
## Task
Generate a SQL query to answer the following question:
`with team #2 as akasvayu girona what is team #1?`

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

CREATE TABLE "eighthfinals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `with team #2 as akasvayu girona what is team #1?`:
```sql
                SELECT "team_num1" FROM "eighthfinals" WHERE "team_num2"='akasvayu girona';
```
## Task
Generate a SQL query to answer the following question:
`Which virtue is acedia(Latin)?`

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

CREATE TABLE "seven_heavenly_virtues" (
  "virtue" text,
  "latin" text,
  "gloss" text,
  "vice" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which virtue is acedia(Latin)?`:
```sql
                SELECT "virtue" FROM "seven_heavenly_virtues" WHERE "latin"='acedia';
```
## Task
Generate a SQL query to answer the following question:
`Which Virtue has a (vice) of lust?`

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

CREATE TABLE "seven_heavenly_virtues" (
  "virtue" text,
  "latin" text,
  "gloss" text,
  "vice" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Virtue has a (vice) of lust?`:
```sql
                SELECT "virtue" FROM "seven_heavenly_virtues" WHERE "vice"='lust';
```
## Task
Generate a SQL query to answer the following question:
`Which virtue is Invidia(Latin)?`

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

CREATE TABLE "seven_heavenly_virtues" (
  "virtue" text,
  "latin" text,
  "gloss" text,
  "vice" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which virtue is Invidia(Latin)?`:
```sql
                SELECT "virtue" FROM "seven_heavenly_virtues" WHERE "latin"='invidia';
```
## Task
Generate a SQL query to answer the following question:
`What's the gloss with Castitas(Latin)?`

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

CREATE TABLE "seven_heavenly_virtues" (
  "virtue" text,
  "latin" text,
  "gloss" text,
  "vice" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the gloss with Castitas(Latin)?`:
```sql
                SELECT "gloss" FROM "seven_heavenly_virtues" WHERE "latin"='castitas';
```
## Task
Generate a SQL query to answer the following question:
`What is the Diligence Virtues Gloss?`

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

CREATE TABLE "seven_heavenly_virtues" (
  "virtue" text,
  "latin" text,
  "gloss" text,
  "vice" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Diligence Virtues Gloss?`:
```sql
                SELECT "gloss" FROM "seven_heavenly_virtues" WHERE "virtue"='diligence';
```
## Task
Generate a SQL query to answer the following question:
`What is the Virtue of Temperance in Latin?`

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

CREATE TABLE "seven_heavenly_virtues" (
  "virtue" text,
  "latin" text,
  "gloss" text,
  "vice" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Virtue of Temperance in Latin?`:
```sql
                SELECT "latin" FROM "seven_heavenly_virtues" WHERE "virtue"='temperance';
```
## Task
Generate a SQL query to answer the following question:
`In what year(s) did South Korea win silver?`

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

CREATE TABLE "team" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year(s) did South Korea win silver?`:
```sql
                SELECT "year" FROM "team" WHERE "silver"='south korea';
```
## Task
Generate a SQL query to answer the following question:
`Which nation(s) won silver in Doha?`

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

CREATE TABLE "team" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation(s) won silver in Doha?`:
```sql
                SELECT "silver" FROM "team" WHERE "location"='doha';
```
## Task
Generate a SQL query to answer the following question:
`What was the first year that South Korea won gold and Malaysia won bronze?`

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

CREATE TABLE "team" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first year that South Korea won gold and Malaysia won bronze?`:
```sql
                SELECT MIN("year") FROM "team" WHERE "gold"='south korea' AND "bronze"='malaysia';
```
## Task
Generate a SQL query to answer the following question:
`What country won gold in the year(s) that Chinese Taipei won bronze?`

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

CREATE TABLE "team" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country won gold in the year(s) that Chinese Taipei won bronze?`:
```sql
                SELECT "gold" FROM "team" WHERE "bronze"='chinese taipei';
```
## Task
Generate a SQL query to answer the following question:
`Which European competitions have a Pos of 6?`

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

CREATE TABLE "results" (
  "season" text,
  "tier" real,
  "league" text,
  "pos" real,
  "postseason" text,
  "dutch_cup" text,
  "european_competitions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which European competitions have a Pos of 6?`:
```sql
                SELECT "european_competitions" FROM "results" WHERE "pos"=6;
```
## Task
Generate a SQL query to answer the following question:
`Which Pos has a Dutch Cup of winner, and a Tier larger than 1?`

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

CREATE TABLE "results" (
  "season" text,
  "tier" real,
  "league" text,
  "pos" real,
  "postseason" text,
  "dutch_cup" text,
  "european_competitions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pos has a Dutch Cup of winner, and a Tier larger than 1?`:
```sql
                SELECT AVG("pos") FROM "results" WHERE "dutch_cup"='winner' AND "tier">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Frequency MHz that is on farwell, texas?`

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

CREATE TABLE "external_links" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" text,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Frequency MHz that is on farwell, texas?`:
```sql
                SELECT AVG("frequency_m_hz") FROM "external_links" WHERE "city_of_license"='farwell, texas';
```
## Task
Generate a SQL query to answer the following question:
`WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W`

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

CREATE TABLE "external_links" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" text,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W`:
```sql
                SELECT "city_of_license" FROM "external_links" WHERE "fcc_info"='fcc' AND "erp_w"='10,000 horizontal 3,000 vertical';
```
## Task
Generate a SQL query to answer the following question:
`WHich FCC info has 3,000 ERP W?`

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

CREATE TABLE "external_links" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" text,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich FCC info has 3,000 ERP W?`:
```sql
                SELECT "fcc_info" FROM "external_links" WHERE "erp_w"='3,000';
```
## Task
Generate a SQL query to answer the following question:
`What's the average game against the New Jersey Devils with 19 points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average game against the New Jersey Devils with 19 points?`:
```sql
                SELECT AVG("game") FROM "regular_season" WHERE "points"=19 AND "opponent"='new jersey devils';
```
## Task
Generate a SQL query to answer the following question:
`Opponent of at boston patriots, and a Week larger than 3 had what average attendance?`

### 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 `Opponent of at boston patriots, and a Week larger than 3 had what average attendance?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "opponent"='at boston patriots' AND "week">3;
```
## Task
Generate a SQL query to answer the following question:
`Name the average fall 07 for fall 07 more than 219`

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

CREATE TABLE "geography_of_students" (
  "maryland_counties" text,
  "fall_05" real,
  "fall_06" real,
  "fall_07" real,
  "fall_08" real,
  "fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average fall 07 for fall 07 more than 219`:
```sql
                SELECT AVG("fall_07") FROM "geography_of_students" WHERE "fall_06">219;
```
## Task
Generate a SQL query to answer the following question:
`Name the player for fc dallas pick number less than 3`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player for fc dallas pick number less than 3`:
```sql
                SELECT "player" FROM "round_one" WHERE "pick_num"<3 AND "mls_team"='fc dallas';
```
## Task
Generate a SQL query to answer the following question:
`Name the most pick number for real salt lake and affiliation of ucla los angeles storm`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most pick number for real salt lake and affiliation of ucla los angeles storm`:
```sql
                SELECT MAX("pick_num") FROM "round_one" WHERE "mls_team"='real salt lake' AND "affiliation"='ucla los angeles storm';
```
## Task
Generate a SQL query to answer the following question:
`Name the player with pick number of 7`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player with pick number of 7`:
```sql
                SELECT "player" FROM "round_one" WHERE "pick_num"=7;
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a March smaller than 12, and a Score of 10–1?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a March smaller than 12, and a Score of 10–1?`:
```sql
                SELECT MIN("game") FROM "regular_season" WHERE "march"<12 AND "score"='10–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has Points of 88, and a Record of 38–22–12?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "march" 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 of 88, and a Record of 38–22–12?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "points"=88 AND "record"='38–22–12';
```