cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the sum of Crowd when Essendon was the home team?`

### 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 `What is the sum of Crowd when Essendon was the home team?`:
```sql
                SELECT SUM("crowd") FROM "round_5" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score when North Melbourne was the away team?`

### 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 `What was the home team score when North Melbourne was the away team?`:
```sql
                SELECT "home_team_score" FROM "round_5" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the U.S. Hot 100 chart number of the single off of the 2002 album west coast bad boyz, vol. 3: poppin' collars?`

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

CREATE TABLE "collaboration_singles" (
  "year" real,
  "u_s_hot_100" text,
  "u_s_r_b" text,
  "u_s_rap" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the U.S. Hot 100 chart number of the single off of the 2002 album west coast bad boyz, vol. 3: poppin' collars?`:
```sql
                SELECT "u_s_hot_100" FROM "collaboration_singles" WHERE "year"=2002 AND "album"='west coast bad boyz, vol. 3: poppin'' collars';
```
## Task
Generate a SQL query to answer the following question:
`What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars?`

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

CREATE TABLE "collaboration_singles" (
  "year" real,
  "u_s_hot_100" text,
  "u_s_r_b" text,
  "u_s_rap" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars?`:
```sql
                SELECT "u_s_rap" FROM "collaboration_singles" WHERE "album"='west coast bad boyz, vol. 3: poppin'' collars';
```
## Task
Generate a SQL query to answer the following question:
`What is the top round for the baltimore bullets with a Pick larger than 6?`

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

CREATE TABLE "draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the top round for the baltimore bullets with a Pick larger than 6?`:
```sql
                SELECT MAX("round") FROM "draft" WHERE "team"='baltimore bullets' AND "pick">6;
```
## Task
Generate a SQL query to answer the following question:
`What team was the away team when the home team scored 12.8 (80)?`

### 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 `What team was the away team when the home team scored 12.8 (80)?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "home_team_score"='12.8 (80)';
```
## Task
Generate a SQL query to answer the following question:
`What team was the away team when the home team scored 9.10 (64)?`

### 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 `What team was the away team when the home team scored 9.10 (64)?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "home_team_score"='9.10 (64)';
```
## Task
Generate a SQL query to answer the following question:
`What team was the away team when they played at lake oval?`

### 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 `What team was the away team when they played at lake oval?`:
```sql
                SELECT "away_team_score" FROM "round_5" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in the crowd when North Melbourne was the home team?`

### 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 `How many people were in the crowd when North Melbourne was the home team?`:
```sql
                SELECT "crowd" FROM "round_5" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is Mark Grieb's average when his TDs are smaller than 2?`

### 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 Mark Grieb's average when his TDs are smaller than 2?`:
```sql
                SELECT SUM("avg") FROM "running_backs" WHERE "player"='mark grieb' AND "td_s"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is Craig Whelihan's average when his yards are smaller than 0?`

### 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 Craig Whelihan's average when his yards are smaller than 0?`:
```sql
                SELECT SUM("avg") FROM "running_backs" WHERE "player"='craig whelihan' AND "yards"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which largest average had 1229 yards?`

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

CREATE TABLE "touchdowns" (
  "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 `Which largest average had 1229 yards?`:
```sql
                SELECT MAX("avg") FROM "touchdowns" WHERE "yards"=1229;
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor where the circuit is Silverstone?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the constructor where the circuit is Silverstone?`:
```sql
                SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='silverstone';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Winning Driver in the race viii gran premio di siracusa?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Winning Driver in the race viii gran premio di siracusa?`:
```sql
                SELECT "winning_driver" FROM "non_championship_race_results" WHERE "race_name"='viii gran premio di siracusa';
```
## Task
Generate a SQL query to answer the following question:
`What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen?`:
```sql
                SELECT "date" FROM "non_championship_race_results" WHERE "winning_driver"='stirling moss' AND "race_name"='vi grand prix de caen';
```
## Task
Generate a SQL query to answer the following question:
`Which state is the location of 39.1178°n 106.4454°w in?`

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

CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state is the location of 39.1178°n 106.4454°w in?`:
```sql
                SELECT "state" FROM "the_easternmost_high_summits_of_the_rock" WHERE "location"='39.1178°n 106.4454°w';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank Mount Elbert has?`

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

CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank Mount Elbert has?`:
```sql
                SELECT MAX("rank") FROM "the_easternmost_high_summits_of_the_rock" WHERE "mountain_peak"='mount elbert';
```
## Task
Generate a SQL query to answer the following question:
`What is the mountain range at 37.3934°n 104.9201°w?`

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

CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mountain range at 37.3934°n 104.9201°w?`:
```sql
                SELECT "mountain_range" FROM "the_easternmost_high_summits_of_the_rock" WHERE "location"='37.3934°n 104.9201°w';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of Blanca Peak?`

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

CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of Blanca Peak?`:
```sql
                SELECT "location" FROM "the_easternmost_high_summits_of_the_rock" WHERE "mountain_peak"='blanca peak';
```
## Task
Generate a SQL query to answer the following question:
`Which state is West Spanish Peak in?`

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

CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state is West Spanish Peak in?`:
```sql
                SELECT "state" FROM "the_easternmost_high_summits_of_the_rock" WHERE "mountain_peak"='west spanish peak';
```
## Task
Generate a SQL query to answer the following question:
`What is the ranked 5 mountain range?`

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

CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ranked 5 mountain range?`:
```sql
                SELECT "mountain_range" FROM "the_easternmost_high_summits_of_the_rock" WHERE "rank"=5;
```
## Task
Generate a SQL query to answer the following question:
`Name of choice b. Randell is the name of which District Residence?`

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

CREATE TABLE "list_of_representatives" (
  "name" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "district_residence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name of choice b. Randell is the name of which District Residence?`:
```sql
                SELECT "district_residence" FROM "list_of_representatives" WHERE "name"='choice b. randell';
```
## Task
Generate a SQL query to answer the following question:
`Who has a Took Office of march 4, 1903?`

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

CREATE TABLE "list_of_representatives" (
  "name" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "district_residence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a Took Office of march 4, 1903?`:
```sql
                SELECT "name" FROM "list_of_representatives" WHERE "took_office"='march 4, 1903';
```
## Task
Generate a SQL query to answer the following question:
`Which Took Office that has a Party of democrat, under the name of John Hancock`

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

CREATE TABLE "list_of_representatives" (
  "name" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "district_residence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Took Office that has a Party of democrat, under the name of John Hancock`:
```sql
                SELECT "took_office" FROM "list_of_representatives" WHERE "party"='democrat' AND "name"='john hancock';
```
## Task
Generate a SQL query to answer the following question:
`Who has Took Office of march 4, 1875?`

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

CREATE TABLE "list_of_representatives" (
  "name" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "district_residence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has Took Office of march 4, 1875?`:
```sql
                SELECT "name" FROM "list_of_representatives" WHERE "took_office"='march 4, 1875';
```
## Task
Generate a SQL query to answer the following question:
`Name the record on june 22`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record on june 22`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='june 22';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number in attendance for when the bulls visited`

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

CREATE TABLE "april" (
  "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 `Name the total number in attendance for when the bulls visited`:
```sql
                SELECT COUNT("attendance") FROM "april" WHERE "visitor"='bulls';
```
## Task
Generate a SQL query to answer the following question:
`Name the most swimsuit for interview less than 8.46`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most swimsuit for interview less than 8.46`:
```sql
                SELECT MAX("swimsuit") FROM "preliminary_competition" WHERE "interview"<8.46;
```
## Task
Generate a SQL query to answer the following question:
`Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12`:
```sql
                SELECT MAX("evening_gown") FROM "preliminary_competition" WHERE "average"<8.793 AND "swimsuit"<8.12 AND "interview"=8.51;
```
## Task
Generate a SQL query to answer the following question:
`On average, how many Starts have Wins that are smaller than 0?`

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

CREATE TABLE "results_timeline" (
  "tournament" text,
  "starts" real,
  "top_10s" real,
  "wins" real,
  "earnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `On average, how many Starts have Wins that are smaller than 0?`:
```sql
                SELECT AVG("starts") FROM "results_timeline" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which of the top-10s has a starts value of 14?`

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

CREATE TABLE "results_timeline" (
  "tournament" text,
  "starts" real,
  "top_10s" real,
  "wins" real,
  "earnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which of the top-10s has a starts value of 14?`:
```sql
                SELECT MAX("top_10s") FROM "results_timeline" WHERE "starts"=14;
```
## Task
Generate a SQL query to answer the following question:
`In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0?`

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

CREATE TABLE "results_timeline" (
  "tournament" text,
  "starts" real,
  "top_10s" real,
  "wins" real,
  "earnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0?`:
```sql
                SELECT SUM("starts") FROM "results_timeline" WHERE "tournament"='hsbc champions' AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`Who trained the horse on post 11 with over 36 odds?`

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

CREATE TABLE "full_results" (
  "finished" text,
  "post" real,
  "horse" text,
  "jockey" text,
  "trainer" text,
  "odds" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who trained the horse on post 11 with over 36 odds?`:
```sql
                SELECT "trainer" FROM "full_results" WHERE "odds">36 AND "post"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest post number for calvin borel?`

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

CREATE TABLE "full_results" (
  "finished" text,
  "post" real,
  "horse" text,
  "jockey" text,
  "trainer" text,
  "odds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest post number for calvin borel?`:
```sql
                SELECT MIN("post") FROM "full_results" WHERE "jockey"='calvin borel';
```
## Task
Generate a SQL query to answer the following question:
`What horse for jara?`

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

CREATE TABLE "full_results" (
  "finished" text,
  "post" real,
  "horse" text,
  "jockey" text,
  "trainer" text,
  "odds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What horse for jara?`:
```sql
                SELECT "horse" FROM "full_results" WHERE "jockey"='jara';
```
## Task
Generate a SQL query to answer the following question:
`What is the date when Lebron James (25) was the lead scorer?`

### 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 when Lebron James (25) was the lead scorer?`:
```sql
                SELECT "date" FROM "february" WHERE "leading_scorer"='lebron james (25)';
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Gold smaller than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Gold smaller than 0?`:
```sql
                SELECT SUM("total") FROM "medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Gold smaller than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Gold smaller than 0?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which T.C. has a Win of 1, and a Race of 21?`

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

CREATE TABLE "campos_racing" (
  "year" real,
  "team_name" text,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which T.C. has a Win of 1, and a Race of 21?`:
```sql
                SELECT "t_c" FROM "campos_racing" WHERE "wins"=1 AND "races"=21;
```
## Task
Generate a SQL query to answer the following question:
`How many years have Drivers of ben hanley, and Flaps smaller than 0?`

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

CREATE TABLE "campos_racing" (
  "year" real,
  "team_name" text,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have Drivers of ben hanley, and Flaps smaller than 0?`:
```sql
                SELECT COUNT("year") FROM "campos_racing" WHERE "drivers"='ben hanley' AND "f_laps"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many Points have Drivers of adrián vallés, and a Year larger than 2006?`

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

CREATE TABLE "campos_racing" (
  "year" real,
  "team_name" text,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Points have Drivers of adrián vallés, and a Year larger than 2006?`:
```sql
                SELECT AVG("points") FROM "campos_racing" WHERE "drivers"='adrián vallés' AND "year">2006;
```
## Task
Generate a SQL query to answer the following question:
`How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0?`

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

CREATE TABLE "campos_racing" (
  "year" real,
  "team_name" text,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0?`:
```sql
                SELECT SUM("poles") FROM "campos_racing" WHERE "drivers"='juan cruz álvarez' AND "f_laps">0;
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Victoria Park?`

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

CREATE TABLE "round_15" (
  "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 Victoria Park?`:
```sql
                SELECT "away_team" FROM "round_15" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the train numbered less than 6 before 1993?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "name" text,
  "builder" text,
  "type" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the train numbered less than 6 before 1993?`:
```sql
                SELECT "name" FROM "locomotives" WHERE "number"<6 AND "date"<1993;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the bo-bodh train with a number less than 5?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "name" text,
  "builder" text,
  "type" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the bo-bodh train with a number less than 5?`:
```sql
                SELECT "name" FROM "locomotives" WHERE "number"<5 AND "type"='bo-bodh';
```
## Task
Generate a SQL query to answer the following question:
`Name the record when the visitor is st. louis`

### 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,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record when the visitor is st. louis`:
```sql
                SELECT "record" FROM "february" WHERE "visitor"='st. louis';
```
## Task
Generate a SQL query to answer the following question:
`What was the scory when calgary was visiting?`

### 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,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the scory when calgary was visiting?`:
```sql
                SELECT "score" FROM "february" WHERE "visitor"='calgary';
```
## Task
Generate a SQL query to answer the following question:
`Name the home when the visitor was dallas on february 2`

### 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,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the home when the visitor was dallas on february 2`:
```sql
                SELECT "home" FROM "february" WHERE "visitor"='dallas' AND "date"='february 2';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for turco decision and home of st. louis`

### 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,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for turco decision and home of st. louis`:
```sql
                SELECT "date" FROM "february" WHERE "decision"='turco' AND "home"='st. louis';
```
## Task
Generate a SQL query to answer the following question:
`Which rider had a speed of 104.630mph?`

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

CREATE TABLE "ultra_lightweight_manx_grand_prix_provis" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rider had a speed of 104.630mph?`:
```sql
                SELECT "rider" FROM "ultra_lightweight_manx_grand_prix_provis" WHERE "speed"='104.630mph';
```
## Task
Generate a SQL query to answer the following question:
`What is the best rank with a time of 1:05.14.10?`

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

CREATE TABLE "ultra_lightweight_manx_grand_prix_provis" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best rank with a time of 1:05.14.10?`:
```sql
                SELECT MAX("rank") FROM "ultra_lightweight_manx_grand_prix_provis" WHERE "time"='1:05.14.10';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the final score was 35-62?`

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

CREATE TABLE "2012" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played when the final score was 35-62?`:
```sql
                SELECT "stadium" FROM "2012" WHERE "final_score"='35-62';
```
## Task
Generate a SQL query to answer the following question:
`During the game at Candlestick Park, who was the visiting team?`

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

CREATE TABLE "2012" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the game at Candlestick Park, who was the visiting team?`:
```sql
                SELECT "visiting_team" FROM "2012" WHERE "stadium"='candlestick park';
```
## Task
Generate a SQL query to answer the following question:
`Which visiting team had a final score of 14-34?`

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

CREATE TABLE "2012" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which visiting team had a final score of 14-34?`:
```sql
                SELECT "visiting_team" FROM "2012" WHERE "final_score"='14-34';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score in the game against the Cincinnati Bengals?`

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

CREATE TABLE "2012" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score in the game against the Cincinnati Bengals?`:
```sql
                SELECT "final_score" FROM "2012" WHERE "visiting_team"='cincinnati bengals';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team in the game against the Dallas Cowboys?`

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

CREATE TABLE "2012" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team in the game against the Dallas Cowboys?`:
```sql
                SELECT "visiting_team" FROM "2012" WHERE "host_team"='dallas cowboys';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič?`

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

CREATE TABLE "singles_7_3_4" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič?`:
```sql
                SELECT "tournament" FROM "singles_7_3_4" WHERE "outcome"='runner-up' AND "opponent"='maša zec peškirič';
```
## Task
Generate a SQL query to answer the following question:
`Which surface has a Score of 6–4, 6–2?`

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

CREATE TABLE "singles_7_3_4" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which surface has a Score of 6–4, 6–2?`:
```sql
                SELECT "surface" FROM "singles_7_3_4" WHERE "score"='6–4, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`Which surface has a Date of 22 august 2006?`

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

CREATE TABLE "singles_7_3_4" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which surface has a Date of 22 august 2006?`:
```sql
                SELECT "surface" FROM "singles_7_3_4" WHERE "date"='22 august 2006';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2?`

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

CREATE TABLE "singles_7_3_4" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2?`:
```sql
                SELECT "tournament" FROM "singles_7_3_4" WHERE "outcome"='runner-up' AND "surface"='hard' AND "score"='6–4, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`What is the outcome with marina erakovic as opponent?`

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

CREATE TABLE "singles_7_3_4" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome with marina erakovic as opponent?`:
```sql
                SELECT "outcome" FROM "singles_7_3_4" WHERE "opponent"='marina erakovic';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament has an Outcome of winner, and a Opponent of dia evtimova?`

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

CREATE TABLE "singles_7_3_4" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament has an Outcome of winner, and a Opponent of dia evtimova?`:
```sql
                SELECT "tournament" FROM "singles_7_3_4" WHERE "outcome"='winner' AND "opponent"='dia evtimova';
```
## Task
Generate a SQL query to answer the following question:
`What title runs for 3:22?`

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

CREATE TABLE "unreleased_songs" (
  "title" text,
  "author_s" text,
  "recorded" text,
  "location_s" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title runs for 3:22?`:
```sql
                SELECT "title" FROM "unreleased_songs" WHERE "time"='3:22';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the song that runs for 2:22?`

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

CREATE TABLE "unreleased_songs" (
  "title" text,
  "author_s" text,
  "recorded" text,
  "location_s" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the song that runs for 2:22?`:
```sql
                SELECT "author_s" FROM "unreleased_songs" WHERE "time"='2:22';
```
## Task
Generate a SQL query to answer the following question:
`What Constructor had 66 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 Constructor had 66 Laps?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "laps"=66;
```
## Task
Generate a SQL query to answer the following question:
`With Laps greater than 78, what is the lowest Grid?`

### 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 `With Laps greater than 78, what is the lowest Grid?`:
```sql
                SELECT MIN("grid") FROM "classification" WHERE "laps">78;
```
## Task
Generate a SQL query to answer the following question:
`How many Laps with a Grid smaller than 11 did John Watson have?`

### 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 with a Grid smaller than 11 did John Watson have?`:
```sql
                SELECT AVG("laps") FROM "classification" WHERE "driver"='john watson' AND "grid"<11;
```
## Task
Generate a SQL query to answer the following question:
`How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?`

### 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 with a Grid smaller than 3 did Driver NIki Lauda have?`:
```sql
                SELECT AVG("laps") FROM "classification" WHERE "driver"='niki lauda' AND "grid"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the low grid total for a retired due to steering in under 15 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the low grid total for a retired due to steering in under 15 laps?`:
```sql
                SELECT MIN("grid") FROM "race" WHERE "time_retired"='steering' AND "laps"<15;
```
## Task
Generate a SQL query to answer the following question:
`What is the average laps that had a time/retired of +5 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average laps that had a time/retired of +5 laps?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "time_retired"='+5 laps';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "location"='wonju chiak indoor gym, south korea';
```
## Task
Generate a SQL query to answer the following question:
`Which is the lowest Round with the Opponent, Paul Cahoon and Location, Amsterdam, Netherlands?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the lowest Round with the Opponent, Paul Cahoon and Location, Amsterdam, Netherlands?`:
```sql
                SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "opponent"='paul cahoon' AND "location"='amsterdam, netherlands';
```
## Task
Generate a SQL query to answer the following question:
`Which Event has the Opponent, Bernard Ackah?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Event has the Opponent, Bernard Ackah?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='bernard ackah';
```
## Task
Generate a SQL query to answer the following question:
`when was the destroyer launched when it was laid down on 14 august 1942?`

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

CREATE TABLE "ca_or_11th_emergency_flotilla" (
  "name" text,
  "pennant" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the destroyer launched when it was laid down on 14 august 1942?`:
```sql
                SELECT "launched" FROM "ca_or_11th_emergency_flotilla" WHERE "laid_down"='14 august 1942';
```
## Task
Generate a SQL query to answer the following question:
`what is the launched date when the builder is john brown, clydebank?`

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

CREATE TABLE "ca_or_11th_emergency_flotilla" (
  "name" text,
  "pennant" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the launched date when the builder is john brown, clydebank?`:
```sql
                SELECT "launched" FROM "ca_or_11th_emergency_flotilla" WHERE "builder"='john brown, clydebank';
```
## Task
Generate a SQL query to answer the following question:
`what is the pennant when the builder is yarrow, scotstoun?`

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

CREATE TABLE "ca_or_11th_emergency_flotilla" (
  "name" text,
  "pennant" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the pennant when the builder is yarrow, scotstoun?`:
```sql
                SELECT "pennant" FROM "ca_or_11th_emergency_flotilla" WHERE "builder"='yarrow, scotstoun';
```
## Task
Generate a SQL query to answer the following question:
`what is the name when the laid down is 28 february 1943?`

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

CREATE TABLE "ca_or_11th_emergency_flotilla" (
  "name" text,
  "pennant" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when the laid down is 28 february 1943?`:
```sql
                SELECT "name" FROM "ca_or_11th_emergency_flotilla" WHERE "laid_down"='28 february 1943';
```
## Task
Generate a SQL query to answer the following question:
`when was it commissioned when the destroyer was built by scotts, greenock?`

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

CREATE TABLE "ca_or_11th_emergency_flotilla" (
  "name" text,
  "pennant" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was it commissioned when the destroyer was built by scotts, greenock?`:
```sql
                SELECT "commissioned" FROM "ca_or_11th_emergency_flotilla" WHERE "builder"='scotts, greenock';
```
## Task
Generate a SQL query to answer the following question:
`when was the launched date when the laid down date is 14 august 1942?`

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

CREATE TABLE "ca_or_11th_emergency_flotilla" (
  "name" text,
  "pennant" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the launched date when the laid down date is 14 august 1942?`:
```sql
                SELECT "launched" FROM "ca_or_11th_emergency_flotilla" WHERE "laid_down"='14 august 1942';
```
## Task
Generate a SQL query to answer the following question:
`What was the record for a week below 13 on July 12?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for a week below 13 on July 12?`:
```sql
                SELECT "record" FROM "season_schedule" WHERE "week"<13 AND "date"='july 12';
```