cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the opponent for the 1985 World Group i edition?`

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

CREATE TABLE "singles_20_9" (
  "edition" text,
  "round" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent for the 1985 World Group i edition?`:
```sql
                SELECT "opponent" FROM "singles_20_9" WHERE "edition"='1985 world group i';
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of cash on hand that has an after debt of $327,094`

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

CREATE TABLE "democrats" (
  "candidate" text,
  "money_raised_3_q" text,
  "loans_received_3_q" text,
  "money_spent_3_q" text,
  "total_receipts" text,
  "cash_on_hand" text,
  "after_debt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of cash on hand that has an after debt of $327,094`:
```sql
                SELECT "cash_on_hand" FROM "democrats" WHERE "after_debt"='$327,094';
```
## Task
Generate a SQL query to answer the following question:
`How many receipts does Mike Gravel have?`

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

CREATE TABLE "democrats" (
  "candidate" text,
  "money_raised_3_q" text,
  "loans_received_3_q" text,
  "money_spent_3_q" text,
  "total_receipts" text,
  "cash_on_hand" text,
  "after_debt" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many receipts does Mike Gravel have?`:
```sql
                SELECT "total_receipts" FROM "democrats" WHERE "candidate"='mike gravel';
```
## Task
Generate a SQL query to answer the following question:
`What After debt has raised 3Q of $5,358,585?`

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

CREATE TABLE "democrats" (
  "candidate" text,
  "money_raised_3_q" text,
  "loans_received_3_q" text,
  "money_spent_3_q" text,
  "total_receipts" text,
  "cash_on_hand" text,
  "after_debt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What After debt has raised 3Q of $5,358,585?`:
```sql
                SELECT "after_debt" FROM "democrats" WHERE "money_raised_3_q"='$5,358,585';
```
## Task
Generate a SQL query to answer the following question:
`How much money has been raised that has $5,821,587 cash on hand?`

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

CREATE TABLE "democrats" (
  "candidate" text,
  "money_raised_3_q" text,
  "loans_received_3_q" text,
  "money_spent_3_q" text,
  "total_receipts" text,
  "cash_on_hand" text,
  "after_debt" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much money has been raised that has $5,821,587 cash on hand?`:
```sql
                SELECT "money_raised_3_q" FROM "democrats" WHERE "cash_on_hand"='$5,821,587';
```
## Task
Generate a SQL query to answer the following question:
`What is the after debt has receipts of $379,794?`

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

CREATE TABLE "democrats" (
  "candidate" text,
  "money_raised_3_q" text,
  "loans_received_3_q" text,
  "money_spent_3_q" text,
  "total_receipts" text,
  "cash_on_hand" text,
  "after_debt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the after debt has receipts of $379,794?`:
```sql
                SELECT "after_debt" FROM "democrats" WHERE "total_receipts"='$379,794';
```
## Task
Generate a SQL query to answer the following question:
`How much money has Candidate Dennis Kucinich spent?`

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

CREATE TABLE "democrats" (
  "candidate" text,
  "money_raised_3_q" text,
  "loans_received_3_q" text,
  "money_spent_3_q" text,
  "total_receipts" text,
  "cash_on_hand" text,
  "after_debt" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much money has Candidate Dennis Kucinich spent?`:
```sql
                SELECT "money_spent_3_q" FROM "democrats" WHERE "candidate"='dennis kucinich';
```
## Task
Generate a SQL query to answer the following question:
`What is the crowd size when the away team was South Melbourne?`

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

CREATE TABLE "round_1" (
  "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 crowd size when the away team was South Melbourne?`:
```sql
                SELECT SUM("crowd") FROM "round_1" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the crowd size at Junction Oval?`

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

CREATE TABLE "round_1" (
  "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 crowd size at Junction Oval?`:
```sql
                SELECT MAX("crowd") FROM "round_1" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game at Junction Oval?`

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

CREATE TABLE "round_1" (
  "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 of the game at Junction Oval?`:
```sql
                SELECT "date" FROM "round_1" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the away score for Carlton?`

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

CREATE TABLE "round_1" (
  "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 away score for Carlton?`:
```sql
                SELECT "away_team_score" FROM "round_1" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at MCG?`

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

CREATE TABLE "round_1" (
  "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 was the away team at MCG?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 48 when the D 50 is d 30?`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 48 when the D 50 is d 30?`:
```sql
                SELECT "d_48" FROM "senate_composition_before_the_elections" WHERE "d_50"='d 30';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 47 when the D 49 is r 32?`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 47 when the D 49 is r 32?`:
```sql
                SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_49"='r 32';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 50 when the D 43 is r 43?`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 50 when the D 43 is r 43?`:
```sql
                SELECT "d_50" FROM "senate_composition_before_the_elections" WHERE "d_43"='r 43';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 42 when the D 50 is d 31?`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 42 when the D 50 is d 31?`:
```sql
                SELECT "d_42" FROM "senate_composition_before_the_elections" WHERE "d_50"='d 31';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 50 when the D 41 is d 41?`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 50 when the D 41 is d 41?`:
```sql
                SELECT "d_50" FROM "senate_composition_before_the_elections" WHERE "d_41"='d 41';
```
## Task
Generate a SQL query to answer the following question:
`what is the total vessels built for usmc when the 1st ship delivery date is january 1943?`

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

CREATE TABLE "yards_on_the_gulf_coast" (
  "yard_name" text,
  "location_city_state" text,
  "1st_ship_delivery_date" text,
  "ship_types_delivered" text,
  "total_number_of_ways" text,
  "total_vessels_built_for_usmc" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total vessels built for usmc when the 1st ship delivery date is january 1943?`:
```sql
                SELECT "total_vessels_built_for_usmc" FROM "yards_on_the_gulf_coast" WHERE "1st_ship_delivery_date"='january 1943';
```
## Task
Generate a SQL query to answer the following question:
`what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc?`

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

CREATE TABLE "yards_on_the_gulf_coast" (
  "yard_name" text,
  "location_city_state" text,
  "1st_ship_delivery_date" text,
  "ship_types_delivered" text,
  "total_number_of_ways" text,
  "total_vessels_built_for_usmc" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc?`:
```sql
                SELECT "yard_name" FROM "yards_on_the_gulf_coast" WHERE "ship_types_delivered"='n3 type, v4 type' AND "total_vessels_built_for_usmc"='13 ships for usmc';
```
## Task
Generate a SQL query to answer the following question:
`what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)?`

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

CREATE TABLE "yards_on_the_gulf_coast" (
  "yard_name" text,
  "location_city_state" text,
  "1st_ship_delivery_date" text,
  "ship_types_delivered" text,
  "total_number_of_ways" text,
  "total_vessels_built_for_usmc" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)?`:
```sql
                SELECT "ship_types_delivered" FROM "yards_on_the_gulf_coast" WHERE "total_vessels_built_for_usmc"='13 ships for usmc (plus 37 more for usn)';
```
## Task
Generate a SQL query to answer the following question:
`what is the ship types delivered when the location is panama city, florida?`

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

CREATE TABLE "yards_on_the_gulf_coast" (
  "yard_name" text,
  "location_city_state" text,
  "1st_ship_delivery_date" text,
  "ship_types_delivered" text,
  "total_number_of_ways" text,
  "total_vessels_built_for_usmc" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the ship types delivered when the location is panama city, florida?`:
```sql
                SELECT "ship_types_delivered" FROM "yards_on_the_gulf_coast" WHERE "location_city_state"='panama city, florida';
```
## Task
Generate a SQL query to answer the following question:
`Who were the co drivers past 1994 in the WSC class?`

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

CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "class" text,
  "tyres" text,
  "team" text,
  "co_drivers" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the co drivers past 1994 in the WSC class?`:
```sql
                SELECT "co_drivers" FROM "complete_24_hours_of_le_mans_results" WHERE "year">1994 AND "class"='wsc';
```
## Task
Generate a SQL query to answer the following question:
`Which home team scored 9.15 (69)?`

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

CREATE TABLE "round_8" (
  "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 `Which home team scored 9.15 (69)?`:
```sql
                SELECT "home_team" FROM "round_8" WHERE "home_team_score"='9.15 (69)';
```
## Task
Generate a SQL query to answer the following question:
`Which venue did the home team score 14.23 (107)?`

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

CREATE TABLE "round_8" (
  "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 `Which venue did the home team score 14.23 (107)?`:
```sql
                SELECT "venue" FROM "round_8" WHERE "home_team_score"='14.23 (107)';
```
## Task
Generate a SQL query to answer the following question:
`What day did Footscray play as the home team?`

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

CREATE TABLE "round_18" (
  "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 Footscray play as the home team?`:
```sql
                SELECT "date" FROM "round_18" WHERE "home_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What is the report for 10 october?`

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

CREATE TABLE "season_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the report for 10 october?`:
```sql
                SELECT "report" FROM "season_review" WHERE "date"='10 october';
```
## Task
Generate a SQL query to answer the following question:
`Who was the race winner with a pole position james hunt, and a Fastest Lap of james hunt, and a Date of 15 august?`

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

CREATE TABLE "season_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the race winner with a pole position james hunt, and a Fastest Lap of james hunt, and a Date of 15 august?`:
```sql
                SELECT "race_winner" FROM "season_review" WHERE "pole_position"='james hunt' AND "fastest_lap"='james hunt' AND "date"='15 august';
```
## Task
Generate a SQL query to answer the following question:
`What race has a Pole Position of Jacques Laffite?`

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

CREATE TABLE "season_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race has a Pole Position of Jacques Laffite?`:
```sql
                SELECT "race" FROM "season_review" WHERE "pole_position"='jacques laffite';
```
## Task
Generate a SQL query to answer the following question:
`What is the Pole Position of the Swedish Grand Prix?`

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

CREATE TABLE "season_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pole Position of the Swedish Grand Prix?`:
```sql
                SELECT "pole_position" FROM "season_review" WHERE "race"='swedish grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What was the date when the location was Zandvoort?`

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

CREATE TABLE "season_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date when the location was Zandvoort?`:
```sql
                SELECT "date" FROM "season_review" WHERE "location"='zandvoort';
```
## Task
Generate a SQL query to answer the following question:
`How many chapters did Elmer Clifton direct?`

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

CREATE TABLE "list_of_film_serials_by_studio" (
  "number" real,
  "serial_title" text,
  "year" real,
  "chapters" real,
  "genre" text,
  "director" text,
  "cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many chapters did Elmer Clifton direct?`:
```sql
                SELECT COUNT("chapters") FROM "list_of_film_serials_by_studio" WHERE "director"='elmer clifton';
```
## Task
Generate a SQL query to answer the following question:
`Who is the spouse of the queen who is the daughter of Ferdinand I of the two sicilies?`

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

CREATE TABLE "list_of_bohemian_consorts" (
  "name" text,
  "father" text,
  "birth" text,
  "marriage" text,
  "became_queen" text,
  "ceased_to_be_queen" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the spouse of the queen who is the daughter of Ferdinand I of the two sicilies?`:
```sql
                SELECT "spouse" FROM "list_of_bohemian_consorts" WHERE "father"='ferdinand i of the two sicilies';
```
## Task
Generate a SQL query to answer the following question:
`What is the entered service date for serial number 85-1222?`

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

CREATE TABLE "locomotives" (
  "locomotive" text,
  "name" text,
  "serial_no" text,
  "entered_service" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the entered service date for serial number 85-1222?`:
```sql
                SELECT "entered_service" FROM "locomotives" WHERE "serial_no"='85-1222';
```
## Task
Generate a SQL query to answer the following question:
`What is the locomotive for the city of Benalla?`

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

CREATE TABLE "locomotives" (
  "locomotive" text,
  "name" text,
  "serial_no" text,
  "entered_service" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the locomotive for the city of Benalla?`:
```sql
                SELECT "locomotive" FROM "locomotives" WHERE "name"='city of benalla';
```
## Task
Generate a SQL query to answer the following question:
`What is the name for the locomotive n464?`

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

CREATE TABLE "locomotives" (
  "locomotive" text,
  "name" text,
  "serial_no" text,
  "entered_service" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for the locomotive n464?`:
```sql
                SELECT "name" FROM "locomotives" WHERE "locomotive"='n464';
```
## Task
Generate a SQL query to answer the following question:
`What is the name for the locomotive n474?`

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

CREATE TABLE "locomotives" (
  "locomotive" text,
  "name" text,
  "serial_no" text,
  "entered_service" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for the locomotive n474?`:
```sql
                SELECT "name" FROM "locomotives" WHERE "locomotive"='n474';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has a Crowd greater than 28,000, and an Away team of st kilda?`

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

CREATE TABLE "round_13" (
  "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 `Which home team has a Crowd greater than 28,000, and an Away team of st kilda?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "crowd">'28,000' AND "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has an Away team score of 18.21 (129)?`

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

CREATE TABLE "round_13" (
  "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 `Which home team has an Away team score of 18.21 (129)?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "away_team_score"='18.21 (129)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score at windy hill?`

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

CREATE TABLE "round_13" (
  "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 home team score at windy hill?`:
```sql
                SELECT "home_team_score" FROM "round_13" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Crowd greater than 28,000, and a Home team of geelong?`

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

CREATE TABLE "round_13" (
  "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 `Which date has a Crowd greater than 28,000, and a Home team of geelong?`:
```sql
                SELECT "date" FROM "round_13" WHERE "crowd">'28,000' AND "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd for an Away team of st kilda?`

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

CREATE TABLE "round_13" (
  "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 largest crowd for an Away team of st kilda?`:
```sql
                SELECT MAX("crowd") FROM "round_13" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`Where was the match that had 119 points for played?`

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

CREATE TABLE "summary" (
  "played_in" text,
  "matches" text,
  "lost" text,
  "drawn" text,
  "points_for" text,
  "points_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the match that had 119 points for played?`:
```sql
                SELECT "played_in" FROM "summary" WHERE "points_for"='119';
```
## Task
Generate a SQL query to answer the following question:
`Where were 16 matches played?`

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

CREATE TABLE "summary" (
  "played_in" text,
  "matches" text,
  "lost" text,
  "drawn" text,
  "points_for" text,
  "points_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where were 16 matches played?`:
```sql
                SELECT "played_in" FROM "summary" WHERE "matches"='16';
```
## Task
Generate a SQL query to answer the following question:
`What match had 240 points for?`

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

CREATE TABLE "summary" (
  "played_in" text,
  "matches" text,
  "lost" text,
  "drawn" text,
  "points_for" text,
  "points_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `What match had 240 points for?`:
```sql
                SELECT "matches" FROM "summary" WHERE "points_for"='240';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on 26 July 1930?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "round" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 26 July 1930?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='26 july 1930';
```
## Task
Generate a SQL query to answer the following question:
`How many laps did Innes Ireland make when he had a grid more than 15?`

### 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 Innes Ireland make when he had a grid more than 15?`:
```sql
                SELECT "laps" FROM "classification" WHERE "grid">15 AND "driver"='innes ireland';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid for Jack Brabham with more than 65 laps?`

### 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 grid for Jack Brabham with more than 65 laps?`:
```sql
                SELECT SUM("grid") FROM "classification" WHERE "driver"='jack brabham' AND "laps">65;
```
## Task
Generate a SQL query to answer the following question:
`Who drove grid 5?`

### 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 `Who drove grid 5?`:
```sql
                SELECT "driver" FROM "classification" WHERE "grid"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with the Rockets as the visitor team?`

### 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 `What is the date of the game with the Rockets as the visitor team?`:
```sql
                SELECT "date" FROM "february" WHERE "visitor"='rockets';
```
## Task
Generate a SQL query to answer the following question:
`What was the position of the player who played for the Rockets during 1981?`

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

CREATE TABLE "s" (
  "player" text,
  "no_s" real,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the player who played for the Rockets during 1981?`:
```sql
                SELECT "position" FROM "s" WHERE "years_for_rockets"='1981';
```
## Task
Generate a SQL query to answer the following question:
`What school, club team, or country did the player with a number smaller than 4 come from?`

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

CREATE TABLE "s" (
  "player" text,
  "no_s" real,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school, club team, or country did the player with a number smaller than 4 come from?`:
```sql
                SELECT "school_club_team_country" FROM "s" WHERE "no_s"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the player who came from Virginia?`

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

CREATE TABLE "s" (
  "player" text,
  "no_s" real,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the player who came from Virginia?`:
```sql
                SELECT "no_s" FROM "s" WHERE "school_club_team_country"='virginia';
```
## Task
Generate a SQL query to answer the following question:
`Which place has a home team score of 18.19 (127)?`

### 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 `Which place has a home team score of 18.19 (127)?`:
```sql
                SELECT "venue" FROM "round_6" WHERE "home_team_score"='18.19 (127)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time/Retired with over 56 laps and a grid of 5?`

### 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 Time/Retired with over 56 laps and a grid of 5?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "laps">56 AND "grid"=5;
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver when the tyre is p and the entrant is officine alfieri maserati?`

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

CREATE TABLE "entries" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver when the tyre is p and the entrant is officine alfieri maserati?`:
```sql
                SELECT "driver" FROM "entries" WHERE "tyre"='p' AND "entrant"='officine alfieri maserati';
```
## Task
Generate a SQL query to answer the following question:
`Who is the constructor when the chassis is talbot-lago t26c and the driver is charles pozzi?`

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

CREATE TABLE "entries" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the constructor when the chassis is talbot-lago t26c and the driver is charles pozzi?`:
```sql
                SELECT "constructor" FROM "entries" WHERE "chassis"='talbot-lago t26c' AND "driver"='charles pozzi';
```
## Task
Generate a SQL query to answer the following question:
`What is the tyre when the entrant is sa alfa romeo and the driver is luigi fagioli?`

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

CREATE TABLE "entries" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tyre when the entrant is sa alfa romeo and the driver is luigi fagioli?`:
```sql
                SELECT "tyre" FROM "entries" WHERE "entrant"='sa alfa romeo' AND "driver"='luigi fagioli';
```
## Task
Generate a SQL query to answer the following question:
`Who is the entrant when the engine is talbot l6 and the driver is pierre levegh?`

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

CREATE TABLE "entries" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the entrant when the engine is talbot l6 and the driver is pierre levegh?`:
```sql
                SELECT "entrant" FROM "entries" WHERE "engine"='talbot l6' AND "driver"='pierre levegh';
```
## Task
Generate a SQL query to answer the following question:
`Who is the entrant when the chassis is ferrari 125?`

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

CREATE TABLE "entries" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the entrant when the chassis is ferrari 125?`:
```sql
                SELECT "entrant" FROM "entries" WHERE "chassis"='ferrari 125';
```
## Task
Generate a SQL query to answer the following question:
`what is the engine when the tyre is d, the constructor is era and the driver is bob gerard?`

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

CREATE TABLE "entries" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the engine when the tyre is d, the constructor is era and the driver is bob gerard?`:
```sql
                SELECT "engine" FROM "entries" WHERE "tyre"='d' AND "constructor"='era' AND "driver"='bob gerard';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the record was 39-62?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the record was 39-62?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='39-62';
```
## Task
Generate a SQL query to answer the following question:
`What was the date when the record was 35-57?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date when the record was 35-57?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='35-57';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss when the record was 34-56?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss when the record was 34-56?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='34-56';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the away team who played the home team who scored 7.14 (56)?`

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

CREATE TABLE "round_3" (
  "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 away team who played the home team who scored 7.14 (56)?`:
```sql
                SELECT "away_team_score" FROM "round_3" WHERE "home_team_score"='7.14 (56)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the venue where the away team scored 7.6 (48) and the home team scored 21.27 (153)?`

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

CREATE TABLE "round_3" (
  "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 name of the venue where the away team scored 7.6 (48) and the home team scored 21.27 (153)?`:
```sql
                SELECT "venue" FROM "round_3" WHERE "away_team_score"='7.6 (48)' AND "home_team_score"='21.27 (153)';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the home team score 5.15 (45)?`

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

CREATE TABLE "round_3" (
  "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 `On what date did the home team score 5.15 (45)?`:
```sql
                SELECT "date" FROM "round_3" WHERE "home_team_score"='5.15 (45)';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the away team whose opponent scored 7.14 (56) in front of a crowd was larger than 24,000?`

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

CREATE TABLE "round_3" (
  "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 away team whose opponent scored 7.14 (56) in front of a crowd was larger than 24,000?`:
```sql
                SELECT "away_team_score" FROM "round_3" WHERE "crowd">'24,000' AND "home_team_score"='7.14 (56)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the away team that played Geelong?`

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

CREATE TABLE "round_3" (
  "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 name of the away team that played Geelong?`:
```sql
                SELECT "away_team" FROM "round_3" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd size for away team Fitzroy?`

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

CREATE TABLE "round_3" (
  "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 smallest crowd size for away team Fitzroy?`:
```sql
                SELECT MIN("crowd") FROM "round_3" WHERE "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`Which Builder has BR No. 30782?`

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

CREATE TABLE "the_scotch_arthurs" (
  "br_no" real,
  "sr_no" real,
  "sr_name" text,
  "builder" text,
  "built" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Builder has BR No. 30782?`:
```sql
                SELECT "builder" FROM "the_scotch_arthurs" WHERE "br_no"=30782;
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with a production code of K1504?`

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

CREATE TABLE "season_3_1996_1997" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode with a production code of K1504?`:
```sql
                SELECT "title" FROM "season_3_1996_1997" WHERE "production_code"='k1504';
```
## Task
Generate a SQL query to answer the following question:
`What is the average of the Series #s that were directed by Matthew Penn?`

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

CREATE TABLE "season_3_1996_1997" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average of the Series #s that were directed by Matthew Penn?`:
```sql
                SELECT AVG("series_num") FROM "season_3_1996_1997" WHERE "directed_by"='matthew penn';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes did Matthew Penn direct before season 22?`

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

CREATE TABLE "season_3_1996_1997" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes did Matthew Penn direct before season 22?`:
```sql
                SELECT COUNT("series_num") FROM "season_3_1996_1997" WHERE "season_num"<22 AND "directed_by"='matthew penn';
```
## Task
Generate a SQL query to answer the following question:
`What Visiting Team(s) had an Attendance of over 18,680`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Visiting Team(s) had an Attendance of over 18,680`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "attendance">'18,680';
```
## Task
Generate a SQL query to answer the following question:
`When Nashville was the visiting team what was the lowest Attendance shown?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Nashville was the visiting team what was the lowest Attendance shown?`:
```sql
                SELECT MIN("attendance") FROM "game_log" WHERE "visitor"='nashville';
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for the driver with 16 grids?`

### 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 time/retired for the driver with 16 grids?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "grid"=16;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest grid for a time/retired of 1:56:18.22?`

### 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 smallest grid for a time/retired of 1:56:18.22?`:
```sql
                SELECT MIN("grid") FROM "classification" WHERE "time_retired"='1:56:18.22';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on September 28?`

### 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,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on September 28?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='september 28';
```