cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Record label has an Album of tera roop?`

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

CREATE TABLE "discography" (
  "year" real,
  "album" text,
  "record_label" text,
  "info" text,
  "music" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record label has an Album of tera roop?`:
```sql
                SELECT "record_label" FROM "discography" WHERE "album"='tera roop';
```
## Task
Generate a SQL query to answer the following question:
`Which Record label has an Album of rambo?`

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

CREATE TABLE "discography" (
  "year" real,
  "album" text,
  "record_label" text,
  "info" text,
  "music" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record label has an Album of rambo?`:
```sql
                SELECT "record_label" FROM "discography" WHERE "album"='rambo';
```
## Task
Generate a SQL query to answer the following question:
`Which Info has an Album of romeo?`

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

CREATE TABLE "discography" (
  "year" real,
  "album" text,
  "record_label" text,
  "info" text,
  "music" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Info has an Album of romeo?`:
```sql
                SELECT "info" FROM "discography" WHERE "album"='romeo';
```
## Task
Generate a SQL query to answer the following question:
`What was the average attendance when the record was 58–49?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average attendance when the record was 58–49?`:
```sql
                SELECT AVG("attendance") FROM "game_log" WHERE "record"='58–49';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance when the score was 8–7?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when the score was 8–7?`:
```sql
                SELECT SUM("attendance") FROM "game_log" WHERE "score"='8–7';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for july 18?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for july 18?`:
```sql
                SELECT COUNT("attendance") FROM "game_log" WHERE "date"='july 18';
```
## Task
Generate a SQL query to answer the following question:
`How many strokes to par when the score is 1 up?`

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

CREATE TABLE "major_tournaments_hosted" (
  "year" real,
  "tournament" text,
  "winner" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many strokes to par when the score is 1 up?`:
```sql
                SELECT "to_par" FROM "major_tournaments_hosted" WHERE "score"='1 up';
```
## Task
Generate a SQL query to answer the following question:
`Name the series for game 5`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "result" text,
  "site" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series for game 5`:
```sql
                SELECT "series" FROM "nba_finals" WHERE "game"='game 5';
```
## Task
Generate a SQL query to answer the following question:
`Name the site for game of game 2`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "result" text,
  "site" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the site for game of game 2`:
```sql
                SELECT "site" FROM "nba_finals" WHERE "game"='game 2';
```
## Task
Generate a SQL query to answer the following question:
`Name the site with game of game 6`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "result" text,
  "site" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the site with game of game 6`:
```sql
                SELECT "site" FROM "nba_finals" WHERE "game"='game 6';
```
## Task
Generate a SQL query to answer the following question:
`Name the series with game of game 6`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "result" text,
  "site" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series with game of game 6`:
```sql
                SELECT "series" FROM "nba_finals" WHERE "game"='game 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the location attendance from Dwyane Wade (27) high points?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location attendance from Dwyane Wade (27) high points?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "high_points"='dwyane wade (27)';
```
## Task
Generate a SQL query to answer the following question:
`What was the high assists from a high points of dorell wright (20)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the high assists from a high points of dorell wright (20)?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "high_points"='dorell wright (20)';
```
## Task
Generate a SQL query to answer the following question:
`What was the high rebounds from the date of April 14?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the high rebounds from the date of April 14?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "date"='april 14';
```
## Task
Generate a SQL query to answer the following question:
`For the year 1975, what is Propulsion, with a Number (quantity ordered) of 4756-4788 (33 buses)?`

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

CREATE TABLE "retired" (
  "make_model" text,
  "length" text,
  "year" real,
  "numbers_quantity_ordered" text,
  "fuel_propulsion" text,
  "year_retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the year 1975, what is Propulsion, with a Number (quantity ordered) of 4756-4788 (33 buses)?`:
```sql
                SELECT "fuel_propulsion" FROM "retired" WHERE "year"=1975 AND "numbers_quantity_ordered"='4756-4788 (33 buses)';
```
## Task
Generate a SQL query to answer the following question:
`What is the make and model that retires in 2004, and has a numbers (quantity ordered) of 961-967 (7 buses)?`

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

CREATE TABLE "retired" (
  "make_model" text,
  "length" text,
  "year" real,
  "numbers_quantity_ordered" text,
  "fuel_propulsion" text,
  "year_retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the make and model that retires in 2004, and has a numbers (quantity ordered) of 961-967 (7 buses)?`:
```sql
                SELECT "make_model" FROM "retired" WHERE "year_retired"='2004' AND "numbers_quantity_ordered"='961-967 (7 buses)';
```
## Task
Generate a SQL query to answer the following question:
`What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?`

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

CREATE TABLE "retired" (
  "make_model" text,
  "length" text,
  "year" real,
  "numbers_quantity_ordered" text,
  "fuel_propulsion" text,
  "year_retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?`:
```sql
                SELECT "year_retired" FROM "retired" WHERE "fuel_propulsion"='diesel' AND "length"='40''' AND "numbers_quantity_ordered"='3701-3729 (29 buses)';
```
## Task
Generate a SQL query to answer the following question:
`What is the location attendance of the game with a 27-22 record?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location attendance of the game with a 27-22 record?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='27-22';
```
## Task
Generate a SQL query to answer the following question:
`What is the location attendance of the game on February 25?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location attendance of the game on February 25?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "date"='february 25';
```
## Task
Generate a SQL query to answer the following question:
`What's the largest Fall 08 number when fall 09 is less than 82, fall 06 is 5, and fall 05 is less than 3?`

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

CREATE TABLE "geography_of_students" (
  "states" text,
  "fall_05" real,
  "fall_06" real,
  "fall_07" real,
  "fall_08" real,
  "fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the largest Fall 08 number when fall 09 is less than 82, fall 06 is 5, and fall 05 is less than 3?`:
```sql
                SELECT MAX("fall_08") FROM "geography_of_students" WHERE "fall_09"<82 AND "fall_06"=5 AND "fall_05"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean Fall 09 number where fall 05 is less than 3?`

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

CREATE TABLE "geography_of_students" (
  "states" text,
  "fall_05" real,
  "fall_06" real,
  "fall_07" real,
  "fall_08" real,
  "fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean Fall 09 number where fall 05 is less than 3?`:
```sql
                SELECT AVG("fall_09") FROM "geography_of_students" WHERE "fall_05"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum amount of fall 05 when fall 08 is more than 5, fall 06 is more than 7, the state is Maryland, and fall 09 is more than 471?`

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

CREATE TABLE "geography_of_students" (
  "states" text,
  "fall_05" real,
  "fall_06" real,
  "fall_07" real,
  "fall_08" real,
  "fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum amount of fall 05 when fall 08 is more than 5, fall 06 is more than 7, the state is Maryland, and fall 09 is more than 471?`:
```sql
                SELECT COUNT("fall_05") FROM "geography_of_students" WHERE "fall_08">5 AND "fall_06">7 AND "states"='maryland' AND "fall_09">471;
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest fall 05 number when fall 09 is less than 14 and fall 08 is more than 5?`

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

CREATE TABLE "geography_of_students" (
  "states" text,
  "fall_05" real,
  "fall_06" real,
  "fall_07" real,
  "fall_08" real,
  "fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest fall 05 number when fall 09 is less than 14 and fall 08 is more than 5?`:
```sql
                SELECT MIN("fall_05") FROM "geography_of_students" WHERE "fall_09"<14 AND "fall_08">5;
```
## Task
Generate a SQL query to answer the following question:
`What is in the notes for men's speed skating?`

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

CREATE TABLE "personal_records" (
  "distance" text,
  "time" text,
  "date" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is in the notes for men's speed skating?`:
```sql
                SELECT "notes" FROM "personal_records" WHERE "time"='men''s speed skating';
```
## Task
Generate a SQL query to answer the following question:
`What's the date when the location is Berlin?`

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

CREATE TABLE "personal_records" (
  "distance" text,
  "time" text,
  "date" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the date when the location is Berlin?`:
```sql
                SELECT "date" FROM "personal_records" WHERE "location"='berlin';
```
## Task
Generate a SQL query to answer the following question:
`What's the location for men's speed skating?`

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

CREATE TABLE "personal_records" (
  "distance" text,
  "time" text,
  "date" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the location for men's speed skating?`:
```sql
                SELECT "location" FROM "personal_records" WHERE "distance"='men''s speed skating';
```
## Task
Generate a SQL query to answer the following question:
`What's the location when the notes area is notes?`

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

CREATE TABLE "personal_records" (
  "distance" text,
  "time" text,
  "date" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the location when the notes area is notes?`:
```sql
                SELECT "location" FROM "personal_records" WHERE "notes"='notes';
```
## Task
Generate a SQL query to answer the following question:
`What is the notes left for Berlin?`

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

CREATE TABLE "personal_records" (
  "distance" text,
  "time" text,
  "date" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the notes left for Berlin?`:
```sql
                SELECT "notes" FROM "personal_records" WHERE "location"='berlin';
```
## Task
Generate a SQL query to answer the following question:
`Which is located in Angola and entered service in 1988?`

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

CREATE TABLE "deepwater" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is located in Angola and entered service in 1988?`:
```sql
                SELECT "name" FROM "deepwater" WHERE "location"='angola' AND "entered_service"='1988';
```
## Task
Generate a SQL query to answer the following question:
`What type entered service in 2000?`

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

CREATE TABLE "deepwater" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type entered service in 2000?`:
```sql
                SELECT "type" FROM "deepwater" WHERE "entered_service"='2000';
```
## Task
Generate a SQL query to answer the following question:
`What is the water depth of Sedco 702, located in Nigeria?`

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

CREATE TABLE "deepwater" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the water depth of Sedco 702, located in Nigeria?`:
```sql
                SELECT "water_depth" FROM "deepwater" WHERE "location"='nigeria' AND "name"='sedco 702';
```
## Task
Generate a SQL query to answer the following question:
`Which is located in Nigeria?`

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

CREATE TABLE "deepwater" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is located in Nigeria?`:
```sql
                SELECT "name" FROM "deepwater" WHERE "location"='nigeria';
```
## Task
Generate a SQL query to answer the following question:
`Which type entered service in 1976/1997 and is located in Brazil?`

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

CREATE TABLE "deepwater" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which type entered service in 1976/1997 and is located in Brazil?`:
```sql
                SELECT "type" FROM "deepwater" WHERE "location"='brazil' AND "entered_service"='1976/1997';
```
## Task
Generate a SQL query to answer the following question:
`Where is Transocean Richardson, a semi entered into service in 1988?`

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

CREATE TABLE "deepwater" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Transocean Richardson, a semi entered into service in 1988?`:
```sql
                SELECT "location" FROM "deepwater" WHERE "type"='semi' AND "entered_service"='1988' AND "name"='transocean richardson';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Yds/Att where Net Yds was 1818, and Rank was larger than 1?`

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

CREATE TABLE "college_career" (
  "rank" real,
  "name" text,
  "attempts" real,
  "net_yds" real,
  "yds_att" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Yds/Att where Net Yds was 1818, and Rank was larger than 1?`:
```sql
                SELECT COUNT("yds_att") FROM "college_career" WHERE "net_yds"=1818 AND "rank">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Rank when Attempts was 319, and the Year was larger than 2000?`

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

CREATE TABLE "college_career" (
  "rank" real,
  "name" text,
  "attempts" real,
  "net_yds" real,
  "yds_att" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Rank when Attempts was 319, and the Year was larger than 2000?`:
```sql
                SELECT MIN("rank") FROM "college_career" WHERE "attempts"=319 AND "year">2000;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Attempts when Rank was larger than 4, and Net Yds was smaller than 1674?`

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

CREATE TABLE "college_career" (
  "rank" real,
  "name" text,
  "attempts" real,
  "net_yds" real,
  "yds_att" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Attempts when Rank was larger than 4, and Net Yds was smaller than 1674?`:
```sql
                SELECT COUNT("attempts") FROM "college_career" WHERE "rank">4 AND "net_yds"<1674;
```
## Task
Generate a SQL query to answer the following question:
`What is the new conference for the Gauchos team?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "team_nickname" text,
  "tenure" text,
  "new_conference" text,
  "new_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the new conference for the Gauchos team?`:
```sql
                SELECT "new_conference" FROM "former_members" WHERE "team_nickname"='gauchos';
```
## Task
Generate a SQL query to answer the following question:
`What is the new classification for La Mirada, California?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "team_nickname" text,
  "tenure" text,
  "new_conference" text,
  "new_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the new classification for La Mirada, California?`:
```sql
                SELECT "new_classification" FROM "former_members" WHERE "location"='la mirada, california';
```
## Task
Generate a SQL query to answer the following question:
`What is the tenure for the Tritons team?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "team_nickname" text,
  "tenure" text,
  "new_conference" text,
  "new_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tenure for the Tritons team?`:
```sql
                SELECT "tenure" FROM "former_members" WHERE "team_nickname"='tritons';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent was present on March 28?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent was present on March 28?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "march"=28;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean game number when the points scored were more than 99?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean game number when the points scored were more than 99?`:
```sql
                SELECT AVG("game") FROM "regular_season" WHERE "points">99;
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent in game 7?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent in game 7?`:
```sql
                SELECT "opponent" FROM "schedule_and_results" WHERE "game"=7;
```
## Task
Generate a SQL query to answer the following question:
`What day in December was the game before game 11 with a record of 7-2-2?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day in December was the game before game 11 with a record of 7-2-2?`:
```sql
                SELECT SUM("december") FROM "schedule_and_results" WHERE "record"='7-2-2' AND "game"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the day in December of the game against the Boston Bruins?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the day in December of the game against the Boston Bruins?`:
```sql
                SELECT COUNT("december") FROM "schedule_and_results" WHERE "opponent"='boston bruins';
```
## Task
Generate a SQL query to answer the following question:
`What is the average day in December of the game with a 8-2-3 record?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average day in December of the game with a 8-2-3 record?`:
```sql
                SELECT AVG("december") FROM "schedule_and_results" WHERE "record"='8-2-3';
```
## Task
Generate a SQL query to answer the following question:
`How many seats have a quantity over 45?`

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

CREATE TABLE "production" (
  "system" text,
  "owner" text,
  "quantity" real,
  "delivery" text,
  "length" text,
  "gauge" text,
  "operation" text,
  "seats" real,
  "standing" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats have a quantity over 45?`:
```sql
                SELECT SUM("seats") FROM "production" WHERE "quantity">45;
```
## Task
Generate a SQL query to answer the following question:
`Which owner has 84 seats?`

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

CREATE TABLE "production" (
  "system" text,
  "owner" text,
  "quantity" real,
  "delivery" text,
  "length" text,
  "gauge" text,
  "operation" text,
  "seats" real,
  "standing" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which owner has 84 seats?`:
```sql
                SELECT "owner" FROM "production" WHERE "seats"=84;
```
## Task
Generate a SQL query to answer the following question:
`Which deliver has 16 and a standing more than 128?`

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

CREATE TABLE "production" (
  "system" text,
  "owner" text,
  "quantity" real,
  "delivery" text,
  "length" text,
  "gauge" text,
  "operation" text,
  "seats" real,
  "standing" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which deliver has 16 and a standing more than 128?`:
```sql
                SELECT "delivery" FROM "production" WHERE "quantity"=16 AND "standing">128;
```
## Task
Generate a SQL query to answer the following question:
`What is the host city that has Alicia Keys listed as a host?`

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

CREATE TABLE "host_cities" (
  "year" text,
  "theme" text,
  "host_city" text,
  "venue" text,
  "hosts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the host city that has Alicia Keys listed as a host?`:
```sql
                SELECT "host_city" FROM "host_cities" WHERE "hosts"='alicia keys';
```
## Task
Generate a SQL query to answer the following question:
`What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme?`

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

CREATE TABLE "host_cities" (
  "year" text,
  "theme" text,
  "host_city" text,
  "venue" text,
  "hosts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme?`:
```sql
                SELECT "host_city" FROM "host_cities" WHERE "venue"='singapore indoor stadium' AND "theme"='valentine''s day';
```
## Task
Generate a SQL query to answer the following question:
`What year will Bangkok be the host city and Alicia Keys host?`

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

CREATE TABLE "host_cities" (
  "year" text,
  "theme" text,
  "host_city" text,
  "venue" text,
  "hosts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year will Bangkok be the host city and Alicia Keys host?`:
```sql
                SELECT "year" FROM "host_cities" WHERE "host_city"='bangkok' AND "hosts"='alicia keys';
```
## Task
Generate a SQL query to answer the following question:
`Who are the hosts from the event with a theme of codehunters and the host city of Bangkok?`

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

CREATE TABLE "host_cities" (
  "year" text,
  "theme" text,
  "host_city" text,
  "venue" text,
  "hosts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the hosts from the event with a theme of codehunters and the host city of Bangkok?`:
```sql
                SELECT "hosts" FROM "host_cities" WHERE "host_city"='bangkok' AND "theme"='codehunters';
```
## Task
Generate a SQL query to answer the following question:
`Who are the hosts for the 2004 event?`

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

CREATE TABLE "host_cities" (
  "year" text,
  "theme" text,
  "host_city" text,
  "venue" text,
  "hosts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the hosts for the 2004 event?`:
```sql
                SELECT "hosts" FROM "host_cities" WHERE "year"='2004';
```
## Task
Generate a SQL query to answer the following question:
`What date has a margin of victory of 1 stroke over Greg Kraft?`

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

CREATE TABLE "pga_tour_wins_10" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has a margin of victory of 1 stroke over Greg Kraft?`:
```sql
                SELECT "date" FROM "pga_tour_wins_10" WHERE "margin_of_victory"='1 stroke' AND "runner_s_up"='greg kraft';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory over Steve Rintoul?`

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

CREATE TABLE "pga_tour_wins_10" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory over Steve Rintoul?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_10" WHERE "runner_s_up"='steve rintoul';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory over Brad Faxon?`

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

CREATE TABLE "pga_tour_wins_10" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory over Brad Faxon?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_10" WHERE "runner_s_up"='brad faxon';
```
## Task
Generate a SQL query to answer the following question:
`What years show Model of 2.0 tdi (cr) dpf?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displ" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years show Model of 2.0 tdi (cr) dpf?`:
```sql
                SELECT "years" FROM "engines" WHERE "model"='2.0 tdi (cr) dpf';
```
## Task
Generate a SQL query to answer the following question:
`What is the power for model  2.0 tdi (cr) dpf, and a Years of 2010–2011?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displ" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power for model  2.0 tdi (cr) dpf, and a Years of 2010–2011?`:
```sql
                SELECT "power" FROM "engines" WHERE "model"='2.0 tdi (cr) dpf' AND "years"='2010–2011';
```
## Task
Generate a SQL query to answer the following question:
`What is the torque for Model of 2.0 bitdi (cr) dpf, in 2010–?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displ" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the torque for Model of 2.0 bitdi (cr) dpf, in 2010–?`:
```sql
                SELECT "torque" FROM "engines" WHERE "model"='2.0 bitdi (cr) dpf' AND "years"='2010–';
```
## Task
Generate a SQL query to answer the following question:
`What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n·m (lb·ft) @ 1500–2000 rpm?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displ" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n·m (lb·ft) @ 1500–2000 rpm?`:
```sql
                SELECT "engine" FROM "engines" WHERE "model"='2.0 bitdi (cr) dpf' AND "torque"='n·m (lb·ft) @ 1500–2000 rpm';
```
## Task
Generate a SQL query to answer the following question:
`What is the Court Rank of Son of Norihiro's Lineage?`

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

CREATE TABLE "list_of_daimy" (
  "name" text,
  "tenure" text,
  "courtesy_title" text,
  "court_rank" text,
  "revenues" text,
  "lineage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Court Rank of Son of Norihiro's Lineage?`:
```sql
                SELECT "court_rank" FROM "list_of_daimy" WHERE "lineage"='son of norihiro';
```
## Task
Generate a SQL query to answer the following question:
`Name the 1811 for 1801 of 1801`

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

CREATE TABLE "demography" (
  "year" text,
  "1801" text,
  "1811" text,
  "1821" text,
  "1841" text,
  "1851" text,
  "1861" text,
  "1871" text,
  "1881" text,
  "1891" text,
  "1901" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1811 for 1801 of 1801`:
```sql
                SELECT "1811" FROM "demography" WHERE "1801"='1801';
```
## Task
Generate a SQL query to answer the following question:
`Name the 1861 with 1851 of 5291`

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

CREATE TABLE "demography" (
  "year" text,
  "1801" text,
  "1811" text,
  "1821" text,
  "1841" text,
  "1851" text,
  "1861" text,
  "1871" text,
  "1881" text,
  "1891" text,
  "1901" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1861 with 1851 of 5291`:
```sql
                SELECT "1861" FROM "demography" WHERE "1851"='5291';
```
## Task
Generate a SQL query to answer the following question:
`Name the 1901 with 1851 of 1961`

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

CREATE TABLE "demography" (
  "year" text,
  "1801" text,
  "1811" text,
  "1821" text,
  "1841" text,
  "1851" text,
  "1861" text,
  "1871" text,
  "1881" text,
  "1891" text,
  "1901" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1901 with 1851 of 1961`:
```sql
                SELECT "1901" FROM "demography" WHERE "1851"='1961';
```
## Task
Generate a SQL query to answer the following question:
`Name the 1821 with 1811 of 1921`

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

CREATE TABLE "demography" (
  "year" text,
  "1801" text,
  "1811" text,
  "1821" text,
  "1841" text,
  "1851" text,
  "1861" text,
  "1871" text,
  "1881" text,
  "1891" text,
  "1901" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1821 with 1811 of 1921`:
```sql
                SELECT "1821" FROM "demography" WHERE "1811"='1921';
```
## Task
Generate a SQL query to answer the following question:
`Name the 1821 with 1861 of 3733`

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

CREATE TABLE "demography" (
  "year" text,
  "1801" text,
  "1811" text,
  "1821" text,
  "1841" text,
  "1851" text,
  "1861" text,
  "1871" text,
  "1881" text,
  "1891" text,
  "1901" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1821 with 1861 of 3733`:
```sql
                SELECT "1821" FROM "demography" WHERE "1861"='3733';
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of Code with a Population that's larger than 1,752, a Most Spoken Language of Xhosa, a Place of Bontrug, and an Area (KM 2) that's larger than 2.33?`

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

CREATE TABLE "main_places" (
  "place" text,
  "code" real,
  "area_km_2" real,
  "population" real,
  "most_spoken_language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of Code with a Population that's larger than 1,752, a Most Spoken Language of Xhosa, a Place of Bontrug, and an Area (KM 2) that's larger than 2.33?`:
```sql
                SELECT COUNT("code") FROM "main_places" WHERE "population">'1,752' AND "most_spoken_language"='xhosa' AND "place"='bontrug' AND "area_km_2">2.33;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of the Area (KM 2) that's got a Population that's smaller than 90?`

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

CREATE TABLE "main_places" (
  "place" text,
  "code" real,
  "area_km_2" real,
  "population" real,
  "most_spoken_language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of the Area (KM 2) that's got a Population that's smaller than 90?`:
```sql
                SELECT COUNT("area_km_2") FROM "main_places" WHERE "population"<90;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest Code that's got a Most Spoke Language of Xhosa, a Place of Addo Elephant National Park, and an Area (KM 2) that's smaller than 1.08?`

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

CREATE TABLE "main_places" (
  "place" text,
  "code" real,
  "area_km_2" real,
  "population" real,
  "most_spoken_language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest Code that's got a Most Spoke Language of Xhosa, a Place of Addo Elephant National Park, and an Area (KM 2) that's smaller than 1.08?`:
```sql
                SELECT MIN("code") FROM "main_places" WHERE "most_spoken_language"='xhosa' AND "place"='addo elephant national park' AND "area_km_2"<1.08;
```
## Task
Generate a SQL query to answer the following question:
`What is the score at game 31?`

### 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 `What is the score at game 31?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"=31;
```
## Task
Generate a SQL query to answer the following question:
`What is the Grid for Rider Ruben Xaus?`

### 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 Grid for Rider Ruben Xaus?`:
```sql
                SELECT MIN("grid") FROM "superbike_race_1_classification" WHERE "rider"='ruben xaus';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of Laps with a Grid of more than 3 and Time of 39:24.967?`

### 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 was the number of Laps with a Grid of more than 3 and Time of 39:24.967?`:
```sql
                SELECT MIN("laps") FROM "superbike_race_1_classification" WHERE "grid">3 AND "time"='39:24.967';
```
## Task
Generate a SQL query to answer the following question:
`What Rider had a Time of +1:08.291?`

### 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 Rider had a Time of +1:08.291?`:
```sql
                SELECT "rider" FROM "superbike_race_1_classification" WHERE "time"='+1:08.291';
```
## Task
Generate a SQL query to answer the following question:
`Using a Ducati 999 F06 Bike, how many Laps with a Grid greater than 11 and Time of +53.488?`

### 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 `Using a Ducati 999 F06 Bike, how many Laps with a Grid greater than 11 and Time of +53.488?`:
```sql
                SELECT COUNT("laps") FROM "superbike_race_1_classification" WHERE "bike"='ducati 999 f06' AND "time"='+53.488' AND "grid">11;
```
## Task
Generate a SQL query to answer the following question:
`When was there a record of 13–17–3?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was there a record of 13–17–3?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='13–17–3';
```
## Task
Generate a SQL query to answer the following question:
`What record was made in vancouver on December 8?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record was made in vancouver on December 8?`:
```sql
                SELECT "record" FROM "game_log" WHERE "home"='vancouver' AND "date"='december 8';
```
## Task
Generate a SQL query to answer the following question:
`What was the home who had California visiting?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home who had California visiting?`:
```sql
                SELECT "home" FROM "game_log" WHERE "visitor"='california';
```
## Task
Generate a SQL query to answer the following question:
`What's the score on December 1 when Philadelphia visited?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score on December 1 when Philadelphia visited?`:
```sql
                SELECT "score" FROM "game_log" WHERE "visitor"='philadelphia' AND "date"='december 1';
```
## Task
Generate a SQL query to answer the following question:
`What was the type of game with a 1:6 result?`

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

CREATE TABLE "1966" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the type of game with a 1:6 result?`:
```sql
                SELECT "type_of_game" FROM "1966" WHERE "results"='1:6';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the game in Belgrade with a 0:2 result?`

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

CREATE TABLE "1966" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the game in Belgrade with a 0:2 result?`:
```sql
                SELECT "opponent" FROM "1966" WHERE "city"='belgrade' AND "results"='0:2';
```