cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Away team score has a Home team of richmond?`

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

CREATE TABLE "round_20" (
  "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 Away team score has a Home team of richmond?`:
```sql
                SELECT "away_team_score" FROM "round_20" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Home team score of 17.16 (118)?`

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

CREATE TABLE "round_20" (
  "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 has a Home team score of 17.16 (118)?`:
```sql
                SELECT "venue" FROM "round_20" WHERE "home_team_score"='17.16 (118)';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has an Away team score of 13.12 (90)?`

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

CREATE TABLE "round_20" (
  "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 has an Away team score of 13.12 (90)?`:
```sql
                SELECT "venue" FROM "round_20" WHERE "away_team_score"='13.12 (90)';
```
## Task
Generate a SQL query to answer the following question:
`Which Home team score has an Away team of carlton?`

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

CREATE TABLE "round_20" (
  "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 score has an Away team of carlton?`:
```sql
                SELECT "home_team_score" FROM "round_20" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What is the total series numbers that is directed by Jefferson Kibbee and has a production code of 2398191?`

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

CREATE TABLE "season_7_1998_1999" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total series numbers that is directed by Jefferson Kibbee and has a production code of 2398191?`:
```sql
                SELECT SUM("no_in_series") FROM "season_7_1998_1999" WHERE "director"='jefferson kibbee' AND "production_code"='2398191';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st Edition for the Episode 4?`

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

CREATE TABLE "viewing_figures" (
  "episode" text,
  "1st_edition" text,
  "2nd_edition" text,
  "3rd_edition" text,
  "4th_edition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st Edition for the Episode 4?`:
```sql
                SELECT "1st_edition" FROM "viewing_figures" WHERE "episode"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st Edition for Episode 11?`

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

CREATE TABLE "viewing_figures" (
  "episode" text,
  "1st_edition" text,
  "2nd_edition" text,
  "3rd_edition" text,
  "4th_edition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st Edition for Episode 11?`:
```sql
                SELECT "1st_edition" FROM "viewing_figures" WHERE "episode"='11';
```
## Task
Generate a SQL query to answer the following question:
`What is the 3rd Edition for Episode 4?`

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

CREATE TABLE "viewing_figures" (
  "episode" text,
  "1st_edition" text,
  "2nd_edition" text,
  "3rd_edition" text,
  "4th_edition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3rd Edition for Episode 4?`:
```sql
                SELECT "3rd_edition" FROM "viewing_figures" WHERE "episode"='4';
```
## Task
Generate a SQL query to answer the following question:
`Which home teams had crowds larger than 4,000?`

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

CREATE TABLE "round_16" (
  "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 teams had crowds larger than 4,000?`:
```sql
                SELECT "home_team" FROM "round_16" WHERE "crowd">'4,000';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the date for western oval venue`

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

CREATE TABLE "round_5" (
  "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 `I want to know the date for western oval venue`:
```sql
                SELECT "date" FROM "round_5" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the declination with a right ascension of 11h53m41.9s?`

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

CREATE TABLE "3901_4000" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the declination with a right ascension of 11h53m41.9s?`:
```sql
                SELECT "declination_j2000" FROM "3901_4000" WHERE "right_ascension_j2000"='11h53m41.9s';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg when team 1 is Chelsea?`

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

CREATE TABLE "first_knockout_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st leg when team 1 is Chelsea?`:
```sql
                SELECT "1st_leg" FROM "first_knockout_round" WHERE "team_1"='chelsea';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the home team, when the score for home team was 10.17 (77)?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the home team, when the score for home team was 10.17 (77)?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "home_team_score"='10.17 (77)';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team score, when the away team was Fitzroy?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team score, when the away team was Fitzroy?`:
```sql
                SELECT "away_team_score" FROM "round_13" WHERE "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the home team when the away team was Melbourne?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the home team when the away team was Melbourne?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the home team that has a venue called EMCG?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the home team that has a venue called EMCG?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "venue"='emcg';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the venue where the game played had an away team of Melbourne?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the venue where the game played had an away team of Melbourne?`:
```sql
                SELECT "venue" FROM "round_13" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number lost with a difference of -16, 19 points, and more than 24 against?`

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

CREATE TABLE "torneo_apertura_opening_tournament" (
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number lost with a difference of -16, 19 points, and more than 24 against?`:
```sql
                SELECT AVG("lost") FROM "torneo_apertura_opening_tournament" WHERE "diff">-16 AND "points"=19 AND "against">24;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of losses with 25 points?`

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

CREATE TABLE "torneo_apertura_opening_tournament" (
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of losses with 25 points?`:
```sql
                SELECT MAX("lost") FROM "torneo_apertura_opening_tournament" WHERE "points"=25;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the difference for 9 draws and over 18 played?`

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

CREATE TABLE "torneo_apertura_opening_tournament" (
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the difference for 9 draws and over 18 played?`:
```sql
                SELECT SUM("diff") FROM "torneo_apertura_opening_tournament" WHERE "drawn"=9 AND "played">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number drawn with less than 2 lost?`

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

CREATE TABLE "torneo_apertura_opening_tournament" (
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number drawn with less than 2 lost?`:
```sql
                SELECT MIN("drawn") FROM "torneo_apertura_opening_tournament" WHERE "lost"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all points when number played is less than 18?`

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

CREATE TABLE "torneo_apertura_opening_tournament" (
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all points when number played is less than 18?`:
```sql
                SELECT SUM("points") FROM "torneo_apertura_opening_tournament" WHERE "played"<18;
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Score of 6–4, 6–3?`

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

CREATE TABLE "doubles_21_13_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Score of 6–4, 6–3?`:
```sql
                SELECT "date" FROM "doubles_21_13_8" WHERE "score"='6–4, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the total PI GP that a Reg GP has larger than 3?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total PI GP that a Reg GP has larger than 3?`:
```sql
                SELECT COUNT("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp">3;
```
## Task
Generate a SQL query to answer the following question:
`What average Reg GP has a pick # larger than 210?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What average Reg GP has a pick # larger than 210?`:
```sql
                SELECT AVG("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num">210;
```
## Task
Generate a SQL query to answer the following question:
`Which result has a Goal of deacon 2/5?`

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

CREATE TABLE "2004_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which result has a Goal of deacon 2/5?`:
```sql
                SELECT "result" FROM "2004_fixtures_and_results" WHERE "goals"='deacon 2/5';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Goal of deacon 4/4, withers 1 dg?`

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

CREATE TABLE "2004_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Goal of deacon 4/4, withers 1 dg?`:
```sql
                SELECT "date" FROM "2004_fixtures_and_results" WHERE "goals"='deacon 4/4, withers 1 dg';
```
## Task
Generate a SQL query to answer the following question:
`What are the goals for 8/4/04?`

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

CREATE TABLE "2004_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the goals for 8/4/04?`:
```sql
                SELECT "goals" FROM "2004_fixtures_and_results" WHERE "date"='8/4/04';
```
## Task
Generate a SQL query to answer the following question:
`Which venue has a Result of w, and a Goal of deacon 5/5?`

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

CREATE TABLE "2004_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a Result of w, and a Goal of deacon 5/5?`:
```sql
                SELECT "venue" FROM "2004_fixtures_and_results" WHERE "result"='w' AND "goals"='deacon 5/5';
```
## Task
Generate a SQL query to answer the following question:
`Which result has a Goal of deacon 3/5, bridge 2/2?`

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

CREATE TABLE "2004_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which result has a Goal of deacon 3/5, bridge 2/2?`:
```sql
                SELECT "result" FROM "2004_fixtures_and_results" WHERE "goals"='deacon 3/5, bridge 2/2';
```
## Task
Generate a SQL query to answer the following question:
`Which competition has a Goal of deacon 10/10, and a Score of 40–12?`

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

CREATE TABLE "2004_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition has a Goal of deacon 10/10, and a Score of 40–12?`:
```sql
                SELECT "competition" FROM "2004_fixtures_and_results" WHERE "goals"='deacon 10/10' AND "score"='40–12';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?`:
```sql
                SELECT COUNT("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp"<5 AND "team_league"='seattle thunderbirds' AND "pick_num"<131;
```
## Task
Generate a SQL query to answer the following question:
`What player has a number of playoff games played greater than 0?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a number of playoff games played greater than 0?`:
```sql
                SELECT "player" FROM "list_of_vancouver_canucks_draft_picks" WHERE "pl_gp">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the number of regular games played by Morgan Clark with the number of road games less than 7?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the number of regular games played by Morgan Clark with the number of road games less than 7?`:
```sql
                SELECT SUM("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='morgan clark' AND "rd_num"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number for the player from higher than round 3 and a PI GP bigger than 0?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number for the player from higher than round 3 and a PI GP bigger than 0?`:
```sql
                SELECT "pick_num" FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num">3 AND "pl_gp">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has?`:
```sql
                SELECT MIN("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='larry courville' AND "pl_gp"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was Essendon's opponents away score?`

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

CREATE TABLE "round_17" (
  "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 Essendon's opponents away score?`:
```sql
                SELECT "away_team_score" FROM "round_17" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at Corio Oval?`

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

CREATE TABLE "round_17" (
  "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 attendance at Corio Oval?`:
```sql
                SELECT "crowd" FROM "round_17" WHERE "venue"='corio oval';
```
## Task
Generate a SQL query to answer the following question:
`If the home team scored 6.7 (43), what was the away teams score?`

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

CREATE TABLE "round_12" (
  "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 `If the home team scored 6.7 (43), what was the away teams score?`:
```sql
                SELECT "away_team_score" FROM "round_12" WHERE "home_team_score"='6.7 (43)';
```
## Task
Generate a SQL query to answer the following question:
`When collingwood played as the away team what did they score?`

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

CREATE TABLE "round_12" (
  "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 `When collingwood played as the away team what did they score?`:
```sql
                SELECT "away_team_score" FROM "round_12" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team playing when the home team scored 16.18 (114)?`

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

CREATE TABLE "round_12" (
  "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 team playing when the home team scored 16.18 (114)?`:
```sql
                SELECT "away_team" FROM "round_12" WHERE "home_team_score"='16.18 (114)';
```
## Task
Generate a SQL query to answer the following question:
`Which venue was it at when 10.14 (74) was the home teams score?`

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

CREATE TABLE "round_12" (
  "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 was it at when 10.14 (74) was the home teams score?`:
```sql
                SELECT "venue" FROM "round_12" WHERE "home_team_score"='10.14 (74)';
```
## Task
Generate a SQL query to answer the following question:
`What was the locaction of the Evans test blast?`

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

CREATE TABLE "hardtack_ii_tests" (
  "name" text,
  "location" text,
  "elevation_height" text,
  "delivery" text,
  "purpose" text,
  "yield" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the locaction of the Evans test blast?`:
```sql
                SELECT "location" FROM "hardtack_ii_tests" WHERE "name"='evans';
```
## Task
Generate a SQL query to answer the following question:
`What was the yield for a blast that was in nts area 3s?`

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

CREATE TABLE "hardtack_ii_tests" (
  "name" text,
  "location" text,
  "elevation_height" text,
  "delivery" text,
  "purpose" text,
  "yield" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the yield for a blast that was in nts area 3s?`:
```sql
                SELECT "yield" FROM "hardtack_ii_tests" WHERE "location"='nts area 3s';
```
## Task
Generate a SQL query to answer the following question:
`What was the purpose of the Quay test blast?`

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

CREATE TABLE "hardtack_ii_tests" (
  "name" text,
  "location" text,
  "elevation_height" text,
  "delivery" text,
  "purpose" text,
  "yield" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the purpose of the Quay test blast?`:
```sql
                SELECT "purpose" FROM "hardtack_ii_tests" WHERE "name"='quay';
```
## Task
Generate a SQL query to answer the following question:
`For an apparent magnitude greater than 11.8 what Right ascension value is assigned?`

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

CREATE TABLE "3601_3700" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `For an apparent magnitude greater than 11.8 what Right ascension value is assigned?`:
```sql
                SELECT "right_ascension_j2000" FROM "3601_3700" WHERE "apparent_magnitude">11.8;
```
## Task
Generate a SQL query to answer the following question:
`What is the least apparent magnitude for all constellations from hydra?`

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

CREATE TABLE "3601_3700" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least apparent magnitude for all constellations from hydra?`:
```sql
                SELECT MIN("apparent_magnitude") FROM "3601_3700" WHERE "constellation"='hydra';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Car with more than 155 yards?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Car with more than 155 yards?`:
```sql
                SELECT MAX("car") FROM "running_backs" WHERE "yards">155;
```
## Task
Generate a SQL query to answer the following question:
`How many pages were in the book by Stefano D'Arrigo?`

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

CREATE TABLE "list_of_longest_novels" (
  "book_title" text,
  "author" text,
  "edition_publisher" text,
  "page_count" text,
  "page_size" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pages were in the book by Stefano D'Arrigo?`:
```sql
                SELECT "page_count" FROM "list_of_longest_novels" WHERE "author"='stefano d''arrigo';
```
## Task
Generate a SQL query to answer the following question:
`Which author wrote Sironia, Texas in English?`

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

CREATE TABLE "list_of_longest_novels" (
  "book_title" text,
  "author" text,
  "edition_publisher" text,
  "page_count" text,
  "page_size" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which author wrote Sironia, Texas in English?`:
```sql
                SELECT "author" FROM "list_of_longest_novels" WHERE "language"='english' AND "book_title"='sironia, texas';
```
## Task
Generate a SQL query to answer the following question:
`Who is the edition/publisher for Xavier Herbert?`

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

CREATE TABLE "list_of_longest_novels" (
  "book_title" text,
  "author" text,
  "edition_publisher" text,
  "page_count" text,
  "page_size" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the edition/publisher for Xavier Herbert?`:
```sql
                SELECT "edition_publisher" FROM "list_of_longest_novels" WHERE "author"='xavier herbert';
```
## Task
Generate a SQL query to answer the following question:
`What language is the book Miss Macintosh, My Darling in?`

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

CREATE TABLE "list_of_longest_novels" (
  "book_title" text,
  "author" text,
  "edition_publisher" text,
  "page_count" text,
  "page_size" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language is the book Miss Macintosh, My Darling in?`:
```sql
                SELECT "language" FROM "list_of_longest_novels" WHERE "book_title"='miss macintosh, my darling';
```
## Task
Generate a SQL query to answer the following question:
`Who published in Italian with a page size of 8 inches (20cm) x 5.4 inches (14cm)?`

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

CREATE TABLE "list_of_longest_novels" (
  "book_title" text,
  "author" text,
  "edition_publisher" text,
  "page_count" text,
  "page_size" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who published in Italian with a page size of 8 inches (20cm) x 5.4 inches (14cm)?`:
```sql
                SELECT "edition_publisher" FROM "list_of_longest_novels" WHERE "language"='italian' AND "page_size"='8 inches (20cm) x 5.4 inches (14cm)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total average for long 10?`

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

CREATE TABLE "wide_receivers" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total average for long 10?`:
```sql
                SELECT COUNT("avg") FROM "wide_receivers" WHERE "long"=10;
```
## Task
Generate a SQL query to answer the following question:
`Name the college that has 7 rounds and boston celtics team`

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

CREATE TABLE "other_picks" (
  "round" text,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college that has 7 rounds and boston celtics team`:
```sql
                SELECT "college" FROM "other_picks" WHERE "team"='boston celtics' AND "round"='7';
```
## Task
Generate a SQL query to answer the following question:
`Name the position that has baltimore bullets and college of texas tech`

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

CREATE TABLE "other_picks" (
  "round" text,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position that has baltimore bullets and college of texas tech`:
```sql
                SELECT "position" FROM "other_picks" WHERE "team"='baltimore bullets' AND "college"='texas tech';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality for milwaukee hawks?`

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

CREATE TABLE "other_picks" (
  "round" text,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality for milwaukee hawks?`:
```sql
                SELECT "nationality" FROM "other_picks" WHERE "team"='milwaukee hawks';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the superfund that was proposed on 06/24/1988?`

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

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "borough_or_census_area" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the superfund that was proposed on 06/24/1988?`:
```sql
                SELECT "name" FROM "superfund_sites" WHERE "proposed"='06/24/1988';
```
## Task
Generate a SQL query to answer the following question:
`Which team was played against in game 4?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was played against in game 4?`:
```sql
                SELECT "team" FROM "playoffs" WHERE "game"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the location attendance of the game with A. Horford (10) as the highest rebounds and J. Johnson (21) as the highest points?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location attendance of the game with A. Horford (10) as the highest rebounds and J. Johnson (21) as the highest points?`:
```sql
                SELECT "location_attendance" FROM "playoffs" WHERE "high_rebounds"='a. horford (10)' AND "high_points"='j. johnson (21)';
```
## Task
Generate a SQL query to answer the following question:
`During what Championship was the Opponent Jeff Borowiak?`

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

CREATE TABLE "singles_18_8_titles_10_runner_ups" (
  "outcome" text,
  "date" real,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `During what Championship was the Opponent Jeff Borowiak?`:
```sql
                SELECT "championship" FROM "singles_18_8_titles_10_runner_ups" WHERE "opponent"='jeff borowiak';
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the Score of 3–6, 6–4, 3–6, 6–1, 6–2`

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

CREATE TABLE "singles_18_8_titles_10_runner_ups" (
  "outcome" text,
  "date" real,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the Score of 3–6, 6–4, 3–6, 6–1, 6–2`:
```sql
                SELECT SUM("date") FROM "singles_18_8_titles_10_runner_ups" WHERE "score"='3–6, 6–4, 3–6, 6–1, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank for gene littler with under 3 wins and under $962,133?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank for gene littler with under 3 wins and under $962,133?`:
```sql
                SELECT MAX("rank") FROM "leaders" WHERE "earnings"<'962,133' AND "player"='gene littler' AND "wins"<3;
```
## Task
Generate a SQL query to answer the following question:
`What tyre is on the talbot-lago and an Entrant of automobiles talbot-darracq sa, and a Chassis of talbot-lago t26c-da?`

### 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 tyre is on the talbot-lago and an Entrant of automobiles talbot-darracq sa, and a Chassis of talbot-lago t26c-da?`:
```sql
                SELECT "tyre" FROM "entries" WHERE "constructor"='talbot-lago' AND "entrant"='automobiles talbot-darracq sa' AND "chassis"='talbot-lago t26c-da';
```
## Task
Generate a SQL query to answer the following question:
`What is the Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver?`

### 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 Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver?`:
```sql
                SELECT "entrant" FROM "entries" WHERE "engine"='talbot l6' AND "driver"='eugène chaboud';
```
## Task
Generate a SQL query to answer the following question:
`What entrant has a P tyre and was constructed by Alfa Romeo?`

### 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 entrant has a P tyre and was constructed by Alfa Romeo?`:
```sql
                SELECT "entrant" FROM "entries" WHERE "tyre"='p' AND "constructor"='alfa romeo';
```
## Task
Generate a SQL query to answer the following question:
`I want the country for score of 274 and runner-up of virginie lagoutte-clément`

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

CREATE TABLE "winners" (
  "year" text,
  "date" text,
  "venue" text,
  "winner" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the country for score of 274 and runner-up of virginie lagoutte-clément`:
```sql
                SELECT "country" FROM "winners" WHERE "score"='274' AND "runner_s_up"='virginie lagoutte-clément';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the date for 2004`

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

CREATE TABLE "winners" (
  "year" text,
  "date" text,
  "venue" text,
  "winner" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the date for 2004`:
```sql
                SELECT "date" FROM "winners" WHERE "year"='2004';
```
## Task
Generate a SQL query to answer the following question:
`What is the margin of victory for nikki garrett?`

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

CREATE TABLE "winners" (
  "year" text,
  "date" text,
  "venue" text,
  "winner" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the margin of victory for nikki garrett?`:
```sql
                SELECT "margin_of_victory" FROM "winners" WHERE "winner"='nikki garrett';
```
## Task
Generate a SQL query to answer the following question:
`I want to see the result for venue of n and attendance more than 20,664`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want to see the result for venue of n and attendance more than 20,664`:
```sql
                SELECT "result" FROM "scottish_cup" WHERE "venue"='n' AND "attendance">'20,664';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the result for venue of a`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for venue of a`:
```sql
                SELECT "result" FROM "scottish_cup" WHERE "venue"='a';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the average attendance for n venue and f round`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the average attendance for n venue and f round`:
```sql
                SELECT AVG("attendance") FROM "scottish_cup" WHERE "venue"='n' AND "round"='f';
```
## Task
Generate a SQL query to answer the following question:
`In grid 15, how many laps were there before ending with a time of exhaust?`

### 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 `In grid 15, how many laps were there before ending with a time of exhaust?`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "time_retired"='exhaust' AND "grid"<15;
```
## Task
Generate a SQL query to answer the following question:
`What year was class of undine?`

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

CREATE TABLE "1850_1871" (
  "class" text,
  "wheel_arrangement" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text,
  "year_s_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was class of undine?`:
```sql
                SELECT "year_made" FROM "1850_1871" WHERE "class"='undine';
```
## Task
Generate a SQL query to answer the following question:
`What was the quantity preserved for quantity made of 15?`

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

CREATE TABLE "1850_1871" (
  "class" text,
  "wheel_arrangement" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text,
  "year_s_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the quantity preserved for quantity made of 15?`:
```sql
                SELECT "quantity_preserved" FROM "1850_1871" WHERE "quantity_made"='15';
```
## Task
Generate a SQL query to answer the following question:
`Name the year for hercules`

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

CREATE TABLE "1850_1871" (
  "class" text,
  "wheel_arrangement" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text,
  "year_s_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for hercules`:
```sql
                SELECT "year_made" FROM "1850_1871" WHERE "class"='hercules';
```
## Task
Generate a SQL query to answer the following question:
`When did the tom smith built train enter service with a number under 7007?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "locomotive_type" text,
  "wheel_arrangement" text,
  "builder" text,
  "entered_service" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the tom smith built train enter service with a number under 7007?`:
```sql
                SELECT AVG("entered_service") FROM "locomotives" WHERE "builder"='tom smith' AND "number"<7007;
```