cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Outcome is Winner, and when Date is 13 July 2013?`

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

CREATE TABLE "singles_16_9_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when Outcome is Winner, and when Date is 13 July 2013?`:
```sql
                SELECT "tournament" FROM "singles_16_9_7" WHERE "outcome"='winner' AND "date"='13 july 2013';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Outcome is Winner, and when Opponent is An-Sophie Mestach?`

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

CREATE TABLE "singles_16_9_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Outcome is Winner, and when Opponent is An-Sophie Mestach?`:
```sql
                SELECT "date" FROM "singles_16_9_7" WHERE "outcome"='winner' AND "opponent"='an-sophie mestach';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Date is 10 July 2011?`

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

CREATE TABLE "singles_16_9_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Date is 10 July 2011?`:
```sql
                SELECT "score" FROM "singles_16_9_7" WHERE "date"='10 july 2011';
```
## Task
Generate a SQL query to answer the following question:
`What network has a Play-by-play by Jack Edwards in 2000?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "pregame_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network has a Play-by-play by Jack Edwards in 2000?`:
```sql
                SELECT "network" FROM "2000s" WHERE "play_by_play"='jack edwards' AND "year"=2000;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the pregame host when Bold was the network?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "pregame_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the pregame host when Bold was the network?`:
```sql
                SELECT "pregame_host" FROM "2000s" WHERE "network"='bold';
```
## Task
Generate a SQL query to answer the following question:
`What was the Play-by-play when the color commentator was Eric Wynalda, earlier than 2005?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "pregame_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Play-by-play when the color commentator was Eric Wynalda, earlier than 2005?`:
```sql
                SELECT "play_by_play" FROM "2000s" WHERE "color_commentator_s"='eric wynalda' AND "year"<2005;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the pregame host when the Play-by-play was by JP Dellacamera, earlier than 2009, and Color commentator(s) was Ty Keough?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "pregame_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the pregame host when the Play-by-play was by JP Dellacamera, earlier than 2009, and Color commentator(s) was Ty Keough?`:
```sql
                SELECT "pregame_host" FROM "2000s" WHERE "play_by_play"='jp dellacamera' AND "year"<2009 AND "color_commentator_s"='ty keough';
```
## Task
Generate a SQL query to answer the following question:
`What date was the score 3–0, and set 1 was 25–22?`

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

CREATE TABLE "pool_c" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the score 3–0, and set 1 was 25–22?`:
```sql
                SELECT "date" FROM "pool_c" WHERE "score"='3–0' AND "set_1"='25–22';
```
## Task
Generate a SQL query to answer the following question:
`What date was the total 56–75?`

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

CREATE TABLE "pool_c" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the total 56–75?`:
```sql
                SELECT "date" FROM "pool_c" WHERE "total"='56–75';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 1 when Set 3 was 25–15?`

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

CREATE TABLE "pool_c" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Set 1 when Set 3 was 25–15?`:
```sql
                SELECT "set_1" FROM "pool_c" WHERE "set_3"='25–15';
```
## Task
Generate a SQL query to answer the following question:
`What date was the total 75–45?`

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

CREATE TABLE "pool_c" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the total 75–45?`:
```sql
                SELECT "date" FROM "pool_c" WHERE "total"='75–45';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the dates in december that were against the atlanta flames before game 40?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the dates in december that were against the atlanta flames before game 40?`:
```sql
                SELECT SUM("december") FROM "schedule_and_results" WHERE "opponent"='atlanta flames' AND "game"<40;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game against montreal canadiens after game 26?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "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 montreal canadiens after game 26?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "game">26 AND "opponent"='montreal canadiens';
```
## Task
Generate a SQL query to answer the following question:
`In what Round was Grant Long Drafted?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Round was Grant Long Drafted?`:
```sql
                SELECT MIN("round") FROM "draft_picks" WHERE "player"='grant long';
```
## Task
Generate a SQL query to answer the following question:
`What is the Player from Memphis?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Player from Memphis?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "school_club_team"='memphis';
```
## Task
Generate a SQL query to answer the following question:
`What Player was picked after Round 2 with a Pick number larger than 33?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player was picked after Round 2 with a Pick number larger than 33?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "pick">33 AND "round">2;
```
## Task
Generate a SQL query to answer the following question:
`In what Round was the Memphis Player drafted?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Round was the Memphis Player drafted?`:
```sql
                SELECT AVG("round") FROM "draft_picks" WHERE "school_club_team"='memphis';
```
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team holds the 2006-2009 Years of Grizzlies ?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School/Club Team holds the 2006-2009 Years of Grizzlies ?`:
```sql
                SELECT "school_club_team" FROM "l" WHERE "years_for_grizzlies"='2006-2009';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Player in the 1998-2000 Year of Grizzlies?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Player in the 1998-2000 Year of Grizzlies?`:
```sql
                SELECT "player" FROM "l" WHERE "years_for_grizzlies"='1998-2000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nationality of the 1998-2000 Years for Grizzlies?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nationality of the 1998-2000 Years for Grizzlies?`:
```sql
                SELECT "nationality" FROM "l" WHERE "years_for_grizzlies"='1998-2000';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 1999-2002 Years for Grizzlies small forward Player who was from the United States?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 1999-2002 Years for Grizzlies small forward Player who was from the United States?`:
```sql
                SELECT "player" FROM "l" WHERE "nationality"='united states' AND "position"='small forward' AND "years_for_grizzlies"='1999-2002';
```
## Task
Generate a SQL query to answer the following question:
`Which Player is the shooting guard?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player is the shooting guard?`:
```sql
                SELECT "player" FROM "l" WHERE "position"='shooting guard';
```
## Task
Generate a SQL query to answer the following question:
`What is the location and attendance of game 44?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location and attendance of game 44?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "game"=44;
```
## Task
Generate a SQL query to answer the following question:
`What is the record of game 42, which had a clemmensen decision?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of game 42, which had a clemmensen decision?`:
```sql
                SELECT "record" FROM "game_log" WHERE "decision"='clemmensen' AND "game"=42;
```
## Task
Generate a SQL query to answer the following question:
`What country parred E and scored 71-73-70-74=288?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country parred E and scored 71-73-70-74=288?`:
```sql
                SELECT "country" FROM "final_round" WHERE "to_par"='e' AND "score"='71-73-70-74=288';
```
## Task
Generate a SQL query to answer the following question:
`How much money was scored for 73-71-70-73=287?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much money was scored for 73-71-70-73=287?`:
```sql
                SELECT "money" FROM "final_round" WHERE "score"='73-71-70-73=287';
```
## Task
Generate a SQL query to answer the following question:
`What country has to par E with Mark O'Meara?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has to par E with Mark O'Meara?`:
```sql
                SELECT "country" FROM "final_round" WHERE "to_par"='e' AND "player"='mark o''meara';
```
## Task
Generate a SQL query to answer the following question:
`What country placed t6 with player Vijay Singh?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country placed t6 with player Vijay Singh?`:
```sql
                SELECT "country" FROM "final_round" WHERE "place"='t6' AND "player"='vijay singh';
```
## Task
Generate a SQL query to answer the following question:
`How much money did David Toms get?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much money did David Toms get?`:
```sql
                SELECT "money" FROM "final_round" WHERE "player"='david toms';
```
## Task
Generate a SQL query to answer the following question:
`What is the playoffs Game number on April 26?`

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

CREATE TABLE "playoffs" (
  "game" text,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the playoffs Game number on April 26?`:
```sql
                SELECT "game" FROM "playoffs" WHERE "date"='april 26';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of Game 4?`

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

CREATE TABLE "playoffs" (
  "game" text,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of Game 4?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "game"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the playoff Game on April 30?`

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

CREATE TABLE "playoffs" (
  "game" text,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the playoff Game on April 30?`:
```sql
                SELECT "game" FROM "playoffs" WHERE "date"='april 30';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game with a Score of L 115–118 (OT)?`

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

CREATE TABLE "playoffs" (
  "game" text,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the game with a Score of L 115–118 (OT)?`:
```sql
                SELECT "date" FROM "playoffs" WHERE "score"='l 115–118 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when there were 27,321 in attendance?`

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

CREATE TABLE "1996" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when there were 27,321 in attendance?`:
```sql
                SELECT "result" FROM "1996" WHERE "attendance"='27,321';
```
## Task
Generate a SQL query to answer the following question:
`What is the number in attendance at Dowdy-Ficklen stadium • Greenville, NC, and the opponent was Ohio?`

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

CREATE TABLE "1996" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in attendance at Dowdy-Ficklen stadium • Greenville, NC, and the opponent was Ohio?`:
```sql
                SELECT "attendance" FROM "1996" WHERE "site"='dowdy-ficklen stadium • greenville, nc' AND "opponent"='ohio';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game at Dowdy-Ficklen stadium • Greenville, NC, with 27,321 in attendance?`

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

CREATE TABLE "1996" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game at Dowdy-Ficklen stadium • Greenville, NC, with 27,321 in attendance?`:
```sql
                SELECT "date" FROM "1996" WHERE "site"='dowdy-ficklen stadium • greenville, nc' AND "attendance"='27,321';
```
## Task
Generate a SQL query to answer the following question:
`What team was the opponent when there were 27,321 in attendance?`

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

CREATE TABLE "1996" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the opponent when there were 27,321 in attendance?`:
```sql
                SELECT "opponent" FROM "1996" WHERE "attendance"='27,321';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game at Williams-Brice stadium • Columbia, SC?`

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

CREATE TABLE "1996" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game at Williams-Brice stadium • Columbia, SC?`:
```sql
                SELECT "date" FROM "1996" WHERE "site"='williams-brice stadium • columbia, sc';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Margin of victory that has the Winning score of 67-69-67-69=272?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "purse" real,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Margin of victory that has the Winning score of 67-69-67-69=272?`:
```sql
                SELECT "margin_of_victory" FROM "winners" WHERE "winning_score"='67-69-67-69=272';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the To par that has the Winner's share larger than 200,000, and the Margin of victory of 3 strokes?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "purse" real,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the To par that has the Winner's share larger than 200,000, and the Margin of victory of 3 strokes?`:
```sql
                SELECT "to_par" FROM "winners" WHERE "winner_s_share">'200,000' AND "margin_of_victory"='3 strokes';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AVERAGE DATE FOR CBS LABEL, IN AUSTRALIA, AND SBP 241031 FOR CATALOG?`

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

CREATE TABLE "release_history" (
  "date" real,
  "region" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE AVERAGE DATE FOR CBS LABEL, IN AUSTRALIA, AND SBP 241031 FOR CATALOG?`:
```sql
                SELECT AVG("date") FROM "release_history" WHERE "label"='cbs' AND "region"='australia' AND "catalog"='sbp 241031';
```
## Task
Generate a SQL query to answer the following question:
`WHAT DATE HAS A CATALOG OF 486553.4?`

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

CREATE TABLE "release_history" (
  "date" real,
  "region" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT DATE HAS A CATALOG OF 486553.4?`:
```sql
                SELECT MAX("date") FROM "release_history" WHERE "catalog"='486553.4';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LOWEST DATE FOR KOREA, IN CD FORMAT?`

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

CREATE TABLE "release_history" (
  "date" real,
  "region" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LOWEST DATE FOR KOREA, IN CD FORMAT?`:
```sql
                SELECT MIN("date") FROM "release_history" WHERE "region"='korea' AND "format"='cd';
```
## Task
Generate a SQL query to answer the following question:
`What is 2008, when 2006 is "1R"?`

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

CREATE TABLE "men_s_doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2008, when 2006 is "1R"?`:
```sql
                SELECT "2008" FROM "men_s_doubles_performance_timeline" WHERE "2006"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when 2006 is "A", and when 2009 is "A"?`

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

CREATE TABLE "men_s_doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when 2006 is "A", and when 2009 is "A"?`:
```sql
                SELECT "tournament" FROM "men_s_doubles_performance_timeline" WHERE "2006"='a' AND "2009"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is 2005, when 2006 is "1R"?`

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

CREATE TABLE "men_s_doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2005, when 2006 is "1R"?`:
```sql
                SELECT "2005" FROM "men_s_doubles_performance_timeline" WHERE "2006"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is 2011, when 2008 is "2R"?`

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

CREATE TABLE "men_s_doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2011, when 2008 is "2R"?`:
```sql
                SELECT "2011" FROM "men_s_doubles_performance_timeline" WHERE "2008"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is 2004, when 2005 is "2R", and when 2006 is "1R"`

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

CREATE TABLE "men_s_doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2004, when 2005 is "2R", and when 2006 is "1R"`:
```sql
                SELECT "2004" FROM "men_s_doubles_performance_timeline" WHERE "2005"='2r' AND "2006"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is 2004, when 2009 is "A"?`

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

CREATE TABLE "men_s_doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2004, when 2009 is "A"?`:
```sql
                SELECT "2004" FROM "men_s_doubles_performance_timeline" WHERE "2009"='a';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the opponent when the method was ko (slam), and record was 13–1?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the opponent when the method was ko (slam), and record was 13–1?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='ko (slam)' AND "record"='13–1';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest pick of scott turner, who has a round greater than 2?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pick of scott turner, who has a round greater than 2?`:
```sql
                SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "round">2 AND "name"='scott turner';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the ot position player with a round greater than 4?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the ot position player with a round greater than 4?`:
```sql
                SELECT "name" FROM "washington_redskins_draft_history" WHERE "round">4 AND "position"='ot';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the pick of darryl pounds, who has an overall greater than 68?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the pick of darryl pounds, who has an overall greater than 68?`:
```sql
                SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='darryl pounds' AND "overall">68;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of rounds of the player from lehigh college with an overall less than 152?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of rounds of the player from lehigh college with an overall less than 152?`:
```sql
                SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "college"='lehigh' AND "overall"<152;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round of pick 3?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round of pick 3?`:
```sql
                SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "pick"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the total overall number of the ot position player with a pick greater than 5?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total overall number of the ot position player with a pick greater than 5?`:
```sql
                SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "position"='ot' AND "pick">5;
```
## Task
Generate a SQL query to answer the following question:
`What rank does the Singapore Cup of 0 (1) have?`

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

CREATE TABLE "goalscorers" (
  "rank" real,
  "name" text,
  "s_league" text,
  "singapore_cup" text,
  "singapore_league_cup" text,
  "afc_cup" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank does the Singapore Cup of 0 (1) have?`:
```sql
                SELECT MAX("rank") FROM "goalscorers" WHERE "singapore_cup"='0 (1)';
```
## Task
Generate a SQL query to answer the following question:
`What Singapore League Cup does Masahiro Fukasawa have?`

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

CREATE TABLE "goalscorers" (
  "rank" real,
  "name" text,
  "s_league" text,
  "singapore_cup" text,
  "singapore_league_cup" text,
  "afc_cup" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Singapore League Cup does Masahiro Fukasawa have?`:
```sql
                SELECT "singapore_league_cup" FROM "goalscorers" WHERE "name"='masahiro fukasawa';
```
## Task
Generate a SQL query to answer the following question:
`What is Norikazu Murakami's total?`

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

CREATE TABLE "goalscorers" (
  "rank" real,
  "name" text,
  "s_league" text,
  "singapore_cup" text,
  "singapore_league_cup" text,
  "afc_cup" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Norikazu Murakami's total?`:
```sql
                SELECT "total" FROM "goalscorers" WHERE "name"='norikazu murakami';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the total that has 3 (20)?`

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

CREATE TABLE "goalscorers" (
  "rank" real,
  "name" text,
  "s_league" text,
  "singapore_cup" text,
  "singapore_league_cup" text,
  "afc_cup" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for the total that has 3 (20)?`:
```sql
                SELECT "rank" FROM "goalscorers" WHERE "total"='3 (20)';
```
## Task
Generate a SQL query to answer the following question:
`Which AFC cup does Masahiro Fukasawa have?`

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

CREATE TABLE "goalscorers" (
  "rank" real,
  "name" text,
  "s_league" text,
  "singapore_cup" text,
  "singapore_league_cup" text,
  "afc_cup" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which AFC cup does Masahiro Fukasawa have?`:
```sql
                SELECT "afc_cup" FROM "goalscorers" WHERE "name"='masahiro fukasawa';
```
## Task
Generate a SQL query to answer the following question:
`Which AFC cup does Kenji Arai have?`

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

CREATE TABLE "goalscorers" (
  "rank" real,
  "name" text,
  "s_league" text,
  "singapore_cup" text,
  "singapore_league_cup" text,
  "afc_cup" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which AFC cup does Kenji Arai have?`:
```sql
                SELECT "afc_cup" FROM "goalscorers" WHERE "name"='kenji arai';
```
## Task
Generate a SQL query to answer the following question:
`In the game where Joe Johnson (31) was the high points scorer, what was the final score?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the game where Joe Johnson (31) was the high points scorer, what was the final score?`:
```sql
                SELECT "score" FROM "game_log" WHERE "high_points"='joe johnson (31)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest to par of the player with a t3 place and less than $1,500?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest to par of the player with a t3 place and less than $1,500?`:
```sql
                SELECT MIN("to_par") FROM "final_leaderboard" WHERE "place"='t3' AND "money"<'1,500';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from the United States with a t6 place and a 71-70-76-72=289 score?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from the United States with a t6 place and a 71-70-76-72=289 score?`:
```sql
                SELECT "player" FROM "final_leaderboard" WHERE "country"='united states' AND "place"='t6' AND "score"='71-70-76-72=289';
```
## Task
Generate a SQL query to answer the following question:
`How much total money does player tommy bolt, who has a to par of 9, have?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much total money does player tommy bolt, who has a to par of 9, have?`:
```sql
                SELECT COUNT("money") FROM "final_leaderboard" WHERE "to_par"=9 AND "player"='tommy bolt';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of money a player from South Africa with a to par less than 8 has?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of money a player from South Africa with a to par less than 8 has?`:
```sql
                SELECT MIN("money") FROM "final_leaderboard" WHERE "country"='south africa' AND "to_par"<8;
```
## Task
Generate a SQL query to answer the following question:
`What was the venue that had a friendly match competition?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue that had a friendly match competition?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "competition"='friendly match';
```
## Task
Generate a SQL query to answer the following question:
`With a year larger than 1905, and a location of philadelphia, pennsylvania with a to par [a] of n/a and a country of scotland what is the course?`

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

CREATE TABLE "u_s_open_champions" (
  "year" real,
  "country" text,
  "course" text,
  "location" text,
  "total_score" text,
  "to_par_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a year larger than 1905, and a location of philadelphia, pennsylvania with a to par [a] of n/a and a country of scotland what is the course?`:
```sql
                SELECT "course" FROM "u_s_open_champions" WHERE "to_par_a"='n/a' AND "country"='scotland' AND "year">1905 AND "location"='philadelphia, pennsylvania';
```
## Task
Generate a SQL query to answer the following question:
`What is the total score for a location of san francisco, california, and a year after 1987, and a to pa [a] of +1?`

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

CREATE TABLE "u_s_open_champions" (
  "year" real,
  "country" text,
  "course" text,
  "location" text,
  "total_score" text,
  "to_par_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total score for a location of san francisco, california, and a year after 1987, and a to pa [a] of +1?`:
```sql
                SELECT "total_score" FROM "u_s_open_champions" WHERE "location"='san francisco, california' AND "year">1987 AND "to_par_a"='+1';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum for the year with a location of newport, rhode island?`

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

CREATE TABLE "u_s_open_champions" (
  "year" real,
  "country" text,
  "course" text,
  "location" text,
  "total_score" text,
  "to_par_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum for the year with a location of newport, rhode island?`:
```sql
                SELECT SUM("year") FROM "u_s_open_champions" WHERE "location"='newport, rhode island';
```
## Task
Generate a SQL query to answer the following question:
`What is the country with a course of merion golf club, and a to par [1] of e?`

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

CREATE TABLE "u_s_open_champions" (
  "year" real,
  "country" text,
  "course" text,
  "location" text,
  "total_score" text,
  "to_par_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country with a course of merion golf club, and a to par [1] of e?`:
```sql
                SELECT "country" FROM "u_s_open_champions" WHERE "course"='merion golf club' AND "to_par_a"='e';
```
## Task
Generate a SQL query to answer the following question:
`What is the total score for the year 2012?`

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

CREATE TABLE "u_s_open_champions" (
  "year" real,
  "country" text,
  "course" text,
  "location" text,
  "total_score" text,
  "to_par_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total score for the year 2012?`:
```sql
                SELECT "total_score" FROM "u_s_open_champions" WHERE "year"=2012;
```
## Task
Generate a SQL query to answer the following question:
`What is the evening gown score for the contestant from Mississippi?`

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

CREATE TABLE "final_competition" (
  "state" text,
  "preliminary_average" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "semifinal_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the evening gown score for the contestant from Mississippi?`:
```sql
                SELECT "evening_gown" FROM "final_competition" WHERE "state"='mississippi';
```
## Task
Generate a SQL query to answer the following question:
`What is the type for rank 2?`

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

CREATE TABLE "denmark" (
  "rank" real,
  "surname" text,
  "number_of_bearers_1971" real,
  "number_of_bearers_2009" real,
  "type" text,
  "etymology" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type for rank 2?`:
```sql
                SELECT "type" FROM "denmark" WHERE "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984?`

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

CREATE TABLE "denmark" (
  "rank" real,
  "surname" text,
  "number_of_bearers_1971" real,
  "number_of_bearers_2009" real,
  "type" text,
  "etymology" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984?`:
```sql
                SELECT SUM("number_of_bearers_2009") FROM "denmark" WHERE "rank">1 AND "type"='patronymic' AND "etymology"='son of christian' AND "number_of_bearers_1971">45.984;
```
## Task
Generate a SQL query to answer the following question:
`What is Ryan Hunter-Reay of the Herdez Competition's Qual 2 time?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ryan Hunter-Reay of the Herdez Competition's Qual 2 time?`:
```sql
                SELECT "qual_2" FROM "qualifying_results" WHERE "team"='herdez competition' AND "name"='ryan hunter-reay';
```
## Task
Generate a SQL query to answer the following question:
`What is Justin Wilson's Team?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Justin Wilson's Team?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "name"='justin wilson';
```