cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the score for the To par of +1?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the To par of +1?`:
```sql
                SELECT "score" FROM "third_round" WHERE "to_par"='+1';
```
## Task
Generate a SQL query to answer the following question:
`Who placed in t5 and scored 73-69-68=210?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who placed in t5 and scored 73-69-68=210?`:
```sql
                SELECT "player" FROM "third_round" WHERE "place"='t5' AND "score"='73-69-68=210';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the record was 11-6-2?`

### 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" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the record was 11-6-2?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='11-6-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team of the match with an attendance greater than 202?`

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

CREATE TABLE "fourth_round" (
  "tie_no" real,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team of the match with an attendance greater than 202?`:
```sql
                SELECT "home_team" FROM "fourth_round" WHERE "attendance">202;
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance of the match with arlesey town as the home team?`

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

CREATE TABLE "fourth_round" (
  "tie_no" real,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance of the match with arlesey town as the home team?`:
```sql
                SELECT AVG("attendance") FROM "fourth_round" WHERE "home_team"='arlesey town';
```
## Task
Generate a SQL query to answer the following question:
`When was the Lakeside race where Paul Morris won?`

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

CREATE TABLE "race_calendar" (
  "race" real,
  "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 `When was the Lakeside race where Paul Morris won?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "race_title"='lakeside' AND "winner"='paul morris';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game against the phoenix suns?`

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

CREATE TABLE "november" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game against the phoenix suns?`:
```sql
                SELECT "score" FROM "november" WHERE "opponent"='phoenix suns';
```
## Task
Generate a SQL query to answer the following question:
`What was the opponent of the game when the reocrd was 0-12?`

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

CREATE TABLE "november" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opponent of the game when the reocrd was 0-12?`:
```sql
                SELECT "opponent" FROM "november" WHERE "record"='0-12';
```
## Task
Generate a SQL query to answer the following question:
`How many years had a location at Forest Hills and a score of 6–3, 6–3 for John McEnroe?`

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

CREATE TABLE "singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years had a location at Forest Hills and a score of 6–3, 6–3 for John McEnroe?`:
```sql
                SELECT COUNT("year") FROM "singles" WHERE "location"='forest hills' AND "runner_up"='john mcenroe' AND "score"='6–3, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Who is the champion with a score of 7–6, 6–0?`

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

CREATE TABLE "singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the champion with a score of 7–6, 6–0?`:
```sql
                SELECT "champion" FROM "singles" WHERE "score"='7–6, 6–0';
```
## Task
Generate a SQL query to answer the following question:
`Who is the runner-up in 1990?`

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

CREATE TABLE "singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the runner-up in 1990?`:
```sql
                SELECT "runner_up" FROM "singles" WHERE "year"=1990;
```
## Task
Generate a SQL query to answer the following question:
`When was the earliest year that Guillermo Vilas was the runner-up?`

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

CREATE TABLE "singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the earliest year that Guillermo Vilas was the runner-up?`:
```sql
                SELECT MIN("year") FROM "singles" WHERE "runner_up"='guillermo vilas';
```
## Task
Generate a SQL query to answer the following question:
`What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april?`

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

CREATE TABLE "2013" (
  "date" text,
  "place" text,
  "race_winners" text,
  "gp_winner" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april?`:
```sql
                SELECT "source" FROM "2013" WHERE "race_winners"='ben adriaenssen / ben van den bogaart' AND "gp_winner"='ben adriaenssen / ben van den bogaart' AND "date"='1 april';
```
## Task
Generate a SQL query to answer the following question:
`What is the GP winner for the Race winners valentin giraud / nicolas musset, and a place genk?`

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

CREATE TABLE "2013" (
  "date" text,
  "place" text,
  "race_winners" text,
  "gp_winner" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GP winner for the Race winners valentin giraud / nicolas musset, and a place genk?`:
```sql
                SELECT "gp_winner" FROM "2013" WHERE "race_winners"='valentin giraud / nicolas musset' AND "place"='genk';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for a source of result and a place of iffendic?`

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

CREATE TABLE "2013" (
  "date" text,
  "place" text,
  "race_winners" text,
  "gp_winner" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for a source of result and a place of iffendic?`:
```sql
                SELECT "date" FROM "2013" WHERE "source"='result' AND "place"='iffendic';
```
## Task
Generate a SQL query to answer the following question:
`What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What`

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

CREATE TABLE "2013" (
  "date" text,
  "place" text,
  "race_winners" text,
  "gp_winner" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What`:
```sql
                SELECT "date" FROM "2013" WHERE "place"='chernivtsi' AND "race_winners"='etienne bax / kaspars stupelis';
```
## Task
Generate a SQL query to answer the following question:
`What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den bogaart?`

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

CREATE TABLE "2013" (
  "date" text,
  "place" text,
  "race_winners" text,
  "gp_winner" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den bogaart?`:
```sql
                SELECT "gp_winner" FROM "2013" WHERE "place"='genk' AND "race_winners"='ben adriaenssen / ben van den bogaart';
```
## Task
Generate a SQL query to answer the following question:
`What is the race winners for the date of 23 june?`

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

CREATE TABLE "2013" (
  "date" text,
  "place" text,
  "race_winners" text,
  "gp_winner" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the race winners for the date of 23 june?`:
```sql
                SELECT "race_winners" FROM "2013" WHERE "date"='23 june';
```
## Task
Generate a SQL query to answer the following question:
`What date was the opponent in the final Barbara Paulus?`

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

CREATE TABLE "wins_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the opponent in the final Barbara Paulus?`:
```sql
                SELECT "date" FROM "wins_5" WHERE "opponent_in_the_final"='barbara paulus';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface that Laura Golarsa and her opponent played on in the final?`

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

CREATE TABLE "wins_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface that Laura Golarsa and her opponent played on in the final?`:
```sql
                SELECT "surface" FROM "wins_5" WHERE "opponent_in_the_final"='laura golarsa';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the opponent against Katerina Maleeva in the final?`

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

CREATE TABLE "wins_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the opponent against Katerina Maleeva in the final?`:
```sql
                SELECT "score" FROM "wins_5" WHERE "opponent_in_the_final"='katerina maleeva';
```
## Task
Generate a SQL query to answer the following question:
`What's the name that had a moving to Anorthosis Famagusta and a transfer window of winter?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name that had a moving to Anorthosis Famagusta and a transfer window of winter?`:
```sql
                SELECT "name" FROM "squad_changes" WHERE "transfer_window"='winter' AND "moving_to"='anorthosis famagusta';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nat with a mutual consent loan return and has a free transfer fee?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nat with a mutual consent loan return and has a free transfer fee?`:
```sql
                SELECT "nat" FROM "squad_changes" WHERE "transfer_fee"='free' AND "type"='mutual consent loan return';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of POR?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of POR?`:
```sql
                SELECT "type" FROM "squad_changes" WHERE "nat"='por';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of MKD?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of MKD?`:
```sql
                SELECT "name" FROM "squad_changes" WHERE "nat"='mkd';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the attendance on November 24?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the attendance on November 24?`:
```sql
                SELECT SUM("attendance") FROM "game_log" WHERE "date"='november 24';
```
## Task
Generate a SQL query to answer the following question:
`What team did the Flames play against when 526 people attended the game?`

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

CREATE TABLE "october" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did the Flames play against when 526 people attended the game?`:
```sql
                SELECT "opponent" FROM "october" WHERE "attendance"=526;
```
## Task
Generate a SQL query to answer the following question:
`Rick Plant was the man of the match in what competition?`

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

CREATE TABLE "october" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Rick Plant was the man of the match in what competition?`:
```sql
                SELECT "competition" FROM "october" WHERE "man_of_the_match"='rick plant';
```
## Task
Generate a SQL query to answer the following question:
`Who did the Flames play against when Stephen Lee was the man of the match?`

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

CREATE TABLE "october" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Flames play against when Stephen Lee was the man of the match?`:
```sql
                SELECT "opponent" FROM "october" WHERE "man_of_the_match"='stephen lee';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game when the game was won 4-2?`

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

CREATE TABLE "october" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game when the game was won 4-2?`:
```sql
                SELECT COUNT("attendance") FROM "october" WHERE "result"='won 4-2';
```
## Task
Generate a SQL query to answer the following question:
`For what competition was the venue away the n/a the man of the match?`

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

CREATE TABLE "october" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what competition was the venue away the n/a the man of the match?`:
```sql
                SELECT "competition" FROM "october" WHERE "venue"='away' AND "man_of_the_match"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What is BP's lowest sales?`

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

CREATE TABLE "2005_list" (
  "rank" real,
  "company" text,
  "country" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is BP's lowest sales?`:
```sql
                SELECT MIN("sales_billion") FROM "2005_list" WHERE "company"='bp';
```
## Task
Generate a SQL query to answer the following question:
`What was the record of the Denver Broncos when they play at Mile High Stadium against the Minnesota Vikings and 38,494 fans were in attendance?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record of the Denver Broncos when they play at Mile High Stadium against the Minnesota Vikings and 38,494 fans were in attendance?`:
```sql
                SELECT "record" FROM "schedule" WHERE "attendance">'38,494' AND "game_site"='mile high stadium' AND "opponent"='minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`What was the final game result that was played on December 2?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final game result that was played on December 2?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='december 2';
```
## Task
Generate a SQL query to answer the following question:
`What week was the game played at Rich Stadium?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the game played at Rich Stadium?`:
```sql
                SELECT "week" FROM "schedule" WHERE "game_site"='rich stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of FA Cup goals when there are 19 league goals?`

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

CREATE TABLE "third_division" (
  "scorer" text,
  "club" text,
  "league_goals" text,
  "fa_cup_goals" real,
  "league_cup_goals" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of FA Cup goals when there are 19 league goals?`:
```sql
                SELECT SUM("fa_cup_goals") FROM "third_division" WHERE "league_goals"='19';
```
## Task
Generate a SQL query to answer the following question:
`Which club has 16 league goals for a total of 20?`

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

CREATE TABLE "third_division" (
  "scorer" text,
  "club" text,
  "league_goals" text,
  "fa_cup_goals" real,
  "league_cup_goals" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has 16 league goals for a total of 20?`:
```sql
                SELECT "club" FROM "third_division" WHERE "league_goals"='16' AND "total"=20;
```
## Task
Generate a SQL query to answer the following question:
`How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield?`

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

CREATE TABLE "third_division" (
  "scorer" text,
  "club" text,
  "league_goals" text,
  "fa_cup_goals" real,
  "league_cup_goals" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield?`:
```sql
                SELECT "league_cup_goals" FROM "third_division" WHERE "total">15 AND "fa_cup_goals"=3 AND "club"='chesterfield';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the april 6, 2002 game against the greensboro prowlers?`

### 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,
  "result" text,
  "record" text,
  "game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the april 6, 2002 game against the greensboro prowlers?`:
```sql
                SELECT "result" FROM "regular_season" WHERE "opponent"='greensboro prowlers' AND "date"='april 6, 2002';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has Floors smaller than 27, and a Building of 150 elgin?`

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

CREATE TABLE "projects_as_of_march_2013" (
  "building" text,
  "location" text,
  "height" text,
  "floors" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has Floors smaller than 27, and a Building of 150 elgin?`:
```sql
                SELECT "location" FROM "projects_as_of_march_2013" WHERE "floors"<27 AND "building"='150 elgin';
```
## Task
Generate a SQL query to answer the following question:
`Which Status has a Building of the rhombus?`

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

CREATE TABLE "projects_as_of_march_2013" (
  "building" text,
  "location" text,
  "height" text,
  "floors" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Status has a Building of the rhombus?`:
```sql
                SELECT "status" FROM "projects_as_of_march_2013" WHERE "building"='the rhombus';
```
## Task
Generate a SQL query to answer the following question:
`How many floors are in little Italy?`

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

CREATE TABLE "projects_as_of_march_2013" (
  "building" text,
  "location" text,
  "height" text,
  "floors" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many floors are in little Italy?`:
```sql
                SELECT COUNT("floors") FROM "projects_as_of_march_2013" WHERE "location"='little italy';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Class is "15 meters", and when Qualifying Grand Prix is "Soaring Grand Prix Of United Kingdom"?`

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

CREATE TABLE "qualifying_races" (
  "place" text,
  "country" text,
  "qualifying_grand_prix" text,
  "class" text,
  "dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Class is "15 meters", and when Qualifying Grand Prix is "Soaring Grand Prix Of United Kingdom"?`:
```sql
                SELECT "country" FROM "qualifying_races" WHERE "class"='15 meters' AND "qualifying_grand_prix"='soaring grand prix of united kingdom';
```
## Task
Generate a SQL query to answer the following question:
`What is Class, when Dates is "22 April - 3 May 2009"?`

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

CREATE TABLE "qualifying_races" (
  "place" text,
  "country" text,
  "qualifying_grand_prix" text,
  "class" text,
  "dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Class, when Dates is "22 April - 3 May 2009"?`:
```sql
                SELECT "class" FROM "qualifying_races" WHERE "dates"='22 april - 3 may 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Class is "club"?`

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

CREATE TABLE "qualifying_races" (
  "place" text,
  "country" text,
  "qualifying_grand_prix" text,
  "class" text,
  "dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Class is "club"?`:
```sql
                SELECT "country" FROM "qualifying_races" WHERE "class"='club';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Place is "Torino"?`

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

CREATE TABLE "qualifying_races" (
  "place" text,
  "country" text,
  "qualifying_grand_prix" text,
  "class" text,
  "dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Place is "Torino"?`:
```sql
                SELECT "country" FROM "qualifying_races" WHERE "place"='torino';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17?`

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

CREATE TABLE "appearances_and_goals" (
  "squad_no" real,
  "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,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17?`:
```sql
                SELECT AVG("squad_no") FROM "appearances_and_goals" WHERE "name"='martin smith' AND "league_goals"<17;
```
## Task
Generate a SQL query to answer the following question:
`What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)?`:
```sql
                SELECT "no_5" FROM "male_names" WHERE "no_9"='michael' AND "region_year"='new hampshire (2010)';
```
## Task
Generate a SQL query to answer the following question:
`What is Region (Year), when No. 7 is William, and when No. 2 is Alexander?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Region (Year), when No. 7 is William, and when No. 2 is Alexander?`:
```sql
                SELECT "region_year" FROM "male_names" WHERE "no_7"='william' AND "no_2"='alexander';
```
## Task
Generate a SQL query to answer the following question:
`What is No. 10, when No. 1 is Noah, and when No. 9 is Carter?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 10, when No. 1 is Noah, and when No. 9 is Carter?`:
```sql
                SELECT "no_10" FROM "male_names" WHERE "no_1"='noah' AND "no_9"='carter';
```
## Task
Generate a SQL query to answer the following question:
`What is No. 7, when Region (Year) is Arizona (2010)?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 7, when Region (Year) is Arizona (2010)?`:
```sql
                SELECT "no_7" FROM "male_names" WHERE "region_year"='arizona (2010)';
```
## Task
Generate a SQL query to answer the following question:
`What is No. 1, when Region (Year) is Mississippi (2010)?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 1, when Region (Year) is Mississippi (2010)?`:
```sql
                SELECT "no_1" FROM "male_names" WHERE "region_year"='mississippi (2010)';
```
## Task
Generate a SQL query to answer the following question:
`What is No. 8, when No. 10 is Hunter?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 8, when No. 10 is Hunter?`:
```sql
                SELECT "no_8" FROM "male_names" WHERE "no_10"='hunter';
```
## Task
Generate a SQL query to answer the following question:
`How much did Larry Nelson win?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much did Larry Nelson win?`:
```sql
                SELECT "money" FROM "final_leaderboard" WHERE "player"='larry nelson';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Date is "Sep 12, 1976"?`

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

CREATE TABLE "lpga_tour_wins_27" (
  "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 is Tournament, when Date is "Sep 12, 1976"?`:
```sql
                SELECT "tournament" FROM "lpga_tour_wins_27" WHERE "date"='sep 12, 1976';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Date is "Sep 25, 1977"?`

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

CREATE TABLE "lpga_tour_wins_27" (
  "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 is Tournament, when Date is "Sep 25, 1977"?`:
```sql
                SELECT "tournament" FROM "lpga_tour_wins_27" WHERE "date"='sep 25, 1977';
```
## Task
Generate a SQL query to answer the following question:
`What is Margin of Victory, when Tournament is "Women's Kemper Open"?`

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

CREATE TABLE "lpga_tour_wins_27" (
  "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 is Margin of Victory, when Tournament is "Women's Kemper Open"?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_tour_wins_27" WHERE "tournament"='women''s kemper open';
```
## Task
Generate a SQL query to answer the following question:
`What is the No. 8 of the person with a No. 4 of Noah?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the No. 8 of the person with a No. 4 of Noah?`:
```sql
                SELECT "no_8" FROM "male_names" WHERE "no_4"='noah';
```
## Task
Generate a SQL query to answer the following question:
`What is the No. 8 of the person with a No. 4 of Matthew and a No. 7 of Anthony?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the No. 8 of the person with a No. 4 of Matthew and a No. 7 of Anthony?`:
```sql
                SELECT "no_8" FROM "male_names" WHERE "no_4"='matthew' AND "no_7"='anthony';
```
## Task
Generate a SQL query to answer the following question:
`What is the No. 1 of the person with a No. 2 of John?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the No. 1 of the person with a No. 2 of John?`:
```sql
                SELECT "no_1" FROM "male_names" WHERE "no_2"='john';
```
## Task
Generate a SQL query to answer the following question:
`What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew?`:
```sql
                SELECT "no_6" FROM "male_names" WHERE "no_10"='joshua' AND "no_8"='andrew';
```
## Task
Generate a SQL query to answer the following question:
`What is the No. 2 of the person with a No. 5 of Ethan and NO. 7 of Jackson?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the No. 2 of the person with a No. 5 of Ethan and NO. 7 of Jackson?`:
```sql
                SELECT "no_2" FROM "male_names" WHERE "no_4"='ethan' AND "no_7"='jackson';
```
## Task
Generate a SQL query to answer the following question:
`What is the No 1 from the Maryland (2008) Region (year)?`

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

CREATE TABLE "male_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the No 1 from the Maryland (2008) Region (year)?`:
```sql
                SELECT "no_1" FROM "male_names" WHERE "region_year"='maryland (2008)';
```
## Task
Generate a SQL query to answer the following question:
`What was the draw of Maggie Toal?`

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

CREATE TABLE "national_final" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the draw of Maggie Toal?`:
```sql
                SELECT AVG("draw") FROM "national_final" WHERE "artist"='maggie toal';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest point total that placed 3rd and has a draw larger than 5?`

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

CREATE TABLE "national_final" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest point total that placed 3rd and has a draw larger than 5?`:
```sql
                SELECT MAX("points") FROM "national_final" WHERE "place"='3rd' AND "draw">5;
```
## Task
Generate a SQL query to answer the following question:
`Who won the gold in 1958?`

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

CREATE TABLE "champions" (
  "year" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "host_city_cities" text,
  "host_country_countries" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the gold in 1958?`:
```sql
                SELECT "gold" FROM "champions" WHERE "year"='1958';
```
## Task
Generate a SQL query to answer the following question:
`What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)?`

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

CREATE TABLE "champions" (
  "year" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "host_city_cities" text,
  "host_country_countries" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)?`:
```sql
                SELECT "host_country_countries" FROM "champions" WHERE "silver"='[[|]] (2)' AND "bronze"='czechoslovakia (3)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the host country in 2007?`

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

CREATE TABLE "champions" (
  "year" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "host_city_cities" text,
  "host_country_countries" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the host country in 2007?`:
```sql
                SELECT "host_country_countries" FROM "champions" WHERE "year"='2007';
```
## Task
Generate a SQL query to answer the following question:
`Who was the host country when bronze is [[|]] (1) and host city is Krynica?`

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

CREATE TABLE "champions" (
  "year" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "host_city_cities" text,
  "host_country_countries" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the host country when bronze is [[|]] (1) and host city is Krynica?`:
```sql
                SELECT "host_country_countries" FROM "champions" WHERE "bronze"='[[|]] (1)' AND "host_city_cities"='krynica';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for Boston's road team in game 4?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for Boston's road team in game 4?`:
```sql
                SELECT "result" FROM "nba_finals" WHERE "road_team"='boston' AND "game"='game 4';
```
## Task
Generate a SQL query to answer the following question:
`Which road team has a result of 117-114?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which road team has a result of 117-114?`:
```sql
                SELECT "road_team" FROM "nba_finals" WHERE "result"='117-114';
```
## Task
Generate a SQL query to answer the following question:
`What is the road team playing against Boston on April 16?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the road team playing against Boston on April 16?`:
```sql
                SELECT "road_team" FROM "nba_finals" WHERE "home_team"='boston' AND "date"='april 16';
```
## Task
Generate a SQL query to answer the following question:
`Which home team is on April 21?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team is on April 21?`:
```sql
                SELECT "home_team" FROM "nba_finals" WHERE "date"='april 21';
```
## Task
Generate a SQL query to answer the following question:
`Which game has a result of 113-106?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game has a result of 113-106?`:
```sql
                SELECT "game" FROM "nba_finals" WHERE "result"='113-106';
```
## Task
Generate a SQL query to answer the following question:
`Which home team played against Los Angeles in game 1?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team played against Los Angeles in game 1?`:
```sql
                SELECT "home_team" FROM "nba_finals" WHERE "road_team"='los angeles' AND "game"='game 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank of 5-year peak bobby fischer, 2841?`

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

CREATE TABLE "chessmetrics" (
  "rank" real,
  "1_year_peak" text,
  "5_year_peak" text,
  "10_year_peak" text,
  "15_year_peak" text,
  "20_year_peak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank of 5-year peak bobby fischer, 2841?`:
```sql
                SELECT MIN("rank") FROM "chessmetrics" WHERE "5_year_peak"='bobby fischer, 2841';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1-year peak with anatoly karpov, 2821 as the 10-year peak?`

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

CREATE TABLE "chessmetrics" (
  "rank" real,
  "1_year_peak" text,
  "5_year_peak" text,
  "10_year_peak" text,
  "15_year_peak" text,
  "20_year_peak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1-year peak with anatoly karpov, 2821 as the 10-year peak?`:
```sql
                SELECT "1_year_peak" FROM "chessmetrics" WHERE "10_year_peak"='anatoly karpov, 2821';
```
## Task
Generate a SQL query to answer the following question:
`What is the 20-year peak with emanuel lasker, 2816 as the 15-year peak?`

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

CREATE TABLE "chessmetrics" (
  "rank" real,
  "1_year_peak" text,
  "5_year_peak" text,
  "10_year_peak" text,
  "15_year_peak" text,
  "20_year_peak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 20-year peak with emanuel lasker, 2816 as the 15-year peak?`:
```sql
                SELECT "20_year_peak" FROM "chessmetrics" WHERE "15_year_peak"='emanuel lasker, 2816';
```