cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`During round 8 when the Position being picked was rb, what was the highest overall pick?`

### 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 `During round 8 when the Position being picked was rb, what was the highest overall pick?`:
```sql
                SELECT MAX("overall") FROM "washington_redskins_draft_history" WHERE "position"='rb' AND "round"=8;
```
## Task
Generate a SQL query to answer the following question:
`Which county had a Bush number of votes of 566?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which county had a Bush number of votes of 566?`:
```sql
                SELECT "county" FROM "by_county" WHERE "bushnum"=566;
```
## Task
Generate a SQL query to answer the following question:
`who is the opponent when the year is after 1996 and the outcome is winner?`

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

CREATE TABLE "singles_10_8_2" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the opponent when the year is after 1996 and the outcome is winner?`:
```sql
                SELECT "opponent" FROM "singles_10_8_2" WHERE "year">1996 AND "outcome"='winner';
```
## Task
Generate a SQL query to answer the following question:
`what is the surface when the championship is rome and the opponent is sergi bruguera?`

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

CREATE TABLE "singles_10_8_2" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the surface when the championship is rome and the opponent is sergi bruguera?`:
```sql
                SELECT "surface" FROM "singles_10_8_2" WHERE "championship"='rome' AND "opponent"='sergi bruguera';
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the surface is hard and outcome is runner-up?`

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

CREATE TABLE "singles_10_8_2" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the surface is hard and outcome is runner-up?`:
```sql
                SELECT "score" FROM "singles_10_8_2" WHERE "surface"='hard' AND "outcome"='runner-up';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of the game played on February 24?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of the game played on February 24?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "date"='february 24';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the opponent was Oklahoma City, and what was the attendance?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played when the opponent was Oklahoma City, and what was the attendance?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "team"='oklahoma city';
```
## Task
Generate a SQL query to answer the following question:
`What was the record when they played game 58?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when they played game 58?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game"=58;
```
## Task
Generate a SQL query to answer the following question:
`What is Score In The Final, when Date is "22 October 1990"?`

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

CREATE TABLE "singles_23_15_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score In The Final, when Date is "22 October 1990"?`:
```sql
                SELECT "score_in_the_final" FROM "singles_23_15_8" WHERE "date"='22 october 1990';
```
## Task
Generate a SQL query to answer the following question:
`What is Outcome, when Surface is "Carpet (I)", and when Date is "15 November 1993"?`

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

CREATE TABLE "singles_23_15_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Outcome, when Surface is "Carpet (I)", and when Date is "15 November 1993"?`:
```sql
                SELECT "outcome" FROM "singles_23_15_8" WHERE "surface"='carpet (i)' AND "date"='15 november 1993';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Opponent In The Final is "Andre Agassi"?`

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

CREATE TABLE "singles_23_15_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when Opponent In The Final is "Andre Agassi"?`:
```sql
                SELECT "tournament" FROM "singles_23_15_8" WHERE "opponent_in_the_final"='andre agassi';
```
## Task
Generate a SQL query to answer the following question:
`What is Score In The Final, when Date is "30 August 1993"?`

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

CREATE TABLE "singles_23_15_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score In The Final, when Date is "30 August 1993"?`:
```sql
                SELECT "score_in_the_final" FROM "singles_23_15_8" WHERE "date"='30 august 1993';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Outcome is "Winner", and when Surface is "Grass"?`

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

CREATE TABLE "singles_23_15_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Outcome is "Winner", and when Surface is "Grass"?`:
```sql
                SELECT "date" FROM "singles_23_15_8" WHERE "outcome"='winner' AND "surface"='grass';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent In The Final, when Outcome is "Winner", when Surface is "Carpet (I)", and when Tournament is "Lyon, France"?`

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

CREATE TABLE "singles_23_15_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent In The Final, when Outcome is "Winner", when Surface is "Carpet (I)", and when Tournament is "Lyon, France"?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_23_15_8" WHERE "outcome"='winner' AND "surface"='carpet (i)' AND "tournament"='lyon, france';
```
## Task
Generate a SQL query to answer the following question:
`What are the total goals against the winner with less than 5 wins, and less than 5 plays?`

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

CREATE TABLE "preliminary_round" (
  "rank" real,
  "team" text,
  "played" real,
  "wins" real,
  "ties" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total goals against the winner with less than 5 wins, and less than 5 plays?`:
```sql
                SELECT COUNT("goals_against") FROM "preliminary_round" WHERE "wins"<5 AND "played"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average losses for 22 goals?`

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

CREATE TABLE "preliminary_round" (
  "rank" real,
  "team" text,
  "played" real,
  "wins" real,
  "ties" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average losses for 22 goals?`:
```sql
                SELECT AVG("losses") FROM "preliminary_round" WHERE "goals_for">22;
```
## Task
Generate a SQL query to answer the following question:
`What is the total wins with less than 2 ties, 18 goals, and less than 2 losses?`

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

CREATE TABLE "preliminary_round" (
  "rank" real,
  "team" text,
  "played" real,
  "wins" real,
  "ties" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total wins with less than 2 ties, 18 goals, and less than 2 losses?`:
```sql
                SELECT SUM("wins") FROM "preliminary_round" WHERE "ties"<2 AND "goals_against"=18 AND "losses"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the Overall Record when the Last 10 Meetings is ou, 7-3, and Norman is ou, 18-3?`

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

CREATE TABLE "record_vs_big_12_opponents" (
  "oklahoma_vs" text,
  "overall_record" text,
  "at_norman" text,
  "at_opponent_s_venue" text,
  "at_neutral_site" text,
  "last_5_meetings" text,
  "last_10_meetings" text,
  "current_streak" text,
  "since_beginning_of_big_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Overall Record when the Last 10 Meetings is ou, 7-3, and Norman is ou, 18-3?`:
```sql
                SELECT "overall_record" FROM "record_vs_big_12_opponents" WHERE "last_10_meetings"='ou, 7-3' AND "at_norman"='ou, 18-3';
```
## Task
Generate a SQL query to answer the following question:
`What is Oklahoma vs. when Current Streak is l 1, and Neutral Site is osu, 7-6?`

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

CREATE TABLE "record_vs_big_12_opponents" (
  "oklahoma_vs" text,
  "overall_record" text,
  "at_norman" text,
  "at_opponent_s_venue" text,
  "at_neutral_site" text,
  "last_5_meetings" text,
  "last_10_meetings" text,
  "current_streak" text,
  "since_beginning_of_big_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Oklahoma vs. when Current Streak is l 1, and Neutral Site is osu, 7-6?`:
```sql
                SELECT "oklahoma_vs" FROM "record_vs_big_12_opponents" WHERE "current_streak"='l 1' AND "at_neutral_site"='osu, 7-6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Overall Record when Since Beginning of Big 12 is ou, 27-3?`

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

CREATE TABLE "record_vs_big_12_opponents" (
  "oklahoma_vs" text,
  "overall_record" text,
  "at_norman" text,
  "at_opponent_s_venue" text,
  "at_neutral_site" text,
  "last_5_meetings" text,
  "last_10_meetings" text,
  "current_streak" text,
  "since_beginning_of_big_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Overall Record when Since Beginning of Big 12 is ou, 27-3?`:
```sql
                SELECT "overall_record" FROM "record_vs_big_12_opponents" WHERE "since_beginning_of_big_12"='ou, 27-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the Last 10 Meetings when Norman is ou, 18-6?`

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

CREATE TABLE "record_vs_big_12_opponents" (
  "oklahoma_vs" text,
  "overall_record" text,
  "at_norman" text,
  "at_opponent_s_venue" text,
  "at_neutral_site" text,
  "last_5_meetings" text,
  "last_10_meetings" text,
  "current_streak" text,
  "since_beginning_of_big_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Last 10 Meetings when Norman is ou, 18-6?`:
```sql
                SELECT "last_10_meetings" FROM "record_vs_big_12_opponents" WHERE "at_norman"='ou, 18-6';
```
## Task
Generate a SQL query to answer the following question:
`what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2?`

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

CREATE TABLE "record_vs_big_12_opponents" (
  "oklahoma_vs" text,
  "overall_record" text,
  "at_norman" text,
  "at_opponent_s_venue" text,
  "at_neutral_site" text,
  "last_5_meetings" text,
  "last_10_meetings" text,
  "current_streak" text,
  "since_beginning_of_big_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2?`:
```sql
                SELECT "since_beginning_of_big_12" FROM "record_vs_big_12_opponents" WHERE "last_10_meetings"='ou, 7-3' AND "at_neutral_site"='ou, 2-1' AND "last_5_meetings"='bu, 3-2';
```
## Task
Generate a SQL query to answer the following question:
`what is the current streak when the last 5 meetings is osu, 4-1?`

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

CREATE TABLE "record_vs_big_12_opponents" (
  "oklahoma_vs" text,
  "overall_record" text,
  "at_norman" text,
  "at_opponent_s_venue" text,
  "at_neutral_site" text,
  "last_5_meetings" text,
  "last_10_meetings" text,
  "current_streak" text,
  "since_beginning_of_big_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the current streak when the last 5 meetings is osu, 4-1?`:
```sql
                SELECT "current_streak" FROM "record_vs_big_12_opponents" WHERE "last_5_meetings"='osu, 4-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for a game lower than 79?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "april" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for a game lower than 79?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "game"<79;
```
## Task
Generate a SQL query to answer the following question:
`Who was the partner when the final score was 7–6, 3–6, 6–7?`

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

CREATE TABLE "doubles_finals_10_6_4" (
  "outcome" text,
  "date" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the partner when the final score was 7–6, 3–6, 6–7?`:
```sql
                SELECT "partner" FROM "doubles_finals_10_6_4" WHERE "score_in_the_final"='7–6, 3–6, 6–7';
```
## Task
Generate a SQL query to answer the following question:
`Who was the partner for the match with a score in the final of 4–6, 6–7?`

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

CREATE TABLE "doubles_finals_10_6_4" (
  "outcome" text,
  "date" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the partner for the match with a score in the final of 4–6, 6–7?`:
```sql
                SELECT "partner" FROM "doubles_finals_10_6_4" WHERE "score_in_the_final"='4–6, 6–7';
```
## Task
Generate a SQL query to answer the following question:
`What tournament took place after 1986 and had a final score of 7–6, 3–6, 6–2?`

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

CREATE TABLE "doubles_finals_10_6_4" (
  "outcome" text,
  "date" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament took place after 1986 and had a final score of 7–6, 3–6, 6–2?`:
```sql
                SELECT "tournament" FROM "doubles_finals_10_6_4" WHERE "date">1986 AND "score_in_the_final"='7–6, 3–6, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24?`

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

CREATE TABLE "all_time_top_50_performances" (
  "athlete" text,
  "time" text,
  "country" text,
  "year" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24?`:
```sql
                SELECT MIN("year") FROM "all_time_top_50_performances" WHERE "athlete"='markus thalmann' AND "time"='23:28:24';
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the lowest one that has a Time of 24:55:58, and a Place larger than 3?`

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

CREATE TABLE "all_time_top_50_performances" (
  "athlete" text,
  "time" text,
  "country" text,
  "year" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the lowest one that has a Time of 24:55:58, and a Place larger than 3?`:
```sql
                SELECT MIN("year") FROM "all_time_top_50_performances" WHERE "time"='24:55:58' AND "place">3;
```
## Task
Generate a SQL query to answer the following question:
`Which Athlete has a Place of 1, and a Year smaller than 1988, and a Country of gre, and a Time of 21:57:00?`

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

CREATE TABLE "all_time_top_50_performances" (
  "athlete" text,
  "time" text,
  "country" text,
  "year" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Athlete has a Place of 1, and a Year smaller than 1988, and a Country of gre, and a Time of 21:57:00?`:
```sql
                SELECT "athlete" FROM "all_time_top_50_performances" WHERE "place"=1 AND "year"<1988 AND "country"='gre' AND "time"='21:57:00';
```
## Task
Generate a SQL query to answer the following question:
`Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya?`

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

CREATE TABLE "all_time_top_50_performances" (
  "athlete" text,
  "time" text,
  "country" text,
  "year" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya?`:
```sql
                SELECT "time" FROM "all_time_top_50_performances" WHERE "year">1985 AND "place"<2 AND "athlete"='riochy sekiya';
```
## Task
Generate a SQL query to answer the following question:
`What was Anand's score in game 8?`

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

CREATE TABLE "regular_schedule" (
  "game" text,
  "day_date" text,
  "anand" text,
  "gelfand" text,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Anand's score in game 8?`:
```sql
                SELECT "anand" FROM "regular_schedule" WHERE "game"='8';
```
## Task
Generate a SQL query to answer the following question:
`What is the day and date of game 2?`

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

CREATE TABLE "regular_schedule" (
  "game" text,
  "day_date" text,
  "anand" text,
  "gelfand" text,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the day and date of game 2?`:
```sql
                SELECT "day_date" FROM "regular_schedule" WHERE "game"='2';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE HIGH ASSISTS ON NOVEMBER 24?`

### 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 `WHAT IS THE HIGH ASSISTS ON NOVEMBER 24?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='november 24';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LOCATION ATTENDANCE FOR GAME 4?`

### 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 `WHAT IS THE LOCATION ATTENDANCE FOR GAME 4?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "game"=4;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE RECORD FOR DATE NOVEMBER 14?`

### 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 `WHAT IS THE RECORD FOR DATE NOVEMBER 14?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='november 14';
```
## Task
Generate a SQL query to answer the following question:
`What tournament is on 18 May 1992?`

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

CREATE TABLE "doubles_12_9_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament is on 18 May 1992?`:
```sql
                SELECT "tournament" FROM "doubles_12_9_3" WHERE "date"='18 may 1992';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the tournament with a carpet surface and tim henman as the partnering?`

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

CREATE TABLE "doubles_12_9_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the tournament with a carpet surface and tim henman as the partnering?`:
```sql
                SELECT "score" FROM "doubles_12_9_3" WHERE "surface"='carpet' AND "partnering"='tim henman';
```
## Task
Generate a SQL query to answer the following question:
`On what surface did Katarina Srebotnik play Paola Suárez?`

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

CREATE TABLE "singles_10_4_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what surface did Katarina Srebotnik play Paola Suárez?`:
```sql
                SELECT "surface" FROM "singles_10_4_6" WHERE "opponent_in_final"='paola suárez';
```
## Task
Generate a SQL query to answer the following question:
`At what tournament was the Score 5–7, 7–5, 6–4?`

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

CREATE TABLE "singles_10_4_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what tournament was the Score 5–7, 7–5, 6–4?`:
```sql
                SELECT "tournament" FROM "singles_10_4_6" WHERE "score_in_final"='5–7, 7–5, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`What was the Final Score on February 24, 2002?`

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

CREATE TABLE "singles_10_4_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Final Score on February 24, 2002?`:
```sql
                SELECT "score_in_final" FROM "singles_10_4_6" WHERE "date"='february 24, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd when the away team scored 12.16 (88)?`

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

CREATE TABLE "1st_round" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the smallest crowd when the away team scored 12.16 (88)?`:
```sql
                SELECT MIN("crowd") FROM "1st_round" WHERE "away_team_score"='12.16 (88)';
```
## Task
Generate a SQL query to answer the following question:
`What was the average crowd size for a home team score of 11.11 (77)?`

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

CREATE TABLE "1st_round" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average crowd size for a home team score of 11.11 (77)?`:
```sql
                SELECT AVG("crowd") FROM "1st_round" WHERE "home_team_score"='11.11 (77)';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg when the 2nd leg was 67-83?`

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

CREATE TABLE "first_preliminary_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st leg when the 2nd leg was 67-83?`:
```sql
                SELECT "1st_leg" FROM "first_preliminary_round" WHERE "2nd_leg"='67-83';
```
## Task
Generate a SQL query to answer the following question:
`Which Team #1 had a 1st leg of 78-78?`

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

CREATE TABLE "first_preliminary_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team #1 had a 1st leg of 78-78?`:
```sql
                SELECT "team_num1" FROM "first_preliminary_round" WHERE "1st_leg"='78-78';
```
## Task
Generate a SQL query to answer the following question:
`Who was Team #1 when Team #2 was galatasaray cc i̇stanbul?`

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

CREATE TABLE "first_preliminary_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Team #1 when Team #2 was galatasaray cc i̇stanbul?`:
```sql
                SELECT "team_num1" FROM "first_preliminary_round" WHERE "team_num2"='galatasaray cc i̇stanbul';
```
## Task
Generate a SQL query to answer the following question:
`What are the Podiums that has a Poles of 3?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Podiums that has a Poles of 3?`:
```sql
                SELECT "podiums" FROM "career_summary" WHERE "poles"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is the Team that has a Races of 4, and a Points of 0?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team that has a Races of 4, and a Points of 0?`:
```sql
                SELECT "team" FROM "career_summary" WHERE "races"='4' AND "points"='0';
```
## Task
Generate a SQL query to answer the following question:
`What to par is located in the united states and has a player by the name of hal sutton?`

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

CREATE TABLE "second_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 to par is located in the united states and has a player by the name of hal sutton?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "player"='hal sutton';
```
## Task
Generate a SQL query to answer the following question:
`What player is in the place of t1 and has the score of 67-70=137?`

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

CREATE TABLE "second_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 player is in the place of t1 and has the score of 67-70=137?`:
```sql
                SELECT "player" FROM "second_round" WHERE "place"='t1' AND "score"='67-70=137';
```
## Task
Generate a SQL query to answer the following question:
`What place has the score of 67-74=141?`

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

CREATE TABLE "second_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 place has the score of 67-74=141?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='67-74=141';
```
## Task
Generate a SQL query to answer the following question:
`What player has the score of 67-72=139?`

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

CREATE TABLE "second_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 player has the score of 67-72=139?`:
```sql
                SELECT "player" FROM "second_round" WHERE "score"='67-72=139';
```
## Task
Generate a SQL query to answer the following question:
`What was Gassaway's record at the fight in mississippi, united states against anthony macias?`

### 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,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Gassaway's record at the fight in mississippi, united states against anthony macias?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "location"='mississippi, united states' AND "opponent"='anthony macias';
```
## Task
Generate a SQL query to answer the following question:
`What was the location the fight was held at that lasted 5 rounds?`

### 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,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location the fight was held at that lasted 5 rounds?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"='5';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the fight when Gassaway fought kevin knabjian?`

### 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,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the fight when Gassaway fought kevin knabjian?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='kevin knabjian';
```
## Task
Generate a SQL query to answer the following question:
`What place did Fred Couples finish in?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What place did Fred Couples finish in?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "player"='fred couples';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the company who has a revenue of $428.2 billion?`

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

CREATE TABLE "fortune_2013_list" (
  "rank" real,
  "company" text,
  "country" text,
  "industry" text,
  "revenue_in_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the company who has a revenue of $428.2 billion?`:
```sql
                SELECT COUNT("rank") FROM "fortune_2013_list" WHERE "revenue_in_usd"='$428.2 billion';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the petroleum company who has a revenue of $481.7 billion?`

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

CREATE TABLE "fortune_2013_list" (
  "rank" real,
  "company" text,
  "country" text,
  "industry" text,
  "revenue_in_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the petroleum company who has a revenue of $481.7 billion?`:
```sql
                SELECT MIN("rank") FROM "fortune_2013_list" WHERE "industry"='petroleum' AND "revenue_in_usd"='$481.7 billion';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when 2005 is "N/A", and when 2002 is "0 / 1"?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when 2005 is "N/A", and when 2002 is "0 / 1"?`:
```sql
                SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "2005"='n/a' AND "2002"='0 / 1';
```
## Task
Generate a SQL query to answer the following question:
`What is Career Win-Loss, when 2002 is "A", and when 2001 is "4R"?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Career Win-Loss, when 2002 is "A", and when 2001 is "4R"?`:
```sql
                SELECT "career_win_loss" FROM "grand_slam_singles_performance_timeline" WHERE "2002"='a' AND "2001"='4r';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when 2001 is "1R"?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when 2001 is "1R"?`:
```sql
                SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "2001"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the 1st leg when 2nd leg was 1–4?`

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

CREATE TABLE "second_qualifying_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the 1st leg when 2nd leg was 1–4?`:
```sql
                SELECT "1st_leg" FROM "second_qualifying_round" WHERE "2nd_leg"='1–4';
```
## Task
Generate a SQL query to answer the following question:
`Who is in the south-west next to Vishnu on the east, Durga on the west, and in the center of Ganapati?`

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

CREATE TABLE "panchayatana" (
  "center" text,
  "north_east" text,
  "south_east" text,
  "south_west" text,
  "north_west" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in the south-west next to Vishnu on the east, Durga on the west, and in the center of Ganapati?`:
```sql
                SELECT "south_west" FROM "panchayatana" WHERE "north_east"='vishnu' AND "north_west"='durga' AND "center"='ganapati';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score of game 26?`

### 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 `What was the final score of game 26?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"=26;
```
## Task
Generate a SQL query to answer the following question:
`What game was played on December 8?`

### 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 `What game was played on December 8?`:
```sql
                SELECT AVG("game") FROM "game_log" WHERE "date"='december 8';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest score for a California home game with over 10,870 in attendance?`

### 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 was the highest score for a California home game with over 10,870 in attendance?`:
```sql
                SELECT MAX("points") FROM "game_log" WHERE "attendance">'10,870' AND "home"='california';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the areas for populations of 542?`

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

CREATE TABLE "carleton_county_new_brunswick" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the areas for populations of 542?`:
```sql
                SELECT SUM("area_km_2") FROM "carleton_county_new_brunswick" WHERE "population"=542;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest area for locations named Centreville having populations over 532?`

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

CREATE TABLE "carleton_county_new_brunswick" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest area for locations named Centreville having populations over 532?`:
```sql
                SELECT MAX("area_km_2") FROM "carleton_county_new_brunswick" WHERE "population">532 AND "official_name"='centreville';
```
## Task
Generate a SQL query to answer the following question:
`what is the competition when the result is 1-1 and venue is gwangju?`

### 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 is the competition when the result is 1-1 and venue is gwangju?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "result"='1-1' AND "venue"='gwangju';
```
## Task
Generate a SQL query to answer the following question:
`what is the date when the competition is 1998 asian games?`

### 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 is the date when the competition is 1998 asian games?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='1998 asian games';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue when the score is 1 goal and the date is october 11, 1997?`

### 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 is the venue when the score is 1 goal and the date is october 11, 1997?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "score"='1 goal' AND "date"='october 11, 1997';
```
## Task
Generate a SQL query to answer the following question:
`what is the competition when the result is 2-1?`

### 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 is the competition when the result is 2-1?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "result"='2-1';
```
## Task
Generate a SQL query to answer the following question:
`what is the result when the date is august 24, 1997?`

### 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 is the result when the date is august 24, 1997?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='august 24, 1997';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue when the date is december 7, 1998?`

### 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 is the venue when the date is december 7, 1998?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='december 7, 1998';
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver with a time/retired of +5.2684?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver with a time/retired of +5.2684?`:
```sql
                SELECT "driver" FROM "classification" WHERE "time_retired"='+5.2684';
```