cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`On what date was a game played, which left the team with a record of 5-7?`

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

CREATE TABLE "schedule_and_results" (
  "date" text,
  "opponent" text,
  "score" text,
  "site_stadium" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was a game played, which left the team with a record of 5-7?`:
```sql
                SELECT "date" FROM "schedule_and_results" WHERE "record"='5-7';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game played at Harmon Stadium on February 24?`

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

CREATE TABLE "schedule_and_results" (
  "date" text,
  "opponent" text,
  "score" text,
  "site_stadium" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game played at Harmon Stadium on February 24?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "site_stadium"='harmon stadium' AND "date"='february 24';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game on May 9 played?`

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

CREATE TABLE "schedule_and_results" (
  "date" text,
  "opponent" text,
  "score" text,
  "site_stadium" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game on May 9 played?`:
```sql
                SELECT "site_stadium" FROM "schedule_and_results" WHERE "date"='may 9';
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest position when the points are less than 21, and the played greater than 14?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest position when the points are less than 21, and the played greater than 14?`:
```sql
                SELECT MAX("position") FROM "campeonato_paulista" WHERE "points"<21 AND "played">14;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest lost with a difference of 9 and a less than 3 drawn?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest lost with a difference of 9 and a less than 3 drawn?`:
```sql
                SELECT MIN("lost") FROM "campeonato_paulista" WHERE "difference"='9' AND "drawn"<3;
```
## Task
Generate a SQL query to answer the following question:
`Team Estudantes Paulista with a position less than 4 has what average against?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Team Estudantes Paulista with a position less than 4 has what average against?`:
```sql
                SELECT AVG("against") FROM "campeonato_paulista" WHERE "team"='estudantes paulista' AND "position"<4;
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory on Apr 8, 1979?`

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

CREATE TABLE "lpga_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory on Apr 8, 1979?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_tour_wins_8" WHERE "date"='apr 8, 1979';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley?`

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

CREATE TABLE "lpga_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley?`:
```sql
                SELECT "winning_score" FROM "lpga_tour_wins_8" WHERE "margin_of_victory"='2 strokes' AND "runner_s_up"='pat bradley';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory when the winning score was −5 (69-69-73=211)?`

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

CREATE TABLE "lpga_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory when the winning score was −5 (69-69-73=211)?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_tour_wins_8" WHERE "winning_score"='−5 (69-69-73=211)';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament had a winning score of −5 (69-69-73=211)?`

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

CREATE TABLE "lpga_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a winning score of −5 (69-69-73=211)?`:
```sql
                SELECT "tournament" FROM "lpga_tour_wins_8" WHERE "winning_score"='−5 (69-69-73=211)';
```
## Task
Generate a SQL query to answer the following question:
`When was the winning score −6 (69-69-73-71=282)?`

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

CREATE TABLE "lpga_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the winning score −6 (69-69-73-71=282)?`:
```sql
                SELECT "date" FROM "lpga_tour_wins_8" WHERE "winning_score"='−6 (69-69-73-71=282)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent of the game played on November 20, 1995?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent of the game played on November 20, 1995?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='november 20, 1995';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Grid with a Name that is jamie whincup?`

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

CREATE TABLE "race_2_results" (
  "name" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Grid with a Name that is jamie whincup?`:
```sql
                SELECT MAX("grid") FROM "race_2_results" WHERE "name"='jamie whincup';
```
## Task
Generate a SQL query to answer the following question:
`What is the Team with a Lap that is 5?`

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

CREATE TABLE "race_2_results" (
  "name" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team with a Lap that is 5?`:
```sql
                SELECT "team" FROM "race_2_results" WHERE "laps"=5;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233?`

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

CREATE TABLE "2008_nfl_draft_selections" (
  "round" real,
  "pick" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233?`:
```sql
                SELECT MIN("round") FROM "2008_nfl_draft_selections" WHERE "name"='justin forsett' AND "pick">233;
```
## Task
Generate a SQL query to answer the following question:
`What's the average round the position of RB was drafted?`

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

CREATE TABLE "2008_nfl_draft_selections" (
  "round" real,
  "pick" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average round the position of RB was drafted?`:
```sql
                SELECT AVG("round") FROM "2008_nfl_draft_selections" WHERE "position"='rb';
```
## Task
Generate a SQL query to answer the following question:
`What's the average round Red Bryant was drafted with a pick larger than 121?`

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

CREATE TABLE "2008_nfl_draft_selections" (
  "round" real,
  "pick" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average round Red Bryant was drafted with a pick larger than 121?`:
```sql
                SELECT AVG("round") FROM "2008_nfl_draft_selections" WHERE "name"='red bryant' AND "pick">121;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Overall Record that has the Away Team of miami?`

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

CREATE TABLE "schedule" (
  "week" real,
  "home_team" text,
  "away_team" text,
  "overall_record" text,
  "divisional_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Overall Record that has the Away Team of miami?`:
```sql
                SELECT "overall_record" FROM "schedule" WHERE "away_team"='miami';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Overall Record that has the Week of 3?`

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

CREATE TABLE "schedule" (
  "week" real,
  "home_team" text,
  "away_team" text,
  "overall_record" text,
  "divisional_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Overall Record that has the Week of 3?`:
```sql
                SELECT "overall_record" FROM "schedule" WHERE "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Divisional Record that has the Away Team of dallas?`

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

CREATE TABLE "schedule" (
  "week" real,
  "home_team" text,
  "away_team" text,
  "overall_record" text,
  "divisional_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Divisional Record that has the Away Team of dallas?`:
```sql
                SELECT "divisional_record" FROM "schedule" WHERE "away_team"='dallas';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Overall Record that has the Week smaller than 16, and the Divisional Record of (1-0), and the Away Team of miami?`

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

CREATE TABLE "schedule" (
  "week" real,
  "home_team" text,
  "away_team" text,
  "overall_record" text,
  "divisional_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Overall Record that has the Week smaller than 16, and the Divisional Record of (1-0), and the Away Team of miami?`:
```sql
                SELECT "overall_record" FROM "schedule" WHERE "week"<16 AND "divisional_record"='(1-0)' AND "away_team"='miami';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Week that has the Home Team of detroit, and the Divisional Record of (3-0), and the Overall Record of (5-1), and the Away Team of minnesota?`

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

CREATE TABLE "schedule" (
  "week" real,
  "home_team" text,
  "away_team" text,
  "overall_record" text,
  "divisional_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Week that has the Home Team of detroit, and the Divisional Record of (3-0), and the Overall Record of (5-1), and the Away Team of minnesota?`:
```sql
                SELECT "week" FROM "schedule" WHERE "home_team"='detroit' AND "divisional_record"='(3-0)' AND "overall_record"='(5-1)' AND "away_team"='minnesota';
```
## Task
Generate a SQL query to answer the following question:
`Who is the choreographer with the style pas de deux?`

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

CREATE TABLE "week_6_july_16_2008" (
  "couple" text,
  "style" text,
  "music" text,
  "choreographer_s" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the choreographer with the style pas de deux?`:
```sql
                SELECT "choreographer_s" FROM "week_6_july_16_2008" WHERE "style"='pas de deux';
```
## Task
Generate a SQL query to answer the following question:
`What is the end of reign for Dimitar Stojkovski?`

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

CREATE TABLE "autocephalous_church_since_1967" (
  "name" text,
  "start_of_reign" real,
  "end_of_reign" text,
  "birth_name" text,
  "title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the end of reign for Dimitar Stojkovski?`:
```sql
                SELECT "end_of_reign" FROM "autocephalous_church_since_1967" WHERE "birth_name"='dimitar stojkovski';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the person who started their reign in 1999?`

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

CREATE TABLE "autocephalous_church_since_1967" (
  "name" text,
  "start_of_reign" real,
  "end_of_reign" text,
  "birth_name" text,
  "title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the person who started their reign in 1999?`:
```sql
                SELECT "title" FROM "autocephalous_church_since_1967" WHERE "start_of_reign"=1999;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of birth of the person who started their reign in 1986?`

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

CREATE TABLE "autocephalous_church_since_1967" (
  "name" text,
  "start_of_reign" real,
  "end_of_reign" text,
  "birth_name" text,
  "title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of birth of the person who started their reign in 1986?`:
```sql
                SELECT "birth_name" FROM "autocephalous_church_since_1967" WHERE "start_of_reign"=1986;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number for goals less than 73?`

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

CREATE TABLE "top_goalscorers" (
  "name" text,
  "career" text,
  "apps" real,
  "goals" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number for goals less than 73?`:
```sql
                SELECT COUNT("average") FROM "top_goalscorers" WHERE "goals"<73;
```
## Task
Generate a SQL query to answer the following question:
`What is the total average for 1990-1995, and goals less than 90?`

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

CREATE TABLE "top_goalscorers" (
  "name" text,
  "career" text,
  "apps" real,
  "goals" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total average for 1990-1995, and goals less than 90?`:
```sql
                SELECT COUNT("average") FROM "top_goalscorers" WHERE "career"='1990-1995' AND "goals"<90;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest Position for a Team with fewer than 3 Lost, a Difference of 1, and more than 7 games Played?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest Position for a Team with fewer than 3 Lost, a Difference of 1, and more than 7 games Played?`:
```sql
                SELECT MIN("position") FROM "torneio_rio_s_o_paulo" WHERE "lost"<3 AND "difference"='1' AND "played">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against?`:
```sql
                SELECT SUM("played") FROM "torneio_rio_s_o_paulo" WHERE "team"='vasco da gama' AND "against"<12;
```
## Task
Generate a SQL query to answer the following question:
`What was the Difference of the Team that had a Position less than 2?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Difference of the Team that had a Position less than 2?`:
```sql
                SELECT "difference" FROM "torneio_rio_s_o_paulo" WHERE "position"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which attendance number was taken on november 21, 2004?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which attendance number was taken on november 21, 2004?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='november 21, 2004';
```
## Task
Generate a SQL query to answer the following question:
`Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"<16 AND "opponent"='washington redskins';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks had the Green Bay packers as opponents?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks had the Green Bay packers as opponents?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "opponent"='green bay packers';
```
## Task
Generate a SQL query to answer the following question:
`What Country had a Score of 71-67=138?`

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

CREATE TABLE "second_round_friday_saturday" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Country had a Score of 71-67=138?`:
```sql
                SELECT "country" FROM "second_round_friday_saturday" WHERE "score"='71-67=138';
```
## Task
Generate a SQL query to answer the following question:
`What Country had a Score of 75-68=143?`

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

CREATE TABLE "second_round_friday_saturday" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Country had a Score of 75-68=143?`:
```sql
                SELECT "country" FROM "second_round_friday_saturday" WHERE "score"='75-68=143';
```
## Task
Generate a SQL query to answer the following question:
`How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 runs scored?`

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

CREATE TABLE "sri_lanka" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 runs scored?`:
```sql
                SELECT SUM("innings") FROM "sri_lanka" WHERE "average"<6.33 AND "s_r"<71.43 AND "balls_faced">36 AND "runs_scored"<19;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of averages having a balls faced over 297 and more than 7 innings?`

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

CREATE TABLE "sri_lanka" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of averages having a balls faced over 297 and more than 7 innings?`:
```sql
                SELECT COUNT("average") FROM "sri_lanka" WHERE "balls_faced">297 AND "innings">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of innings with a strike rate of 72.05 and under 297 balls faced?`

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

CREATE TABLE "sri_lanka" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of innings with a strike rate of 72.05 and under 297 balls faced?`:
```sql
                SELECT MIN("innings") FROM "sri_lanka" WHERE "s_r"=72.05 AND "balls_faced"<297;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of balls faced associated with a strike rate over 48.28, 3 innings, and an average under 5?`

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

CREATE TABLE "sri_lanka" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of balls faced associated with a strike rate over 48.28, 3 innings, and an average under 5?`:
```sql
                SELECT SUM("balls_faced") FROM "sri_lanka" WHERE "s_r">48.28 AND "innings"=3 AND "average"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the Nation with a Date that is may 6, 1991?`

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

CREATE TABLE "record_progression" (
  "record" text,
  "athlete" text,
  "nation" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nation with a Date that is may 6, 1991?`:
```sql
                SELECT "nation" FROM "record_progression" WHERE "date"='may 6, 1991';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record with a Date that is may 20, 1961?`

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

CREATE TABLE "record_progression" (
  "record" text,
  "athlete" text,
  "nation" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record with a Date that is may 20, 1961?`:
```sql
                SELECT "record" FROM "record_progression" WHERE "date"='may 20, 1961';
```
## Task
Generate a SQL query to answer the following question:
`Who was the partner of the winner?`

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

CREATE TABLE "doubles_5_1_4" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the partner of the winner?`:
```sql
                SELECT "partner" FROM "doubles_5_1_4" WHERE "outcome"='winner';
```
## Task
Generate a SQL query to answer the following question:
`What is the Volume:Issue for the song " stars on 45 medley "?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_on_top" real,
  "song" text,
  "artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Volume:Issue for the song " stars on 45 medley "?`:
```sql
                SELECT "volume_issue" FROM "see_also" WHERE "song"='\" stars on 45 medley \"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Issue with less than 6 weeks on top and for the song " the friends of mr. cairo "?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_on_top" real,
  "song" text,
  "artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Issue with less than 6 weeks on top and for the song " the friends of mr. cairo "?`:
```sql
                SELECT "issue_date_s" FROM "see_also" WHERE "weeks_on_top"<6 AND "song"='\" the friends of mr. cairo \"';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Weeks on Top for the Volume:Issue 34:9-12?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_on_top" real,
  "song" text,
  "artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Weeks on Top for the Volume:Issue 34:9-12?`:
```sql
                SELECT SUM("weeks_on_top") FROM "see_also" WHERE "volume_issue"='34:9-12';
```
## Task
Generate a SQL query to answer the following question:
`How many Places (Posición) has a Draw (PE) larger than 2 and a Team (Equipo) of paraíso and a Won (PG) larger than 6?`

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

CREATE TABLE "clausura_2008_standings" (
  "place_posici_n" real,
  "team_equipo" text,
  "played_pj" real,
  "won_pg" real,
  "draw_pe" real,
  "lost_pp" real,
  "goals_scored_gf" real,
  "goals_conceded_gc" real,
  "dif" real,
  "points_pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Places (Posición) has a Draw (PE) larger than 2 and a Team (Equipo) of paraíso and a Won (PG) larger than 6?`:
```sql
                SELECT COUNT("place_posici_n") FROM "clausura_2008_standings" WHERE "draw_pe">2 AND "team_equipo"='paraíso' AND "won_pg">6;
```
## Task
Generate a SQL query to answer the following question:
`How many league cups have yeovil town as the club, with a league less than 16?`

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

CREATE TABLE "topscorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many league cups have yeovil town as the club, with a league less than 16?`:
```sql
                SELECT COUNT("league_cup") FROM "topscorers_in_order_of_league_goals" WHERE "club"='yeovil town' AND "league"<16;
```
## Task
Generate a SQL query to answer the following question:
`What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5?`

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

CREATE TABLE "topscorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5?`:
```sql
                SELECT AVG("fa_cup") FROM "topscorers_in_order_of_league_goals" WHERE "player"='gary jones' AND "fa_trophy">5;
```
## Task
Generate a SQL query to answer the following question:
`What FA trophys have tony hemmings as the player, with a league greater than 15?`

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

CREATE TABLE "topscorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What FA trophys have tony hemmings as the player, with a league greater than 15?`:
```sql
                SELECT SUM("fa_trophy") FROM "topscorers_in_order_of_league_goals" WHERE "player"='tony hemmings' AND "league">15;
```
## Task
Generate a SQL query to answer the following question:
`What is the score where the country is Japan?`

### 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,
  "score" text,
  "purse" real,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score where the country is Japan?`:
```sql
                SELECT "score" FROM "winners" WHERE "country"='japan';
```
## Task
Generate a SQL query to answer the following question:
`What year has a winner's share smaller than 14,000?`

### 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,
  "score" text,
  "purse" real,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year has a winner's share smaller than 14,000?`:
```sql
                SELECT AVG("year") FROM "winners" WHERE "winner_s_share"<'14,000';
```
## Task
Generate a SQL query to answer the following question:
`Which province has muju as the capital?`

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

CREATE TABLE "provinces_of_unified_silla" (
  "former_kingdom" text,
  "province" text,
  "hangul" text,
  "hanja" text,
  "capital" text,
  "modern_equivalent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province has muju as the capital?`:
```sql
                SELECT "province" FROM "provinces_of_unified_silla" WHERE "capital"='muju';
```
## Task
Generate a SQL query to answer the following question:
`What is the modern equivalent of 良州 in Hanja?`

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

CREATE TABLE "provinces_of_unified_silla" (
  "former_kingdom" text,
  "province" text,
  "hangul" text,
  "hanja" text,
  "capital" text,
  "modern_equivalent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the modern equivalent of 良州 in Hanja?`:
```sql
                SELECT "modern_equivalent" FROM "provinces_of_unified_silla" WHERE "hanja"='良州';
```
## Task
Generate a SQL query to answer the following question:
`What is the capital of the province with 양주 in Hangul?`

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

CREATE TABLE "provinces_of_unified_silla" (
  "former_kingdom" text,
  "province" text,
  "hangul" text,
  "hanja" text,
  "capital" text,
  "modern_equivalent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capital of the province with 양주 in Hangul?`:
```sql
                SELECT "capital" FROM "provinces_of_unified_silla" WHERE "hangul"='양주';
```
## Task
Generate a SQL query to answer the following question:
`What is the capital of the province with 漢州 in Hanja?`

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

CREATE TABLE "provinces_of_unified_silla" (
  "former_kingdom" text,
  "province" text,
  "hangul" text,
  "hanja" text,
  "capital" text,
  "modern_equivalent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capital of the province with 漢州 in Hanja?`:
```sql
                SELECT "capital" FROM "provinces_of_unified_silla" WHERE "hanja"='漢州';
```
## Task
Generate a SQL query to answer the following question:
`What is the Hanja for the sakju province?`

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

CREATE TABLE "provinces_of_unified_silla" (
  "former_kingdom" text,
  "province" text,
  "hangul" text,
  "hanja" text,
  "capital" text,
  "modern_equivalent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hanja for the sakju province?`:
```sql
                SELECT "hanja" FROM "provinces_of_unified_silla" WHERE "province"='sakju';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of top-25s for events with more than 0 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of top-25s for events with more than 0 wins?`:
```sql
                SELECT MIN("top_25") FROM "summary" WHERE "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of top-10s in events with more than 0 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of top-10s in events with more than 0 wins?`:
```sql
                SELECT MAX("top_10") FROM "summary" WHERE "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10?`:
```sql
                SELECT "top_25" FROM "summary" WHERE "events"<13 AND "cuts_made"<3 AND "top_10"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which season had an average under 28, a rank under 10, and a partner of Janja Lesar?`

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

CREATE TABLE "last_place_couples_average_ranks" (
  "rank" real,
  "celebrity" text,
  "professional_partner" text,
  "season" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had an average under 28, a rank under 10, and a partner of Janja Lesar?`:
```sql
                SELECT "season" FROM "last_place_couples_average_ranks" WHERE "average"<28 AND "rank"<10 AND "professional_partner"='janja lesar';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest season that had rank under 1?`

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

CREATE TABLE "last_place_couples_average_ranks" (
  "rank" real,
  "celebrity" text,
  "professional_partner" text,
  "season" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest season that had rank under 1?`:
```sql
                SELECT MAX("season") FROM "last_place_couples_average_ranks" WHERE "rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`Who was the professional partner in season 4?`

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

CREATE TABLE "last_place_couples_average_ranks" (
  "rank" real,
  "celebrity" text,
  "professional_partner" text,
  "season" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the professional partner in season 4?`:
```sql
                SELECT "professional_partner" FROM "last_place_couples_average_ranks" WHERE "season"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest rebounds against detroit?`

### 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 `Who had the highest rebounds against detroit?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "team"='detroit';
```
## Task
Generate a SQL query to answer the following question:
`How much gold received by nation of uzbekistan (uzb)?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much gold received by nation of uzbekistan (uzb)?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "nation"='uzbekistan (uzb)';
```
## Task
Generate a SQL query to answer the following question:
`Which team has the lowest gold and 0 silver?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has the lowest gold and 0 silver?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`How much gold when silver, bronze and total is smaller than 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much gold when silver, bronze and total is smaller than 1?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "silver"<1 AND "bronze"=1 AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO with commenced operations before 1989?`

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

CREATE TABLE "see_also" (
  "airline" text,
  "airline_in_arabic" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO with commenced operations before 1989?`:
```sql
                SELECT "icao" FROM "see_also" WHERE "commenced_operations"<1989;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest commenced operations that has a nouvelair callsign?`

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

CREATE TABLE "see_also" (
  "airline" text,
  "airline_in_arabic" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest commenced operations that has a nouvelair callsign?`:
```sql
                SELECT MIN("commenced_operations") FROM "see_also" WHERE "callsign"='nouvelair';
```
## Task
Generate a SQL query to answer the following question:
`What callsign has commenced operations in 2011?`

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

CREATE TABLE "see_also" (
  "airline" text,
  "airline_in_arabic" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `What callsign has commenced operations in 2011?`:
```sql
                SELECT "callsign" FROM "see_also" WHERE "commenced_operations"=2011;
```
## Task
Generate a SQL query to answer the following question:
`What language is used when the service is sky primafila 10 and the package/option is qualsiasi?`

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

CREATE TABLE "primafila" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language is used when the service is sky primafila 10 and the package/option is qualsiasi?`:
```sql
                SELECT "language" FROM "primafila" WHERE "package_option"='qualsiasi' AND "television_service"='sky primafila 10';
```
## Task
Generate a SQL query to answer the following question:
`What is the content when the package/option is qualsiasi and sky primafila 14 is the television service?`

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

CREATE TABLE "primafila" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the content when the package/option is qualsiasi and sky primafila 14 is the television service?`:
```sql
                SELECT "content" FROM "primafila" WHERE "package_option"='qualsiasi' AND "television_service"='sky primafila 14';
```
## Task
Generate a SQL query to answer the following question:
`What is the HDTV that has television service of tv 8 mont blanc and content is general television?`

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

CREATE TABLE "local_channels" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the HDTV that has television service of tv 8 mont blanc and content is general television?`:
```sql
                SELECT "hdtv" FROM "local_channels" WHERE "content"='general television' AND "television_service"='tv 8 mont blanc';
```
## Task
Generate a SQL query to answer the following question:
`Which city's IATA is nkg?`

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

CREATE TABLE "list" (
  "city" text,
  "province" text,
  "country" text,
  "iata" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city's IATA is nkg?`:
```sql
                SELECT "city" FROM "list" WHERE "iata"='nkg';
```
## Task
Generate a SQL query to answer the following question:
`Which airport is in Xinjiang province in the city Kuqa?`

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

CREATE TABLE "list" (
  "city" text,
  "province" text,
  "country" text,
  "iata" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which airport is in Xinjiang province in the city Kuqa?`:
```sql
                SELECT "airport" FROM "list" WHERE "province"='xinjiang' AND "city"='kuqa';
```
## Task
Generate a SQL query to answer the following question:
`Which province's IATA is kix?`

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

CREATE TABLE "list" (
  "city" text,
  "province" text,
  "country" text,
  "iata" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province's IATA is kix?`:
```sql
                SELECT "province" FROM "list" WHERE "iata"='kix';
```
## Task
Generate a SQL query to answer the following question:
`Which airport's IATA is pen?`

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

CREATE TABLE "list" (
  "city" text,
  "province" text,
  "country" text,
  "iata" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which airport's IATA is pen?`:
```sql
                SELECT "airport" FROM "list" WHERE "iata"='pen';
```
## Task
Generate a SQL query to answer the following question:
`Which Event has a Record of 4:02.54?`

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

CREATE TABLE "women" (
  "event" text,
  "record" text,
  "nation" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Event has a Record of 4:02.54?`:
```sql
                SELECT "event" FROM "women" WHERE "record"='4:02.54';
```