cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the sum of All-Time, when Amateur Era is less than 0?`

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

CREATE TABLE "champions_by_country" (
  "country" text,
  "amateur_era" real,
  "open_era" real,
  "all_time" real,
  "first_title" real,
  "last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of All-Time, when Amateur Era is less than 0?`:
```sql
                SELECT SUM("all_time") FROM "champions_by_country" WHERE "amateur_era"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest All-Time, when First Title is before 1974, when Last Title is "1933", and when Amateur Era is greater than 2?`

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

CREATE TABLE "champions_by_country" (
  "country" text,
  "amateur_era" real,
  "open_era" real,
  "all_time" real,
  "first_title" real,
  "last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest All-Time, when First Title is before 1974, when Last Title is "1933", and when Amateur Era is greater than 2?`:
```sql
                SELECT MIN("all_time") FROM "champions_by_country" WHERE "first_title"<1974 AND "last_title"=1933 AND "amateur_era">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest All-Time, when First Title is "2007, and when Amateur Era is greater than 0?`

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

CREATE TABLE "champions_by_country" (
  "country" text,
  "amateur_era" real,
  "open_era" real,
  "all_time" real,
  "first_title" real,
  "last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest All-Time, when First Title is "2007, and when Amateur Era is greater than 0?`:
```sql
                SELECT MIN("all_time") FROM "champions_by_country" WHERE "first_title"=2007 AND "amateur_era">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest First Title, when All-Time is greater than 1, when Country is "United States (USA)", and when Amateur Era is greater than 17?`

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

CREATE TABLE "champions_by_country" (
  "country" text,
  "amateur_era" real,
  "open_era" real,
  "all_time" real,
  "first_title" real,
  "last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest First Title, when All-Time is greater than 1, when Country is "United States (USA)", and when Amateur Era is greater than 17?`:
```sql
                SELECT MIN("first_title") FROM "champions_by_country" WHERE "all_time">1 AND "country"='united states (usa)' AND "amateur_era">17;
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a To par of +2 and a Score of 70-72-73=215?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place of the Player with a To par of +2 and a Score of 70-72-73=215?`:
```sql
                SELECT "place" FROM "third_round" WHERE "to_par"='+2' AND "score"='70-72-73=215';
```
## Task
Generate a SQL query to answer the following question:
`From what Country is T6 Place Player Robert Karlsson?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `From what Country is T6 Place Player Robert Karlsson?`:
```sql
                SELECT "country" FROM "third_round" WHERE "place"='t6' AND "player"='robert karlsson';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par of the T4 Place Player with a Score of 72-69-73=214?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par of the T4 Place Player with a Score of 72-69-73=214?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "place"='t4' AND "score"='72-69-73=214';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par of the Player with a Score of 70-72-73=215?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par of the Player with a Score of 70-72-73=215?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "score"='70-72-73=215';
```
## Task
Generate a SQL query to answer the following question:
`What Country is Rocco Mediate from?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Country is Rocco Mediate from?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='rocco mediate';
```
## Task
Generate a SQL query to answer the following question:
`What is Mike Smith's 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 is Mike Smith's To par?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "player"='mike smith';
```
## Task
Generate a SQL query to answer the following question:
`What is Scott Hoch with a Score of 66 Country?`

### 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 Scott Hoch with a Score of 66 Country?`:
```sql
                SELECT "country" FROM "first_round" WHERE "score"=66 AND "player"='scott hoch';
```
## Task
Generate a SQL query to answer the following question:
`What is the T4 Place Player with a Score of more than 66?`

### 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 T4 Place Player with a Score of more than 66?`:
```sql
                SELECT "player" FROM "first_round" WHERE "score">66 AND "place"='t4';
```
## Task
Generate a SQL query to answer the following question:
`What is the vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='mutual consent' AND "date_of_appointment"='2 november 2009';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure for the vacancy date of 20 September 2009?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of departure for the vacancy date of 20 September 2009?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_vacancy"='20 september 2009';
```
## Task
Generate a SQL query to answer the following question:
`What was the vacancy date of the manager appointed on 11 March 2010?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the vacancy date of the manager appointed on 11 March 2010?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "date_of_appointment"='11 march 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick number where the overall pick number was 38?`

### 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 pick number where the overall pick number was 38?`:
```sql
                SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "overall"=38;
```
## Task
Generate a SQL query to answer the following question:
`What was the position of the player who was picked in round 22?`

### 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 position of the player who was picked in round 22?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "round"=22;
```
## Task
Generate a SQL query to answer the following question:
`What was the call sign for ERP W of 99?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the call sign for ERP W of 99?`:
```sql
                SELECT "call_sign" FROM "translators" WHERE "erp_w"=99;
```
## Task
Generate a SQL query to answer the following question:
`What is the team 1 in the match with a team 2 of Karabakh?`

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

CREATE TABLE "third_qualifying_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team 1 in the match with a team 2 of Karabakh?`:
```sql
                SELECT "team_1" FROM "third_qualifying_round" WHERE "team_2"='karabakh';
```
## Task
Generate a SQL query to answer the following question:
`What is the round of pick 63?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round of pick 63?`:
```sql
                SELECT "round" FROM "nfl_draft" WHERE "pick"=63;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round of player chris burkett?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round of player chris burkett?`:
```sql
                SELECT MIN("round") FROM "nfl_draft" WHERE "player"='chris burkett';
```
## Task
Generate a SQL query to answer the following question:
`What is the average pick of school/club team kutztown state with a round 4?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pick of school/club team kutztown state with a round 4?`:
```sql
                SELECT AVG("pick") FROM "nfl_draft" WHERE "round"=4 AND "school_club_team"='kutztown state';
```
## Task
Generate a SQL query to answer the following question:
`What is the draw % with more than 110 matches, more than 59 draws, and a losing % of 18.5792%?`

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

CREATE TABLE "statistics" (
  "name" text,
  "seasons" real,
  "matches" real,
  "win_pct" text,
  "draw" real,
  "draw_pct" text,
  "lose" real,
  "lose_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the draw % with more than 110 matches, more than 59 draws, and a losing % of 18.5792%?`:
```sql
                SELECT "draw_pct" FROM "statistics" WHERE "matches">110 AND "draw">59 AND "lose_pct"='18.5792%';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of matches of leonardo in seasons after 1?`

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

CREATE TABLE "statistics" (
  "name" text,
  "seasons" real,
  "matches" real,
  "win_pct" text,
  "draw" real,
  "draw_pct" text,
  "lose" real,
  "lose_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of matches of leonardo in seasons after 1?`:
```sql
                SELECT AVG("matches") FROM "statistics" WHERE "name"='leonardo' AND "seasons">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average membership with 3.33% LDS and less than 47 branches?`

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

CREATE TABLE "table" (
  "state" text,
  "membership" real,
  "population" real,
  "pct_lds" text,
  "wards" real,
  "branches" real,
  "total_congregations" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average membership with 3.33% LDS and less than 47 branches?`:
```sql
                SELECT AVG("membership") FROM "table" WHERE "pct_lds"='3.33%' AND "branches"<47;
```
## Task
Generate a SQL query to answer the following question:
`what is 2005 when 2003 is A, 2007 is 2r and 2012 is 3r?`

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

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

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

CREATE TABLE "performance_timeline" (
  "tournament" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2004 when the tournament is paris masters?`:
```sql
                SELECT "2004" FROM "performance_timeline" WHERE "tournament"='paris masters';
```
## Task
Generate a SQL query to answer the following question:
`what is 2009 when 2004 is 107?`

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

CREATE TABLE "performance_timeline" (
  "tournament" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2009 when 2004 is 107?`:
```sql
                SELECT "2009" FROM "performance_timeline" WHERE "2004"='107';
```
## Task
Generate a SQL query to answer the following question:
`what is 2003 when 2005 is did not qualify?`

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

CREATE TABLE "performance_timeline" (
  "tournament" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2003 when 2005 is did not qualify?`:
```sql
                SELECT "2003" FROM "performance_timeline" WHERE "2005"='did not qualify';
```
## Task
Generate a SQL query to answer the following question:
`what is 2012 when the tournament is win %?`

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

CREATE TABLE "performance_timeline" (
  "tournament" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2012 when the tournament is win %?`:
```sql
                SELECT "2012" FROM "performance_timeline" WHERE "tournament"='win %';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on February 2?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on February 2?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='february 2';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the game on February 2?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the game on February 2?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "date"='february 2';
```
## Task
Generate a SQL query to answer the following question:
`What year was Black Swan up for the Gotham Awards?`

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

CREATE TABLE "accolades" (
  "year" real,
  "award" text,
  "category" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Black Swan up for the Gotham Awards?`:
```sql
                SELECT COUNT("year") FROM "accolades" WHERE "title"='black swan' AND "award"='gotham awards';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year in which Requiem for a Dream was in the running for Best Director?`

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

CREATE TABLE "accolades" (
  "year" real,
  "award" text,
  "category" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year in which Requiem for a Dream was in the running for Best Director?`:
```sql
                SELECT MIN("year") FROM "accolades" WHERE "title"='requiem for a dream' AND "category"='best director';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Location of fleetcenter, and the Date of fri. apr. 5?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Location of fleetcenter, and the Date of fri. apr. 5?`:
```sql
                SELECT "record" FROM "game_log" WHERE "location"='fleetcenter' AND "date"='fri. apr. 5';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Game smaller than 76?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Game smaller than 76?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game"<76;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the highest Game that has the Opponent of atlanta hawks?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the highest Game that has the Opponent of atlanta hawks?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "opponent"='atlanta hawks';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Game that has the Opponent of miami heat?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Game that has the Opponent of miami heat?`:
```sql
                SELECT "game" FROM "game_log" WHERE "opponent"='miami heat';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Score of 100-105?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Score of 100-105?`:
```sql
                SELECT "record" FROM "game_log" WHERE "score"='100-105';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Location/Attendance of delta center/19,911 on dec 6?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Location/Attendance of delta center/19,911 on dec 6?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "location_attendance"='delta center/19,911' AND "date"='dec 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record for Game 17?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record for Game 17?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game"='17';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location/Attendance on Dec 14?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location/Attendance on Dec 14?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "date"='dec 14';
```
## Task
Generate a SQL query to answer the following question:
`Which Record is dated Dec 10?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record is dated Dec 10?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='dec 10';
```
## Task
Generate a SQL query to answer the following question:
`What was the Location/Attendance on Dec 2?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Location/Attendance on Dec 2?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "date"='dec 2';
```
## Task
Generate a SQL query to answer the following question:
`Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?`:
```sql
                SELECT "rider" FROM "superbike_race_1_classification" WHERE "bike"='honda cbr1000rr' AND "laps"<22 AND "time"='+2 laps';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest grid when the time is +45.162?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest grid when the time is +45.162?`:
```sql
                SELECT MAX("grid") FROM "superbike_race_1_classification" WHERE "time"='+45.162';
```
## Task
Generate a SQL query to answer the following question:
`What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000?`:
```sql
                SELECT AVG("grid") FROM "superbike_race_1_classification" WHERE "bike"='suzuki gsx-r1000' AND "rider"='fonsi nieto';
```
## Task
Generate a SQL query to answer the following question:
`How many grids did Shinichi Nakatomi ride in?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many grids did Shinichi Nakatomi ride in?`:
```sql
                SELECT SUM("grid") FROM "superbike_race_1_classification" WHERE "rider"='shinichi nakatomi';
```
## Task
Generate a SQL query to answer the following question:
`How many tries against have a losing bonus of 9?`

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

CREATE TABLE "2009_10_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries against have a losing bonus of 9?`:
```sql
                SELECT "tries_against" FROM "2009_10_table" WHERE "losing_bonus"='9';
```
## Task
Generate a SQL query to answer the following question:
`How many points were there for 15 losses?`

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

CREATE TABLE "2009_10_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were there for 15 losses?`:
```sql
                SELECT "points_for" FROM "2009_10_table" WHERE "lost"='15';
```
## Task
Generate a SQL query to answer the following question:
`For which play was the points 271?`

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

CREATE TABLE "2009_10_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which play was the points 271?`:
```sql
                SELECT "played" FROM "2009_10_table" WHERE "points_against"='271';
```
## Task
Generate a SQL query to answer the following question:
`How many points were there when the try bonus was 2?`

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

CREATE TABLE "2009_10_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were there when the try bonus was 2?`:
```sql
                SELECT "points" FROM "2009_10_table" WHERE "try_bonus"='2';
```
## Task
Generate a SQL query to answer the following question:
`Which 2007–08 season has a Club of genoa c.f.c.?`

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

CREATE TABLE "teams" (
  "club" text,
  "city" text,
  "stadium" text,
  "capacity" real,
  "2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007–08 season has a Club of genoa c.f.c.?`:
```sql
                SELECT "2007_08_season" FROM "teams" WHERE "club"='genoa c.f.c.';
```
## Task
Generate a SQL query to answer the following question:
`Which City has a Stadium of stadio artemio franchi, florence?`

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

CREATE TABLE "teams" (
  "club" text,
  "city" text,
  "stadium" text,
  "capacity" real,
  "2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Stadium of stadio artemio franchi, florence?`:
```sql
                SELECT "city" FROM "teams" WHERE "stadium"='stadio artemio franchi, florence';
```
## Task
Generate a SQL query to answer the following question:
`What is the description when the reserve is Half Moon Caye?`

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

CREATE TABLE "list_of_natural_monuments" (
  "reserve" text,
  "district" text,
  "iucn" text,
  "co_management" text,
  "est" real,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the description when the reserve is Half Moon Caye?`:
```sql
                SELECT "description" FROM "list_of_natural_monuments" WHERE "reserve"='half moon caye';
```
## Task
Generate a SQL query to answer the following question:
`Which district has an IUCN of iii and was established in 1998?`

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

CREATE TABLE "list_of_natural_monuments" (
  "reserve" text,
  "district" text,
  "iucn" text,
  "co_management" text,
  "est" real,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which district has an IUCN of iii and was established in 1998?`:
```sql
                SELECT "district" FROM "list_of_natural_monuments" WHERE "iucn"='iii' AND "est"=1998;
```
## Task
Generate a SQL query to answer the following question:
`What is the IUNC of district of Cayo and reserve of Actun Tunichil Muknal?`

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

CREATE TABLE "list_of_natural_monuments" (
  "reserve" text,
  "district" text,
  "iucn" text,
  "co_management" text,
  "est" real,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IUNC of district of Cayo and reserve of Actun Tunichil Muknal?`:
```sql
                SELECT "iucn" FROM "list_of_natural_monuments" WHERE "district"='cayo' AND "reserve"='actun tunichil muknal';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of value for average finish with poles less than 0?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of value for average finish with poles less than 0?`:
```sql
                SELECT SUM("avg_finish") FROM "nascar_nationwide_series" WHERE "poles"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average start with wins larger than 0 and 32nd position?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average start with wins larger than 0 and 32nd position?`:
```sql
                SELECT AVG("starts") FROM "nascar_nationwide_series" WHERE "wins">0 AND "position"='32nd';
```
## Task
Generate a SQL query to answer the following question:
`What is the average SFC in lb/(lbf·h) for engines with an Effective exhaust velocity (m/s) larger than 29,553, and a SFC in g/(kN·s) of 17.1?`

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

CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
  "engine_type" text,
  "scenario" text,
  "sfc_in_lb_lbf_h" real,
  "sfc_in_g_k_n_s" real,
  "specific_impulse_s" real,
  "effective_exhaust_velocity_m_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average SFC in lb/(lbf·h) for engines with an Effective exhaust velocity (m/s) larger than 29,553, and a SFC in g/(kN·s) of 17.1?`:
```sql
                SELECT AVG("sfc_in_lb_lbf_h") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "effective_exhaust_velocity_m_s">'29,553' AND "sfc_in_g_k_n_s"=17.1;
```
## Task
Generate a SQL query to answer the following question:
`What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)?`

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

CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
  "engine_type" text,
  "scenario" text,
  "sfc_in_lb_lbf_h" real,
  "sfc_in_g_k_n_s" real,
  "specific_impulse_s" real,
  "effective_exhaust_velocity_m_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)?`:
```sql
                SELECT "specific_impulse_s" FROM "specific_fuel_consumption_sfc_specific_i" WHERE "scenario"='sr-71 at mach 3.2 (wet)';
```
## Task
Generate a SQL query to answer the following question:
`what is the average specific impulse for engines that have a SFC in lb/(lbf·h) of 7.95, and a Effective exhaust velocity (m/s) larger than 4,423`

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

CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
  "engine_type" text,
  "scenario" text,
  "sfc_in_lb_lbf_h" real,
  "sfc_in_g_k_n_s" real,
  "specific_impulse_s" real,
  "effective_exhaust_velocity_m_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average specific impulse for engines that have a SFC in lb/(lbf·h) of 7.95, and a Effective exhaust velocity (m/s) larger than 4,423`:
```sql
                SELECT AVG("specific_impulse_s") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "sfc_in_lb_lbf_h"=7.95 AND "effective_exhaust_velocity_m_s">'4,423';
```
## Task
Generate a SQL query to answer the following question:
`The draft pick that was taken before round 4 went to what college?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `The draft pick that was taken before round 4 went to what college?`:
```sql
                SELECT "college" FROM "draft_picks" WHERE "round"<4;
```
## Task
Generate a SQL query to answer the following question:
`What player went to DePaul University?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player went to DePaul University?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "college"='depaul';
```
## Task
Generate a SQL query to answer the following question:
`What is 1st Round, when Team 1 is Sporting Toulon Var (D2)?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1st Round, when Team 1 is Sporting Toulon Var (D2)?`:
```sql
                SELECT "1st_round" FROM "round_of_16" WHERE "team_1"='sporting toulon var (d2)';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when 1st Round is 2 - 0, and when Team 2 is Stade Brestois (D1)?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when 1st Round is 2 - 0, and when Team 2 is Stade Brestois (D1)?`:
```sql
                SELECT "score" FROM "round_of_16" WHERE "1st_round"='2 - 0' AND "team_2"='stade brestois (d1)';
```
## Task
Generate a SQL query to answer the following question:
`What is Team 2, when Score is 2 - 1?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 2, when Score is 2 - 1?`:
```sql
                SELECT "team_2" FROM "round_of_16" WHERE "score"='2 - 1';
```
## Task
Generate a SQL query to answer the following question:
`What is Viewers, when Event is Johnson Vs. Moraga?`

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

CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
  "event" text,
  "date" text,
  "rating" text,
  "share" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Viewers, when Event is Johnson Vs. Moraga?`:
```sql
                SELECT "viewers" FROM "ufc_on_fox_s_nielsen_rating" WHERE "event"='johnson vs. moraga';
```
## Task
Generate a SQL query to answer the following question:
`What is Rating, when Event is Johnson Vs. Dodson?`

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

CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
  "event" text,
  "date" text,
  "rating" text,
  "share" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Rating, when Event is Johnson Vs. Dodson?`:
```sql
                SELECT "rating" FROM "ufc_on_fox_s_nielsen_rating" WHERE "event"='johnson vs. dodson';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Viewers is 2.4 Million, and when Rating is 1.4?`

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

CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
  "event" text,
  "date" text,
  "rating" text,
  "share" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Viewers is 2.4 Million, and when Rating is 1.4?`:
```sql
                SELECT "event" FROM "ufc_on_fox_s_nielsen_rating" WHERE "viewers"='2.4 million' AND "rating"='1.4';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Date is April 20, 2013?`

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

CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
  "event" text,
  "date" text,
  "rating" text,
  "share" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Date is April 20, 2013?`:
```sql
                SELECT "event" FROM "ufc_on_fox_s_nielsen_rating" WHERE "date"='april 20, 2013';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Rating 1.5, and when Event is Johnson Vs. Moraga?`

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

CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
  "event" text,
  "date" text,
  "rating" text,
  "share" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Rating 1.5, and when Event is Johnson Vs. Moraga?`:
```sql
                SELECT "date" FROM "ufc_on_fox_s_nielsen_rating" WHERE "rating"='1.5' AND "event"='johnson vs. moraga';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Viewers is 4.4 million?`

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

CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
  "event" text,
  "date" text,
  "rating" text,
  "share" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Viewers is 4.4 million?`:
```sql
                SELECT "date" FROM "ufc_on_fox_s_nielsen_rating" WHERE "viewers"='4.4 million';
```
## Task
Generate a SQL query to answer the following question:
`What was Tiger Woods' score?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Tiger Woods' score?`:
```sql
                SELECT "score" FROM "third_round" WHERE "player"='tiger woods';
```
## Task
Generate a SQL query to answer the following question:
`How did Justin Leonard of the United States score?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did Justin Leonard of the United States score?`:
```sql
                SELECT "score" FROM "third_round" WHERE "country"='united states' AND "player"='justin leonard';
```
## Task
Generate a SQL query to answer the following question:
`Which player is from England?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is from England?`:
```sql
                SELECT "player" FROM "third_round" WHERE "country"='england';
```
## Task
Generate a SQL query to answer the following question:
`Who scored 74-70-67=211 and placed t5?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who scored 74-70-67=211 and placed t5?`:
```sql
                SELECT "player" FROM "third_round" WHERE "place"='t5' AND "score"='74-70-67=211';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player with a score less than 72 and a to par of +1?`

### 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 is the player with a score less than 72 and a to par of +1?`:
```sql
                SELECT "player" FROM "first_round" WHERE "score"<72 AND "to_par"='+1';
```