cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name who wrote the episode by lawrence trilling`

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

CREATE TABLE "table1_27504682_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name who wrote the episode by lawrence trilling`:
```sql
                SELECT "written_by" FROM "table1_27504682_1" WHERE "directed_by"='Lawrence Trilling';
```
## Task
Generate a SQL query to answer the following question:
`Name the air date for alex taub`

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

CREATE TABLE "table1_27504682_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the air date for alex taub`:
```sql
                SELECT "original_air_date" FROM "table1_27504682_1" WHERE "written_by"='Alex Taub';
```
## Task
Generate a SQL query to answer the following question:
`How many games were numbered 69?`

### 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,
  "location_attendance" text,
  "record" text,
  "points" real,
  "decision" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were numbered 69?`:
```sql
                SELECT COUNT("opponent") FROM "regular_season" WHERE "game"=69;
```
## Task
Generate a SQL query to answer the following question:
`How many times did they play the pittsburgh penguins?`

### 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,
  "location_attendance" text,
  "record" text,
  "points" real,
  "decision" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did they play the pittsburgh penguins?`:
```sql
                SELECT COUNT("march") FROM "regular_season" WHERE "opponent"='Pittsburgh Penguins';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest quarterfinal week when the genre is dancing and the act is 32?`

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

CREATE TABLE "round_chart" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "qtr_final_week" real,
  "semi_final_week" text,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest quarterfinal week when the genre is dancing and the act is 32?`:
```sql
                SELECT MIN("qtr_final_week") FROM "round_chart" WHERE "genre"='Dancing' AND "age_s"='32';
```
## Task
Generate a SQL query to answer the following question:
`What is the quarterfinal week for Austin Anderson?`

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

CREATE TABLE "round_chart" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "qtr_final_week" real,
  "semi_final_week" text,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quarterfinal week for Austin Anderson?`:
```sql
                SELECT MIN("qtr_final_week") FROM "round_chart" WHERE "name_name_of_act"='Austin Anderson';
```
## Task
Generate a SQL query to answer the following question:
`What is the genre for the group with ages 29-30?`

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

CREATE TABLE "round_chart" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "qtr_final_week" real,
  "semi_final_week" text,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre for the group with ages 29-30?`:
```sql
                SELECT "genre" FROM "round_chart" WHERE "age_s"='29-30';
```
## Task
Generate a SQL query to answer the following question:
`What is the age of the act who is a rapper?`

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

CREATE TABLE "round_chart" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "qtr_final_week" real,
  "semi_final_week" text,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the age of the act who is a rapper?`:
```sql
                SELECT "age_s" FROM "round_chart" WHERE "act"='Rapper';
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown of Plutonic?`

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

CREATE TABLE "round_chart" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "qtr_final_week" real,
  "semi_final_week" text,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of Plutonic?`:
```sql
                SELECT "hometown" FROM "round_chart" WHERE "name_name_of_act"='PLUtonic';
```
## Task
Generate a SQL query to answer the following question:
`How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?`

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

CREATE TABLE "round_chart" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "qtr_final_week" real,
  "semi_final_week" text,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?`:
```sql
                SELECT COUNT("semi_final_week") FROM "round_chart" WHERE "hometown"='Pittsburgh, Pennsylvania';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory for the event in lake forest, illinois?`

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

CREATE TABLE "winners" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text,
  "course" text,
  "location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory for the event in lake forest, illinois?`:
```sql
                SELECT "margin_of_victory" FROM "winners" WHERE "location"='Lake Forest, Illinois';
```
## Task
Generate a SQL query to answer the following question:
`What was zach johnson's score to par?`

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

CREATE TABLE "winners" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text,
  "course" text,
  "location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was zach johnson's score to par?`:
```sql
                SELECT "to_par" FROM "winners" WHERE "player"='Zach Johnson';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score at bellerive country club?`

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

CREATE TABLE "winners" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text,
  "course" text,
  "location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score at bellerive country club?`:
```sql
                SELECT "score" FROM "winners" WHERE "course"='Bellerive Country Club';
```
## Task
Generate a SQL query to answer the following question:
`How many courses are located in carmel, indiana?`

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

CREATE TABLE "winners" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text,
  "course" text,
  "location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many courses are located in carmel, indiana?`:
```sql
                SELECT COUNT("course") FROM "winners" WHERE "location"='Carmel, Indiana';
```
## Task
Generate a SQL query to answer the following question:
`How many status figures does James Finch have?`

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

CREATE TABLE "race_results" (
  "pos" real,
  "sp" real,
  "no" real,
  "driver" text,
  "car_name" text,
  "car_make" text,
  "entrant" text,
  "laps" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many status figures does James Finch have?`:
```sql
                SELECT COUNT("status") FROM "race_results" WHERE "entrant"='James Finch';
```
## Task
Generate a SQL query to answer the following question:
`What is the car make for Sterling Marlin?`

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

CREATE TABLE "race_results" (
  "pos" real,
  "sp" real,
  "no" real,
  "driver" text,
  "car_name" text,
  "car_make" text,
  "entrant" text,
  "laps" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the car make for Sterling Marlin?`:
```sql
                SELECT "car_make" FROM "race_results" WHERE "driver"='Sterling Marlin';
```
## Task
Generate a SQL query to answer the following question:
`What is the finish position for cars by Pontiac driven by Bobby Hamilton?`

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

CREATE TABLE "race_results" (
  "pos" real,
  "sp" real,
  "no" real,
  "driver" text,
  "car_name" text,
  "car_make" text,
  "entrant" text,
  "laps" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finish position for cars by Pontiac driven by Bobby Hamilton?`:
```sql
                SELECT "pos" FROM "race_results" WHERE "car_make"='Pontiac' AND "driver"='Bobby Hamilton';
```
## Task
Generate a SQL query to answer the following question:
`who are the participants that wear clothing in 33-23-36`

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

CREATE TABLE "contestants" (
  "represent" real,
  "contestant" text,
  "age" real,
  "sizes" text,
  "height" text,
  "hometown" text,
  "agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `who are the participants that wear clothing in 33-23-36`:
```sql
                SELECT "contestant" FROM "contestants" WHERE "sizes"='33-23-36';
```
## Task
Generate a SQL query to answer the following question:
`what is the oldest and lives in veraguas`

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

CREATE TABLE "contestants" (
  "represent" real,
  "contestant" text,
  "age" real,
  "sizes" text,
  "height" text,
  "hometown" text,
  "agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the oldest and lives in veraguas`:
```sql
                SELECT MAX("age") FROM "contestants" WHERE "hometown"='Veraguas';
```
## Task
Generate a SQL query to answer the following question:
`where is the participant marelissa him from`

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

CREATE TABLE "contestants" (
  "represent" real,
  "contestant" text,
  "age" real,
  "sizes" text,
  "height" text,
  "hometown" text,
  "agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `where is the participant marelissa him from`:
```sql
                SELECT "hometown" FROM "contestants" WHERE "contestant"='Marelissa Him';
```
## Task
Generate a SQL query to answer the following question:
`which company has a person that can wear clothing in 33-23-36`

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

CREATE TABLE "contestants" (
  "represent" real,
  "contestant" text,
  "age" real,
  "sizes" text,
  "height" text,
  "hometown" text,
  "agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `which company has a person that can wear clothing in 33-23-36`:
```sql
                SELECT "agency" FROM "contestants" WHERE "sizes"='33-23-36';
```
## Task
Generate a SQL query to answer the following question:
`how tall is someone who is able to wear 33-24-35`

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

CREATE TABLE "contestants" (
  "represent" real,
  "contestant" text,
  "age" real,
  "sizes" text,
  "height" text,
  "hometown" text,
  "agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `how tall is someone who is able to wear 33-24-35`:
```sql
                SELECT "height" FROM "contestants" WHERE "sizes"='33-24-35';
```
## Task
Generate a SQL query to answer the following question:
`If the best winning average is 7.3-71, what are the total points?`

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

CREATE TABLE "tournament_for_the_championship_of_canad" (
  "players" text,
  "games_won" real,
  "games_lost" real,
  "total_points" real,
  "grand_average" text,
  "best_winning_average" text,
  "best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the best winning average is 7.3-71, what are the total points?`:
```sql
                SELECT MIN("total_points") FROM "tournament_for_the_championship_of_canad" WHERE "best_winning_average"='7.3-71';
```
## Task
Generate a SQL query to answer the following question:
`if the best run was 138, what is the amount of games lost?`

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

CREATE TABLE "tournament_for_the_championship_of_canad" (
  "players" text,
  "games_won" real,
  "games_lost" real,
  "total_points" real,
  "grand_average" text,
  "best_winning_average" text,
  "best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `if the best run was 138, what is the amount of games lost?`:
```sql
                SELECT "games_lost" FROM "tournament_for_the_championship_of_canad" WHERE "best_run"=138;
```
## Task
Generate a SQL query to answer the following question:
`If the games won are 5, what is the best winning average?`

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

CREATE TABLE "tournament_for_the_championship_of_canad" (
  "players" text,
  "games_won" real,
  "games_lost" real,
  "total_points" real,
  "grand_average" text,
  "best_winning_average" text,
  "best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the games won are 5, what is the best winning average?`:
```sql
                SELECT "best_winning_average" FROM "tournament_for_the_championship_of_canad" WHERE "games_won"=5;
```
## Task
Generate a SQL query to answer the following question:
`If the player is William Jakes, what are the total points?`

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

CREATE TABLE "tournament_for_the_championship_of_canad" (
  "players" text,
  "games_won" real,
  "games_lost" real,
  "total_points" real,
  "grand_average" text,
  "best_winning_average" text,
  "best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the player is William Jakes, what are the total points?`:
```sql
                SELECT MIN("total_points") FROM "tournament_for_the_championship_of_canad" WHERE "players"='William Jakes';
```
## Task
Generate a SQL query to answer the following question:
`If the grand average is 12.76-202, who is the player?`

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

CREATE TABLE "tournament_for_the_championship_of_canad" (
  "players" text,
  "games_won" real,
  "games_lost" real,
  "total_points" real,
  "grand_average" text,
  "best_winning_average" text,
  "best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the grand average is 12.76-202, who is the player?`:
```sql
                SELECT "players" FROM "tournament_for_the_championship_of_canad" WHERE "grand_average"='12.76-202';
```
## Task
Generate a SQL query to answer the following question:
`How many players had a best winning average of 20?`

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

CREATE TABLE "tournament_for_the_championship_of_canad" (
  "players" text,
  "games_won" real,
  "games_lost" real,
  "total_points" real,
  "grand_average" text,
  "best_winning_average" text,
  "best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many players had a best winning average of 20?`:
```sql
                SELECT COUNT("games_won") FROM "tournament_for_the_championship_of_canad" WHERE "best_winning_average"='20';
```
## Task
Generate a SQL query to answer the following question:
`What was the October 22 record?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the October 22 record?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='October 22';
```
## Task
Generate a SQL query to answer the following question:
`What was the 6-4 score's maximum attendance?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 6-4 score's maximum attendance?`:
```sql
                SELECT MAX("attendance") FROM "regular_season" WHERE "score"='6-4';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for game #1?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for game #1?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "game"=1;
```
## Task
Generate a SQL query to answer the following question:
`What was the record for the October 16 game?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the October 16 game?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='October 16';
```
## Task
Generate a SQL query to answer the following question:
`What was the record in the game whose first star was J. Oduya?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the game whose first star was J. Oduya?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "first_star"='J. Oduya';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game whose first star was O. Pavelec?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game whose first star was O. Pavelec?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "first_star"='O. Pavelec';
```
## Task
Generate a SQL query to answer the following question:
`Who made the decision in the game played on December 26?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decision in the game played on December 26?`:
```sql
                SELECT "decision" FROM "regular_season" WHERE "date"='December 26';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game seen by 10056 people played?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game seen by 10056 people played?`:
```sql
                SELECT "location" FROM "regular_season" WHERE "attendance"=10056;
```
## Task
Generate a SQL query to answer the following question:
`Who was the first star of the game with record of 17-11-5?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the first star of the game with record of 17-11-5?`:
```sql
                SELECT "first_star" FROM "regular_season" WHERE "record"='17-11-5';
```
## Task
Generate a SQL query to answer the following question:
`Who made the decisions in the game whose first star was V. Lecavalier?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decisions in the game whose first star was V. Lecavalier?`:
```sql
                SELECT "decision" FROM "regular_season" WHERE "first_star"='V. Lecavalier';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score the game where the Thrashers over-all record went to 22-16-6?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score the game where the Thrashers over-all record went to 22-16-6?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "record"='22-16-6';
```
## Task
Generate a SQL query to answer the following question:
`Who got the decision in the game, when the final score was 1-7?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who got the decision in the game, when the final score was 1-7?`:
```sql
                SELECT "decision" FROM "regular_season" WHERE "score"='1-7';
```
## Task
Generate a SQL query to answer the following question:
`What date was M. Grabovski the first start of the game?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was M. Grabovski the first start of the game?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "first_star"='M. Grabovski';
```
## Task
Generate a SQL query to answer the following question:
`What was the record for the game where the opponent was the Carolina Hurricanes?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the game where the opponent was the Carolina Hurricanes?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "opponent"='Carolina Hurricanes';
```
## Task
Generate a SQL query to answer the following question:
`On which date was the record of 27-28-11 set?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the record of 27-28-11 set?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "record"='27-28-11';
```
## Task
Generate a SQL query to answer the following question:
`Who made the decision on the game where the record was 29-28-12?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decision on the game where the record was 29-28-12?`:
```sql
                SELECT "decision" FROM "regular_season" WHERE "record"='29-28-12';
```
## Task
Generate a SQL query to answer the following question:
`Who made the decision on the game where the record was 27-28-11?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "first_star" text,
  "decision" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decision on the game where the record was 27-28-11?`:
```sql
                SELECT "decision" FROM "regular_season" WHERE "record"='27-28-11';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for game 5`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for game 5`:
```sql
                SELECT "score" FROM "regular_season" WHERE "game"=5;
```
## Task
Generate a SQL query to answer the following question:
`Name the most points for 1-3-1 record`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most points for 1-3-1 record`:
```sql
                SELECT MAX("points") FROM "regular_season" WHERE "record"='1-3-1';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for prudential center - 12,880`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for prudential center - 12,880`:
```sql
                SELECT "record" FROM "regular_season" WHERE "location_attendance"='Prudential Center - 12,880';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of record for  hp pavilion - 17,562`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of record for  hp pavilion - 17,562`:
```sql
                SELECT COUNT("record") FROM "regular_season" WHERE "location_attendance"='HP Pavilion - 17,562';
```
## Task
Generate a SQL query to answer the following question:
`On how many days in October was the score 6-1?`

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

CREATE TABLE "game_log" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many days in October was the score 6-1?`:
```sql
                SELECT COUNT("october") FROM "game_log" WHERE "score"='6-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the location and what was the attendance on those days when the score was 3-5-1?`

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

CREATE TABLE "game_log" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location and what was the attendance on those days when the score was 3-5-1?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='3-5-1';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the sabres record 2-5-1?`

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

CREATE TABLE "game_log" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the sabres record 2-5-1?`:
```sql
                SELECT COUNT("location_attendance") FROM "game_log" WHERE "record"='2-5-1';
```
## Task
Generate a SQL query to answer the following question:
`What was the location and attendance for game 41?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location and attendance for game 41?`:
```sql
                SELECT "location_attendance" FROM "regular_season" WHERE "game"=41;
```
## Task
Generate a SQL query to answer the following question:
`On what day of January was the record 10-29-2?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what day of January was the record 10-29-2?`:
```sql
                SELECT MAX("january") FROM "regular_season" WHERE "record"='10-29-2';
```
## Task
Generate a SQL query to answer the following question:
`What are the most points scored in a game where the score was 1-2?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the most points scored in a game where the score was 1-2?`:
```sql
                SELECT MAX("points") FROM "regular_season" WHERE "score"='1-2';
```
## Task
Generate a SQL query to answer the following question:
`On what day in January was the record 15-29-3?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what day in January was the record 15-29-3?`:
```sql
                SELECT MAX("january") FROM "regular_season" WHERE "record"='15-29-3';
```
## Task
Generate a SQL query to answer the following question:
`Against what team did the Islanders have a 5-18-5 record?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Against what team did the Islanders have a 5-18-5 record?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "record"='5-18-5';
```
## Task
Generate a SQL query to answer the following question:
`Against what opponent did the game end 5-4?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Against what opponent did the game end 5-4?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "score"='5-4';
```
## Task
Generate a SQL query to answer the following question:
`How many games were played against a team with a 9-19-6 record against the Islanders?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played against a team with a 9-19-6 record against the Islanders?`:
```sql
                SELECT COUNT("december") FROM "regular_season" WHERE "record"='9-19-6';
```
## Task
Generate a SQL query to answer the following question:
`How many games did they play on october 9?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did they play on october 9?`:
```sql
                SELECT COUNT("opponent") FROM "regular_season" WHERE "october"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of points for game 32?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of points for game 32?`:
```sql
                SELECT MIN("points") FROM "regular_season" WHERE "game"=32;
```
## Task
Generate a SQL query to answer the following question:
`What is the location and attendance total from the game on December 1?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location and attendance total from the game on December 1?`:
```sql
                SELECT "location_attendance" FROM "regular_season" WHERE "december"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with 899000 viewers?`

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

CREATE TABLE "table1_27547668_3" (
  "num" real,
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "viewers" real,
  "original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with 899000 viewers?`:
```sql
                SELECT "directed_by" FROM "table1_27547668_3" WHERE "viewers"=899000;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest numbered episode in the series listed?`

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

CREATE TABLE "table1_27547668_3" (
  "num" real,
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "viewers" real,
  "original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest numbered episode in the series listed?`:
```sql
                SELECT MIN("num") FROM "table1_27547668_3";
```
## Task
Generate a SQL query to answer the following question:
`How many people watched episode number 13?`

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

CREATE TABLE "table1_27547668_3" (
  "num" real,
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "viewers" real,
  "original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people watched episode number 13?`:
```sql
                SELECT "viewers" FROM "table1_27547668_3" WHERE "num"=13;
```
## Task
Generate a SQL query to answer the following question:
`What episode number in the season was written by Greg nelson and directed by Keith samples?`

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

CREATE TABLE "table1_27547668_3" (
  "num" real,
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "viewers" real,
  "original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the season was written by Greg nelson and directed by Keith samples?`:
```sql
                SELECT "no" FROM "table1_27547668_3" WHERE "written_by"='Greg Nelson' AND "directed_by"='Keith Samples';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with production code 102?`

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

CREATE TABLE "table1_27547668_2" (
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "viewers" real,
  "original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode with production code 102?`:
```sql
                SELECT "title" FROM "table1_27547668_2" WHERE "prod_code"=102;
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of # 6?`

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

CREATE TABLE "table1_27547668_2" (
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "viewers" real,
  "original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of # 6?`:
```sql
                SELECT "original_airdate" FROM "table1_27547668_2" WHERE "num"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode with 908000 viewers?`

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

CREATE TABLE "table1_27547668_2" (
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "viewers" real,
  "original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode with 908000 viewers?`:
```sql
                SELECT "original_airdate" FROM "table1_27547668_2" WHERE "viewers"=908000;
```
## Task
Generate a SQL query to answer the following question:
`How many season premieres had 15.27 million viewers?`

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

CREATE TABLE "table1_27553627_2" (
  "season" text,
  "episodes" real,
  "timeslot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many season premieres had 15.27 million viewers?`:
```sql
                SELECT COUNT("season_premiere") FROM "table1_27553627_2" WHERE "viewers_in_millions"='15.27';
```
## Task
Generate a SQL query to answer the following question:
`When was the season finale that ranked 20th?`

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

CREATE TABLE "table1_27553627_2" (
  "season" text,
  "episodes" real,
  "timeslot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the season finale that ranked 20th?`:
```sql
                SELECT "season_finale" FROM "table1_27553627_2" WHERE "rank"='20th';
```
## Task
Generate a SQL query to answer the following question:
`What tv season year had 14.54 million viewers?`

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

CREATE TABLE "table1_27553627_2" (
  "season" text,
  "episodes" real,
  "timeslot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tv season year had 14.54 million viewers?`:
```sql
                SELECT "tv_season" FROM "table1_27553627_2" WHERE "viewers_in_millions"='14.54';
```
## Task
Generate a SQL query to answer the following question:
`What season premiere date had a finale on may 22, 2007?`

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

CREATE TABLE "table1_27553627_2" (
  "season" text,
  "episodes" real,
  "timeslot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season premiere date had a finale on may 22, 2007?`:
```sql
                SELECT "season_premiere" FROM "table1_27553627_2" WHERE "season_finale"='May 22, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What episode number had 14.41 million viewers?`

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

CREATE TABLE "table1_27553627_2" (
  "season" text,
  "episodes" real,
  "timeslot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number had 14.41 million viewers?`:
```sql
                SELECT MAX("episodes") FROM "table1_27553627_2" WHERE "viewers_in_millions"='14.41';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum rnd at Laguna Seca?`

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

CREATE TABLE "table1_27561505_2" (
  "rnd" real,
  "circuit" text,
  "sports_2_0_winning_team" text,
  "sports_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum rnd at Laguna Seca?`:
```sql
                SELECT MIN("rnd") FROM "table1_27561505_2" WHERE "circuit"='Laguna Seca';
```
## Task
Generate a SQL query to answer the following question:
`Name the gt 2.0 winning team for sports 2.0 winning team for #16 trans ocean motors for castle rock`

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

CREATE TABLE "table1_27561503_2" (
  "rnd" real,
  "circuit" text,
  "sports_2_0_winning_team" text,
  "sports_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gt 2.0 winning team for sports 2.0 winning team for #16 trans ocean motors for castle rock`:
```sql
                SELECT COUNT("gt_2_0_winning_team") FROM "table1_27561503_2" WHERE "sports_2_0_winning_team"='#16 Trans Ocean Motors' AND "circuit"='Castle Rock';
```