cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the time of the Kentucky Derby?`

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

CREATE TABLE "race_data" (
  "finish" text,
  "race" text,
  "distance" text,
  "jockey" text,
  "time" text,
  "victory_margin_in_lengths" text,
  "runner_up" text,
  "track" text,
  "surface" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time of the Kentucky Derby?`:
```sql
                SELECT "time" FROM "race_data" WHERE "race"='kentucky derby';
```
## Task
Generate a SQL query to answer the following question:
`What was the finish of the Kentucky Derby?`

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

CREATE TABLE "race_data" (
  "finish" text,
  "race" text,
  "distance" text,
  "jockey" text,
  "time" text,
  "victory_margin_in_lengths" text,
  "runner_up" text,
  "track" text,
  "surface" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish of the Kentucky Derby?`:
```sql
                SELECT "finish" FROM "race_data" WHERE "race"='kentucky derby';
```
## Task
Generate a SQL query to answer the following question:
`Which race had a finish of 1st at Saratoga Race Course?`

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

CREATE TABLE "race_data" (
  "finish" text,
  "race" text,
  "distance" text,
  "jockey" text,
  "time" text,
  "victory_margin_in_lengths" text,
  "runner_up" text,
  "track" text,
  "surface" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race had a finish of 1st at Saratoga Race Course?`:
```sql
                SELECT "race" FROM "race_data" WHERE "finish"='1st' AND "track"='saratoga race course';
```
## Task
Generate a SQL query to answer the following question:
`Who was the player in 1981?`

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

CREATE TABLE "winners" (
  "year" text,
  "player" text,
  "team" text,
  "league" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player in 1981?`:
```sql
                SELECT "player" FROM "winners" WHERE "year"='1981';
```
## Task
Generate a SQL query to answer the following question:
`What is the team for 1976?`

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

CREATE TABLE "winners" (
  "year" text,
  "player" text,
  "team" text,
  "league" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team for 1976?`:
```sql
                SELECT "team" FROM "winners" WHERE "year"='1976';
```
## Task
Generate a SQL query to answer the following question:
`What is the opponent for the date of august 5?`

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

CREATE TABLE "preseason" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the opponent for the date of august 5?`:
```sql
                SELECT "opponent" FROM "preseason" WHERE "date"='august 5';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for the date of august 23?`

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

CREATE TABLE "preseason" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for the date of august 23?`:
```sql
                SELECT "result" FROM "preseason" WHERE "date"='august 23';
```
## Task
Generate a SQL query to answer the following question:
`When the opponent is houston oilers what is the result?`

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

CREATE TABLE "preseason" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the opponent is houston oilers what is the result?`:
```sql
                SELECT "result" FROM "preseason" WHERE "opponent"='houston oilers';
```
## Task
Generate a SQL query to answer the following question:
`Which Goals Against has a Drawn larger than 9, a Lost larger than 15, a Position of 24, and a Played smaller than 46?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_average_1" real,
  "points_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Goals Against has a Drawn larger than 9, a Lost larger than 15, a Position of 24, and a Played smaller than 46?`:
```sql
                SELECT AVG("goals_against") FROM "final_table" WHERE "drawn">9 AND "lost">15 AND "position"=24 AND "played"<46;
```
## Task
Generate a SQL query to answer the following question:
`Which Points 2 has Drawn of 15, a Position larger than 20, and a Goals For smaller than 45?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_average_1" real,
  "points_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points 2 has Drawn of 15, a Position larger than 20, and a Goals For smaller than 45?`:
```sql
                SELECT SUM("points_2") FROM "final_table" WHERE "drawn"=15 AND "position">20 AND "goals_for"<45;
```
## Task
Generate a SQL query to answer the following question:
`Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_average_1" real,
  "points_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?`:
```sql
                SELECT MAX("goals_for") FROM "final_table" WHERE "position">2 AND "lost">18 AND "team"='matlock town' AND "goals_against">79;
```
## Task
Generate a SQL query to answer the following question:
`Which Points 2 has a Goal Average 1 larger than 1.17, a Goals Against larger than 48, and a Position larger than 6?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_average_1" real,
  "points_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points 2 has a Goal Average 1 larger than 1.17, a Goals Against larger than 48, and a Position larger than 6?`:
```sql
                SELECT SUM("points_2") FROM "final_table" WHERE "goal_average_1">1.17 AND "goals_against">48 AND "position">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the 1986 value with A in 1991 and A in 1987?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1986 value with A in 1991 and A in 1987?`:
```sql
                SELECT "1986" FROM "singles" WHERE "1991"='a' AND "1987"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1995 value with A in 1986 and 2r in 1992?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1995 value with A in 1986 and 2r in 1992?`:
```sql
                SELECT "1995" FROM "singles" WHERE "1986"='a' AND "1992"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1989 value with F in 1990?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1989 value with F in 1990?`:
```sql
                SELECT "1989" FROM "singles" WHERE "1990"='f';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1987 value of the 1994 atp masters series?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1987 value of the 1994 atp masters series?`:
```sql
                SELECT "1987" FROM "singles" WHERE "1994"='atp masters series';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round that a pick had a position of ls?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round that a pick had a position of ls?`:
```sql
                SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "position"='ls';
```
## Task
Generate a SQL query to answer the following question:
`What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230?`:
```sql
                SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "position"='ls' AND "overall">230;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE VENUE ON MARCH 28, 2008?`

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

CREATE TABLE "chinese_taipei_women_s_national_football" (
  "date" text,
  "venue" text,
  "score" text,
  "competition" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE VENUE ON MARCH 28, 2008?`:
```sql
                SELECT "venue" FROM "chinese_taipei_women_s_national_football" WHERE "date"='march 28, 2008';
```
## Task
Generate a SQL query to answer the following question:
`How many were in Attendance on October 8?`

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

CREATE TABLE "houston_astros_vs_new_york_mets" (
  "game" real,
  "date" text,
  "score" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in Attendance on October 8?`:
```sql
                SELECT COUNT("attendance") FROM "houston_astros_vs_new_york_mets" WHERE "date"='october 8';
```
## Task
Generate a SQL query to answer the following question:
`In what Game was the Attendance more than 45,718 with a Time of 2:55?`

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

CREATE TABLE "houston_astros_vs_new_york_mets" (
  "game" real,
  "date" text,
  "score" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what Game was the Attendance more than 45,718 with a Time of 2:55?`:
```sql
                SELECT COUNT("game") FROM "houston_astros_vs_new_york_mets" WHERE "attendance">'45,718' AND "time"='2:55';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location of the Game on October 8?`

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

CREATE TABLE "houston_astros_vs_new_york_mets" (
  "game" real,
  "date" text,
  "score" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the Game on October 8?`:
```sql
                SELECT "location" FROM "houston_astros_vs_new_york_mets" WHERE "date"='october 8';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality for the player with over 64 goals?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality for the player with over 64 goals?`:
```sql
                SELECT "nat" FROM "squad_information" WHERE "goals">64;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where Philadelphia was the visitor?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game where Philadelphia was the visitor?`:
```sql
                SELECT "score" FROM "game_log" WHERE "visitor"='philadelphia';
```
## Task
Generate a SQL query to answer the following question:
`What are the average spectators from the Group H Round?`

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

CREATE TABLE "2006_fifa_world_cup" (
  "date" text,
  "time_cet" real,
  "res" text,
  "round" text,
  "spectators" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average spectators from the Group H Round?`:
```sql
                SELECT AVG("spectators") FROM "2006_fifa_world_cup" WHERE "round"='group h';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Manufacturer that has the Rider of stefan bradl?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Manufacturer that has the Rider of stefan bradl?`:
```sql
                SELECT "manufacturer" FROM "125cc_classification" WHERE "rider"='stefan bradl';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the highest Grid that has the Time of +15.532, and the Laps larger than 23?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the highest Grid that has the Time of +15.532, and the Laps larger than 23?`:
```sql
                SELECT MAX("grid") FROM "125cc_classification" WHERE "time"='+15.532' AND "laps">23;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Grid that has the Time of +6.355, and the Laps larger than 23?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the sum of Grid that has the Time of +6.355, and the Laps larger than 23?`:
```sql
                SELECT SUM("grid") FROM "125cc_classification" WHERE "time"='+6.355' AND "laps">23;
```
## Task
Generate a SQL query to answer the following question:
`What is Time, when Location is "Savannah, Georgia , United States"?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time, when Location is "Savannah, Georgia , United States"?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "location"='savannah, georgia , united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Round(s), when Time is "N/A", when Location is "Alabama , United States", and when Record is "1-2-0"?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Round(s), when Time is "N/A", when Location is "Alabama , United States", and when Record is "1-2-0"?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "time"='n/a' AND "location"='alabama , united states' AND "record"='1-2-0';
```
## Task
Generate a SQL query to answer the following question:
`Which Retitled as/Same has a Last Aired larger than 1982, and a Show of we got it made?`

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

CREATE TABLE "programs_returning_in_1987" (
  "show" text,
  "last_aired" real,
  "previous_network" text,
  "retitled_as_same" text,
  "new_returning_same_network" text,
  "returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Retitled as/Same has a Last Aired larger than 1982, and a Show of we got it made?`:
```sql
                SELECT "retitled_as_same" FROM "programs_returning_in_1987" WHERE "last_aired">1982 AND "show"='we got it made';
```
## Task
Generate a SQL query to answer the following question:
`Which New/Returning/Same Network has a Last Aired of 1982?`

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

CREATE TABLE "programs_returning_in_1987" (
  "show" text,
  "last_aired" real,
  "previous_network" text,
  "retitled_as_same" text,
  "new_returning_same_network" text,
  "returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which New/Returning/Same Network has a Last Aired of 1982?`:
```sql
                SELECT "new_returning_same_network" FROM "programs_returning_in_1987" WHERE "last_aired"=1982;
```
## Task
Generate a SQL query to answer the following question:
`Which New/Returning/Same Network has a Previous Network of nbc, and a Show of blockbusters?`

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

CREATE TABLE "programs_returning_in_1987" (
  "show" text,
  "last_aired" real,
  "previous_network" text,
  "retitled_as_same" text,
  "new_returning_same_network" text,
  "returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which New/Returning/Same Network has a Previous Network of nbc, and a Show of blockbusters?`:
```sql
                SELECT "new_returning_same_network" FROM "programs_returning_in_1987" WHERE "previous_network"='nbc' AND "show"='blockbusters';
```
## Task
Generate a SQL query to answer the following question:
`Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984?`

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

CREATE TABLE "programs_returning_in_1987" (
  "show" text,
  "last_aired" real,
  "previous_network" text,
  "retitled_as_same" text,
  "new_returning_same_network" text,
  "returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984?`:
```sql
                SELECT "new_returning_same_network" FROM "programs_returning_in_1987" WHERE "retitled_as_same"='same' AND "last_aired">1984;
```
## Task
Generate a SQL query to answer the following question:
`Which Last Aired has a Retitled as/Same of classic concentration?`

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

CREATE TABLE "programs_returning_in_1987" (
  "show" text,
  "last_aired" real,
  "previous_network" text,
  "retitled_as_same" text,
  "new_returning_same_network" text,
  "returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Last Aired has a Retitled as/Same of classic concentration?`:
```sql
                SELECT "last_aired" FROM "programs_returning_in_1987" WHERE "retitled_as_same"='classic concentration';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds had a race name of anglia tv trophy?`

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

CREATE TABLE "races" (
  "round" real,
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_car" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds had a race name of anglia tv trophy?`:
```sql
                SELECT COUNT("round") FROM "races" WHERE "name"='anglia tv trophy';
```
## Task
Generate a SQL query to answer the following question:
`What circuit was the race named international trophy raced at by the winning driver eliseo salazar?`

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

CREATE TABLE "races" (
  "round" real,
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_car" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit was the race named international trophy raced at by the winning driver eliseo salazar?`:
```sql
                SELECT "circuit" FROM "races" WHERE "winning_driver"='eliseo salazar' AND "name"='international trophy';
```
## Task
Generate a SQL query to answer the following question:
`What circuit did emilio de villota win on at the pace petroleum trophy?`

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

CREATE TABLE "races" (
  "round" real,
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_car" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit did emilio de villota win on at the pace petroleum trophy?`:
```sql
                SELECT "circuit" FROM "races" WHERE "winning_driver"='emilio de villota' AND "name"='pace petroleum trophy';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par of the player from the United States with a t6 place and a score of 70-73-68-73=284?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of the player from the United States with a t6 place and a score of 70-73-68-73=284?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "country"='united states' AND "place"='t6' AND "score"='70-73-68-73=284';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from Australia with a to par of +5?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from Australia with a to par of +5?`:
```sql
                SELECT "player" FROM "final_round" WHERE "to_par"='+5' AND "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of money a player with a score of 69-71-71-73=284 has?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of money a player with a score of 69-71-71-73=284 has?`:
```sql
                SELECT MAX("money") FROM "final_round" WHERE "score"='69-71-71-73=284';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the match with 3 rounds and a 9-3 record?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the match with 3 rounds and a 9-3 record?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"=3 AND "record"='9-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the method of the match with a win res., 1 round, and a 3-2 record?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method of the match with a win res., 1 round, and a 3-2 record?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "round"=1 AND "record"='3-2';
```
## Task
Generate a SQL query to answer the following question:
`Who was the sports agent who finished 9th?`

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

CREATE TABLE "contestants" (
  "name" text,
  "occupation" text,
  "hometown" text,
  "season" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the sports agent who finished 9th?`:
```sql
                SELECT "name" FROM "contestants" WHERE "finish"='9th' AND "occupation"='sports agent';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest score that wes ellis got?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest score that wes ellis got?`:
```sql
                SELECT MIN("score") FROM "first_round" WHERE "player"='wes ellis';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the player from the United states that was +1 to par?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the player from the United states that was +1 to par?`:
```sql
                SELECT "score" FROM "first_round" WHERE "to_par"='+1' AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`Who was the player who placed t10?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player who placed t10?`:
```sql
                SELECT "player" FROM "first_round" WHERE "place"='t10';
```
## Task
Generate a SQL query to answer the following question:
`How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "country"='united states' AND "score"<72 AND "place"='t3' AND "player"='ed furgol';
```
## Task
Generate a SQL query to answer the following question:
`What game was played at Philadelphia?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game was played at Philadelphia?`:
```sql
                SELECT AVG("game") FROM "game_log" WHERE "team"='philadelphia';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers?`

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

CREATE TABLE "tv_ratings" (
  "order" text,
  "episode" text,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" real,
  "rank_night" real,
  "rank_timeslot" real,
  "rank_week" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers?`:
```sql
                SELECT SUM("share") FROM "tv_ratings" WHERE "rating">1.2 AND "rank_timeslot"=3 AND "viewers_millions"=6.07;
```
## Task
Generate a SQL query to answer the following question:
`What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11?`

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

CREATE TABLE "tv_ratings" (
  "order" text,
  "episode" text,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" real,
  "rank_night" real,
  "rank_timeslot" real,
  "rank_week" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11?`:
```sql
                SELECT AVG("rank_week") FROM "tv_ratings" WHERE "rating"=1.2 AND "viewers_millions"<1.94 AND "rank_night"<11;
```
## Task
Generate a SQL query to answer the following question:
`what is the round when the college is syracuse and the pick is less than 3?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the round when the college is syracuse and the pick is less than 3?`:
```sql
                SELECT AVG("round") FROM "washington_redskins_draft_history" WHERE "college"='syracuse' AND "pick"<3;
```
## Task
Generate a SQL query to answer the following question:
`what is the position when the pick is more than 2, the overall is more than 28 and the college is nebraska?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position when the pick is more than 2, the overall is more than 28 and the college is nebraska?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "pick">2 AND "overall">28 AND "college"='nebraska';
```
## Task
Generate a SQL query to answer the following question:
`what is the pick when the college is arkansas and the overall is more than 316?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the pick when the college is arkansas and the overall is more than 316?`:
```sql
                SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "college"='arkansas' AND "overall">316;
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest overall when the pick is less than 2?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest overall when the pick is less than 2?`:
```sql
                SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "pick"<2;
```
## Task
Generate a SQL query to answer the following question:
`what is the round when the college is north carolina and the overall is more than 124?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the round when the college is north carolina and the overall is more than 124?`:
```sql
                SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "college"='north carolina' AND "overall">124;
```
## Task
Generate a SQL query to answer the following question:
`October 28, 2001 was what week of the season?`

### 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,
  "tv_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `October 28, 2001 was what week of the season?`:
```sql
                SELECT "week" FROM "schedule" WHERE "date"='october 28, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of week 11?`

### 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,
  "tv_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of week 11?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=11;
```
## Task
Generate a SQL query to answer the following question:
`What was the date of a week larger than 16?`

### 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,
  "tv_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of a week larger than 16?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">16;
```
## Task
Generate a SQL query to answer the following question:
`November 25, 2001 was what week of the season?`

### 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,
  "tv_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `November 25, 2001 was what week of the season?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "date"='november 25, 2001';
```
## Task
Generate a SQL query to answer the following question:
`Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr?`

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

CREATE TABLE "electric_locomotives" (
  "railway" text,
  "builder" text,
  "built" real,
  "wheels" text,
  "location" text,
  "object_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr?`:
```sql
                SELECT "wheels" FROM "electric_locomotives" WHERE "built"<1958 AND "location"='york' AND "railway"='nsr';
```
## Task
Generate a SQL query to answer the following question:
`Which Built has a Builder of brel crewe?`

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

CREATE TABLE "electric_locomotives" (
  "railway" text,
  "builder" text,
  "built" real,
  "wheels" text,
  "location" text,
  "object_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Built has a Builder of brel crewe?`:
```sql
                SELECT AVG("built") FROM "electric_locomotives" WHERE "builder"='brel crewe';
```
## Task
Generate a SQL query to answer the following question:
`Which Railway has a Location of shildon, and an ObjectNumber of 1978-7006?`

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

CREATE TABLE "electric_locomotives" (
  "railway" text,
  "builder" text,
  "built" real,
  "wheels" text,
  "location" text,
  "object_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Railway has a Location of shildon, and an ObjectNumber of 1978-7006?`:
```sql
                SELECT "railway" FROM "electric_locomotives" WHERE "location"='shildon' AND "object_number"='1978-7006';
```
## Task
Generate a SQL query to answer the following question:
`Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?`

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

CREATE TABLE "electric_locomotives" (
  "railway" text,
  "builder" text,
  "built" real,
  "wheels" text,
  "location" text,
  "object_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?`:
```sql
                SELECT "railway" FROM "electric_locomotives" WHERE "location"='shildon' AND "object_number"='1975-7022';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has an ObjectNumber of 2005-7698?`

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

CREATE TABLE "electric_locomotives" (
  "railway" text,
  "builder" text,
  "built" real,
  "wheels" text,
  "location" text,
  "object_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has an ObjectNumber of 2005-7698?`:
```sql
                SELECT "location" FROM "electric_locomotives" WHERE "object_number"='2005-7698';
```
## Task
Generate a SQL query to answer the following question:
`What is the Club during the Years 1995–1996?`

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

CREATE TABLE "notable_former_players" (
  "name" text,
  "club" text,
  "position" text,
  "years" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Club during the Years 1995–1996?`:
```sql
                SELECT "club" FROM "notable_former_players" WHERE "years"='1995–1996';
```
## Task
Generate a SQL query to answer the following question:
`In what Years was the Player in MF Position?`

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

CREATE TABLE "notable_former_players" (
  "name" text,
  "club" text,
  "position" text,
  "years" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Years was the Player in MF Position?`:
```sql
                SELECT "years" FROM "notable_former_players" WHERE "position"='mf';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of the 1st team in the 2007 uefa intertoto cup?`

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

CREATE TABLE "belarusian_clubs_in_euporean_cups" (
  "round" text,
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg of the 1st team in the 2007 uefa intertoto cup?`:
```sql
                SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num1"='2007 uefa intertoto cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of dinamo minsk team #2?`

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

CREATE TABLE "belarusian_clubs_in_euporean_cups" (
  "round" text,
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg of dinamo minsk team #2?`:
```sql
                SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num2"='dinamo minsk';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of the second team in the 2007 uefa intertoto cup?`

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

CREATE TABLE "belarusian_clubs_in_euporean_cups" (
  "round" text,
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg of the second team in the 2007 uefa intertoto cup?`:
```sql
                SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num2"='2007 uefa intertoto cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the 10 against?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the 10 against?`:
```sql
                SELECT "status" FROM "matches" WHERE "against"=10;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opposing team in the test match?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opposing team in the test match?`:
```sql
                SELECT "opposing_team" FROM "matches" WHERE "status"='test match';
```
## Task
Generate a SQL query to answer the following question:
`Where was the 05/09/1973 venue?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the 05/09/1973 venue?`:
```sql
                SELECT "venue" FROM "matches" WHERE "date"='05/09/1973';
```
## Task
Generate a SQL query to answer the following question:
`Which Overall has a Position of te, and a Round larger than 5?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Overall has a Position of te, and a Round larger than 5?`:
```sql
                SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "position"='te' AND "round">5;
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Round larger than 14, and an Overall smaller than 419?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Round larger than 14, and an Overall smaller than 419?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">14 AND "overall"<419;
```
## Task
Generate a SQL query to answer the following question:
`Which Overall has a Round smaller than 2?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Overall has a Round smaller than 2?`:
```sql
                SELECT "overall" FROM "washington_redskins_draft_history" WHERE "round"<2;
```