cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the average week number for games that had 28,800 fans in attendance?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average week number for games that had 28,800 fans in attendance?`:
```sql
                SELECT AVG("week") FROM "regular_season" WHERE "attendance"='28,800';
```
## Task
Generate a SQL query to answer the following question:
`Who did the argonauts play against during the game that had 19,423 fans in attendance?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the argonauts play against during the game that had 19,423 fans in attendance?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "attendance"='19,423';
```
## Task
Generate a SQL query to answer the following question:
`What was Juli's winning margin on Aug 24, 1986?`

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

CREATE TABLE "lpga_tour_wins_31" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Juli's winning margin on Aug 24, 1986?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_tour_wins_31" WHERE "date"='aug 24, 1986';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory at the LPGA Championship?`

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

CREATE TABLE "lpga_tour_wins_31" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory at the LPGA Championship?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_tour_wins_31" WHERE "tournament"='lpga championship';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest value for Ties, when Losses is less than 8?`

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

CREATE TABLE "coaching_record" (
  "season" text,
  "wins" real,
  "losses" real,
  "ties" real,
  "ivy_lg_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value for Ties, when Losses is less than 8?`:
```sql
                SELECT MAX("ties") FROM "coaching_record" WHERE "losses"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Losses, when Ties is 2, and when Wins is greater than 8?`

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

CREATE TABLE "coaching_record" (
  "season" text,
  "wins" real,
  "losses" real,
  "ties" real,
  "ivy_lg_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Losses, when Ties is 2, and when Wins is greater than 8?`:
```sql
                SELECT COUNT("losses") FROM "coaching_record" WHERE "ties"=2 AND "wins">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest React that has a 7.61 Mark and a heat bigger than 1?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest React that has a 7.61 Mark and a heat bigger than 1?`:
```sql
                SELECT MAX("react") FROM "heats" WHERE "mark"='7.61' AND "heat">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the Cause of death of the Officer with a Date of death of 1956-09-07?`

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

CREATE TABLE "officers" (
  "rank" text,
  "badge_serial_number" text,
  "tenure" text,
  "date_of_death" text,
  "cause_of_death" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Cause of death of the Officer with a Date of death of 1956-09-07?`:
```sql
                SELECT "cause_of_death" FROM "officers" WHERE "date_of_death"='1956-09-07';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tenure of the Officer who died in a helicopter accident with Badge/Serial Number 16805?`

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

CREATE TABLE "officers" (
  "rank" text,
  "badge_serial_number" text,
  "tenure" text,
  "date_of_death" text,
  "cause_of_death" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tenure of the Officer who died in a helicopter accident with Badge/Serial Number 16805?`:
```sql
                SELECT "tenure" FROM "officers" WHERE "cause_of_death"='helicopter accident' AND "badge_serial_number"='16805';
```
## Task
Generate a SQL query to answer the following question:
`What is the Badge/Serial Number of the Policeman who died in Gunfire on 1919-02-18?`

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

CREATE TABLE "officers" (
  "rank" text,
  "badge_serial_number" text,
  "tenure" text,
  "date_of_death" text,
  "cause_of_death" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Badge/Serial Number of the Policeman who died in Gunfire on 1919-02-18?`:
```sql
                SELECT "badge_serial_number" FROM "officers" WHERE "rank"='policeman' AND "cause_of_death"='gunfire' AND "date_of_death"='1919-02-18';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Officer with Badge/Serial Number 11755 who died in Gunfire?`

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

CREATE TABLE "officers" (
  "rank" text,
  "badge_serial_number" text,
  "tenure" text,
  "date_of_death" text,
  "cause_of_death" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Officer with Badge/Serial Number 11755 who died in Gunfire?`:
```sql
                SELECT "rank" FROM "officers" WHERE "cause_of_death"='gunfire' AND "badge_serial_number"='11755';
```
## Task
Generate a SQL query to answer the following question:
`What is Team, when Tries Against is 8?`

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

CREATE TABLE "pool_1" (
  "team" text,
  "tries_for" text,
  "tries_against" text,
  "try_diff" text,
  "points_for" text,
  "points_against" text,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team, when Tries Against is 8?`:
```sql
                SELECT "team" FROM "pool_1" WHERE "tries_against"='8';
```
## Task
Generate a SQL query to answer the following question:
`What is Tries Against, when Tries For is 20?`

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

CREATE TABLE "pool_1" (
  "team" text,
  "tries_for" text,
  "tries_against" text,
  "try_diff" text,
  "points_for" text,
  "points_against" text,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tries Against, when Tries For is 20?`:
```sql
                SELECT "tries_against" FROM "pool_1" WHERE "tries_for"='20';
```
## Task
Generate a SQL query to answer the following question:
`What is Tries Against, when Points For is 98?`

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

CREATE TABLE "pool_1" (
  "team" text,
  "tries_for" text,
  "tries_against" text,
  "try_diff" text,
  "points_for" text,
  "points_against" text,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tries Against, when Points For is 98?`:
```sql
                SELECT "tries_against" FROM "pool_1" WHERE "points_for"='98';
```
## Task
Generate a SQL query to answer the following question:
`What is Points Against, when Try Diff is +22?`

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

CREATE TABLE "pool_1" (
  "team" text,
  "tries_for" text,
  "tries_against" text,
  "try_diff" text,
  "points_for" text,
  "points_against" text,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Points Against, when Try Diff is +22?`:
```sql
                SELECT "points_against" FROM "pool_1" WHERE "try_diff"='+22';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"?`

### 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 Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='independent event' AND "method"='submission (peruvian necktie)';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Method is "Submission (Armbar)", and when Opponent is "Jason St. Louis"?`

### 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 Event, when Method is "Submission (Armbar)", and when Opponent is "Jason St. Louis"?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)' AND "opponent"='jason st. louis';
```
## Task
Generate a SQL query to answer the following question:
`What is Res., when Event is "KOTC 11 - Domination"?`

### 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 Res., when Event is "KOTC 11 - Domination"?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "event"='kotc 11 - domination';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance with a Result of l 17–10?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance with a Result of l 17–10?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "result"='l 17–10';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance in a week lower than 5 with a Bye result?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance in a week lower than 5 with a Bye result?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"<5 AND "result"='bye';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the result w 26–20?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the result w 26–20?`:
```sql
                SELECT "date" FROM "schedule" WHERE "result"='w 26–20';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in a week below 14 on October 10, 1993?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in a week below 14 on October 10, 1993?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"<14 AND "date"='october 10, 1993';
```
## Task
Generate a SQL query to answer the following question:
`Name the average Top 5 which has a Position of 52nd with a Year smaller than 2000?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Top 5 which has a Position of 52nd with a Year smaller than 2000?`:
```sql
                SELECT AVG("top_5") FROM "nascar_nationwide_series" WHERE "position"='52nd' AND "year"<2000;
```
## Task
Generate a SQL query to answer the following question:
`Name the average Wins  which has a Top 10 smaller than 0?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Wins  which has a Top 10 smaller than 0?`:
```sql
                SELECT AVG("wins") FROM "nascar_nationwide_series" WHERE "top_10"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Points Classification does the General Classification of Cyril Dessel have?`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points Classification does the General Classification of Cyril Dessel have?`:
```sql
                SELECT "points_classification" FROM "jersey_progress" WHERE "general_classification"='cyril dessel';
```
## Task
Generate a SQL query to answer the following question:
`What is the Team Classification if the Winner is Cyril Dessel?`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team Classification if the Winner is Cyril Dessel?`:
```sql
                SELECT "team_classification" FROM "jersey_progress" WHERE "winner"='cyril dessel';
```
## Task
Generate a SQL query to answer the following question:
`In the final Stage with a Mountains Classification of Christophe Moreau, what is the Team Classification?`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the final Stage with a Mountains Classification of Christophe Moreau, what is the Team Classification?`:
```sql
                SELECT "team_classification" FROM "jersey_progress" WHERE "mountains_classification"='christophe moreau' AND "stage"='final';
```
## Task
Generate a SQL query to answer the following question:
`What is the Mountains Classification for Winner Thor hushovd with Sprints Classification of no award?`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mountains Classification for Winner Thor hushovd with Sprints Classification of no award?`:
```sql
                SELECT "mountains_classification" FROM "jersey_progress" WHERE "winner"='thor hushovd' AND "sprints_classification"='no award';
```
## Task
Generate a SQL query to answer the following question:
`What is the Mountains Classification for Winner josé luis carrasco?`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mountains Classification for Winner josé luis carrasco?`:
```sql
                SELECT "mountains_classification" FROM "jersey_progress" WHERE "winner"='josé luis carrasco';
```
## Task
Generate a SQL query to answer the following question:
`Which channel has Joel Meyers as the Play by play commentator?`

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

CREATE TABLE "2000s" (
  "channel" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text,
  "studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which channel has Joel Meyers as the Play by play commentator?`:
```sql
                SELECT "channel" FROM "2000s" WHERE "play_by_play"='joel meyers';
```
## Task
Generate a SQL query to answer the following question:
`Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio Analyst?`

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

CREATE TABLE "2000s" (
  "channel" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text,
  "studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio Analyst?`:
```sql
                SELECT "studio_host" FROM "2000s" WHERE "play_by_play"='paul sunderland' AND "studio_analysts"='jack haley';
```
## Task
Generate a SQL query to answer the following question:
`Who is the studio host for the game broadcasted by Fox Sports Net west and has Chick Hearn as the play by play commentator ?`

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

CREATE TABLE "2000s" (
  "channel" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text,
  "studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the studio host for the game broadcasted by Fox Sports Net west and has Chick Hearn as the play by play commentator ?`:
```sql
                SELECT "studio_host" FROM "2000s" WHERE "channel"='fox sports net west' AND "play_by_play"='chick hearn';
```
## Task
Generate a SQL query to answer the following question:
`Who is the play by play commentator for the game that has Alan Massengale as Studio Host?`

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

CREATE TABLE "2000s" (
  "channel" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text,
  "studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the play by play commentator for the game that has Alan Massengale as Studio Host?`:
```sql
                SELECT "play_by_play" FROM "2000s" WHERE "studio_host"='alan massengale';
```
## Task
Generate a SQL query to answer the following question:
`which channel will have play by play commentator Paul Sunderland, Studio Host Bill Macdonald and Studi Analysty Jack Haley?`

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

CREATE TABLE "2000s" (
  "channel" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text,
  "studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `which channel will have play by play commentator Paul Sunderland, Studio Host Bill Macdonald and Studi Analysty Jack Haley?`:
```sql
                SELECT "channel" FROM "2000s" WHERE "play_by_play"='paul sunderland' AND "studio_host"='bill macdonald' AND "studio_analysts"='jack haley';
```
## Task
Generate a SQL query to answer the following question:
`How many Assists have a Club of adler mannheim, and Points larger than 57?`

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

CREATE TABLE "regular_season" (
  "player" text,
  "club" text,
  "games" real,
  "goals" real,
  "assists" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Assists have a Club of adler mannheim, and Points larger than 57?`:
```sql
                SELECT SUM("assists") FROM "regular_season" WHERE "club"='adler mannheim' AND "points">57;
```
## Task
Generate a SQL query to answer the following question:
`How many points have 41 assists?`

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

CREATE TABLE "regular_season" (
  "player" text,
  "club" text,
  "games" real,
  "goals" real,
  "assists" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points have 41 assists?`:
```sql
                SELECT SUM("points") FROM "regular_season" WHERE "assists"=41;
```
## Task
Generate a SQL query to answer the following question:
`Which Goals have a Player of david mcllwain, and Games larger than 52?`

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

CREATE TABLE "regular_season" (
  "player" text,
  "club" text,
  "games" real,
  "goals" real,
  "assists" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Goals have a Player of david mcllwain, and Games larger than 52?`:
```sql
                SELECT MAX("goals") FROM "regular_season" WHERE "player"='david mcllwain' AND "games">52;
```
## Task
Generate a SQL query to answer the following question:
`Which Platform is the one that has a Stop number of 99014?`

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

CREATE TABLE "platforms" (
  "stop_no" text,
  "platform" text,
  "line" text,
  "stopping_pattern" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Platform is the one that has a Stop number of 99014?`:
```sql
                SELECT "platform" FROM "platforms" WHERE "stop_no"='99014';
```
## Task
Generate a SQL query to answer the following question:
`Which Line has a Platform of 3?`

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

CREATE TABLE "platforms" (
  "stop_no" text,
  "platform" text,
  "line" text,
  "stopping_pattern" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Line has a Platform of 3?`:
```sql
                SELECT "line" FROM "platforms" WHERE "platform"='3';
```
## Task
Generate a SQL query to answer the following question:
`Which Destination has a Stopping pattern of [2777] mciver station platforms?`

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

CREATE TABLE "platforms" (
  "stop_no" text,
  "platform" text,
  "line" text,
  "stopping_pattern" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Destination has a Stopping pattern of [2777] mciver station platforms?`:
```sql
                SELECT "destination" FROM "platforms" WHERE "stopping_pattern"='[2777] mciver station platforms';
```
## Task
Generate a SQL query to answer the following question:
`Which Stop # has a Platform of [2777] mciver station platforms?`

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

CREATE TABLE "platforms" (
  "stop_no" text,
  "platform" text,
  "line" text,
  "stopping_pattern" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Stop # has a Platform of [2777] mciver station platforms?`:
```sql
                SELECT "stop_no" FROM "platforms" WHERE "platform"='[2777] mciver station platforms';
```
## Task
Generate a SQL query to answer the following question:
`Which Line has a Stopping pattern of all stations, A, b, p?`

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

CREATE TABLE "platforms" (
  "stop_no" text,
  "platform" text,
  "line" text,
  "stopping_pattern" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Line has a Stopping pattern of all stations, A, b, p?`:
```sql
                SELECT "line" FROM "platforms" WHERE "stopping_pattern"='all stations, a, b, p';
```
## Task
Generate a SQL query to answer the following question:
`Which Stopping pattern has a Platform of [2777] mciver station platforms?`

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

CREATE TABLE "platforms" (
  "stop_no" text,
  "platform" text,
  "line" text,
  "stopping_pattern" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Stopping pattern has a Platform of [2777] mciver station platforms?`:
```sql
                SELECT "stopping_pattern" FROM "platforms" WHERE "platform"='[2777] mciver station platforms';
```
## Task
Generate a SQL query to answer the following question:
`Who was runner-up at Berlin when the result was 2-0 with 100,000 fans in attendance?`

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

CREATE TABLE "german_championship_finals_under_the_gau" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "result" text,
  "date" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was runner-up at Berlin when the result was 2-0 with 100,000 fans in attendance?`:
```sql
                SELECT "runner_up" FROM "german_championship_finals_under_the_gau" WHERE "venue"='berlin' AND "result"='2-0' AND "attendance"='100,000';
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion at berlin when the result was 2-0 with 100,000 fans in attendance?`

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

CREATE TABLE "german_championship_finals_under_the_gau" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "result" text,
  "date" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion at berlin when the result was 2-0 with 100,000 fans in attendance?`:
```sql
                SELECT "champion" FROM "german_championship_finals_under_the_gau" WHERE "venue"='berlin' AND "attendance"='100,000' AND "result"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`What year had an attendance of 90,000?`

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

CREATE TABLE "german_championship_finals_under_the_gau" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "result" text,
  "date" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had an attendance of 90,000?`:
```sql
                SELECT "year" FROM "german_championship_finals_under_the_gau" WHERE "attendance"='90,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc?`

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

CREATE TABLE "german_championship_finals_under_the_gau" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "result" text,
  "date" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc?`:
```sql
                SELECT SUM("year") FROM "german_championship_finals_under_the_gau" WHERE "attendance"='95,000' AND "runner_up"='dresdner sc';
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion when the attendance was 70,000?`

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

CREATE TABLE "german_championship_finals_under_the_gau" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "result" text,
  "date" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion when the attendance was 70,000?`:
```sql
                SELECT "champion" FROM "german_championship_finals_under_the_gau" WHERE "attendance"='70,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height (ft) of the Churchill House with a Height (m) less than 59?`

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

CREATE TABLE "tallest_completed_buildings_and_structur" (
  "rank" text,
  "name" text,
  "height_m" real,
  "height_ft" real,
  "floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height (ft) of the Churchill House with a Height (m) less than 59?`:
```sql
                SELECT COUNT("height_ft") FROM "tallest_completed_buildings_and_structur" WHERE "name"='churchill house' AND "height_m"<59;
```
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Canterbury House with 12 Floors and a Rank of 75=?`

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

CREATE TABLE "tallest_completed_buildings_and_structur" (
  "rank" text,
  "name" text,
  "height_m" real,
  "height_ft" real,
  "floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Canterbury House with 12 Floors and a Rank of 75=?`:
```sql
                SELECT AVG("height_ft") FROM "tallest_completed_buildings_and_structur" WHERE "floors"='12' AND "rank"='75=' AND "name"='canterbury house';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height (m) of the 32= Rank Building with 18 Floors and Height (ft) greater than 171?`

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

CREATE TABLE "tallest_completed_buildings_and_structur" (
  "rank" text,
  "name" text,
  "height_m" real,
  "height_ft" real,
  "floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height (m) of the 32= Rank Building with 18 Floors and Height (ft) greater than 171?`:
```sql
                SELECT AVG("height_m") FROM "tallest_completed_buildings_and_structur" WHERE "floors"='18' AND "height_ft">171 AND "rank"='32=';
```
## Task
Generate a SQL query to answer the following question:
`Total for 1994, 1997 years won?`

### 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 `Total for 1994, 1997 years won?`:
```sql
                SELECT SUM("total") FROM "made_the_cut" WHERE "year_s_won"='1994, 1997';
```
## Task
Generate a SQL query to answer the following question:
`Player than won in 2003?`

### 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 `Player than won in 2003?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='2003';
```
## Task
Generate a SQL query to answer the following question:
`Average total for jim furyk?`

### 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 `Average total for jim furyk?`:
```sql
                SELECT AVG("total") FROM "made_the_cut" WHERE "player"='jim furyk';
```
## Task
Generate a SQL query to answer the following question:
`Which record had a visitor of New Jersey Devils on May 7?`

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

CREATE TABLE "new_jersey_devils_4_boston_bruins_1" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record had a visitor of New Jersey Devils on May 7?`:
```sql
                SELECT "record" FROM "new_jersey_devils_4_boston_bruins_1" WHERE "visitor"='new jersey devils' AND "date"='may 7';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on May 8?`

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

CREATE TABLE "new_jersey_devils_4_boston_bruins_1" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on May 8?`:
```sql
                SELECT "record" FROM "new_jersey_devils_4_boston_bruins_1" WHERE "date"='may 8';
```
## Task
Generate a SQL query to answer the following question:
`What is Nelspruit's population?`

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

CREATE TABLE "provinces" (
  "province" text,
  "provincial_capital" text,
  "largest_city" text,
  "area_km_2" real,
  "population_2013" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Nelspruit's population?`:
```sql
                SELECT COUNT("population_2013") FROM "provinces" WHERE "largest_city"='nelspruit';
```
## Task
Generate a SQL query to answer the following question:
`When Hapoel tel aviv was team 2 and 1st leg was 1–2, what was the 2nd leg?`

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

CREATE TABLE "play_off_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Hapoel tel aviv was team 2 and 1st leg was 1–2, what was the 2nd leg?`:
```sql
                SELECT "2nd_leg" FROM "play_off_round" WHERE "1st_leg"='1–2' AND "team_2"='hapoel tel aviv';
```
## Task
Generate a SQL query to answer the following question:
`Which Time has a Round of 3, and a Record of 2–0?`

### 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,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time has a Round of 3, and a Record of 2–0?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"=3 AND "record"='2–0';
```
## Task
Generate a SQL query to answer the following question:
`What were the average laps on a grid of 11?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the average laps on a grid of 11?`:
```sql
                SELECT AVG("laps") FROM "moto_gp_classification" WHERE "grid"=11;
```
## Task
Generate a SQL query to answer the following question:
`Where is the location with a record of 50-19?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the location with a record of 50-19?`:
```sql
                SELECT "location" FROM "game_log" WHERE "record"='50-19';
```
## Task
Generate a SQL query to answer the following question:
`Which game had a record of 45-16?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game had a record of 45-16?`:
```sql
                SELECT AVG("game") FROM "game_log" WHERE "record"='45-16';
```
## Task
Generate a SQL query to answer the following question:
`Which game is located in Boston Garden and has a record of 49-17?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game is located in Boston Garden and has a record of 49-17?`:
```sql
                SELECT "game" FROM "game_log" WHERE "location"='boston garden' AND "record"='49-17';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest 1st LBSC number with a LBSC Name of northcote?`

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

CREATE TABLE "references" (
  "1st_lbsc_no" real,
  "lbsc_name" text,
  "built" text,
  "2nd_lbsc_no" text,
  "1st_sr_no" text,
  "2ns_sr_no" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest 1st LBSC number with a LBSC Name of northcote?`:
```sql
                SELECT MAX("1st_lbsc_no") FROM "references" WHERE "lbsc_name"='northcote';
```
## Task
Generate a SQL query to answer the following question:
`What is the result when the round shows 34?`

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

CREATE TABLE "results_by_round" (
  "round" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result when the round shows 34?`:
```sql
                SELECT "result" FROM "results_by_round" WHERE "round"=34;
```
## Task
Generate a SQL query to answer the following question:
`What is the venue when Woking was the opponent, and the round was less than 29?`

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

CREATE TABLE "results_by_round" (
  "round" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue when Woking was the opponent, and the round was less than 29?`:
```sql
                SELECT "venue" FROM "results_by_round" WHERE "opponent"='woking' AND "round"<29;
```
## Task
Generate a SQL query to answer the following question:
`What is the round number when the opponent was Wrexham, and the venue shows as Away?`

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

CREATE TABLE "results_by_round" (
  "round" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round number when the opponent was Wrexham, and the venue shows as Away?`:
```sql
                SELECT COUNT("round") FROM "results_by_round" WHERE "opponent"='wrexham' AND "venue"='away';
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest position when the name is esv türkheim, and Drawn more than 0?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest position when the name is esv türkheim, and Drawn more than 0?`:
```sql
                SELECT MIN("position") FROM "main_round" WHERE "name"='esv türkheim' AND "drawn">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest drawn when played is more than 14?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest drawn when played is more than 14?`:
```sql
                SELECT MAX("drawn") FROM "main_round" WHERE "played">14;
```
## Task
Generate a SQL query to answer the following question:
`what is the least drawn when the name is sv apfeldorf and the position is more than 8?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least drawn when the name is sv apfeldorf and the position is more than 8?`:
```sql
                SELECT MIN("drawn") FROM "main_round" WHERE "name"='sv apfeldorf' AND "position">8;
```
## Task
Generate a SQL query to answer the following question:
`who is the winner when the team is mobil 1 racing?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the winner when the team is mobil 1 racing?`:
```sql
                SELECT "winner" FROM "race_calendar" WHERE "team"='mobil 1 racing';
```
## Task
Generate a SQL query to answer the following question:
`what is the circuit when the date is 16 april?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the circuit when the date is 16 april?`:
```sql
                SELECT "circuit" FROM "race_calendar" WHERE "date"='16 april';
```
## Task
Generate a SQL query to answer the following question:
`what is the circuit when the date is 4 june?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the circuit when the date is 4 june?`:
```sql
                SELECT "circuit" FROM "race_calendar" WHERE "date"='4 june';
```
## Task
Generate a SQL query to answer the following question:
`what is the race title when the winner is dick johnson and the circuit is sandown raceway?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the race title when the winner is dick johnson and the circuit is sandown raceway?`:
```sql
                SELECT "race_title" FROM "race_calendar" WHERE "winner"='dick johnson' AND "circuit"='sandown raceway';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the game 1 played at Portland?`

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

CREATE TABLE "western_conference_semifinals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the game 1 played at Portland?`:
```sql
                SELECT "date" FROM "western_conference_semifinals" WHERE "home_team"='portland' AND "game"='game 1';
```
## Task
Generate a SQL query to answer the following question:
`Who was the road team on May 2?`

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

CREATE TABLE "western_conference_semifinals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the road team on May 2?`:
```sql
                SELECT "road_team" FROM "western_conference_semifinals" WHERE "date"='may 2';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Portland play game 5 at home?`

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

CREATE TABLE "western_conference_semifinals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Portland play game 5 at home?`:
```sql
                SELECT "date" FROM "western_conference_semifinals" WHERE "home_team"='portland' AND "game"='game 5';
```