cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is John Kerry, when John Edwards is "20%"?`

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

CREATE TABLE "exit_polling" (
  "classification" text,
  "pct_of_all" text,
  "john_kerry" text,
  "john_edwards" text,
  "dennis_kucinich" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is John Kerry, when John Edwards is "20%"?`:
```sql
                SELECT "john_kerry" FROM "exit_polling" WHERE "john_edwards"='20%';
```
## Task
Generate a SQL query to answer the following question:
`What is % of All, when Dennis Kucinich is "5%"?`

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

CREATE TABLE "exit_polling" (
  "classification" text,
  "pct_of_all" text,
  "john_kerry" text,
  "john_edwards" text,
  "dennis_kucinich" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is % of All, when Dennis Kucinich is "5%"?`:
```sql
                SELECT "pct_of_all" FROM "exit_polling" WHERE "dennis_kucinich"='5%';
```
## Task
Generate a SQL query to answer the following question:
`What is Robert Emmiyan's Wind number?`

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

CREATE TABLE "men" (
  "mark" text,
  "wind" text,
  "athlete" text,
  "nationality" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Robert Emmiyan's Wind number?`:
```sql
                SELECT "wind" FROM "men" WHERE "athlete"='robert emmiyan';
```
## Task
Generate a SQL query to answer the following question:
`What athlete has a wind number of 1.4?`

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

CREATE TABLE "men" (
  "mark" text,
  "wind" text,
  "athlete" text,
  "nationality" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What athlete has a wind number of 1.4?`:
```sql
                SELECT "athlete" FROM "men" WHERE "wind"='1.4';
```
## Task
Generate a SQL query to answer the following question:
`What is the mark from April 2, 1994 with a wind number of 2.0?`

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

CREATE TABLE "men" (
  "mark" text,
  "wind" text,
  "athlete" text,
  "nationality" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mark from April 2, 1994 with a wind number of 2.0?`:
```sql
                SELECT "mark" FROM "men" WHERE "wind"='2.0' AND "date"='april 2, 1994';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the second round?`

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

CREATE TABLE "dfb_cup_appearances" (
  "season" text,
  "round" text,
  "date" text,
  "home" text,
  "away" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the second round?`:
```sql
                SELECT "date" FROM "dfb_cup_appearances" WHERE "round"='second round';
```
## Task
Generate a SQL query to answer the following question:
`What is the round on 26 August 1995?`

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

CREATE TABLE "dfb_cup_appearances" (
  "season" text,
  "round" text,
  "date" text,
  "home" text,
  "away" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round on 26 August 1995?`:
```sql
                SELECT "round" FROM "dfb_cup_appearances" WHERE "date"='26 august 1995';
```
## Task
Generate a SQL query to answer the following question:
`What is the round played on 13 October 1984?`

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

CREATE TABLE "dfb_cup_appearances" (
  "season" text,
  "round" text,
  "date" text,
  "home" text,
  "away" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round played on 13 October 1984?`:
```sql
                SELECT "round" FROM "dfb_cup_appearances" WHERE "date"='13 october 1984';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for SSV ULM 1846?`

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

CREATE TABLE "dfb_cup_appearances" (
  "season" text,
  "round" text,
  "date" text,
  "home" text,
  "away" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for SSV ULM 1846?`:
```sql
                SELECT "result" FROM "dfb_cup_appearances" WHERE "home"='ssv ulm 1846';
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer window when moving to alianza atlético by the name of v. zapata?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer window when moving to alianza atlético by the name of v. zapata?`:
```sql
                SELECT "transfer_window" FROM "out" WHERE "moving_to"='alianza atlético' AND "name"='v. zapata';
```
## Task
Generate a SQL query to answer the following question:
`Where is moving to the type loaned out under the name tragodara?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is moving to the type loaned out under the name tragodara?`:
```sql
                SELECT "moving_to" FROM "out" WHERE "type"='loaned out' AND "name"='tragodara';
```
## Task
Generate a SQL query to answer the following question:
`What is the name when moving to atlético minero?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name when moving to atlético minero?`:
```sql
                SELECT "name" FROM "out" WHERE "moving_to"='atlético minero';
```
## Task
Generate a SQL query to answer the following question:
`what is the type movinig to alianza atlético?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the type movinig to alianza atlético?`:
```sql
                SELECT "type" FROM "out" WHERE "moving_to"='alianza atlético';
```
## Task
Generate a SQL query to answer the following question:
`what is the name moving to atlético minero?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name moving to atlético minero?`:
```sql
                SELECT "name" FROM "out" WHERE "moving_to"='atlético minero';
```
## Task
Generate a SQL query to answer the following question:
`What is the surface on 15 August 2009?`

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

CREATE TABLE "doubles_25_10_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface on 15 August 2009?`:
```sql
                SELECT "surface" FROM "doubles_25_10_15" WHERE "date"='15 august 2009';
```
## Task
Generate a SQL query to answer the following question:
`How many seats does the party of others have with a change of -1 and more than 0% votes?`

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

CREATE TABLE "government" (
  "party" text,
  "pct_votes" real,
  "pct_change" real,
  "seats" real,
  "change" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats does the party of others have with a change of -1 and more than 0% votes?`:
```sql
                SELECT SUM("seats") FROM "government" WHERE "change"=-1 AND "party"='others' AND "pct_votes">0;
```
## Task
Generate a SQL query to answer the following question:
`What are the fewest seats with a -3.7% change and more than 4.7% votes?`

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

CREATE TABLE "government" (
  "party" text,
  "pct_votes" real,
  "pct_change" real,
  "seats" real,
  "change" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the fewest seats with a -3.7% change and more than 4.7% votes?`:
```sql
                SELECT MIN("seats") FROM "government" WHERE "pct_change"=-3.7 AND "pct_votes">4.7;
```
## Task
Generate a SQL query to answer the following question:
`What is the change number with fewer than 4.7% votes and more than 0 seats?`

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

CREATE TABLE "government" (
  "party" text,
  "pct_votes" real,
  "pct_change" real,
  "seats" real,
  "change" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the change number with fewer than 4.7% votes and more than 0 seats?`:
```sql
                SELECT SUM("change") FROM "government" WHERE "pct_votes"<4.7 AND "seats">0;
```
## Task
Generate a SQL query to answer the following question:
`What are the fewest seats with fewer than 5.4% seats and more than -1 change?`

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

CREATE TABLE "government" (
  "party" text,
  "pct_votes" real,
  "pct_change" real,
  "seats" real,
  "change" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the fewest seats with fewer than 5.4% seats and more than -1 change?`:
```sql
                SELECT MIN("seats") FROM "government" WHERE "pct_votes"<5.4 AND "change">-1;
```
## Task
Generate a SQL query to answer the following question:
`What was the score where Olga Lugina played in the Tournament of poitiers , france itf $25,000?`

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

CREATE TABLE "doubles_13_8_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score where Olga Lugina played in the Tournament of poitiers , france itf $25,000?`:
```sql
                SELECT "score_in_the_final" FROM "doubles_13_8_5" WHERE "partner"='olga lugina' AND "tournament"='poitiers , france itf $25,000';
```
## Task
Generate a SQL query to answer the following question:
`What surface did Ruxandra Dragomir play on?`

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

CREATE TABLE "doubles_13_8_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What surface did Ruxandra Dragomir play on?`:
```sql
                SELECT "surface" FROM "doubles_13_8_5" WHERE "partner"='ruxandra dragomir';
```
## Task
Generate a SQL query to answer the following question:
`Who had the opponent of Lenka Cenková kateřina šišková in the final?`

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

CREATE TABLE "doubles_13_8_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the opponent of Lenka Cenková kateřina šišková in the final?`:
```sql
                SELECT "partner" FROM "doubles_13_8_5" WHERE "opponents_in_the_final"='lenka cenková kateřina šišková';
```
## Task
Generate a SQL query to answer the following question:
`What tournament had an opponent of Els Callens Nancy Feber?`

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

CREATE TABLE "doubles_13_8_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had an opponent of Els Callens Nancy Feber?`:
```sql
                SELECT "tournament" FROM "doubles_13_8_5" WHERE "opponents_in_the_final"='els callens nancy feber';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Winning driver has a Winning constructor of mercer?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Winning driver has a Winning constructor of mercer?`:
```sql
                SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='mercer';
```
## Task
Generate a SQL query to answer the following question:
`Which Winning driver has a Winning constructor of mercedes, and a Name of elgin trophy?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winning driver has a Winning constructor of mercedes, and a Name of elgin trophy?`:
```sql
                SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='mercedes' AND "name"='elgin trophy';
```
## Task
Generate a SQL query to answer the following question:
`Name the Report of tourist trophy?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Report of tourist trophy?`:
```sql
                SELECT "report" FROM "other_grands_prix" WHERE "name"='tourist trophy';
```
## Task
Generate a SQL query to answer the following question:
`Name the Winning constructor on 31 may and a Circuit of madonie?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Winning constructor on 31 may and a Circuit of madonie?`:
```sql
                SELECT "winning_constructor" FROM "other_grands_prix" WHERE "date"='31 may' AND "circuit"='madonie';
```
## Task
Generate a SQL query to answer the following question:
`Name the Date of mercedes, and a Circuit of elgin?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Date of mercedes, and a Circuit of elgin?`:
```sql
                SELECT "date" FROM "other_grands_prix" WHERE "winning_constructor"='mercedes' AND "circuit"='elgin';
```
## Task
Generate a SQL query to answer the following question:
`Name the Winning driver of mercedes on 22 august?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Winning driver of mercedes on 22 august?`:
```sql
                SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='mercedes' AND "date"='22 august';
```
## Task
Generate a SQL query to answer the following question:
`Which  coach had a 2007-2008 season of 6th?`

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

CREATE TABLE "members_clubs" (
  "club" text,
  "coach" text,
  "city" text,
  "stadium" text,
  "2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which  coach had a 2007-2008 season of 6th?`:
```sql
                SELECT "coach" FROM "members_clubs" WHERE "2007_2008_season"='6th';
```
## Task
Generate a SQL query to answer the following question:
`Which stadium did Rashid Budaj coach?`

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

CREATE TABLE "members_clubs" (
  "club" text,
  "coach" text,
  "city" text,
  "stadium" text,
  "2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium did Rashid Budaj coach?`:
```sql
                SELECT "stadium" FROM "members_clubs" WHERE "coach"='rashid budaj';
```
## Task
Generate a SQL query to answer the following question:
`Who coached for al farwaniyah?`

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

CREATE TABLE "members_clubs" (
  "club" text,
  "coach" text,
  "city" text,
  "stadium" text,
  "2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who coached for al farwaniyah?`:
```sql
                SELECT "coach" FROM "members_clubs" WHERE "city"='al farwaniyah';
```
## Task
Generate a SQL query to answer the following question:
`Who was the coach for qadsia?`

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

CREATE TABLE "members_clubs" (
  "club" text,
  "coach" text,
  "city" text,
  "stadium" text,
  "2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the coach for qadsia?`:
```sql
                SELECT "coach" FROM "members_clubs" WHERE "club"='qadsia';
```
## Task
Generate a SQL query to answer the following question:
`Which stadium had the club Kuwait?`

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

CREATE TABLE "members_clubs" (
  "club" text,
  "coach" text,
  "city" text,
  "stadium" text,
  "2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium had the club Kuwait?`:
```sql
                SELECT "stadium" FROM "members_clubs" WHERE "club"='kuwait';
```
## Task
Generate a SQL query to answer the following question:
`What's the score in 1990?`

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

CREATE TABLE "singles" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score in 1990?`:
```sql
                SELECT "score" FROM "singles" WHERE "year"='1990';
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion of the Philips Open with a runner-up of Javier Sánchez?`

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

CREATE TABLE "singles" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion of the Philips Open with a runner-up of Javier Sánchez?`:
```sql
                SELECT "champion" FROM "singles" WHERE "name"='philips open' AND "runner_up"='javier sánchez';
```
## Task
Generate a SQL query to answer the following question:
`What's the score of the Nice International Championships where Björn Borg was the champion?`

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

CREATE TABLE "singles" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score of the Nice International Championships where Björn Borg was the champion?`:
```sql
                SELECT "score" FROM "singles" WHERE "name"='nice international championships' AND "champion"='björn borg';
```
## Task
Generate a SQL query to answer the following question:
`What year had a score of 6–2, 2–6, 5–7, 7–6, 8–6?`

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

CREATE TABLE "singles" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a score of 6–2, 2–6, 5–7, 7–6, 8–6?`:
```sql
                SELECT "year" FROM "singles" WHERE "score"='6–2, 2–6, 5–7, 7–6, 8–6';
```
## Task
Generate a SQL query to answer the following question:
`What's the name when Henrik Sundström was champion?`

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

CREATE TABLE "singles" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name when Henrik Sundström was champion?`:
```sql
                SELECT "name" FROM "singles" WHERE "champion"='henrik sundström';
```
## Task
Generate a SQL query to answer the following question:
`When the away team was Bolton Wanderers, what was the score?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the away team was Bolton Wanderers, what was the score?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "away_team"='bolton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`On the date of 30/01/1991, when the away team was Liverpool, what was the score?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On the date of 30/01/1991, when the away team was Liverpool, what was the score?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "date"='30/01/1991' AND "away_team"='liverpool';
```
## Task
Generate a SQL query to answer the following question:
`When the tie no was 1, what was the score?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the tie no was 1, what was the score?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='1';
```
## Task
Generate a SQL query to answer the following question:
`When the home team was Shrewsbury town, what was the score?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team was Shrewsbury town, what was the score?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "home_team"='shrewsbury town';
```
## Task
Generate a SQL query to answer the following question:
`When the home team was Woking, what was the tie no?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team was Woking, what was the tie no?`:
```sql
                SELECT "tie_no" FROM "fourth_round_proper" WHERE "home_team"='woking';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game against away team Cambridge City?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game against away team Cambridge City?`:
```sql
                SELECT "attendance" FROM "replays" WHERE "away_team"='cambridge city';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that played against Aylesbury Vale?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team that played against Aylesbury Vale?`:
```sql
                SELECT "home_team" FROM "replays" WHERE "away_team"='aylesbury vale';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has 44 ties?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team has 44 ties?`:
```sql
                SELECT "home_team" FROM "replays" WHERE "tie_no"='44';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game with home team Witton Albion?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game with home team Witton Albion?`:
```sql
                SELECT "attendance" FROM "replays" WHERE "home_team"='witton albion';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the Billericay Town home game?`

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

CREATE TABLE "quarterfinals" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the Billericay Town home game?`:
```sql
                SELECT "attendance" FROM "quarterfinals" WHERE "home_team"='billericay town';
```
## Task
Generate a SQL query to answer the following question:
`What was the tie number of the away game for Ashford Town (Middx)?`

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

CREATE TABLE "quarterfinals" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie number of the away game for Ashford Town (Middx)?`:
```sql
                SELECT "tie_no" FROM "quarterfinals" WHERE "away_team"='ashford town (middx)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at the game attended by 81?`

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

CREATE TABLE "quarterfinals" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team at the game attended by 81?`:
```sql
                SELECT "away_team" FROM "quarterfinals" WHERE "attendance"='81';
```
## Task
Generate a SQL query to answer the following question:
`What score has a tie of 5?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has a tie of 5?`:
```sql
                SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='5';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that tied at 3?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game that tied at 3?`:
```sql
                SELECT "date" FROM "fifth_round_proper" WHERE "tie_no"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is European Release Date, when North American Release Date is "2013-03-05"?`

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

CREATE TABLE "games" (
  "series" text,
  "platform" text,
  "japanese_release_date" text,
  "north_american_release_date" text,
  "european_release_date" text,
  "australia_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is European Release Date, when North American Release Date is "2013-03-05"?`:
```sql
                SELECT "european_release_date" FROM "games" WHERE "north_american_release_date"='2013-03-05';
```
## Task
Generate a SQL query to answer the following question:
`What is Japanese Release Date, when Australia Release Date is "2006-03-23"?`

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

CREATE TABLE "games" (
  "series" text,
  "platform" text,
  "japanese_release_date" text,
  "north_american_release_date" text,
  "european_release_date" text,
  "australia_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Japanese Release Date, when Australia Release Date is "2006-03-23"?`:
```sql
                SELECT "japanese_release_date" FROM "games" WHERE "australia_release_date"='2006-03-23';
```
## Task
Generate a SQL query to answer the following question:
`What is North American Release Date, when Japanese Release Date is "2011-06-23"?`

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

CREATE TABLE "games" (
  "series" text,
  "platform" text,
  "japanese_release_date" text,
  "north_american_release_date" text,
  "european_release_date" text,
  "australia_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is North American Release Date, when Japanese Release Date is "2011-06-23"?`:
```sql
                SELECT "north_american_release_date" FROM "games" WHERE "japanese_release_date"='2011-06-23';
```
## Task
Generate a SQL query to answer the following question:
`What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws?`:
```sql
                SELECT SUM("goal_difference") FROM "group_ii" WHERE "draws"=8 AND "goals_against"=32 AND "wins"<12;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest goal difference when the position is higher than 16?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest goal difference when the position is higher than 16?`:
```sql
                SELECT MIN("goal_difference") FROM "group_ii" WHERE "position">16;
```
## Task
Generate a SQL query to answer the following question:
`Which venue was the opposing team New Zealand on 22/11/1997?`

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

CREATE TABLE "1997" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue was the opposing team New Zealand on 22/11/1997?`:
```sql
                SELECT "venue" FROM "1997" WHERE "opposing_teams"='new zealand' AND "date"='22/11/1997';
```
## Task
Generate a SQL query to answer the following question:
`What day was the opposing team Australia and the against 25?`

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

CREATE TABLE "1997" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the opposing team Australia and the against 25?`:
```sql
                SELECT "date" FROM "1997" WHERE "against"=25 AND "opposing_teams"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What was the status for the opposing team South Africa?`

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

CREATE TABLE "1997" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the status for the opposing team South Africa?`:
```sql
                SELECT "status" FROM "1997" WHERE "opposing_teams"='south africa';
```
## Task
Generate a SQL query to answer the following question:
`What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley?`:
```sql
                SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "position"='mf' AND "league_cup_apps"='0' AND "name"='ben thornley';
```
## Task
Generate a SQL query to answer the following question:
`What is the Total Apps when League Cup Apps is 0 (1), and position is df?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total Apps when League Cup Apps is 0 (1), and position is df?`:
```sql
                SELECT "total_apps" FROM "appearances_and_goals" WHERE "league_cup_apps"='0 (1)' AND "position"='df';
```
## Task
Generate a SQL query to answer the following question:
`What is the total goals for Mark Ward?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total goals for Mark Ward?`:
```sql
                SELECT MIN("total_goals") FROM "appearances_and_goals" WHERE "name"='mark ward';
```
## Task
Generate a SQL query to answer the following question:
`What is the political party of Jackie Goldberg?`

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

CREATE TABLE "former_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the political party of Jackie Goldberg?`:
```sql
                SELECT "party" FROM "former_members" WHERE "name"='jackie goldberg';
```
## Task
Generate a SQL query to answer the following question:
`During what years was Christine Kehoe in Assembly?`

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

CREATE TABLE "former_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `During what years was Christine Kehoe in Assembly?`:
```sql
                SELECT "years_in_assembly" FROM "former_members" WHERE "name"='christine kehoe';
```
## Task
Generate a SQL query to answer the following question:
`What were the San Francisco resident's years in assembly?`

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

CREATE TABLE "former_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the San Francisco resident's years in assembly?`:
```sql
                SELECT "years_in_assembly" FROM "former_members" WHERE "residence"='san francisco';
```
## Task
Generate a SQL query to answer the following question:
`What political party does the person from San Diego belong to?`

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

CREATE TABLE "former_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What political party does the person from San Diego belong to?`:
```sql
                SELECT "party" FROM "former_members" WHERE "residence"='san diego';
```
## Task
Generate a SQL query to answer the following question:
`Which Opposing Teams is on 06/02/1988?`

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

CREATE TABLE "1988" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opposing Teams is on 06/02/1988?`:
```sql
                SELECT "opposing_teams" FROM "1988" WHERE "date"='06/02/1988';
```
## Task
Generate a SQL query to answer the following question:
`When Status of five nations, and a Venue of twickenham , london, and a Opposing Teams of ireland are in?`

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

CREATE TABLE "1988" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Status of five nations, and a Venue of twickenham , london, and a Opposing Teams of ireland are in?`:
```sql
                SELECT "date" FROM "1988" WHERE "status"='five nations' AND "venue"='twickenham , london' AND "opposing_teams"='ireland';
```
## Task
Generate a SQL query to answer the following question:
`What's the attendance when the opponents are cambridge united?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the attendance when the opponents are cambridge united?`:
```sql
                SELECT "attendance" FROM "pre_season_and_friendlies" WHERE "opponents"='cambridge united';
```
## Task
Generate a SQL query to answer the following question:
`What's the average attendance when the opponents are dundalk?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average attendance when the opponents are dundalk?`:
```sql
                SELECT AVG("attendance") FROM "pre_season_and_friendlies" WHERE "opponents"='dundalk';
```
## Task
Generate a SQL query to answer the following question:
`What's the total attendance for H/A of A and opponents of wolverhampton wanderers?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total attendance for H/A of A and opponents of wolverhampton wanderers?`:
```sql
                SELECT COUNT("attendance") FROM "pre_season_and_friendlies" WHERE "h_a"='a' AND "opponents"='wolverhampton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Gold smaller than 4?`

### 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 `Which Total has a Gold smaller than 4?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "gold"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Nation of china (chn), and a Bronze smaller than 4?`

### 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 `Which Rank has a Nation of china (chn), and a Bronze smaller than 4?`:
```sql
                SELECT MAX("rank") FROM "medal_table" WHERE "nation"='china (chn)' AND "bronze"<4;
```
## Task
Generate a SQL query to answer the following question:
`How much Total has a Bronze smaller than 13, and a Nation of netherlands (ned), and a Gold larger than 4?`

### 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 much Total has a Bronze smaller than 13, and a Nation of netherlands (ned), and a Gold larger than 4?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "bronze"<13 AND "nation"='netherlands (ned)' AND "gold">4;
```
## Task
Generate a SQL query to answer the following question:
`Which website was founded before 1897, and is located in Adaminaby?`

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

CREATE TABLE "a" (
  "school" text,
  "suburb_town" text,
  "years" text,
  "founded" real,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which website was founded before 1897, and is located in Adaminaby?`:
```sql
                SELECT "website" FROM "a" WHERE "founded"<1897 AND "suburb_town"='adaminaby';
```
## Task
Generate a SQL query to answer the following question:
`Which website is located in Albury and has a school of Albury High School?`

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

CREATE TABLE "a" (
  "school" text,
  "suburb_town" text,
  "years" text,
  "founded" real,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which website is located in Albury and has a school of Albury High School?`:
```sql
                SELECT "website" FROM "a" WHERE "suburb_town"='albury' AND "school"='albury high school';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year founded that is located in Broken Hill and has school years of k-6?`

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

CREATE TABLE "a" (
  "school" text,
  "suburb_town" text,
  "years" text,
  "founded" real,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year founded that is located in Broken Hill and has school years of k-6?`:
```sql
                SELECT AVG("founded") FROM "a" WHERE "years"='k-6' AND "suburb_town"='broken hill';
```
## Task
Generate a SQL query to answer the following question:
`What suburb/town has school years of k-6, was founded before 1875, and has Ashfield Public School as its school?`

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

CREATE TABLE "a" (
  "school" text,
  "suburb_town" text,
  "years" text,
  "founded" real,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What suburb/town has school years of k-6, was founded before 1875, and has Ashfield Public School as its school?`:
```sql
                SELECT "suburb_town" FROM "a" WHERE "years"='k-6' AND "founded"<1875 AND "school"='ashfield public school';
```