cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the lowest attendance at a game when Pittsburgh was the home team?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest attendance at a game when Pittsburgh was the home team?`:
```sql
                SELECT MIN("attendance") FROM "regular_season" WHERE "home"='pittsburgh';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when Atlanta was the home team?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game when Atlanta was the home team?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "home"='atlanta';
```
## Task
Generate a SQL query to answer the following question:
`What was the decision of the game when Montreal was the home team?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the decision of the game when Montreal was the home team?`:
```sql
                SELECT "decision" FROM "regular_season" WHERE "home"='montreal';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game with a decision of Niittymaki and when the Flyers had a record of 30–21–5?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game with a decision of Niittymaki and when the Flyers had a record of 30–21–5?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "decision"='niittymaki' AND "record"='30–21–5';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Nationality of united states, and a Pick of 9?`

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

CREATE TABLE "selections" (
  "round" real,
  "pick" real,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Nationality of united states, and a Pick of 9?`:
```sql
                SELECT "position" FROM "selections" WHERE "nationality"='united states' AND "pick"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Pick with a Position of pg, and a Round less than 1?`

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

CREATE TABLE "selections" (
  "round" real,
  "pick" real,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Pick with a Position of pg, and a Round less than 1?`:
```sql
                SELECT AVG("pick") FROM "selections" WHERE "position"='pg' AND "round"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which top ten, having less than  12 cuts less than 2 top five, and events smaller than 14, is the highest?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which top ten, having less than  12 cuts less than 2 top five, and events smaller than 14, is the highest?`:
```sql
                SELECT MAX("top_10") FROM "summary" WHERE "cuts_made"<12 AND "top_5"<2 AND "events"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the average for the top five having a number of 42 cuts made.`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the top five having a number of 42 cuts made.`:
```sql
                SELECT AVG("top_5") FROM "summary" WHERE "cuts_made"=42;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the score on april 27 with visitor of buffalo`

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

CREATE TABLE "eastern_conference_quarter_finals_vs_2" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the score on april 27 with visitor of buffalo`:
```sql
                SELECT "score" FROM "eastern_conference_quarter_finals_vs_2" WHERE "visitor"='buffalo' AND "date"='april 27';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game that the home team scored 12.15 (87)?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game that the home team scored 12.15 (87)?`:
```sql
                SELECT "venue" FROM "round_22" WHERE "home_team_score"='12.15 (87)';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended Melbourne's away game?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended Melbourne's away game?`:
```sql
                SELECT SUM("crowd") FROM "round_22" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team's score when the away team scored 15.17 (107)?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team's score when the away team scored 15.17 (107)?`:
```sql
                SELECT "home_team_score" FROM "round_22" WHERE "away_team_score"='15.17 (107)';
```
## Task
Generate a SQL query to answer the following question:
`Who won the game at Dairy farmers stadium with a score of 28-24?`

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

CREATE TABLE "golden_point_results" (
  "opponent" text,
  "result" text,
  "score" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the game at Dairy farmers stadium with a score of 28-24?`:
```sql
                SELECT "result" FROM "golden_point_results" WHERE "venue"='dairy farmers stadium' AND "score"='28-24';
```
## Task
Generate a SQL query to answer the following question:
`Who won that game on 24 July 2010?`

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

CREATE TABLE "golden_point_results" (
  "opponent" text,
  "result" text,
  "score" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won that game on 24 July 2010?`:
```sql
                SELECT "result" FROM "golden_point_results" WHERE "date"='24 july 2010';
```
## Task
Generate a SQL query to answer the following question:
`Who loss the 24-28 game?`

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

CREATE TABLE "golden_point_results" (
  "opponent" text,
  "result" text,
  "score" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who loss the 24-28 game?`:
```sql
                SELECT "opponent" FROM "golden_point_results" WHERE "result"='loss' AND "score"='24-28';
```
## Task
Generate a SQL query to answer the following question:
`Who scored 18-19?`

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

CREATE TABLE "golden_point_results" (
  "opponent" text,
  "result" text,
  "score" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who scored 18-19?`:
```sql
                SELECT "opponent" FROM "golden_point_results" WHERE "score"='18-19';
```
## Task
Generate a SQL query to answer the following question:
`Which rank has more than 1 silver and a total nation?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank has more than 1 silver and a total nation?`:
```sql
                SELECT "rank" FROM "medal_table" WHERE "silver">1 AND "nation"='total';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total from slovenia with a Gold smaller than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total from slovenia with a Gold smaller than 0?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "nation"='slovenia' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What class has less than 12 numbers built operated by southern?`

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

CREATE TABLE "fleet_details" (
  "class" text,
  "operator" text,
  "no_built" real,
  "year_built" text,
  "cars_per_set" real,
  "unit_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class has less than 12 numbers built operated by southern?`:
```sql
                SELECT "class" FROM "fleet_details" WHERE "no_built"<12 AND "operator"='southern';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the episode with an 18-49 rating of 2.0/5`

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

CREATE TABLE "weekly" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "households_rating_share" text,
  "18_49_rating_share" text,
  "viewers_m" real,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the episode with an 18-49 rating of 2.0/5`:
```sql
                SELECT "episode" FROM "weekly" WHERE "18_49_rating_share"='2.0/5';
```
## Task
Generate a SQL query to answer the following question:
`Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7`

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

CREATE TABLE "weekly" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "households_rating_share" text,
  "18_49_rating_share" text,
  "viewers_m" real,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7`:
```sql
                SELECT "episode" FROM "weekly" WHERE "viewers_m">5.63 AND "households_rating_share"='4.5/7';
```
## Task
Generate a SQL query to answer the following question:
`Name the 18-49 rating for weekly rank of 30`

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

CREATE TABLE "weekly" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "households_rating_share" text,
  "18_49_rating_share" text,
  "viewers_m" real,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 18-49 rating for weekly rank of 30`:
```sql
                SELECT "18_49_rating_share" FROM "weekly" WHERE "weekly_rank_num"='30';
```
## Task
Generate a SQL query to answer the following question:
`Who was the driver with 29 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the driver with 29 laps?`:
```sql
                SELECT "driver" FROM "race" WHERE "laps"='29';
```
## Task
Generate a SQL query to answer the following question:
`What was the retired time for someone who was on grid 18?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the retired time for someone who was on grid 18?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid"='18';
```
## Task
Generate a SQL query to answer the following question:
`Jacques Villeneuve was on what grid?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Jacques Villeneuve was on what grid?`:
```sql
                SELECT "grid" FROM "race" WHERE "driver"='jacques villeneuve';
```
## Task
Generate a SQL query to answer the following question:
`What's the time for someone on grid 9?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the time for someone on grid 9?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid"='9';
```
## Task
Generate a SQL query to answer the following question:
`What was the grid of Alex Yoong?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the grid of Alex Yoong?`:
```sql
                SELECT "grid" FROM "race" WHERE "driver"='alex yoong';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game played at Lake Oval?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game played at Lake Oval?`:
```sql
                SELECT "date" FROM "round_6" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`How many people came to the game at Victoria Park?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people came to the game at Victoria Park?`:
```sql
                SELECT COUNT("crowd") FROM "round_6" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`Who lost to moyer (9–4)?`

### 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 `Who lost to moyer (9–4)?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "loss"='moyer (9–4)';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended when the record was broken with 47–63?`

### 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 `How many people attended when the record was broken with 47–63?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "record"='47–63';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team that played the away team that scored 11.13 (79)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team that played the away team that scored 11.13 (79)?`:
```sql
                SELECT "home_team_score" FROM "round_4" WHERE "away_team_score"='11.13 (79)';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the home team that played Collingwood?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the home team that played Collingwood?`:
```sql
                SELECT "home_team_score" FROM "round_4" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Who is the away team that played at punt road oval where the crowd was larger than 12,000?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team that played at punt road oval where the crowd was larger than 12,000?`:
```sql
                SELECT "away_team" FROM "round_4" WHERE "crowd">'12,000' AND "venue"='punt road oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visitor when ward recorded the decision with a record of 22–21–4?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visitor when ward recorded the decision with a record of 22–21–4?`:
```sql
                SELECT "visitor" FROM "january" WHERE "decision"='ward' AND "record"='22–21–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game when they had a record of 22–19–4?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game when they had a record of 22–19–4?`:
```sql
                SELECT "score" FROM "january" WHERE "record"='22–19–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st week sales for the album finding forever before the number 6?`

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

CREATE TABLE "highest_first_week_sales" (
  "number" real,
  "artist" text,
  "album" text,
  "1st_week_sales" real,
  "1st_week_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st week sales for the album finding forever before the number 6?`:
```sql
                SELECT SUM("1st_week_sales") FROM "highest_first_week_sales" WHERE "album"='finding forever' AND "number"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the album for the number 6 with the 1st week position of #1?`

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

CREATE TABLE "highest_first_week_sales" (
  "number" real,
  "artist" text,
  "album" text,
  "1st_week_sales" real,
  "1st_week_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the album for the number 6 with the 1st week position of #1?`:
```sql
                SELECT "album" FROM "highest_first_week_sales" WHERE "1st_week_position"='#1' AND "number"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40?`:
```sql
                SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='2:41:38.4' AND "laps">40;
```
## Task
Generate a SQL query to answer the following question:
`Which constructor had laps amounting to more than 21 where the driver was John Surtees?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which constructor had laps amounting to more than 21 where the driver was John Surtees?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "laps">21 AND "driver"='john surtees';
```
## Task
Generate a SQL query to answer the following question:
`How many laps did Jo Bonnier driver when the grid number was smaller than 11?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did Jo Bonnier driver when the grid number was smaller than 11?`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "driver"='jo bonnier' AND "grid"<11;
```
## Task
Generate a SQL query to answer the following question:
`How many laps were there when time/retired was gearbox?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were there when time/retired was gearbox?`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "time_retired"='gearbox';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance at the game where the visiting team was the Jazz?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance at the game where the visiting team was the Jazz?`:
```sql
                SELECT SUM("attendance") FROM "february" WHERE "visitor"='jazz';
```
## Task
Generate a SQL query to answer the following question:
`Who did the Chiefs play at the game attended by 34,063?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Chiefs play at the game attended by 34,063?`:
```sql
                SELECT "opponent" FROM "season_schedule" WHERE "attendance"='34,063';
```
## Task
Generate a SQL query to answer the following question:
`Which week's game was attended by 33,057 people?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week's game was attended by 33,057 people?`:
```sql
                SELECT "week" FROM "season_schedule" WHERE "attendance"='33,057';
```
## Task
Generate a SQL query to answer the following question:
`what is the organisation when the year is less than 2005 and the award is the best variety show host?`

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

CREATE TABLE "awards_achievements" (
  "year" real,
  "organisation" text,
  "award" text,
  "nominated_work_title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the organisation when the year is less than 2005 and the award is the best variety show host?`:
```sql
                SELECT "organisation" FROM "awards_achievements" WHERE "year"<2005 AND "award"='best variety show host';
```
## Task
Generate a SQL query to answer the following question:
`what is the organisation when the nominated work title is n/a in the year 2005?`

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

CREATE TABLE "awards_achievements" (
  "year" real,
  "organisation" text,
  "award" text,
  "nominated_work_title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the organisation when the nominated work title is n/a in the year 2005?`:
```sql
                SELECT "organisation" FROM "awards_achievements" WHERE "nominated_work_title"='n/a' AND "year"=2005;
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest year with the result is nominated for the work title is love bites?`

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

CREATE TABLE "awards_achievements" (
  "year" real,
  "organisation" text,
  "award" text,
  "nominated_work_title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest year with the result is nominated for the work title is love bites?`:
```sql
                SELECT MIN("year") FROM "awards_achievements" WHERE "result"='nominated' AND "nominated_work_title"='love bites';
```
## Task
Generate a SQL query to answer the following question:
`what is the year when then organisation is star awards, the result is won and the nominated work title is n/a?`

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

CREATE TABLE "awards_achievements" (
  "year" real,
  "organisation" text,
  "award" text,
  "nominated_work_title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year when then organisation is star awards, the result is won and the nominated work title is n/a?`:
```sql
                SELECT "year" FROM "awards_achievements" WHERE "organisation"='star awards' AND "result"='won' AND "nominated_work_title"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`what is the latest year that has the result of nominated and the nominated work title is n/a?`

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

CREATE TABLE "awards_achievements" (
  "year" real,
  "organisation" text,
  "award" text,
  "nominated_work_title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the latest year that has the result of nominated and the nominated work title is n/a?`:
```sql
                SELECT MAX("year") FROM "awards_achievements" WHERE "result"='nominated' AND "nominated_work_title"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?`

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

CREATE TABLE "awards_achievements" (
  "year" real,
  "organisation" text,
  "award" text,
  "nominated_work_title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?`:
```sql
                SELECT "nominated_work_title" FROM "awards_achievements" WHERE "result"='won' AND "organisation"='star awards' AND "award"='top 10 most popular female artiste' AND "year">2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the games that had 9 gold and 9 silvers?`

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

CREATE TABLE "asian_games" (
  "games" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "total" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the games that had 9 gold and 9 silvers?`:
```sql
                SELECT "rank" FROM "asian_games" WHERE "gold"='9' AND "silver"='9';
```
## Task
Generate a SQL query to answer the following question:
`How many golds were there in a game that has 17 bronze and a total of 31?`

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

CREATE TABLE "asian_games" (
  "games" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "total" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds were there in a game that has 17 bronze and a total of 31?`:
```sql
                SELECT "gold" FROM "asian_games" WHERE "bronze"='17' AND "total"='31';
```
## Task
Generate a SQL query to answer the following question:
`Which game had 8 bronze and 4 gold?`

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

CREATE TABLE "asian_games" (
  "games" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "total" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game had 8 bronze and 4 gold?`:
```sql
                SELECT "games" FROM "asian_games" WHERE "bronze"='8' AND "gold"='4';
```
## Task
Generate a SQL query to answer the following question:
`When did San Jose visit the St. Louis?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did San Jose visit the St. Louis?`:
```sql
                SELECT "date" FROM "march" WHERE "visitor"='san jose';
```
## Task
Generate a SQL query to answer the following question:
`How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15?`

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

CREATE TABLE "world_championship_grand_prix_wins_by_en" (
  "rank" real,
  "engine" text,
  "wins" real,
  "first_win" text,
  "latest_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15?`:
```sql
                SELECT SUM("wins") FROM "world_championship_grand_prix_wins_by_en" WHERE "latest_win"='1999 italian grand prix' AND "rank">15;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix?`

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

CREATE TABLE "world_championship_grand_prix_wins_by_en" (
  "rank" real,
  "engine" text,
  "wins" real,
  "first_win" text,
  "latest_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix?`:
```sql
                SELECT MIN("wins") FROM "world_championship_grand_prix_wins_by_en" WHERE "rank">6 AND "first_win"='1950 british grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank 16 wins with the latest win at the 1967 Belgian Grand Prix?`

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

CREATE TABLE "world_championship_grand_prix_wins_by_en" (
  "rank" real,
  "engine" text,
  "wins" real,
  "first_win" text,
  "latest_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank 16 wins with the latest win at the 1967 Belgian Grand Prix?`:
```sql
                SELECT "wins" FROM "world_championship_grand_prix_wins_by_en" WHERE "rank">16 AND "latest_win"='1967 belgian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest pick for a defensive back at Drake?`

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

CREATE TABLE "nfl_draft" (
  "pick" real,
  "round" text,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest pick for a defensive back at Drake?`:
```sql
                SELECT MIN("pick") FROM "nfl_draft" WHERE "position"='defensive back' AND "school"='drake';
```
## Task
Generate a SQL query to answer the following question:
`What's terry jones' lowest pick?`

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

CREATE TABLE "nfl_draft" (
  "pick" real,
  "round" text,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's terry jones' lowest pick?`:
```sql
                SELECT MIN("pick") FROM "nfl_draft" WHERE "player"='terry jones';
```
## Task
Generate a SQL query to answer the following question:
`What position does gerald carter play?`

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

CREATE TABLE "nfl_draft" (
  "pick" real,
  "round" text,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does gerald carter play?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "player"='gerald carter';
```
## Task
Generate a SQL query to answer the following question:
`Who is the guard for Wisconsin?`

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

CREATE TABLE "nfl_draft" (
  "pick" real,
  "round" text,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the guard for Wisconsin?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "position"='guard' AND "school"='wisconsin';
```
## Task
Generate a SQL query to answer the following question:
`Which player is Pick 33 and has a Nationality of USA?`

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

CREATE TABLE "round_two" (
  "pick" real,
  "player" text,
  "nationality" text,
  "nba_team" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is Pick 33 and has a Nationality of USA?`:
```sql
                SELECT "player" FROM "round_two" WHERE "nationality"='usa' AND "pick"=33;
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt?`

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

CREATE TABLE "round_two" (
  "pick" real,
  "player" text,
  "nationality" text,
  "nba_team" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt?`:
```sql
                SELECT "nationality" FROM "round_two" WHERE "pick"<33 AND "school_club_team"='vanderbilt';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player who had the pick of 52 and plays for the NBA team of Phoenix Suns?`

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

CREATE TABLE "round_two" (
  "pick" real,
  "player" text,
  "nationality" text,
  "nba_team" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player who had the pick of 52 and plays for the NBA team of Phoenix Suns?`:
```sql
                SELECT "nationality" FROM "round_two" WHERE "nba_team"='phoenix suns' AND "pick"=52;
```
## Task
Generate a SQL query to answer the following question:
`How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)?`

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

CREATE TABLE "appearances_and_goals" (
  "squad_no" real,
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)?`:
```sql
                SELECT "league_apps" FROM "appearances_and_goals" WHERE "fa_cup_apps"='1' AND "flt_apps"='0 (1)';
```
## Task
Generate a SQL query to answer the following question:
`What day did St Kilda play as the away team?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did St Kilda play as the away team?`:
```sql
                SELECT "date" FROM "round_9" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What's the value for 2007 when 2011 is a and 2009 is q2?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the value for 2007 when 2011 is a and 2009 is q2?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "2011"='a' AND "2009"='q2';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the highest league goals with total goals less than 1 and FA cups more than 0`

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

CREATE TABLE "appearances_and_goals" (
  "squad_no" real,
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the highest league goals with total goals less than 1 and FA cups more than 0`:
```sql
                SELECT MAX("league_goals") FROM "appearances_and_goals" WHERE "total_goals"<1 AND "fa_cup_goals">0;
```
## Task
Generate a SQL query to answer the following question:
`I want to know the sum of fa cup goals for david mirfin and total goals less than 1`

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

CREATE TABLE "appearances_and_goals" (
  "squad_no" real,
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the sum of fa cup goals for david mirfin and total goals less than 1`:
```sql
                SELECT SUM("fa_cup_goals") FROM "appearances_and_goals" WHERE "name"='david mirfin' AND "total_goals"<1;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5`

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

CREATE TABLE "appearances_and_goals" (
  "squad_no" real,
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5`:
```sql
                SELECT "league_apps" FROM "appearances_and_goals" WHERE "league_goals"<2 AND "position"='df' AND "fa_cup_apps"='5';
```
## Task
Generate a SQL query to answer the following question:
`What is the video ratio on channel 14.2?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the video ratio on channel 14.2?`:
```sql
                SELECT "video" FROM "digital_channels" WHERE "channel"=14.2;
```
## Task
Generate a SQL query to answer the following question:
`What network has an aspect of 4:3 and a PSIP Short Name of qvc?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network has an aspect of 4:3 and a PSIP Short Name of qvc?`:
```sql
                SELECT "network" FROM "digital_channels" WHERE "aspect"='4:3' AND "psip_short_name"='qvc';
```
## Task
Generate a SQL query to answer the following question:
`What is ion life network's PSIP Short Name?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is ion life network's PSIP Short Name?`:
```sql
                SELECT "psip_short_name" FROM "digital_channels" WHERE "network"='ion life';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of channels for qubo network?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of channels for qubo network?`:
```sql
                SELECT SUM("channel") FROM "digital_channels" WHERE "network"='qubo';
```
## Task
Generate a SQL query to answer the following question:
`How many deaths did eseta cause?`

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

CREATE TABLE "seasonal_effects" (
  "name" text,
  "dates_active" text,
  "windspeeds" text,
  "pressure" text,
  "deaths" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many deaths did eseta cause?`:
```sql
                SELECT "deaths" FROM "seasonal_effects" WHERE "name"='eseta';
```
## Task
Generate a SQL query to answer the following question:
`What was the date when the away team was Carlton?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date when the away team was Carlton?`:
```sql
                SELECT "date" FROM "round_7" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team that had a score of 6.20 (56)`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team that had a score of 6.20 (56)`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "home_team_score"='6.20 (56)';
```