cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the sum of To Par, when Year(s) Won is "1978 , 1985"?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of To Par, when Year(s) Won is "1978 , 1985"?`:
```sql
                SELECT SUM("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1978 , 1985';
```
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Year(s) Won is "1968 , 1971"?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is To Par, when Year(s) Won is "1968 , 1971"?`:
```sql
                SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1968 , 1971';
```
## Task
Generate a SQL query to answer the following question:
`Which Points difference has Points against of 786?`

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

CREATE TABLE "2004_05_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points difference has Points against of 786?`:
```sql
                SELECT "points_difference" FROM "2004_05_table" WHERE "points_against"='786';
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a Points difference of +261?`

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

CREATE TABLE "2004_05_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played has a Points difference of +261?`:
```sql
                SELECT "played" FROM "2004_05_table" WHERE "points_difference"='+261';
```
## Task
Generate a SQL query to answer the following question:
`Which Points against has a Lost of 13, and Points for of 671?`

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

CREATE TABLE "2004_05_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points against has a Lost of 13, and Points for of 671?`:
```sql
                SELECT "points_against" FROM "2004_05_table" WHERE "lost"='13' AND "points_for"='671';
```
## Task
Generate a SQL query to answer the following question:
`Which Points difference has Played of 32, and Points for of 840?`

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

CREATE TABLE "2004_05_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points difference has Played of 32, and Points for of 840?`:
```sql
                SELECT "points_difference" FROM "2004_05_table" WHERE "played"='32' AND "points_for"='840';
```
## Task
Generate a SQL query to answer the following question:
`Which Drawn has Points for of 782?`

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

CREATE TABLE "2004_05_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn has Points for of 782?`:
```sql
                SELECT "drawn" FROM "2004_05_table" WHERE "points_for"='782';
```
## Task
Generate a SQL query to answer the following question:
`Which Lost has a Club of club?`

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

CREATE TABLE "2004_05_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lost has a Club of club?`:
```sql
                SELECT "lost" FROM "2004_05_table" WHERE "club"='club';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Date of january 29?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Date of january 29?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='january 29';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Visitor of vancouver?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Visitor of vancouver?`:
```sql
                SELECT "record" FROM "game_log" WHERE "visitor"='vancouver';
```
## Task
Generate a SQL query to answer the following question:
`What date has the opponent competing in the final of john mcenroe?`

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

CREATE TABLE "wins_11" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has the opponent competing in the final of john mcenroe?`:
```sql
                SELECT "date" FROM "wins_11" WHERE "opponent_in_final"='john mcenroe';
```
## Task
Generate a SQL query to answer the following question:
`Where did the Lightning play the NY Rangers at 7:00 pm?`

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

CREATE TABLE "pre_season" (
  "date" text,
  "opponent" text,
  "location" text,
  "time" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the Lightning play the NY Rangers at 7:00 pm?`:
```sql
                SELECT "location" FROM "pre_season" WHERE "opponent"='ny rangers' AND "time"='7:00 pm';
```
## Task
Generate a SQL query to answer the following question:
`Who did the Lightning play at the Mellon Arena?`

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

CREATE TABLE "pre_season" (
  "date" text,
  "opponent" text,
  "location" text,
  "time" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Lightning play at the Mellon Arena?`:
```sql
                SELECT "opponent" FROM "pre_season" WHERE "location"='mellon arena';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game played at 7:00 pm?`

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

CREATE TABLE "pre_season" (
  "date" text,
  "opponent" text,
  "location" text,
  "time" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the game played at 7:00 pm?`:
```sql
                SELECT "result" FROM "pre_season" WHERE "time"='7:00 pm';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game which ended in a 4-1 w?`

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

CREATE TABLE "pre_season" (
  "date" text,
  "opponent" text,
  "location" text,
  "time" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game which ended in a 4-1 w?`:
```sql
                SELECT "location" FROM "pre_season" WHERE "result"='4-1 w';
```
## Task
Generate a SQL query to answer the following question:
`When was a game played at 7:00 pm?`

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

CREATE TABLE "pre_season" (
  "date" text,
  "opponent" text,
  "location" text,
  "time" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was a game played at 7:00 pm?`:
```sql
                SELECT "date" FROM "pre_season" WHERE "time"='7:00 pm';
```
## Task
Generate a SQL query to answer the following question:
`Which Top Speed has a Model Name of d14/4 supreme d14/4 sports & bushman?`

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

CREATE TABLE "models" (
  "model_name" text,
  "engine" text,
  "top_speed" text,
  "no_of_gears" real,
  "electrics" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Top Speed has a Model Name of d14/4 supreme d14/4 sports & bushman?`:
```sql
                SELECT "top_speed" FROM "models" WHERE "model_name"='d14/4 supreme d14/4 sports & bushman';
```
## Task
Generate a SQL query to answer the following question:
`Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman?`

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

CREATE TABLE "models" (
  "model_name" text,
  "engine" text,
  "top_speed" text,
  "no_of_gears" real,
  "electrics" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman?`:
```sql
                SELECT "electrics" FROM "models" WHERE "engine"='175cc, bhp (kw)' AND "model_name"='d10 sports & bushman';
```
## Task
Generate a SQL query to answer the following question:
`Who does pádraig harrington play for?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who does pádraig harrington play for?`:
```sql
                SELECT "country" FROM "final_round" WHERE "player"='pádraig harrington';
```
## Task
Generate a SQL query to answer the following question:
`Which stadium has Seongnam Ilhwa Chunma?`

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

CREATE TABLE "k_league_clubs_2008" (
  "club" text,
  "head_coach" text,
  "city" text,
  "stadium" text,
  "2007_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium has Seongnam Ilhwa Chunma?`:
```sql
                SELECT "stadium" FROM "k_league_clubs_2008" WHERE "club"='seongnam ilhwa chunma';
```
## Task
Generate a SQL query to answer the following question:
`What city is Gwang-Yang stadium in?`

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

CREATE TABLE "k_league_clubs_2008" (
  "club" text,
  "head_coach" text,
  "city" text,
  "stadium" text,
  "2007_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city is Gwang-Yang stadium in?`:
```sql
                SELECT "city" FROM "k_league_clubs_2008" WHERE "stadium"='gwang-yang stadium';
```
## Task
Generate a SQL query to answer the following question:
`Which stadium has FC Seoul?`

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

CREATE TABLE "k_league_clubs_2008" (
  "club" text,
  "head_coach" text,
  "city" text,
  "stadium" text,
  "2007_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium has FC Seoul?`:
```sql
                SELECT "stadium" FROM "k_league_clubs_2008" WHERE "club"='fc seoul';
```
## Task
Generate a SQL query to answer the following question:
`What stadium is in Seoul?`

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

CREATE TABLE "k_league_clubs_2008" (
  "club" text,
  "head_coach" text,
  "city" text,
  "stadium" text,
  "2007_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stadium is in Seoul?`:
```sql
                SELECT "stadium" FROM "k_league_clubs_2008" WHERE "city"='seoul';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1993 value of the French open?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1993 value of the French open?`:
```sql
                SELECT "1993" FROM "doubles_performance_timeline" WHERE "tournament"='french open';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1990 value with a 24 in 1995?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1990 value with a 24 in 1995?`:
```sql
                SELECT "1990" FROM "doubles_performance_timeline" WHERE "1995"='24';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1993 value with a 1r in 1991 and sf in 1990?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1993 value with a 1r in 1991 and sf in 1990?`:
```sql
                SELECT "1993" FROM "doubles_performance_timeline" WHERE "1991"='1r' AND "1990"='sf';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1994 value with a 2r in 1996, A in 1993, and 2r in 1991?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1994 value with a 2r in 1996, A in 1993, and 2r in 1991?`:
```sql
                SELECT "1994" FROM "doubles_performance_timeline" WHERE "1996"='2r' AND "1993"='a' AND "1991"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1993 value of the 1994 atp masters series?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1993 value of the 1994 atp masters series?`:
```sql
                SELECT "1993" FROM "doubles_performance_timeline" WHERE "1994"='atp masters series';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1993 value of the 1996 atp masters series?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1993 value of the 1996 atp masters series?`:
```sql
                SELECT "1993" FROM "doubles_performance_timeline" WHERE "1996"='atp masters series';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0?`:
```sql
                SELECT "team" FROM "playoffs" WHERE "location_attendance"='staples center 18,997' AND "series"='1–0';
```
## Task
Generate a SQL query to answer the following question:
`Which High points have High rebounds of lamar odom (15), and a Date of april 27?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which High points have High rebounds of lamar odom (15), and a Date of april 27?`:
```sql
                SELECT "high_points" FROM "playoffs" WHERE "high_rebounds"='lamar odom (15)' AND "date"='april 27';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has High rebounds of pau gasol (9)?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has High rebounds of pau gasol (9)?`:
```sql
                SELECT "date" FROM "playoffs" WHERE "high_rebounds"='pau gasol (9)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of game 2?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of game 2?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "game"=2;
```
## Task
Generate a SQL query to answer the following question:
`What was steve elkington's to par?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was steve elkington's to par?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "player"='steve elkington';
```
## Task
Generate a SQL query to answer the following question:
`With a Season premiere of 23 july 2008 this show has what as the average episode?`

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

CREATE TABLE "overview" (
  "season" text,
  "episodes" real,
  "season_premiere" text,
  "season_finale" text,
  "peak_series_rating_citation_needed" text,
  "average_series_rating" text,
  "dvd_release_date" text,
  "discs" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a Season premiere of 23 july 2008 this show has what as the average episode?`:
```sql
                SELECT AVG("episodes") FROM "overview" WHERE "season_premiere"='23 july 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which show has a season premiere with a Average series rating of 1.85 million viewers?`

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

CREATE TABLE "overview" (
  "season" text,
  "episodes" real,
  "season_premiere" text,
  "season_finale" text,
  "peak_series_rating_citation_needed" text,
  "average_series_rating" text,
  "dvd_release_date" text,
  "discs" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which show has a season premiere with a Average series rating of 1.85 million viewers?`:
```sql
                SELECT "season_premiere" FROM "overview" WHERE "average_series_rating"='1.85 million viewers';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year founded that has a nickname of bruins?`

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

CREATE TABLE "members" (
  "school" text,
  "location" text,
  "founded" real,
  "enrollment" real,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year founded that has a nickname of bruins?`:
```sql
                SELECT MAX("founded") FROM "members" WHERE "nickname"='bruins';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year founded with an enrollment of 42,708?`

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

CREATE TABLE "members" (
  "school" text,
  "location" text,
  "founded" real,
  "enrollment" real,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year founded with an enrollment of 42,708?`:
```sql
                SELECT MAX("founded") FROM "members" WHERE "enrollment"='42,708';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game with the New York Rangers Home team with a Record of 8–27–5?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the game with the New York Rangers Home team with a Record of 8–27–5?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "home"='new york rangers' AND "record"='8–27–5';
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the Home team Detroit Red Wings with a Record of 10–41–6?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the Home team Detroit Red Wings with a Record of 10–41–6?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "home"='detroit red wings' AND "record"='10–41–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Visitor in the game with a Record of 11–49–7?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Visitor in the game with a Record of 11–49–7?`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "record"='11–49–7';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record of the Chicago Black Hawks Home game with the New York Rangers and a Score of 3–2?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record of the Chicago Black Hawks Home game with the New York Rangers and a Score of 3–2?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "home"='chicago black hawks' AND "visitor"='new york rangers' AND "score"='3–2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team on October 17 with a Score of 1–2?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team on October 17 with a Score of 1–2?`:
```sql
                SELECT "home" FROM "regular_season" WHERE "score"='1–2' AND "date"='october 17';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record of the game on January 31 with Visitors Detroit Red Wings?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record of the game on January 31 with Visitors Detroit Red Wings?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "visitor"='detroit red wings' AND "date"='january 31';
```
## Task
Generate a SQL query to answer the following question:
`Name the Report of 7 february with an Away team of new zealand breakers?`

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

CREATE TABLE "round_21" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Report of 7 february with an Away team of new zealand breakers?`:
```sql
                SELECT "report" FROM "round_21" WHERE "date"='7 february' AND "away_team"='new zealand breakers';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Crowd smaller than 4,485?`

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

CREATE TABLE "round_21" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Crowd smaller than 4,485?`:
```sql
                SELECT "date" FROM "round_21" WHERE "crowd"<'4,485';
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest Crowd of hisense arena on 8 february?`

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

CREATE TABLE "round_21" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Crowd of hisense arena on 8 february?`:
```sql
                SELECT MIN("crowd") FROM "round_21" WHERE "venue"='hisense arena' AND "date"='8 february';
```
## Task
Generate a SQL query to answer the following question:
`Name the Box Score which has an Away team of new zealand breakers on 7 february?`

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

CREATE TABLE "round_21" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Box Score which has an Away team of new zealand breakers on 7 february?`:
```sql
                SELECT "box_score" FROM "round_21" WHERE "away_team"='new zealand breakers' AND "date"='7 february';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Year, when Venue is Rio De Janeiro, Brazil?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Year, when Venue is Rio De Janeiro, Brazil?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "venue"='rio de janeiro, brazil';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Year is 2008?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Year is 2008?`:
```sql
                SELECT "event" FROM "achievements" WHERE "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`What is the latest date in March when the opponent was the Boston Bruins and the game number was smaller than 66?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest date in March when the opponent was the Boston Bruins and the game number was smaller than 66?`:
```sql
                SELECT MAX("march") FROM "schedule_and_results" WHERE "opponent"='boston bruins' AND "game"<66;
```
## Task
Generate a SQL query to answer the following question:
`What is the method of the match with chris ade as the opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method of the match with chris ade as the opponent?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='chris ade';
```
## Task
Generate a SQL query to answer the following question:
`What was the pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11?`

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

CREATE TABLE "by_season" (
  "season" text,
  "race" real,
  "podium" real,
  "pole" real,
  "f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11?`:
```sql
                SELECT AVG("pole") FROM "by_season" WHERE "race"<16 AND "f_lap">8 AND "podium">11;
```
## Task
Generate a SQL query to answer the following question:
`How many podiums had a race higher than 14 in 1996 and a Flap lower than 9?`

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

CREATE TABLE "by_season" (
  "season" text,
  "race" real,
  "podium" real,
  "pole" real,
  "f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many podiums had a race higher than 14 in 1996 and a Flap lower than 9?`:
```sql
                SELECT COUNT("podium") FROM "by_season" WHERE "race">14 AND "season"='1996' AND "f_lap"<9;
```
## Task
Generate a SQL query to answer the following question:
`How many races had 4 podiums, 5 poles and more than 3 Flaps?`

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

CREATE TABLE "by_season" (
  "season" text,
  "race" real,
  "podium" real,
  "pole" real,
  "f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many races had 4 podiums, 5 poles and more than 3 Flaps?`:
```sql
                SELECT SUM("race") FROM "by_season" WHERE "podium"=4 AND "pole"=5 AND "f_lap">3;
```
## Task
Generate a SQL query to answer the following question:
`What are the fewest podiums in 2005 with fewer than 0 poles?`

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

CREATE TABLE "by_season" (
  "season" text,
  "race" real,
  "podium" real,
  "pole" real,
  "f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the fewest podiums in 2005 with fewer than 0 poles?`:
```sql
                SELECT MIN("podium") FROM "by_season" WHERE "season"='2005' AND "pole"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a To par of +9?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a To par of +9?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "to_par"='+9';
```
## Task
Generate a SQL query to answer the following question:
`Which years did raymond floyd win?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years did raymond floyd win?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "player"='raymond floyd';
```
## Task
Generate a SQL query to answer the following question:
`How much total has a To par of +9?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much total has a To par of +9?`:
```sql
                SELECT COUNT("total") FROM "made_the_cut" WHERE "to_par"='+9';
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Country of united states, and a Player of andy north?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Country of united states, and a Player of andy north?`:
```sql
                SELECT AVG("total") FROM "made_the_cut" WHERE "country"='united states' AND "player"='andy north';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest grid for Aprilia vehicles, laps over 5, and a retirement finish?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest grid for Aprilia vehicles, laps over 5, and a retirement finish?`:
```sql
                SELECT MAX("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "time"='retirement' AND "laps">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average laps completed by riders with times of +2:11.524?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average laps completed by riders with times of +2:11.524?`:
```sql
                SELECT AVG("laps") FROM "125cc_classification" WHERE "time"='+2:11.524';
```
## Task
Generate a SQL query to answer the following question:
`Which rider has a time of +2:11.524?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rider has a time of +2:11.524?`:
```sql
                SELECT "rider" FROM "125cc_classification" WHERE "time"='+2:11.524';
```
## Task
Generate a SQL query to answer the following question:
`What is the average grid for vehicles manufactured by Aprilia and having run more than 16 laps?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average grid for vehicles manufactured by Aprilia and having run more than 16 laps?`:
```sql
                SELECT AVG("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "laps">16;
```
## Task
Generate a SQL query to answer the following question:
`What record has January 27 for the date?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record has January 27 for the date?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='january 27';
```
## Task
Generate a SQL query to answer the following question:
`What team has brad miller (8) as the high assists?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has brad miller (8) as the high assists?`:
```sql
                SELECT "team" FROM "game_log" WHERE "high_assists"='brad miller (8)';
```
## Task
Generate a SQL query to answer the following question:
`What is the high assists that has @ detroit as the team?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high assists that has @ detroit as the team?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "team"='@ detroit';
```
## Task
Generate a SQL query to answer the following question:
`Which date had a game with the New York Giants as the winner, year over 1985, and a result of 17-14?`

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

CREATE TABLE "1980s_giants_12_9" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a game with the New York Giants as the winner, year over 1985, and a result of 17-14?`:
```sql
                SELECT "date" FROM "1980s_giants_12_9" WHERE "winner"='new york giants' AND "year">1985 AND "result"='17-14';
```
## Task
Generate a SQL query to answer the following question:
`Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0?`

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

CREATE TABLE "1980s_giants_12_9" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0?`:
```sql
                SELECT "date" FROM "1980s_giants_12_9" WHERE "year"<1988 AND "loser"='philadelphia eagles' AND "location"='giants stadium' AND "result"='21-0';
```
## Task
Generate a SQL query to answer the following question:
`Which date had a loser of New York Giants and a result of 23-17?`

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

CREATE TABLE "1980s_giants_12_9" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a loser of New York Giants and a result of 23-17?`:
```sql
                SELECT "date" FROM "1980s_giants_12_9" WHERE "loser"='new york giants' AND "result"='23-17';
```
## Task
Generate a SQL query to answer the following question:
`HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "nation"='south korea' AND "gold">2;
```
## Task
Generate a SQL query to answer the following question:
`WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "silver">1 AND "rank">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average 4th-Place, when Runners-Up is less than 1, when Club is "Tanjong Pagar United FC", and when 3rd-Place is greater than 0?`

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

CREATE TABLE "top_performing_clubs_in_the_prime_league" (
  "club" text,
  "champions" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average 4th-Place, when Runners-Up is less than 1, when Club is "Tanjong Pagar United FC", and when 3rd-Place is greater than 0?`:
```sql
                SELECT AVG("4th_place") FROM "top_performing_clubs_in_the_prime_league" WHERE "runners_up"<1 AND "club"='tanjong pagar united fc' AND "3rd_place">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Runners-Up, when Champions is less than 0?`

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

CREATE TABLE "top_performing_clubs_in_the_prime_league" (
  "club" text,
  "champions" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Runners-Up, when Champions is less than 0?`:
```sql
                SELECT MAX("runners_up") FROM "top_performing_clubs_in_the_prime_league" WHERE "champions"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Runners-Up, when 4th-Place is greater than 1, and when Champions is "2"?`

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

CREATE TABLE "top_performing_clubs_in_the_prime_league" (
  "club" text,
  "champions" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Runners-Up, when 4th-Place is greater than 1, and when Champions is "2"?`:
```sql
                SELECT AVG("runners_up") FROM "top_performing_clubs_in_the_prime_league" WHERE "4th_place">1 AND "champions"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Runners-Up, when Champions is greater than 5?`

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

CREATE TABLE "top_performing_clubs_in_the_prime_league" (
  "club" text,
  "champions" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Runners-Up, when Champions is greater than 5?`:
```sql
                SELECT SUM("runners_up") FROM "top_performing_clubs_in_the_prime_league" WHERE "champions">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest 3rd-Place, when Club is "Home United FC", and when 4th-Place is less than 1?`

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

CREATE TABLE "top_performing_clubs_in_the_prime_league" (
  "club" text,
  "champions" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest 3rd-Place, when Club is "Home United FC", and when 4th-Place is less than 1?`:
```sql
                SELECT MAX("3rd_place") FROM "top_performing_clubs_in_the_prime_league" WHERE "club"='home united fc' AND "4th_place"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total medals for nation with more than 0 silvers and more than 0 golds?`

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

CREATE TABLE "championships_per_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total medals for nation with more than 0 silvers and more than 0 golds?`:
```sql
                SELECT AVG("total") FROM "championships_per_nation" WHERE "silver">0 AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest gold medals for a team with fewer than 1 silver, more than 1 bronze and a total less than 4?`

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

CREATE TABLE "championships_per_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest gold medals for a team with fewer than 1 silver, more than 1 bronze and a total less than 4?`:
```sql
                SELECT MIN("gold") FROM "championships_per_nation" WHERE "silver"<1 AND "total"<4 AND "bronze">1;
```