cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Home team score for the Home team of Melbourne?`

### 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 `What is the Home team score for the Home team of Melbourne?`:
```sql
                SELECT "home_team_score" FROM "round_16" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team score for the Home team from South Melbourne?`

### 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 `What is the Home team score for the Home team from South Melbourne?`:
```sql
                SELECT "home_team_score" FROM "round_16" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What Away team has a Home team score of 18.12 (120)?`

### 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 `What Away team has a Home team score of 18.12 (120)?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "home_team_score"='18.12 (120)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team score for the Venue named MCG?`

### 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 `What is the Home team score for the Venue named MCG?`:
```sql
                SELECT "home_team_score" FROM "round_16" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`Who has the lowest earnings that has a rank smaller than 2?`

### 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 `Who has the lowest earnings that has a rank smaller than 2?`:
```sql
                SELECT MIN("earnings") FROM "leaders" WHERE "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of someone who earned smaller than 3,069,633?`

### 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 average rank of someone who earned smaller than 3,069,633?`:
```sql
                SELECT AVG("rank") FROM "leaders" WHERE "earnings"<'3,069,633';
```
## Task
Generate a SQL query to answer the following question:
`What has the average wins in Australia who earned smaller than 3,133,913?`

### 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 has the average wins in Australia who earned smaller than 3,133,913?`:
```sql
                SELECT AVG("wins") FROM "leaders" WHERE "country"='australia' AND "earnings"<'3,133,913';
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of wins with player Mike Hill with a rank bigger than 2?`

### 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 was the total number of wins with player Mike Hill with a rank bigger than 2?`:
```sql
                SELECT COUNT("wins") FROM "leaders" WHERE "rank">2 AND "player"='mike hill';
```
## Task
Generate a SQL query to answer the following question:
`Where was the argentine grand prix?`

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

CREATE TABLE "championship_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the argentine grand prix?`:
```sql
                SELECT "location" FROM "championship_review" WHERE "race"='argentine grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What was the constructor for the fastest nelson piquet?`

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

CREATE TABLE "championship_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the constructor for the fastest nelson piquet?`:
```sql
                SELECT "constructor" FROM "championship_review" WHERE "fastest_lap"='nelson piquet';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the constructor for zolder`

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

CREATE TABLE "championship_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the constructor for zolder`:
```sql
                SELECT "constructor" FROM "championship_review" WHERE "location"='zolder';
```
## Task
Generate a SQL query to answer the following question:
`Name the constructor for 10 august`

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

CREATE TABLE "championship_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the constructor for 10 august`:
```sql
                SELECT "constructor" FROM "championship_review" WHERE "date"='10 august';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of Years at Club for the player who has had more games than 28, more Goals than 225, and his Debut year was after 1950?`

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

CREATE TABLE "players_who_made_their_debut_for_the_gee" (
  "debut_year" real,
  "player" text,
  "date_of_birth" text,
  "games" real,
  "goals" real,
  "years_at_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Years at Club for the player who has had more games than 28, more Goals than 225, and his Debut year was after 1950?`:
```sql
                SELECT "years_at_club" FROM "players_who_made_their_debut_for_the_gee" WHERE "games">28 AND "goals">225 AND "debut_year">1950;
```
## Task
Generate a SQL query to answer the following question:
`What is the birthday of the player who has Years at Club of 1951?`

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

CREATE TABLE "players_who_made_their_debut_for_the_gee" (
  "debut_year" real,
  "player" text,
  "date_of_birth" text,
  "games" real,
  "goals" real,
  "years_at_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the birthday of the player who has Years at Club of 1951?`:
```sql
                SELECT "date_of_birth" FROM "players_who_made_their_debut_for_the_gee" WHERE "years_at_club"='1951';
```
## Task
Generate a SQL query to answer the following question:
`what rank has years until mandatory retirement of 6 years?`

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

CREATE TABLE "current_composition" (
  "name" text,
  "rank" text,
  "years_until_mandatory_retirement" text,
  "appointed_by" text,
  "year_appointed" real
);
### SQL
Given the database schema, here is the SQL query that answers `what rank has years until mandatory retirement of 6 years?`:
```sql
                SELECT "rank" FROM "current_composition" WHERE "years_until_mandatory_retirement"='6 years';
```
## Task
Generate a SQL query to answer the following question:
`what name has an appointed year of 2009 and years until mandatory retirement of 13 years?`

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

CREATE TABLE "current_composition" (
  "name" text,
  "rank" text,
  "years_until_mandatory_retirement" text,
  "appointed_by" text,
  "year_appointed" real
);
### SQL
Given the database schema, here is the SQL query that answers `what name has an appointed year of 2009 and years until mandatory retirement of 13 years?`:
```sql
                SELECT "name" FROM "current_composition" WHERE "year_appointed"=2009 AND "years_until_mandatory_retirement"='13 years';
```
## Task
Generate a SQL query to answer the following question:
`Which player from Oregon used the number 12?`

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

CREATE TABLE "j" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player from Oregon used the number 12?`:
```sql
                SELECT "player" FROM "j" WHERE "no_s"='12' AND "school_club_team_country"='oregon';
```
## Task
Generate a SQL query to answer the following question:
`What position does the player who is 6-10 play?`

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

CREATE TABLE "j" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player who is 6-10 play?`:
```sql
                SELECT "position" FROM "j" WHERE "height_in_ft"='6-10';
```
## Task
Generate a SQL query to answer the following question:
`What are the numbers for any players from Washington?`

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

CREATE TABLE "j" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the numbers for any players from Washington?`:
```sql
                SELECT "no_s" FROM "j" WHERE "school_club_team_country"='washington';
```
## Task
Generate a SQL query to answer the following question:
`Which years did the Rockets number 6 play?`

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

CREATE TABLE "j" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years did the Rockets number 6 play?`:
```sql
                SELECT "years_for_rockets" FROM "j" WHERE "no_s"='6';
```
## Task
Generate a SQL query to answer the following question:
`Which 2nd senior VIII that also has a 4th senior stm?`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "crew" real,
  "open_1st_viii" text,
  "senior_2nd_viii" text,
  "senior_3rd_viii" text,
  "senior_iv" text,
  "year_12_single_scull" text,
  "year_11_single_scull" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2nd senior VIII that also has a 4th senior stm?`:
```sql
                SELECT "senior_2nd_viii" FROM "winning_head_of_the_river_championship_e" WHERE "senior_iv"='stm';
```
## Task
Generate a SQL query to answer the following question:
`How many laps did John Love have on a grid less than 11?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did John Love have on a grid less than 11?`:
```sql
                SELECT "laps" FROM "classification" WHERE "grid"<11 AND "driver"='john love';
```
## Task
Generate a SQL query to answer the following question:
`What is the Builder of Locomotive 2?`

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

CREATE TABLE "hebburn_line_locomotives" (
  "locomotive" text,
  "type" text,
  "builder" text,
  "builder_s_no" text,
  "built" real,
  "entered_service" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Builder of Locomotive 2?`:
```sql
                SELECT "builder" FROM "hebburn_line_locomotives" WHERE "locomotive"='2';
```
## Task
Generate a SQL query to answer the following question:
`With a Type of 4-6-4t, what is the sum Withdrawn?`

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

CREATE TABLE "hebburn_line_locomotives" (
  "locomotive" text,
  "type" text,
  "builder" text,
  "builder_s_no" text,
  "built" real,
  "entered_service" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a Type of 4-6-4t, what is the sum Withdrawn?`:
```sql
                SELECT SUM("withdrawn") FROM "hebburn_line_locomotives" WHERE "type"='4-6-4t';
```
## Task
Generate a SQL query to answer the following question:
`What was the score from the game where Dallas played Home and Edmonton was visiting?`

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

CREATE TABLE "december" (
  "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 score from the game where Dallas played Home and Edmonton was visiting?`:
```sql
                SELECT "score" FROM "december" WHERE "home"='dallas' AND "visitor"='edmonton';
```
## Task
Generate a SQL query to answer the following question:
`What was the mintage when the theme was Santa Claus?`

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

CREATE TABLE "holiday_coin_set" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the mintage when the theme was Santa Claus?`:
```sql
                SELECT "mintage" FROM "holiday_coin_set" WHERE "theme"='santa claus';
```
## Task
Generate a SQL query to answer the following question:
`What was the issue price in the year 2008?`

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

CREATE TABLE "holiday_coin_set" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the issue price in the year 2008?`:
```sql
                SELECT SUM("issue_price") FROM "holiday_coin_set" WHERE "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year when the composition is 99.99% silver and the issue price is $94.95?`

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

CREATE TABLE "crystal_snowflake" (
  "year" real,
  "theme" text,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year when the composition is 99.99% silver and the issue price is $94.95?`:
```sql
                SELECT MIN("year") FROM "crystal_snowflake" WHERE "composition"='99.99% silver' AND "issue_price"='$94.95';
```
## Task
Generate a SQL query to answer the following question:
`What year had an issue price of $94.95 and theme of Amethyst crystal?`

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

CREATE TABLE "crystal_snowflake" (
  "year" real,
  "theme" text,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had an issue price of $94.95 and theme of Amethyst crystal?`:
```sql
                SELECT AVG("year") FROM "crystal_snowflake" WHERE "issue_price"='$94.95' AND "theme"='amethyst crystal';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for when the opponent in the final is shiho hisamatsu`

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

CREATE TABLE "singles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for when the opponent in the final is shiho hisamatsu`:
```sql
                SELECT "score" FROM "singles_titles_5" WHERE "opponent_in_the_final"='shiho hisamatsu';
```
## Task
Generate a SQL query to answer the following question:
`Name the tournament for april 3, 2005`

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

CREATE TABLE "singles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tournament for april 3, 2005`:
```sql
                SELECT "tournament" FROM "singles_titles_5" WHERE "date"='april 3, 2005';
```
## Task
Generate a SQL query to answer the following question:
`Name th score for may 11, 2003`

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

CREATE TABLE "singles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name th score for may 11, 2003`:
```sql
                SELECT "score" FROM "singles_titles_5" WHERE "date"='may 11, 2003';
```
## Task
Generate a SQL query to answer the following question:
`Who constructed pedro diniz's car?`

### 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 `Who constructed pedro diniz's car?`:
```sql
                SELECT "constructor" FROM "race" WHERE "driver"='pedro diniz';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid total for david coulthard with over 45 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 grid total for david coulthard with over 45 laps?`:
```sql
                SELECT COUNT("grid") FROM "race" WHERE "driver"='david coulthard' AND "laps">45;
```
## Task
Generate a SQL query to answer the following question:
`What is the average for the gymnast with a 9.9 start value and a total of 9.612?`

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

CREATE TABLE "final" (
  "gymnast" text,
  "start_value" real,
  "penalty" text,
  "average" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the gymnast with a 9.9 start value and a total of 9.612?`:
```sql
                SELECT AVG("average") FROM "final" WHERE "start_value"=9.9 AND "total"=9.612;
```
## Task
Generate a SQL query to answer the following question:
`What was the penalty for the gymnast with average above 9.662 and total is more than 9.706?`

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

CREATE TABLE "final" (
  "gymnast" text,
  "start_value" real,
  "penalty" text,
  "average" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the penalty for the gymnast with average above 9.662 and total is more than 9.706?`:
```sql
                SELECT "penalty" FROM "final" WHERE "average">9.662 AND "total">9.706;
```
## Task
Generate a SQL query to answer the following question:
`What category was Kasautii Zindagii Kay nominated for after 2005?`

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

CREATE TABLE "indian_telly_awards" (
  "year" real,
  "category" text,
  "character" text,
  "for_the_show" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was Kasautii Zindagii Kay nominated for after 2005?`:
```sql
                SELECT "category" FROM "indian_telly_awards" WHERE "year">2005 AND "for_the_show"='kasautii zindagii kay';
```
## Task
Generate a SQL query to answer the following question:
`What show had a nomination for best actor in a lead role – female (popular) in 2006?`

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

CREATE TABLE "indian_telly_awards" (
  "year" real,
  "category" text,
  "character" text,
  "for_the_show" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What show had a nomination for best actor in a lead role – female (popular) in 2006?`:
```sql
                SELECT "for_the_show" FROM "indian_telly_awards" WHERE "category"='best actor in a lead role – female (popular)' AND "year"=2006;
```
## Task
Generate a SQL query to answer the following question:
`In what week was the Result L 15-13?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what week was the Result L 15-13?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "result"='l 15-13';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance with Opponent Dallas Cowboys in a Week greater than 5?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance with Opponent Dallas Cowboys in a Week greater than 5?`:
```sql
                SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='dallas cowboys' AND "week">5;
```
## Task
Generate a SQL query to answer the following question:
`How many points for maserati v12 engines in 1968?`

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

CREATE TABLE "complete_world_championship_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for maserati v12 engines in 1968?`:
```sql
                SELECT COUNT("points") FROM "complete_world_championship_results" WHERE "engine"='maserati v12' AND "year"=1968;
```
## Task
Generate a SQL query to answer the following question:
`What entrant had less than 3 points before 1963?`

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

CREATE TABLE "complete_world_championship_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What entrant had less than 3 points before 1963?`:
```sql
                SELECT "entrant" FROM "complete_world_championship_results" WHERE "year"<1963 AND "points"<3;
```
## Task
Generate a SQL query to answer the following question:
`Who had the pole at the French Grand Prix?`

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

CREATE TABLE "grands_prix" (
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the pole at the French Grand Prix?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='french grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Who constructed the car that won the Canadian Grand Prix?`

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

CREATE TABLE "grands_prix" (
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who constructed the car that won the Canadian Grand Prix?`:
```sql
                SELECT "constructor" FROM "grands_prix" WHERE "grand_prix"='canadian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`When Michael Schumacher won the race, who had the fastest lap?`

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

CREATE TABLE "grands_prix" (
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Michael Schumacher won the race, who had the fastest lap?`:
```sql
                SELECT "fastest_lap" FROM "grands_prix" WHERE "winning_driver"='michael schumacher';
```
## Task
Generate a SQL query to answer the following question:
`For the Player playing for the College of Kentucky and a Height of 6-7 what was their corresponding School?`

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

CREATE TABLE "2010_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Player playing for the College of Kentucky and a Height of 6-7 what was their corresponding School?`:
```sql
                SELECT "school" FROM "2010_boys_team" WHERE "college"='kentucky' AND "height"='6-7';
```
## Task
Generate a SQL query to answer the following question:
`What School did Terrence Jones play for?`

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

CREATE TABLE "2010_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What School did Terrence Jones play for?`:
```sql
                SELECT "school" FROM "2010_boys_team" WHERE "player"='terrence jones';
```
## Task
Generate a SQL query to answer the following question:
`What Player(s) have a Height of 6-3?`

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

CREATE TABLE "2010_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player(s) have a Height of 6-3?`:
```sql
                SELECT "player" FROM "2010_boys_team" WHERE "height"='6-3';
```
## Task
Generate a SQL query to answer the following question:
`For the player with a Height of 6-9 and College of Kentucky what was their NBA Draft?`

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

CREATE TABLE "2010_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the player with a Height of 6-9 and College of Kentucky what was their NBA Draft?`:
```sql
                SELECT "nba_draft" FROM "2010_boys_team" WHERE "height"='6-9' AND "college"='kentucky';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on February 9?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on February 9?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='february 9';
```
## Task
Generate a SQL query to answer the following question:
`What is the average point total for arrows racing team before 1983?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average point total for arrows racing team before 1983?`:
```sql
                SELECT AVG("points") FROM "complete_formula_one_results" WHERE "team"='arrows racing team' AND "year"<1983;
```
## Task
Generate a SQL query to answer the following question:
`What team has jordan 193 chassis after 1990?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team has jordan 193 chassis after 1990?`:
```sql
                SELECT "team" FROM "complete_formula_one_results" WHERE "year">1990 AND "chassis"='jordan 193';
```
## Task
Generate a SQL query to answer the following question:
`How many points for the cosworth v8 engine after 1985?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for the cosworth v8 engine after 1985?`:
```sql
                SELECT "points" FROM "complete_formula_one_results" WHERE "year">1985 AND "engine"='cosworth v8';
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor for the driver with grid less than 2?`

### 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 constructor for the driver with grid less than 2?`:
```sql
                SELECT "constructor" FROM "race" WHERE "grid"<2;
```
## Task
Generate a SQL query to answer the following question:
`What Position did Aaron Williams play?`

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

CREATE TABLE "w" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position did Aaron Williams play?`:
```sql
                SELECT "position" FROM "w" WHERE "player"='aaron williams';
```
## Task
Generate a SQL query to answer the following question:
`At Position of guard, from the School/Club Team Notre Dame, how many Years for Jazz did that person play?`

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

CREATE TABLE "w" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `At Position of guard, from the School/Club Team Notre Dame, how many Years for Jazz did that person play?`:
```sql
                SELECT "years_for_jazz" FROM "w" WHERE "position"='guard' AND "school_club_team"='notre dame';
```
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team did Andre Wakefield play for?`

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

CREATE TABLE "w" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School/Club Team did Andre Wakefield play for?`:
```sql
                SELECT "school_club_team" FROM "w" WHERE "player"='andre wakefield';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame?`

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

CREATE TABLE "w" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame?`:
```sql
                SELECT "nationality" FROM "w" WHERE "position"='guard' AND "school_club_team"='notre dame';
```
## Task
Generate a SQL query to answer the following question:
`What School/Club Team is Player Howard Wood from?`

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

CREATE TABLE "w" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What School/Club Team is Player Howard Wood from?`:
```sql
                SELECT "school_club_team" FROM "w" WHERE "player"='howard wood';
```
## Task
Generate a SQL query to answer the following question:
`What School/Club Team is Player Aaron Williams from?`

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

CREATE TABLE "w" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What School/Club Team is Player Aaron Williams from?`:
```sql
                SELECT "school_club_team" FROM "w" WHERE "player"='aaron williams';
```
## Task
Generate a SQL query to answer the following question:
`What is the street address of the building with 5 floors?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the street address of the building with 5 floors?`:
```sql
                SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "floors"='5';
```
## Task
Generate a SQL query to answer the following question:
`What is the street address of the building with 40 floors?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the street address of the building with 40 floors?`:
```sql
                SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "floors"='40';
```
## Task
Generate a SQL query to answer the following question:
`What were the years the building with 44 floors was tallest?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the years the building with 44 floors was tallest?`:
```sql
                SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "floors"='44';
```
## Task
Generate a SQL query to answer the following question:
`What is the street address of Oliver Building?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the street address of Oliver Building?`:
```sql
                SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='oliver building';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north?`

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

CREATE TABLE "labour_targets" (
  "rank" real,
  "constituency" text,
  "winning_party_2003" text,
  "swing_to_gain" real,
  "labour_s_place_2003" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north?`:
```sql
                SELECT "winning_party_2003" FROM "labour_targets" WHERE "constituency"='aberdeen north';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Rank that has the Constituency of strathkelvin and bearsden?`

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

CREATE TABLE "labour_targets" (
  "rank" real,
  "constituency" text,
  "winning_party_2003" text,
  "swing_to_gain" real,
  "labour_s_place_2003" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the lowest Rank that has the Constituency of strathkelvin and bearsden?`:
```sql
                SELECT MIN("rank") FROM "labour_targets" WHERE "constituency"='strathkelvin and bearsden';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross?`

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

CREATE TABLE "labour_targets" (
  "rank" real,
  "constituency" text,
  "winning_party_2003" text,
  "swing_to_gain" real,
  "labour_s_place_2003" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross?`:
```sql
                SELECT SUM("swing_to_gain") FROM "labour_targets" WHERE "constituency"='caithness, sutherland and easter ross';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me Labour's place 2003 that has the Result of con hold, and the Constituency of ayr?`

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

CREATE TABLE "labour_targets" (
  "rank" real,
  "constituency" text,
  "winning_party_2003" text,
  "swing_to_gain" real,
  "labour_s_place_2003" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me Labour's place 2003 that has the Result of con hold, and the Constituency of ayr?`:
```sql
                SELECT "labour_s_place_2003" FROM "labour_targets" WHERE "result"='con hold' AND "constituency"='ayr';
```
## Task
Generate a SQL query to answer the following question:
`What's the Time/Retired of Laps of 75?`

### 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's the Time/Retired of Laps of 75?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "laps"=75;
```
## Task
Generate a SQL query to answer the following question:
`Which Driver has Laps larger than 78, and a Time/Retired of + 1:09.4?`

### 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 `Which Driver has Laps larger than 78, and a Time/Retired of + 1:09.4?`:
```sql
                SELECT "driver" FROM "race" WHERE "laps">78 AND "time_retired"='+ 1:09.4';
```
## Task
Generate a SQL query to answer the following question:
`Hows many Laps are in a Grid of 4?`

### 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 `Hows many Laps are in a Grid of 4?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "grid"=4;
```
## Task
Generate a SQL query to answer the following question:
`On what date did the away team score 13.13 (91) in front of a crowd larger than 15,601?`

### 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 `On what date did the away team score 13.13 (91) in front of a crowd larger than 15,601?`:
```sql
                SELECT "date" FROM "round_20" WHERE "crowd">'15,601' AND "away_team_score"='13.13 (91)';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the away team where the home team scored 13.20 (98)?`

### 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 `What is the score of the away team where the home team scored 13.20 (98)?`:
```sql
                SELECT "away_team_score" FROM "round_20" WHERE "home_team_score"='13.20 (98)';
```
## Task
Generate a SQL query to answer the following question:
`How much did the away team score that played St Kilda?`

### 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 `How much did the away team score that played St Kilda?`:
```sql
                SELECT "away_team_score" FROM "round_20" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What venue did the away team Collingwood play at?`

### 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 `What venue did the away team Collingwood play at?`:
```sql
                SELECT "venue" FROM "round_20" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the away team that played at Kardinia Park?`

### 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 `What is the score of the away team that played at Kardinia Park?`:
```sql
                SELECT "away_team_score" FROM "round_20" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the away team that played at Kardinia Park?`

### 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 `What is the name of the away team that played at Kardinia Park?`:
```sql
                SELECT "away_team" FROM "round_20" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance in the bye week after week 5?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance in the bye week after week 5?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week">5 AND "opponent"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What location had 1:59:12 in time?`

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

CREATE TABLE "women_s_winners" (
  "year" real,
  "athlete" text,
  "nation" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location had 1:59:12 in time?`:
```sql
                SELECT "location" FROM "women_s_winners" WHERE "time"='1:59:12';
```