cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the number of points that driver fernando alonso has in the season he had 20 races?`

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

CREATE TABLE "most_championship_points_in_a_season" (
  "driver" text,
  "points" real,
  "season" text,
  "races" real,
  "percentage_of_possible_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of points that driver fernando alonso has in the season he had 20 races?`:
```sql
                SELECT SUM("points") FROM "most_championship_points_in_a_season" WHERE "races"=20 AND "driver"='fernando alonso';
```
## Task
Generate a SQL query to answer the following question:
`What was the average Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%?`

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

CREATE TABLE "most_championship_points_in_a_season" (
  "driver" text,
  "points" real,
  "season" text,
  "races" real,
  "percentage_of_possible_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%?`:
```sql
                SELECT AVG("points") FROM "most_championship_points_in_a_season" WHERE "driver"='fernando alonso' AND "percentage_of_possible_points"='53.05%';
```
## Task
Generate a SQL query to answer the following question:
`What position has 217 as the pick?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has 217 as the pick?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "pick"=217;
```
## Task
Generate a SQL query to answer the following question:
`Which score has a record of 18-21-7?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has a record of 18-21-7?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "record"='18-21-7';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value for apps in 2009 season in a division less than 1?`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value for apps in 2009 season in a division less than 1?`:
```sql
                SELECT MIN("apps") FROM "career_statistics" WHERE "season"='2009' AND "division"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?`:
```sql
                SELECT SUM("goals") FROM "career_statistics" WHERE "team"='torpedo moscow' AND "division"=1 AND "apps"<29;
```
## Task
Generate a SQL query to answer the following question:
`Which Remixed by has a Version of album version, and an Album of les mots?`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Remixed by has a Version of album version, and an Album of les mots?`:
```sql
                SELECT "remixed_by" FROM "official_versions" WHERE "version"='album version' AND "album"='les mots';
```
## Task
Generate a SQL query to answer the following question:
`How long was the instrumental version in 1986?`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `How long was the instrumental version in 1986?`:
```sql
                SELECT "length" FROM "official_versions" WHERE "year"=1986 AND "version"='instrumental';
```
## Task
Generate a SQL query to answer the following question:
`Which long version was remixed in 1986?`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which long version was remixed in 1986?`:
```sql
                SELECT "remixed_by" FROM "official_versions" WHERE "year"=1986 AND "version"='long version';
```
## Task
Generate a SQL query to answer the following question:
`Who was Canada's lead?`

### 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 `Who was Canada's lead?`:
```sql
                SELECT "lead" FROM "teams" WHERE "country"='canada';
```
## Task
Generate a SQL query to answer the following question:
`What was Canada's skip?`

### 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 `What was Canada's skip?`:
```sql
                SELECT "skip" FROM "teams" WHERE "country"='canada';
```
## Task
Generate a SQL query to answer the following question:
`Which country has a Lead of sarah wazney?`

### 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 country has a Lead of sarah wazney?`:
```sql
                SELECT "country" FROM "teams" WHERE "lead"='sarah wazney';
```
## Task
Generate a SQL query to answer the following question:
`Which Lead has a Third of jeanne ellegaard?`

### 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 Lead has a Third of jeanne ellegaard?`:
```sql
                SELECT "lead" FROM "teams" WHERE "third"='jeanne ellegaard';
```
## Task
Generate a SQL query to answer the following question:
`Which Skip has a Third of sara carlsson?`

### 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 a Third of sara carlsson?`:
```sql
                SELECT "skip" FROM "teams" WHERE "third"='sara carlsson';
```
## Task
Generate a SQL query to answer the following question:
`Which Skip has a Second of vicki adams?`

### 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 a Second of vicki adams?`:
```sql
                SELECT "skip" FROM "teams" WHERE "second"='vicki adams';
```
## Task
Generate a SQL query to answer the following question:
`Enrollment that has a School of south central (union mills) has what sum?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "city" text,
  "mascot" text,
  "enrollment" real,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Enrollment that has a School of south central (union mills) has what sum?`:
```sql
                SELECT SUM("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "school"='south central (union mills)';
```
## Task
Generate a SQL query to answer the following question:
`Mascot of blazers involves what city?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "city" text,
  "mascot" text,
  "enrollment" real,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Mascot of blazers involves what city?`:
```sql
                SELECT "city" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='blazers';
```
## Task
Generate a SQL query to answer the following question:
`County of 46 laporte is what school?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "city" text,
  "mascot" text,
  "enrollment" real,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `County of 46 laporte is what school?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "county"='46 laporte';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Laps that shows spun off for time?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Laps that shows spun off for time?`:
```sql
                SELECT AVG("laps") FROM "sprint_race" WHERE "time"='spun off';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Laps for the Mexico team with a grid number of more than 1?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Laps for the Mexico team with a grid number of more than 1?`:
```sql
                SELECT AVG("laps") FROM "sprint_race" WHERE "grid">1 AND "team"='mexico';
```
## Task
Generate a SQL query to answer the following question:
`What is name of the drive with a Time of +13.315?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is name of the drive with a Time of +13.315?`:
```sql
                SELECT "driver" FROM "sprint_race" WHERE "time"='+13.315';
```
## Task
Generate a SQL query to answer the following question:
`What is the total grid number that has 14 laps and a time of +29.483?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total grid number that has 14 laps and a time of +29.483?`:
```sql
                SELECT COUNT("grid") FROM "sprint_race" WHERE "laps"=14 AND "time"='+29.483';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?`:
```sql
                SELECT COUNT("laps") FROM "sprint_race" WHERE "time"='collision' AND "team"='switzerland' AND "grid"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the game after week 4 against the Baltimore Ravens?`

### 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,
  "location" text,
  "time_et" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the game after week 4 against the Baltimore Ravens?`:
```sql
                SELECT "time_et" FROM "schedule" WHERE "week">4 AND "opponent"='baltimore ravens';
```
## Task
Generate a SQL query to answer the following question:
`What nominated work has seattle international film festival as the award?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "nominated_work" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nominated work has seattle international film festival as the award?`:
```sql
                SELECT "nominated_work" FROM "awards_and_nominations" WHERE "award"='seattle international film festival';
```
## Task
Generate a SQL query to answer the following question:
`What award has breakthrough performance as the category?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "nominated_work" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What award has breakthrough performance as the category?`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "category"='breakthrough performance';
```
## Task
Generate a SQL query to answer the following question:
`What category has showest award for the category awards?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "nominated_work" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category has showest award for the category awards?`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "award"='showest award';
```
## Task
Generate a SQL query to answer the following question:
`What category has a year after 2004?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "nominated_work" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category has a year after 2004?`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "year">2004;
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent had a Score of 6-3, 6-2?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent had a Score of 6-3, 6-2?`:
```sql
                SELECT "opponent" FROM "singles_5_2_3" WHERE "score"='6-3, 6-2';
```
## Task
Generate a SQL query to answer the following question:
`Which Score had an Opponent of chris evert-lloyd?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score had an Opponent of chris evert-lloyd?`:
```sql
                SELECT "score" FROM "singles_5_2_3" WHERE "opponent"='chris evert-lloyd';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface had an Opponent of chris evert-lloyd?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface had an Opponent of chris evert-lloyd?`:
```sql
                SELECT "surface" FROM "singles_5_2_3" WHERE "opponent"='chris evert-lloyd';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface had a Date of june 13, 1983?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface had a Date of june 13, 1983?`:
```sql
                SELECT "surface" FROM "singles_5_2_3" WHERE "date"='june 13, 1983';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance for a game where Geelong was the home team?`

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

CREATE TABLE "round_21" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance for a game where Geelong was the home team?`:
```sql
                SELECT MAX("crowd") FROM "round_21" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team score when the home team was the Brisbane Lions?`

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

CREATE TABLE "round_21" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team score when the home team was the Brisbane Lions?`:
```sql
                SELECT "away_team_score" FROM "round_21" WHERE "home_team"='brisbane lions';
```
## Task
Generate a SQL query to answer the following question:
`When did the home team score 23.13 (151)?`

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

CREATE TABLE "round_21" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the home team score 23.13 (151)?`:
```sql
                SELECT "date" FROM "round_21" WHERE "home_team_score"='23.13 (151)';
```
## Task
Generate a SQL query to answer the following question:
`What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs?`

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

CREATE TABLE "round_21" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs?`:
```sql
                SELECT MAX("crowd") FROM "round_21" WHERE "ground"='telstra dome' AND "home_team"='western bulldogs';
```
## Task
Generate a SQL query to answer the following question:
`What is the full amount of Total Cargo (in Metric Tonnes) where the Code (IATA/ICAO) is pvg/zspd, and the rank is less than 3?`

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

CREATE TABLE "2010_final_statistics" (
  "rank" real,
  "airport" text,
  "code_iata_icao" text,
  "total_cargo_metric_tonnes" real,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the full amount of Total Cargo (in Metric Tonnes) where the Code (IATA/ICAO) is pvg/zspd, and the rank is less than 3?`:
```sql
                SELECT SUM("total_cargo_metric_tonnes") FROM "2010_final_statistics" WHERE "code_iata_icao"='pvg/zspd' AND "rank"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?`:
```sql
                SELECT "date" FROM "schedule" WHERE "site"='memorial stadium • minneapolis, mn' AND "attendance"='20,000' AND "result"='w52-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent name at memorial stadium • minneapolis, mn on 10/20/1928?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent name at memorial stadium • minneapolis, mn on 10/20/1928?`:
```sql
                SELECT "opponentnum" FROM "schedule" WHERE "site"='memorial stadium • minneapolis, mn' AND "date"='10/20/1928';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance number when the Opponent was purdue?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance number when the Opponent was purdue?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "opponentnum"='purdue';
```
## Task
Generate a SQL query to answer the following question:
`What is the Site when the Result was w52-0?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Site when the Result was w52-0?`:
```sql
                SELECT "site" FROM "schedule" WHERE "result"='w52-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance on 11/10/1928?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance on 11/10/1928?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='11/10/1928';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Winner at Campbelltown Sports Stadium?`

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

CREATE TABLE "results" (
  "winner" text,
  "score" text,
  "date" text,
  "venue" text,
  "crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Winner at Campbelltown Sports Stadium?`:
```sql
                SELECT "winner" FROM "results" WHERE "venue"='campbelltown sports stadium';
```
## Task
Generate a SQL query to answer the following question:
`When Sydney Roosters won with a Crown of more than 7,426, what was the Venue?`

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

CREATE TABLE "results" (
  "winner" text,
  "score" text,
  "date" text,
  "venue" text,
  "crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `When Sydney Roosters won with a Crown of more than 7,426, what was the Venue?`:
```sql
                SELECT "venue" FROM "results" WHERE "winner"='sydney roosters' AND "crowd">'7,426';
```
## Task
Generate a SQL query to answer the following question:
`What was the second leg score from the group stage on matchday 5?`

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

CREATE TABLE "round_and_draw_dates" (
  "phase" text,
  "round" text,
  "draw_date" text,
  "first_leg" text,
  "second_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the second leg score from the group stage on matchday 5?`:
```sql
                SELECT "second_leg" FROM "round_and_draw_dates" WHERE "phase"='group stage' AND "round"='matchday 5';
```
## Task
Generate a SQL query to answer the following question:
`What was the draw date from the qualifying phase and a round of first qualifying round?`

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

CREATE TABLE "round_and_draw_dates" (
  "phase" text,
  "round" text,
  "draw_date" text,
  "first_leg" text,
  "second_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the draw date from the qualifying phase and a round of first qualifying round?`:
```sql
                SELECT "draw_date" FROM "round_and_draw_dates" WHERE "phase"='qualifying' AND "round"='first qualifying round';
```
## Task
Generate a SQL query to answer the following question:
`what year did enrique alciati make a statue`

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

CREATE TABLE "see_also" (
  "statue" text,
  "liberator" text,
  "country" text,
  "year_erected" text,
  "artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `what year did enrique alciati make a statue`:
```sql
                SELECT "year_erected" FROM "see_also" WHERE "artist"='enrique alciati';
```
## Task
Generate a SQL query to answer the following question:
`what artist cam from uruguay`

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

CREATE TABLE "see_also" (
  "statue" text,
  "liberator" text,
  "country" text,
  "year_erected" text,
  "artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `what artist cam from uruguay`:
```sql
                SELECT "artist" FROM "see_also" WHERE "country"='uruguay';
```
## Task
Generate a SQL query to answer the following question:
`When 1990-1995 > 0.37, 2000-2005 of 1.37, what's the highest for 1995-2000?`

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

CREATE TABLE "urban_population_growth_pct" (
  "region_country" text,
  "1985_1990" real,
  "1990_1995" real,
  "1995_2000" real,
  "2000_2005" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 1990-1995 > 0.37, 2000-2005 of 1.37, what's the highest for 1995-2000?`:
```sql
                SELECT MAX("1995_2000") FROM "urban_population_growth_pct" WHERE "1990_1995">0.37 AND "2000_2005"=1.37;
```
## Task
Generate a SQL query to answer the following question:
`When 2000-2005 is smaller than 2.52, and 1990-1995 is less than 0.37, what's the total of 1995-2000?`

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

CREATE TABLE "urban_population_growth_pct" (
  "region_country" text,
  "1985_1990" real,
  "1990_1995" real,
  "1995_2000" real,
  "2000_2005" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 2000-2005 is smaller than 2.52, and 1990-1995 is less than 0.37, what's the total of 1995-2000?`:
```sql
                SELECT SUM("1995_2000") FROM "urban_population_growth_pct" WHERE "2000_2005"<2.52 AND "1990_1995"<0.37;
```
## Task
Generate a SQL query to answer the following question:
`What's China's highest 1985-1990 assuming a 2000-2005 larger than 3.08?`

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

CREATE TABLE "urban_population_growth_pct" (
  "region_country" text,
  "1985_1990" real,
  "1990_1995" real,
  "1995_2000" real,
  "2000_2005" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's China's highest 1985-1990 assuming a 2000-2005 larger than 3.08?`:
```sql
                SELECT MAX("1985_1990") FROM "urban_population_growth_pct" WHERE "region_country"='china' AND "2000_2005">3.08;
```
## Task
Generate a SQL query to answer the following question:
`What is the women's singles before 1965 with kaj lindfors ann-louise von essen being mixed doubles?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the women's singles before 1965 with kaj lindfors ann-louise von essen being mixed doubles?`:
```sql
                SELECT "women_s_singles" FROM "past_winners" WHERE "year"<1965 AND "mixed_doubles"='kaj lindfors ann-louise von essen';
```
## Task
Generate a SQL query to answer the following question:
`When did mika heinonen susanna dahlberg win mixed doubles?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did mika heinonen susanna dahlberg win mixed doubles?`:
```sql
                SELECT AVG("year") FROM "past_winners" WHERE "mixed_doubles"='mika heinonen susanna dahlberg';
```
## Task
Generate a SQL query to answer the following question:
`How many years did pia pajunen nina sundberg win women's doubles?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did pia pajunen nina sundberg win women's doubles?`:
```sql
                SELECT COUNT("year") FROM "past_winners" WHERE "women_s_doubles"='pia pajunen nina sundberg';
```
## Task
Generate a SQL query to answer the following question:
`Who won women's singles in 1961?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won women's singles in 1961?`:
```sql
                SELECT "women_s_singles" FROM "past_winners" WHERE "year"=1961;
```
## Task
Generate a SQL query to answer the following question:
`Score of 0–3 (11–21, 14–21) had what outcome?`

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

CREATE TABLE "marc_zwiebler" (
  "outcome" text,
  "year" text,
  "venue" text,
  "last_opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Score of 0–3 (11–21, 14–21) had what outcome?`:
```sql
                SELECT "outcome" FROM "marc_zwiebler" WHERE "score"='0–3 (11–21, 14–21)';
```
## Task
Generate a SQL query to answer the following question:
`Venue of thessaloniki (without participation) had what score?`

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

CREATE TABLE "marc_zwiebler" (
  "outcome" text,
  "year" text,
  "venue" text,
  "last_opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Venue of thessaloniki (without participation) had what score?`:
```sql
                SELECT "score" FROM "marc_zwiebler" WHERE "venue"='thessaloniki (without participation)';
```
## Task
Generate a SQL query to answer the following question:
`Outcome of 13, and a Year of 2007 happened in what venue?`

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

CREATE TABLE "marc_zwiebler" (
  "outcome" text,
  "year" text,
  "venue" text,
  "last_opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Outcome of 13, and a Year of 2007 happened in what venue?`:
```sql
                SELECT "venue" FROM "marc_zwiebler" WHERE "outcome"='13' AND "year"='2007';
```
## Task
Generate a SQL query to answer the following question:
`Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?`

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

CREATE TABLE "table_i_comparison_of_selected_volcanic_" (
  "eruptions" text,
  "country" text,
  "location" text,
  "year" real,
  "volcanic_explosivity_index" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?`:
```sql
                SELECT "eruptions" FROM "table_i_comparison_of_selected_volcanic_" WHERE "location"='pacific ring of fire' AND "volcanic_explosivity_index"='6' AND "country"='peru';
```
## Task
Generate a SQL query to answer the following question:
`How many fatalities does Italy have?`

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

CREATE TABLE "table_i_comparison_of_selected_volcanic_" (
  "eruptions" text,
  "country" text,
  "location" text,
  "year" real,
  "volcanic_explosivity_index" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fatalities does Italy have?`:
```sql
                SELECT "fatalities" FROM "table_i_comparison_of_selected_volcanic_" WHERE "country"='italy';
```
## Task
Generate a SQL query to answer the following question:
`How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?`

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

CREATE TABLE "table_i_comparison_of_selected_volcanic_" (
  "eruptions" text,
  "country" text,
  "location" text,
  "year" real,
  "volcanic_explosivity_index" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?`:
```sql
                SELECT SUM("year") FROM "table_i_comparison_of_selected_volcanic_" WHERE "location"='pacific ring of fire' AND "eruptions"='pinatubo';
```
## Task
Generate a SQL query to answer the following question:
`What is the Standings of Eintracht Braunschweig?`

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

CREATE TABLE "3_liga" (
  "season" text,
  "champions" text,
  "runners_up" text,
  "promotion_playoff" text,
  "standings" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Standings of Eintracht Braunschweig?`:
```sql
                SELECT "standings" FROM "3_liga" WHERE "champions"='eintracht braunschweig';
```
## Task
Generate a SQL query to answer the following question:
`Year larger than 2001 has what average points?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Year larger than 2001 has what average points?`:
```sql
                SELECT AVG("points") FROM "grand_prix_career_statistics" WHERE "year">2001;
```
## Task
Generate a SQL query to answer the following question:
`Team of Honda and a point total of 238 is what highest year?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Team of Honda and a point total of 238 is what highest year?`:
```sql
                SELECT MAX("year") FROM "grand_prix_career_statistics" WHERE "team"='honda' AND "points"=238;
```
## Task
Generate a SQL query to answer the following question:
`Wins of 0 involves what team?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Wins of 0 involves what team?`:
```sql
                SELECT "team" FROM "grand_prix_career_statistics" WHERE "wins"=0;
```
## Task
Generate a SQL query to answer the following question:
`what player has a pick of 5`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what player has a pick of 5`:
```sql
                SELECT "player" FROM "round_1" WHERE "pick"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?`:
```sql
                SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1858 AND "result"='retired republican gain' AND "incumbent"='william millward';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a District of pennsylvania 13?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a District of pennsylvania 13?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='pennsylvania 13';
```
## Task
Generate a SQL query to answer the following question:
`Which First elected is the lowest one that has an Incumbent of william stewart?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which First elected is the lowest one that has an Incumbent of william stewart?`:
```sql
                SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='william stewart';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Player when College/Junior/Club Team (League) was regina pats (whl)?`

### 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 `Who was the Player when College/Junior/Club Team (League) was regina pats (whl)?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "college_junior_club_team_league"='regina pats (whl)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with an attendance larger than 62,491?`

### 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 date of the game with an attendance larger than 62,491?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance">'62,491';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the game on week 4?`

### 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 attendance of the game on week 4?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals?`

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

CREATE TABLE "rose_bowl_michigan_49_stanford_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals?`:
```sql
                SELECT AVG("extra_points") FROM "rose_bowl_michigan_49_stanford_0" WHERE "touchdowns"<2 AND "player"='herrnstein' AND "field_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many touchdowns are there that has field goals less than 0 and 0 extra points?`

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

CREATE TABLE "rose_bowl_michigan_49_stanford_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns are there that has field goals less than 0 and 0 extra points?`:
```sql
                SELECT SUM("touchdowns") FROM "rose_bowl_michigan_49_stanford_0" WHERE "extra_points"=0 AND "field_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many field goals are there that have 8 touchdowns and more than 49 points?`

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

CREATE TABLE "rose_bowl_michigan_49_stanford_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many field goals are there that have 8 touchdowns and more than 49 points?`:
```sql
                SELECT SUM("field_goals") FROM "rose_bowl_michigan_49_stanford_0" WHERE "touchdowns"=8 AND "points">49;
```
## Task
Generate a SQL query to answer the following question:
`What's the number of touchdowns that Snow made that had 0 field goals, more than 5 points, and more than 0 extra points?`

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

CREATE TABLE "rose_bowl_michigan_49_stanford_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of touchdowns that Snow made that had 0 field goals, more than 5 points, and more than 0 extra points?`:
```sql
                SELECT MIN("touchdowns") FROM "rose_bowl_michigan_49_stanford_0" WHERE "points">5 AND "field_goals"=0 AND "player"='snow' AND "extra_points">0;
```
## Task
Generate a SQL query to answer the following question:
`For an IATA of MLE, what is the ICAO?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `For an IATA of MLE, what is the ICAO?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "iata"='mle';
```
## Task
Generate a SQL query to answer the following question:
`For an ICAO of VCCT, what is the IATA?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `For an ICAO of VCCT, what is the IATA?`:
```sql
                SELECT "iata" FROM "destinations" WHERE "icao"='vcct';
```
## Task
Generate a SQL query to answer the following question:
`Which city has an ICAO of VCCJ?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has an ICAO of VCCJ?`:
```sql
                SELECT "city" FROM "destinations" WHERE "icao"='vccj';
```