cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is every number for the hometown of Canton, Illinois?`

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

CREATE TABLE "roster" (
  "no" real,
  "player" text,
  "hometown" text,
  "class" text,
  "position" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every number for the hometown of Canton, Illinois?`:
```sql
                SELECT "no" FROM "roster" WHERE "hometown"='Canton, Illinois';
```
## Task
Generate a SQL query to answer the following question:
`Who is every player with a height of 6-5?`

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

CREATE TABLE "roster" (
  "no" real,
  "player" text,
  "hometown" text,
  "class" text,
  "position" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every player with a height of 6-5?`:
```sql
                SELECT "player" FROM "roster" WHERE "height"='6-5';
```
## Task
Generate a SQL query to answer the following question:
`Who are all players from hometown of Carbondale, Illinois?`

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

CREATE TABLE "roster" (
  "no" real,
  "player" text,
  "hometown" text,
  "class" text,
  "position" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all players from hometown of Carbondale, Illinois?`:
```sql
                SELECT "player" FROM "roster" WHERE "hometown"='Carbondale, Illinois';
```
## Task
Generate a SQL query to answer the following question:
`What is every class with a position of guard and Tal Brody as the player?`

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

CREATE TABLE "roster" (
  "no" real,
  "player" text,
  "hometown" text,
  "class" text,
  "position" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every class with a position of guard and Tal Brody as the player?`:
```sql
                SELECT "class" FROM "roster" WHERE "position"='Guard' AND "player"='Tal Brody';
```
## Task
Generate a SQL query to answer the following question:
`How many values for number occur with the hometown of Canton, Illinois?`

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

CREATE TABLE "roster" (
  "no" real,
  "player" text,
  "hometown" text,
  "class" text,
  "position" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for number occur with the hometown of Canton, Illinois?`:
```sql
                SELECT COUNT("no") FROM "roster" WHERE "hometown"='Canton, Illinois';
```
## Task
Generate a SQL query to answer the following question:
`What class was ren alde?`

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

CREATE TABLE "roster" (
  "no" real,
  "player" text,
  "position" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class was ren alde?`:
```sql
                SELECT "class" FROM "roster" WHERE "player"='Ren Alde';
```
## Task
Generate a SQL query to answer the following question:
`Who are the player's who weighed 170?`

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

CREATE TABLE "roster" (
  "no" real,
  "player" text,
  "position" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the player's who weighed 170?`:
```sql
                SELECT "player" FROM "roster" WHERE "weight"=170;
```
## Task
Generate a SQL query to answer the following question:
`What is jim dutcher's hometown?`

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

CREATE TABLE "roster" (
  "no" real,
  "player" text,
  "position" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is jim dutcher's hometown?`:
```sql
                SELECT "hometown" FROM "roster" WHERE "player"='Jim Dutcher';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of player for 51 points`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of player for 51 points`:
```sql
                SELECT COUNT("player") FROM "player_stats" WHERE "points"=51;
```
## Task
Generate a SQL query to answer the following question:
`Name the most rebounds for larry smith`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rebounds for larry smith`:
```sql
                SELECT MAX("rebounds") FROM "player_stats" WHERE "player"='Larry Smith';
```
## Task
Generate a SQL query to answer the following question:
`Name the steals for 5 blocks`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the steals for 5 blocks`:
```sql
                SELECT "steals" FROM "player_stats" WHERE "blocks"=5;
```
## Task
Generate a SQL query to answer the following question:
`Name the least points`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least points`:
```sql
                SELECT MIN("points") FROM "player_stats";
```
## Task
Generate a SQL query to answer the following question:
`When  0.6–1.4 is the b r (t) what is the h ci (ka/m)?`

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

CREATE TABLE "magnetic_properties" (
  "magnet" text,
  "b_r_t" text,
  "h_ci_k_a_m" text,
  "bh_max_k_j_m_3" text,
  "t_c_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  0.6–1.4 is the b r (t) what is the h ci (ka/m)?`:
```sql
                SELECT "h_ci_k_a_m" FROM "magnetic_properties" WHERE "b_r_t"='0.6–1.4';
```
## Task
Generate a SQL query to answer the following question:
`When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc (°c)?`

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

CREATE TABLE "magnetic_properties" (
  "magnet" text,
  "b_r_t" text,
  "h_ci_k_a_m" text,
  "bh_max_k_j_m_3" text,
  "t_c_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc (°c)?`:
```sql
                SELECT COUNT("t_c_c") FROM "magnetic_properties" WHERE "magnet"='Nd 2 Fe 14 B (bonded)';
```
## Task
Generate a SQL query to answer the following question:
`When 720 is the t c (°c) what is the   h ci (ka/m)?`

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

CREATE TABLE "magnetic_properties" (
  "magnet" text,
  "b_r_t" text,
  "h_ci_k_a_m" text,
  "bh_max_k_j_m_3" text,
  "t_c_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 720 is the t c (°c) what is the   h ci (ka/m)?`:
```sql
                SELECT "h_ci_k_a_m" FROM "magnetic_properties" WHERE "t_c_c"='720';
```
## Task
Generate a SQL query to answer the following question:
`Name the sec wins for .357 percentage and 4-3 home record`

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

CREATE TABLE "conference_standings" (
  "team" text,
  "sec_wins" real,
  "sec_losses" real,
  "percentage" text,
  "home_record" text,
  "road_record" text,
  "overall_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sec wins for .357 percentage and 4-3 home record`:
```sql
                SELECT "sec_wins" FROM "conference_standings" WHERE "percentage"='.357' AND "home_record"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`Name the percentage for georgia`

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

CREATE TABLE "conference_standings" (
  "team" text,
  "sec_wins" real,
  "sec_losses" real,
  "percentage" text,
  "home_record" text,
  "road_record" text,
  "overall_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the percentage for georgia`:
```sql
                SELECT "percentage" FROM "conference_standings" WHERE "team"='Georgia';
```
## Task
Generate a SQL query to answer the following question:
`Name the overall record for road record being 4-3`

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

CREATE TABLE "conference_standings" (
  "team" text,
  "sec_wins" real,
  "sec_losses" real,
  "percentage" text,
  "home_record" text,
  "road_record" text,
  "overall_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the overall record for road record being 4-3`:
```sql
                SELECT "overall_record" FROM "conference_standings" WHERE "road_record"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of road record for team ole miss`

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

CREATE TABLE "conference_standings" (
  "team" text,
  "sec_wins" real,
  "sec_losses" real,
  "percentage" text,
  "home_record" text,
  "road_record" text,
  "overall_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of road record for team ole miss`:
```sql
                SELECT COUNT("road_record") FROM "conference_standings" WHERE "team"='Ole Miss';
```
## Task
Generate a SQL query to answer the following question:
`Name the percentage for ole miss`

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

CREATE TABLE "conference_standings" (
  "team" text,
  "sec_wins" real,
  "sec_losses" real,
  "percentage" text,
  "home_record" text,
  "road_record" text,
  "overall_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the percentage for ole miss`:
```sql
                SELECT "percentage" FROM "conference_standings" WHERE "team"='Ole Miss';
```
## Task
Generate a SQL query to answer the following question:
`What is the most number of blocks kendall gill had?`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of blocks kendall gill had?`:
```sql
                SELECT MAX("blocks") FROM "player_stats" WHERE "player"='Kendall Gill';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of three pointers in games where the number of rebounds was 178?`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of three pointers in games where the number of rebounds was 178?`:
```sql
                SELECT MIN("three_pointers") FROM "player_stats" WHERE "rebounds"=178;
```
## Task
Generate a SQL query to answer the following question:
`How many steals were the in games that andy kaufmann played?`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many steals were the in games that andy kaufmann played?`:
```sql
                SELECT COUNT("steals") FROM "player_stats" WHERE "player"='Andy Kaufmann';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of three pointers in games that kendall gill played?`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of three pointers in games that kendall gill played?`:
```sql
                SELECT MIN("three_pointers") FROM "player_stats" WHERE "player"='Kendall Gill';
```
## Task
Generate a SQL query to answer the following question:
`How many games had three pointers where the number of points was 581?`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games had three pointers where the number of points was 581?`:
```sql
                SELECT COUNT("three_pointers") FROM "player_stats" WHERE "points"=581;
```
## Task
Generate a SQL query to answer the following question:
`How many timeslots were available for the season finale on August 29, 2009?`

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

CREATE TABLE "seasonal_ratings" (
  "season" real,
  "episodes" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many timeslots were available for the season finale on August 29, 2009?`:
```sql
                SELECT COUNT("timeslot_et") FROM "seasonal_ratings" WHERE "season_finale"='August 29, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest amount of episodes for the season with 5.74 million viewers?`

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

CREATE TABLE "seasonal_ratings" (
  "season" real,
  "episodes" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest amount of episodes for the season with 5.74 million viewers?`:
```sql
                SELECT MAX("episodes") FROM "seasonal_ratings" WHERE "viewers_in_millions"='5.74';
```
## Task
Generate a SQL query to answer the following question:
`What rank number had a season premiere on December 24, 2011?`

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

CREATE TABLE "seasonal_ratings" (
  "season" real,
  "episodes" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank number had a season premiere on December 24, 2011?`:
```sql
                SELECT "rank" FROM "seasonal_ratings" WHERE "season_premiere"='December 24, 2011';
```
## Task
Generate a SQL query to answer the following question:
`How many rankings were there for the season with a finale on August 20, 2011?`

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

CREATE TABLE "seasonal_ratings" (
  "season" real,
  "episodes" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rankings were there for the season with a finale on August 20, 2011?`:
```sql
                SELECT COUNT("rank") FROM "seasonal_ratings" WHERE "season_finale"='August 20, 2011';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had a season premiere on December 11, 2010?`

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

CREATE TABLE "seasonal_ratings" (
  "season" real,
  "episodes" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had a season premiere on December 11, 2010?`:
```sql
                SELECT COUNT("episodes") FROM "seasonal_ratings" WHERE "season_premiere"='December 11, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What was the season number that had a premiere on December 11, 2010?`

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

CREATE TABLE "seasonal_ratings" (
  "season" real,
  "episodes" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the season number that had a premiere on December 11, 2010?`:
```sql
                SELECT MAX("season") FROM "seasonal_ratings" WHERE "season_premiere"='December 11, 2010';
```
## Task
Generate a SQL query to answer the following question:
`Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)?`

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

CREATE TABLE "singles_19_11_titles_8_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 `Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)?`:
```sql
                SELECT "surface" FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)';
```
## Task
Generate a SQL query to answer the following question:
`How many outcome have a score of 7–6 (9–7) , 6–3?`

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

CREATE TABLE "singles_19_11_titles_8_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 `How many outcome have a score of 7–6 (9–7) , 6–3?`:
```sql
                SELECT COUNT("outcome") FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='7–6 (9–7) , 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Which outcomes have a final score of 6–3, 6–2?`

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

CREATE TABLE "singles_19_11_titles_8_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 `Which outcomes have a final score of 6–3, 6–2?`:
```sql
                SELECT "outcome" FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='6–3, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`What is the last year that Andre Agassi was the final opponent?`

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

CREATE TABLE "singles_19_11_titles_8_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 the last year that Andre Agassi was the final opponent?`:
```sql
                SELECT MAX("year") FROM "singles_19_11_titles_8_runner_ups" WHERE "opponent_in_the_final"='Andre Agassi';
```
## Task
Generate a SQL query to answer the following question:
`How many years have a final score of 6–3, 6–2?`

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

CREATE TABLE "singles_19_11_titles_8_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 `How many years have a final score of 6–3, 6–2?`:
```sql
                SELECT COUNT("year") FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='6–3, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`Which championship has a final score of 6–7 (9–11) , 6–4, 7–5, 4–6, 4–6?`

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

CREATE TABLE "singles_19_11_titles_8_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 `Which championship has a final score of 6–7 (9–11) , 6–4, 7–5, 4–6, 4–6?`:
```sql
                SELECT "championship" FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='6–7 (9–11) , 6–4, 7–5, 4–6, 4–6';
```
## Task
Generate a SQL query to answer the following question:
`How many years had a total earnings amount of 2254598?`

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

CREATE TABLE "atp_tour_career_earnings" (
  "year" real,
  "majors" real,
  "atp_wins" real,
  "total_wins" real,
  "earnings" real,
  "money_list_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years had a total earnings amount of 2254598?`:
```sql
                SELECT COUNT("year") FROM "atp_tour_career_earnings" WHERE "earnings"=2254598;
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year that data is available for?`

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

CREATE TABLE "atp_tour_career_earnings" (
  "year" real,
  "majors" real,
  "atp_wins" real,
  "total_wins" real,
  "earnings" real,
  "money_list_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year that data is available for?`:
```sql
                SELECT MAX("year") FROM "atp_tour_career_earnings";
```
## Task
Generate a SQL query to answer the following question:
`What is the score in the final in the year 1994?`

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

CREATE TABLE "singles_6_5_titles_1_runner_up" (
  "outcome" text,
  "year" real,
  "championship" 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 the score in the final in the year 1994?`:
```sql
                SELECT "score_in_the_final" FROM "singles_6_5_titles_1_runner_up" WHERE "year"=1994;
```
## Task
Generate a SQL query to answer the following question:
`Who is the championship for the year of 1993?`

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

CREATE TABLE "singles_6_5_titles_1_runner_up" (
  "outcome" text,
  "year" real,
  "championship" 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 `Who is the championship for the year of 1993?`:
```sql
                SELECT "championship" FROM "singles_6_5_titles_1_runner_up" WHERE "year"=1993;
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent in the final when frankfurt is championship and the year is less than 1993.0?`

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

CREATE TABLE "singles_6_5_titles_1_runner_up" (
  "outcome" text,
  "year" real,
  "championship" 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 `Who is the opponent in the final when frankfurt is championship and the year is less than 1993.0?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_6_5_titles_1_runner_up" WHERE "championship"='Frankfurt' AND "year"<1993.0;
```
## Task
Generate a SQL query to answer the following question:
`In what year was his money list rank 3? `

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

CREATE TABLE "atp_tour_career_earnings" (
  "year" real,
  "majors" real,
  "atp_wins" real,
  "total_wins" real,
  "earnings" real,
  "money_list_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was his money list rank 3? `:
```sql
                SELECT MIN("year") FROM "atp_tour_career_earnings" WHERE "money_list_rank"=3;
```
## Task
Generate a SQL query to answer the following question:
`What was his money list rank in 2001? `

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

CREATE TABLE "atp_tour_career_earnings" (
  "year" real,
  "majors" real,
  "atp_wins" real,
  "total_wins" real,
  "earnings" real,
  "money_list_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was his money list rank in 2001? `:
```sql
                SELECT MIN("money_list_rank") FROM "atp_tour_career_earnings" WHERE "year"=2001;
```
## Task
Generate a SQL query to answer the following question:
`How many atp wins did he have when his money list rank was 4? `

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

CREATE TABLE "atp_tour_career_earnings" (
  "year" real,
  "majors" real,
  "atp_wins" real,
  "total_wins" real,
  "earnings" real,
  "money_list_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many atp wins did he have when his money list rank was 4? `:
```sql
                SELECT MAX("atp_wins") FROM "atp_tour_career_earnings" WHERE "money_list_rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum total wins he had for any year? `

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

CREATE TABLE "atp_tour_career_earnings" (
  "year" real,
  "majors" real,
  "atp_wins" real,
  "total_wins" real,
  "earnings" real,
  "money_list_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum total wins he had for any year? `:
```sql
                SELECT MAX("total_wins") FROM "atp_tour_career_earnings";
```
## Task
Generate a SQL query to answer the following question:
`What district is Samuel A. Bridges ( D ) assigned to as a successor?`

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

CREATE TABLE "table1_228439_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is Samuel A. Bridges ( D ) assigned to as a successor?`:
```sql
                SELECT "district" FROM "table1_228439_4" WHERE "successor"='Samuel A. Bridges ( D )';
```
## Task
Generate a SQL query to answer the following question:
`what was the reason Richard K. Meade ( d ) became a successor?`

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

CREATE TABLE "table1_228439_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the reason Richard K. Meade ( d ) became a successor?`:
```sql
                SELECT "reason_for_change" FROM "table1_228439_4" WHERE "successor"='Richard K. Meade ( D )';
```
## Task
Generate a SQL query to answer the following question:
`Who is the successor for massachusetts 8th?`

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

CREATE TABLE "table1_228439_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the successor for massachusetts 8th?`:
```sql
                SELECT "successor" FROM "table1_228439_4" WHERE "district"='Massachusetts 8th';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent for 11-1`

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

CREATE TABLE "schedule" (
  "date" text,
  "location" text,
  "opponent" text,
  "cards_points" real,
  "opp_points" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for 11-1`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "record"='11-1';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for kentucky`

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

CREATE TABLE "schedule" (
  "date" text,
  "location" text,
  "opponent" text,
  "cards_points" real,
  "opp_points" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for kentucky`:
```sql
                SELECT "record" FROM "schedule" WHERE "opponent"='Kentucky';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent in the match with final score 3–6, 4–6, 7–5, 4–6?`

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

CREATE TABLE "singles_15_8_titles_7_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 `Who is the opponent in the match with final score 3–6, 4–6, 7–5, 4–6?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='3–6, 4–6, 7–5, 4–6';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the match with score 4–6, 3–6, 2–6?`

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

CREATE TABLE "singles_15_8_titles_7_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 was the outcome of the match with score 4–6, 3–6, 2–6?`:
```sql
                SELECT "outcome" FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='4–6, 3–6, 2–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year where the final score is 4–6, 3–6, 6–4, 5–7?`

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

CREATE TABLE "singles_15_8_titles_7_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 the most recent year where the final score is 4–6, 3–6, 6–4, 5–7?`:
```sql
                SELECT MAX("year") FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='4–6, 3–6, 6–4, 5–7';
```
## Task
Generate a SQL query to answer the following question:
`What championship had a final score of 6–4, 6–2, 6–2?`

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

CREATE TABLE "singles_15_8_titles_7_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" 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 championship had a final score of 6–4, 6–2, 6–2?`:
```sql
                SELECT "championship" FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='6–4, 6–2, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`If the year is 2007, what is the top ten?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the year is 2007, what is the top ten?`:
```sql
                SELECT "top_10s" FROM "lpga_tour_career_summary" WHERE "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the possible maximum money list rank?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the possible maximum money list rank?`:
```sql
                SELECT MAX("money_list_rank") FROM "lpga_tour_career_summary";
```
## Task
Generate a SQL query to answer the following question:
`If the scoring average is 72.46, what is the best finish?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the scoring average is 72.46, what is the best finish?`:
```sql
                SELECT "best_finish" FROM "lpga_tour_career_summary" WHERE "scoring_average"='72.46';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for wesley moodie`

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

CREATE TABLE "singles_14" (
  "edition" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "w_l" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for wesley moodie`:
```sql
                SELECT "result" FROM "singles_14" WHERE "opponent"='Wesley Moodie';
```
## Task
Generate a SQL query to answer the following question:
`Name the surface against monaco`

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

CREATE TABLE "singles_14" (
  "edition" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "w_l" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface against monaco`:
```sql
                SELECT "surface" FROM "singles_14" WHERE "against"='Monaco';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for alexander shvec`

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

CREATE TABLE "singles_14" (
  "edition" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "w_l" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for alexander shvec`:
```sql
                SELECT "result" FROM "singles_14" WHERE "opponent"='Alexander Shvec';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9)`

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

CREATE TABLE "singles_14" (
  "edition" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "w_l" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9)`:
```sql
                SELECT "opponent" FROM "singles_14" WHERE "result"='3–6, 4–6, 6–1, 6–7 (7–9)';
```
## Task
Generate a SQL query to answer the following question:
`Name the annual rainfail for 2002 population being 493984`

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

CREATE TABLE "table1_22854436_1" (
  "administrative_region" text,
  "population_2002_census_data" real,
  "surface_km_2" real,
  "main_rivers" text,
  "average_annual_rainfall_mm" text,
  "average_annual_runoff_mm" text,
  "per_capita_average_annual_renewable_water_resources_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the annual rainfail for 2002 population being 493984`:
```sql
                SELECT "average_annual_rainfall_mm" FROM "table1_22854436_1" WHERE "population_2002_census_data"=493984;
```
## Task
Generate a SQL query to answer the following question:
`Name the most population 2002`

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

CREATE TABLE "table1_22854436_1" (
  "administrative_region" text,
  "population_2002_census_data" real,
  "surface_km_2" real,
  "main_rivers" text,
  "average_annual_rainfall_mm" text,
  "average_annual_runoff_mm" text,
  "per_capita_average_annual_renewable_water_resources_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most population 2002`:
```sql
                SELECT MAX("population_2002_census_data") FROM "table1_22854436_1";
```
## Task
Generate a SQL query to answer the following question:
`Name the total water resources m3 for rainfall being 650`

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

CREATE TABLE "table1_22854436_1" (
  "administrative_region" text,
  "population_2002_census_data" real,
  "surface_km_2" real,
  "main_rivers" text,
  "average_annual_rainfall_mm" text,
  "average_annual_runoff_mm" text,
  "per_capita_average_annual_renewable_water_resources_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total water resources m3 for rainfall being 650`:
```sql
                SELECT COUNT("per_capita_average_annual_renewable_water_resources_m_3") FROM "table1_22854436_1" WHERE "average_annual_rainfall_mm"='650';
```
## Task
Generate a SQL query to answer the following question:
`What were the carpet w-l in 1993?`

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

CREATE TABLE "career_singles_statistics" (
  "year" real,
  "tournaments" real,
  "titles" real,
  "hardcourt_w_l" text,
  "clay_w_l" text,
  "grass_w_l" text,
  "carpet_w_l" text,
  "overall_w_l" text,
  "win_pct" text,
  "year_end_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the carpet w-l in 1993?`:
```sql
                SELECT "carpet_w_l" FROM "career_singles_statistics" WHERE "year"=1993;
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of US open runner-up score?`

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

CREATE TABLE "grand_slam_7_finals_3_titles_4_runner_up" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of US open runner-up score?`:
```sql
                SELECT COUNT("score_in_final") FROM "grand_slam_7_finals_3_titles_4_runner_up" WHERE "championship"='US Open' AND "outcome"='Runner-up';
```
## Task
Generate a SQL query to answer the following question:
`What is the year where the runner-up outcome was at its basic minimum?`

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

CREATE TABLE "grand_slam_7_finals_3_titles_4_runner_up" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year where the runner-up outcome was at its basic minimum?`:
```sql
                SELECT MIN("year") FROM "grand_slam_7_finals_3_titles_4_runner_up" WHERE "outcome"='Runner-up';
```
## Task
Generate a SQL query to answer the following question:
`How many championships have there been with Steffi Graf?`

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

CREATE TABLE "grand_slam_7_finals_3_titles_4_runner_up" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many championships have there been with Steffi Graf?`:
```sql
                SELECT "championship" FROM "grand_slam_7_finals_3_titles_4_runner_up" WHERE "opponent_in_final"='Steffi Graf';
```
## Task
Generate a SQL query to answer the following question:
`How many opponents have wimbledon (2) as the championship?`

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

CREATE TABLE "doubles_37_31_6" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents have wimbledon (2) as the championship?`:
```sql
                SELECT COUNT("opponents") FROM "doubles_37_31_6" WHERE "championship"='Wimbledon (2)';
```
## Task
Generate a SQL query to answer the following question:
`What is the surface when the us open is the championship in the year 1979?`

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

CREATE TABLE "doubles_37_31_6" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface when the us open is the championship in the year 1979?`:
```sql
                SELECT "surface" FROM "doubles_37_31_6" WHERE "championship"='US Open' AND "year"=1979;
```
## Task
Generate a SQL query to answer the following question:
`What is the game number that was on November 27? `

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

CREATE TABLE "game_log" (
  "num" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game number that was on November 27? `:
```sql
                SELECT "num" FROM "game_log" WHERE "date"='November 27';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the team was @ New Jersey? `

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

CREATE TABLE "game_log" (
  "num" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the team was @ New Jersey? `:
```sql
                SELECT "score" FROM "game_log" WHERE "team"='@ New Jersey';
```
## Task
Generate a SQL query to answer the following question:
`How many high rebound catagories are listed for game number 5? `

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

CREATE TABLE "game_log" (
  "num" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many high rebound catagories are listed for game number 5? `:
```sql
                SELECT COUNT("high_rebounds") FROM "game_log" WHERE "num"=5;
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents when the record was 11-2?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "location" text,
  "opponent" text,
  "terps_points" real,
  "opp_points" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents when the record was 11-2?`:
```sql
                SELECT "opponent" FROM "season_schedule" WHERE "record"='11-2';
```
## Task
Generate a SQL query to answer the following question:
`What were the records when the opponents had 50 points?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "location" text,
  "opponent" text,
  "terps_points" real,
  "opp_points" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the records when the opponents had 50 points?`:
```sql
                SELECT "record" FROM "season_schedule" WHERE "opp_points"=50;
```