cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`On August 29, What was the record playing against the Rangers?`

### 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 `On August 29, What was the record playing against the Rangers?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='rangers' AND "date"='august 29';
```
## Task
Generate a SQL query to answer the following question:
`On August 22, how many people came to the game?`

### 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 `On August 22, how many people came to the game?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "date"='august 22';
```
## Task
Generate a SQL query to answer the following question:
`When west indes was a holder at the end of the series for the 1991 season with an england greater than 1, what is the smallest west indies?`

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

CREATE TABLE "totals_up_to_and_including_the_5th_test_" (
  "series" text,
  "season" text,
  "host" text,
  "tests" real,
  "england" real,
  "west_indies" real,
  "draw" real,
  "series_result" text,
  "holder_at_the_end_of_the_series" text
);
### SQL
Given the database schema, here is the SQL query that answers `When west indes was a holder at the end of the series for the 1991 season with an england greater than 1, what is the smallest west indies?`:
```sql
                SELECT MIN("west_indies") FROM "totals_up_to_and_including_the_5th_test_" WHERE "holder_at_the_end_of_the_series"='west indies' AND "england">1 AND "season"='1991';
```
## Task
Generate a SQL query to answer the following question:
`When were the Brewers 27-31?`

### 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 `When were the Brewers 27-31?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='27-31';
```
## Task
Generate a SQL query to answer the following question:
`When did the Brewers lose 2-8?`

### 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 `When did the Brewers lose 2-8?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "score"='2-8';
```
## Task
Generate a SQL query to answer the following question:
`When the Brewers score was 5-7, what was the lowest attendance?`

### 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 `When the Brewers score was 5-7, what was the lowest attendance?`:
```sql
                SELECT MIN("attendance") FROM "game_log" WHERE "score"='5-7';
```
## Task
Generate a SQL query to answer the following question:
`Who hosted the visiting team Baltimore Ravens?`

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

CREATE TABLE "2006_season" (
  "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 hosted the visiting team Baltimore Ravens?`:
```sql
                SELECT "host_team" FROM "2006_season" WHERE "visiting_team"='baltimore ravens';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score at Heinz Field?`

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

CREATE TABLE "2006_season" (
  "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 at Heinz Field?`:
```sql
                SELECT "final_score" FROM "2006_season" WHERE "stadium"='heinz field';
```
## Task
Generate a SQL query to answer the following question:
`What is the home stadium of the Atlanta Falcons?`

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

CREATE TABLE "2006_season" (
  "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 is the home stadium of the Atlanta Falcons?`:
```sql
                SELECT "stadium" FROM "2006_season" WHERE "host_team"='atlanta falcons';
```
## Task
Generate a SQL query to answer the following question:
`What date did the New York Giants play as a visiting team?`

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

CREATE TABLE "2006_season" (
  "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 date did the New York Giants play as a visiting team?`:
```sql
                SELECT "date" FROM "2006_season" WHERE "visiting_team"='new york giants';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of Tim Herron, who placed t1?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of Tim Herron, who placed t1?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t1' AND "player"='tim herron';
```
## Task
Generate a SQL query to answer the following question:
`What place does Fred Funk, who has a score of 69-69=138, have?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place does Fred Funk, who has a score of 69-69=138, have?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='69-69=138' AND "player"='fred funk';
```
## Task
Generate a SQL query to answer the following question:
`What is Tiger Woods's score?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tiger Woods's score?`:
```sql
                SELECT "score" FROM "second_round" WHERE "player"='tiger woods';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of Australia?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of Australia?`:
```sql
                SELECT "score" FROM "second_round" WHERE "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`Who was Constructor for rider Marco Melandri?`

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

CREATE TABLE "moto_gp_participants" (
  "team" text,
  "constructor" text,
  "motorcycle" text,
  "tyre" text,
  "rider" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Constructor for rider Marco Melandri?`:
```sql
                SELECT "constructor" FROM "moto_gp_participants" WHERE "rider"='marco melandri';
```
## Task
Generate a SQL query to answer the following question:
`Anthony West ride which Motorcyle?`

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

CREATE TABLE "moto_gp_participants" (
  "team" text,
  "constructor" text,
  "motorcycle" text,
  "tyre" text,
  "rider" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Anthony West ride which Motorcyle?`:
```sql
                SELECT "motorcycle" FROM "moto_gp_participants" WHERE "rider"='anthony west';
```
## Task
Generate a SQL query to answer the following question:
`What team draft a player from Canada that was picked #43 and plays right wing?`

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

CREATE TABLE "round_four" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team draft a player from Canada that was picked #43 and plays right wing?`:
```sql
                SELECT "nhl_team" FROM "round_four" WHERE "nationality"='canada' AND "position"='right wing' AND "pick_num"='43';
```
## Task
Generate a SQL query to answer the following question:
`What nationality is Gerry Methe?`

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

CREATE TABLE "round_four" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is Gerry Methe?`:
```sql
                SELECT "nationality" FROM "round_four" WHERE "player"='gerry methe';
```
## Task
Generate a SQL query to answer the following question:
`What which player from Canada was picked #49 and plays left wing?`

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

CREATE TABLE "round_four" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What which player from Canada was picked #49 and plays left wing?`:
```sql
                SELECT "player" FROM "round_four" WHERE "nationality"='canada' AND "position"='left wing' AND "pick_num"='49';
```
## Task
Generate a SQL query to answer the following question:
`What Nationality is Dave Hynes?`

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

CREATE TABLE "round_four" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Nationality is Dave Hynes?`:
```sql
                SELECT "nationality" FROM "round_four" WHERE "player"='dave hynes';
```
## Task
Generate a SQL query to answer the following question:
`The Estevan Bruins (WCHL) are affiliated with what NHL team?`

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

CREATE TABLE "round_four" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Estevan Bruins (WCHL) are affiliated with what NHL team?`:
```sql
                SELECT "nhl_team" FROM "round_four" WHERE "college_junior_club_team"='estevan bruins (wchl)';
```
## Task
Generate a SQL query to answer the following question:
`what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3?`

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

CREATE TABLE "head_to_head_records_against_other_count" (
  "games" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_differential" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3?`:
```sql
                SELECT MAX("games") FROM "head_to_head_records_against_other_count" WHERE "goals_against"<14 AND "wins">1 AND "draws"<2 AND "goals_for"=3;
```
## Task
Generate a SQL query to answer the following question:
`what's the total win count for Games smaller than 7, and a Goals For larger than 2, and a Goals Against smaller than 6, and Draws of 1`

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

CREATE TABLE "head_to_head_records_against_other_count" (
  "games" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_differential" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the total win count for Games smaller than 7, and a Goals For larger than 2, and a Goals Against smaller than 6, and Draws of 1`:
```sql
                SELECT COUNT("wins") FROM "head_to_head_records_against_other_count" WHERE "games"<7 AND "goals_for">2 AND "goals_against"<6 AND "draws"=1;
```
## Task
Generate a SQL query to answer the following question:
`for a Goals Against smaller than 9, and a Goal Differential of 0, and a Draws smaller than 2, and a Wins of 1, what's the goal total?`

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

CREATE TABLE "head_to_head_records_against_other_count" (
  "games" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_differential" text
);
### SQL
Given the database schema, here is the SQL query that answers `for a Goals Against smaller than 9, and a Goal Differential of 0, and a Draws smaller than 2, and a Wins of 1, what's the goal total?`:
```sql
                SELECT SUM("goals_for") FROM "head_to_head_records_against_other_count" WHERE "goals_against"<9 AND "goal_differential"='0' AND "draws"<2 AND "wins"=1;
```
## Task
Generate a SQL query to answer the following question:
`What tournament happened on 12 november 2006?`

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

CREATE TABLE "singles_9_8_1" (
  "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 tournament happened on 12 november 2006?`:
```sql
                SELECT "tournament" FROM "singles_9_8_1" WHERE "date"='12 november 2006';
```
## Task
Generate a SQL query to answer the following question:
`what was the score on 6 june 2010?`

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

CREATE TABLE "singles_9_8_1" (
  "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 was the score on 6 june 2010?`:
```sql
                SELECT "score" FROM "singles_9_8_1" WHERE "date"='6 june 2010';
```
## Task
Generate a SQL query to answer the following question:
`When was the railmotor made?`

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

CREATE TABLE "belfast_and_county_down_railway" (
  "type" text,
  "fleet_numbers" text,
  "quantity_made" text,
  "manufacturer" text,
  "date_made" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the railmotor made?`:
```sql
                SELECT "date_made" FROM "belfast_and_county_down_railway" WHERE "type"='railmotor';
```
## Task
Generate a SQL query to answer the following question:
`What are the fleet number for the 4-6-4t locomotive?`

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

CREATE TABLE "belfast_and_county_down_railway" (
  "type" text,
  "fleet_numbers" text,
  "quantity_made" text,
  "manufacturer" text,
  "date_made" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the fleet number for the 4-6-4t locomotive?`:
```sql
                SELECT "fleet_numbers" FROM "belfast_and_county_down_railway" WHERE "type"='4-6-4t';
```
## Task
Generate a SQL query to answer the following question:
`How many fast laps have 0 points in the World Series by Nissan?`

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

CREATE TABLE "career_results" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "fast_laps" text,
  "points" text,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fast laps have 0 points in the World Series by Nissan?`:
```sql
                SELECT "fast_laps" FROM "career_results" WHERE "points"='0' AND "series"='world series by nissan';
```
## Task
Generate a SQL query to answer the following question:
`How many fast laps are in 6 races with 30 points in the World Series by Nissan?`

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

CREATE TABLE "career_results" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "fast_laps" text,
  "points" text,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fast laps are in 6 races with 30 points in the World Series by Nissan?`:
```sql
                SELECT "fast_laps" FROM "career_results" WHERE "series"='world series by nissan' AND "races"='6' AND "points"='30';
```
## Task
Generate a SQL query to answer the following question:
`Which team has the points category of test driver?`

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

CREATE TABLE "career_results" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "fast_laps" text,
  "points" text,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has the points category of test driver?`:
```sql
                SELECT "team" FROM "career_results" WHERE "points"='test driver';
```
## Task
Generate a SQL query to answer the following question:
`What is the position with 0 points in Season of 2007–08?`

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

CREATE TABLE "career_results" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "fast_laps" text,
  "points" text,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position with 0 points in Season of 2007–08?`:
```sql
                SELECT "pos" FROM "career_results" WHERE "points"='0' AND "season"='2007–08';
```
## Task
Generate a SQL query to answer the following question:
`tell me the Dates administered that sees a Steve Westly* of ––, an Antonio Villaraigosa* of ––, and 47% for jerry brown.`

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

CREATE TABLE "democratic_primary" (
  "poll_source" text,
  "dates_administered" text,
  "dianne_feinstein" text,
  "jerry_brown" text,
  "antonio_villaraigosa" text,
  "gavin_newsom" text,
  "john_garamendi" text,
  "jack_o_connell" text,
  "steve_westly" text,
  "bill_lockyer" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell me the Dates administered that sees a Steve Westly* of ––, an Antonio Villaraigosa* of ––, and 47% for jerry brown.`:
```sql
                SELECT "dates_administered" FROM "democratic_primary" WHERE "steve_westly"='––' AND "antonio_villaraigosa"='––' AND "jerry_brown"='47%';
```
## Task
Generate a SQL query to answer the following question:
`tell me the Antonio Villaraigosa* that has a Steve Westly* of ––, and 47% for jerry brown.`

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

CREATE TABLE "democratic_primary" (
  "poll_source" text,
  "dates_administered" text,
  "dianne_feinstein" text,
  "jerry_brown" text,
  "antonio_villaraigosa" text,
  "gavin_newsom" text,
  "john_garamendi" text,
  "jack_o_connell" text,
  "steve_westly" text,
  "bill_lockyer" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell me the Antonio Villaraigosa* that has a Steve Westly* of ––, and 47% for jerry brown.`:
```sql
                SELECT "antonio_villaraigosa" FROM "democratic_primary" WHERE "steve_westly"='––' AND "jerry_brown"='47%';
```
## Task
Generate a SQL query to answer the following question:
`Name the least year for wins more than 0`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least year for wins more than 0`:
```sql
                SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the least wins for 6 points`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least wins for 6 points`:
```sql
                SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "points"=6;
```
## Task
Generate a SQL query to answer the following question:
`Name the wins for 1963 bultaco`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the wins for 1963 bultaco`:
```sql
                SELECT "wins" FROM "motorcycle_grand_prix_results" WHERE "year"=1963 AND "team"='bultaco';
```
## Task
Generate a SQL query to answer the following question:
`Year larger than 2008, and a Nationality of director of lebanon is what director?`

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

CREATE TABLE "prize_winners" (
  "year" real,
  "film" text,
  "director" text,
  "nationality_of_director" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Year larger than 2008, and a Nationality of director of lebanon is what director?`:
```sql
                SELECT "director" FROM "prize_winners" WHERE "year">2008 AND "nationality_of_director"='lebanon';
```
## Task
Generate a SQL query to answer the following question:
`ilm of taukukauppiaat has how many total number of years?`

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

CREATE TABLE "prize_winners" (
  "year" real,
  "film" text,
  "director" text,
  "nationality_of_director" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `ilm of taukukauppiaat has how many total number of years?`:
```sql
                SELECT COUNT("year") FROM "prize_winners" WHERE "film"='taukukauppiaat';
```
## Task
Generate a SQL query to answer the following question:
`Award of troisième prix, and a Year smaller than 2010, and a Director of jan komasa is what film?`

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

CREATE TABLE "prize_winners" (
  "year" real,
  "film" text,
  "director" text,
  "nationality_of_director" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Award of troisième prix, and a Year smaller than 2010, and a Director of jan komasa is what film?`:
```sql
                SELECT "film" FROM "prize_winners" WHERE "award"='troisième prix' AND "year"<2010 AND "director"='jan komasa';
```
## Task
Generate a SQL query to answer the following question:
`Film of um sol alaranjado director is what nationality?`

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

CREATE TABLE "prize_winners" (
  "year" real,
  "film" text,
  "director" text,
  "nationality_of_director" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Film of um sol alaranjado director is what nationality?`:
```sql
                SELECT "nationality_of_director" FROM "prize_winners" WHERE "film"='um sol alaranjado';
```
## Task
Generate a SQL query to answer the following question:
`What is the position for round 5 from alabama state?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for round 5 from alabama state?`:
```sql
                SELECT "position" FROM "indianapolis_colts_draft_history" WHERE "round"=5 AND "college"='alabama state';
```
## Task
Generate a SQL query to answer the following question:
`what is the pick # when overall is more than 131, position is wide receiver and the round is less than 5?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the pick # when overall is more than 131, position is wide receiver and the round is less than 5?`:
```sql
                SELECT COUNT("pick_num") FROM "indianapolis_colts_draft_history" WHERE "overall">131 AND "position"='wide receiver' AND "round"<5;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest round for anthony gonzalez?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest round for anthony gonzalez?`:
```sql
                SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "name"='anthony gonzalez';
```
## Task
Generate a SQL query to answer the following question:
`How many times is brannon condren with and overall more than 131 drafted?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is brannon condren with and overall more than 131 drafted?`:
```sql
                SELECT COUNT("round") FROM "indianapolis_colts_draft_history" WHERE "name"='brannon condren' AND "overall">131;
```
## Task
Generate a SQL query to answer the following question:
`Which rider has the time of +31.426?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rider has the time of +31.426?`:
```sql
                SELECT "rider" FROM "moto_gp_classification" WHERE "time_retired"='+31.426';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid for the rider who rides a Suzuki and has the time of +1:01.894?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid for the rider who rides a Suzuki and has the time of +1:01.894?`:
```sql
                SELECT MAX("grid") FROM "moto_gp_classification" WHERE "manufacturer"='suzuki' AND "time_retired"='+1:01.894';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for Australia with a place of 4?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for Australia with a place of 4?`:
```sql
                SELECT "score" FROM "third_round" WHERE "country"='australia' AND "place"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the place of To par of e when Arron Oberholser was the player ?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of To par of e when Arron Oberholser was the player ?`:
```sql
                SELECT "place" FROM "third_round" WHERE "to_par"='e' AND "player"='arron oberholser';
```
## Task
Generate a SQL query to answer the following question:
`What is the score with a place of t6 for the player k.j. choi?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score with a place of t6 for the player k.j. choi?`:
```sql
                SELECT "score" FROM "third_round" WHERE "place"='t6' AND "player"='k.j. choi';
```
## Task
Generate a SQL query to answer the following question:
`What is the country for the player Tiger Woods?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country for the player Tiger Woods?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='tiger woods';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player with a score of 72-68-70=210?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player with a score of 72-68-70=210?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='72-68-70=210';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player with t6 as his place and a country of United states?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player with t6 as his place and a country of United states?`:
```sql
                SELECT "player" FROM "third_round" WHERE "place"='t6' AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the fineness of the 2008 chinese cuju sport Reverse?`

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

CREATE TABLE "150_yuan" (
  "year" real,
  "denomination" text,
  "reverse" text,
  "weight" text,
  "diameter" text,
  "fineness" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fineness of the 2008 chinese cuju sport Reverse?`:
```sql
                SELECT "fineness" FROM "150_yuan" WHERE "year"=2008 AND "reverse"='chinese cuju sport';
```
## Task
Generate a SQL query to answer the following question:
`What's the diameter of the 2006 equestrian Reverse?`

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

CREATE TABLE "150_yuan" (
  "year" real,
  "denomination" text,
  "reverse" text,
  "weight" text,
  "diameter" text,
  "fineness" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the diameter of the 2006 equestrian Reverse?`:
```sql
                SELECT "diameter" FROM "150_yuan" WHERE "year"=2006 AND "reverse"='equestrian';
```
## Task
Generate a SQL query to answer the following question:
`What denomination was produced in 2006?`

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

CREATE TABLE "150_yuan" (
  "year" real,
  "denomination" text,
  "reverse" text,
  "weight" text,
  "diameter" text,
  "fineness" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What denomination was produced in 2006?`:
```sql
                SELECT "denomination" FROM "150_yuan" WHERE "year"=2006;
```
## Task
Generate a SQL query to answer the following question:
`What was the fineness prior to 2007?`

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

CREATE TABLE "150_yuan" (
  "year" real,
  "denomination" text,
  "reverse" text,
  "weight" text,
  "diameter" text,
  "fineness" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the fineness prior to 2007?`:
```sql
                SELECT "fineness" FROM "150_yuan" WHERE "year"<2007;
```
## Task
Generate a SQL query to answer the following question:
`What does the ii Series weigh?`

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

CREATE TABLE "150_yuan" (
  "year" real,
  "denomination" text,
  "reverse" text,
  "weight" text,
  "diameter" text,
  "fineness" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What does the ii Series weigh?`:
```sql
                SELECT "weight" FROM "150_yuan" WHERE "series"='ii series';
```
## Task
Generate a SQL query to answer the following question:
`What loss has 10-16 as the record?`

### 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 `What loss has 10-16 as the record?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='10-16';
```
## Task
Generate a SQL query to answer the following question:
`What is the least attendance that has 3-5 as a record?`

### 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 `What is the least attendance that has 3-5 as a record?`:
```sql
                SELECT MIN("attendance") FROM "game_log" WHERE "record"='3-5';
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance for the date of april 4?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance for the date of april 4?`:
```sql
                SELECT AVG("attendance") FROM "game_log" WHERE "date"='april 4';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has april 2 as the date?`

### 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 `Which opponent has april 2 as the date?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='april 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Remark of Airline of Dutch Antilles Express?`

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

CREATE TABLE "current_fleet_size" (
  "rank" real,
  "airline" text,
  "country" text,
  "fleet_size" real,
  "remarks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Remark of Airline of Dutch Antilles Express?`:
```sql
                SELECT "remarks" FROM "current_fleet_size" WHERE "airline"='dutch antilles express';
```
## Task
Generate a SQL query to answer the following question:
`What Category has a Year that's smaller than 2006, has Result of Nominated, and a Title of Cold Feet?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Category has a Year that's smaller than 2006, has Result of Nominated, and a Title of Cold Feet?`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "year"<2006 AND "result"='nominated' AND "title"='cold feet';
```
## Task
Generate a SQL query to answer the following question:
`What is recorded as the lowest Year that has the Title of Cold Feet?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is recorded as the lowest Year that has the Title of Cold Feet?`:
```sql
                SELECT MIN("year") FROM "awards_and_nominations" WHERE "title"='cold feet';
```
## Task
Generate a SQL query to answer the following question:
`What Category has a Result of Nominated, Year of 2006, and the Title of Pierrepoint?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Category has a Result of Nominated, Year of 2006, and the Title of Pierrepoint?`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "result"='nominated' AND "year"=2006 AND "title"='pierrepoint';
```
## Task
Generate a SQL query to answer the following question:
`What Title is listed for the Year of 1999?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Title is listed for the Year of 1999?`:
```sql
                SELECT "title" FROM "awards_and_nominations" WHERE "year"=1999;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won?`:
```sql
                SELECT COUNT("year") FROM "awards_and_nominations" WHERE "title"='the queen' AND "award"='british academy film award' AND "result"='won';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game against Northwestern?`

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

CREATE TABLE "1942" (
  "date" text,
  "opponent" text,
  "city" text,
  "result" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game against Northwestern?`:
```sql
                SELECT "date" FROM "1942" WHERE "opponent"='northwestern';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the city was Louisville?`

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

CREATE TABLE "1942" (
  "date" text,
  "opponent" text,
  "city" text,
  "result" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the city was Louisville?`:
```sql
                SELECT "opponent" FROM "1942" WHERE "city"='louisville';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game against Minnesota?`

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

CREATE TABLE "1942" (
  "date" text,
  "opponent" text,
  "city" text,
  "result" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game against Minnesota?`:
```sql
                SELECT "score" FROM "1942" WHERE "opponent"='minnesota';
```
## Task
Generate a SQL query to answer the following question:
`On what date was a friendly competition and a result of 3–0?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was a friendly competition and a result of 3–0?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='friendly' AND "result"='3–0';
```
## Task
Generate a SQL query to answer the following question:
`When was the score 1–0, and the result  4–0?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the score 1–0, and the result  4–0?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "score"='1–0' AND "result"='4–0';
```
## Task
Generate a SQL query to answer the following question:
`What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2–0?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2–0?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "venue"='dakar , senegal' AND "date"='3 september 2011' AND "score"='2–0';
```
## Task
Generate a SQL query to answer the following question:
`Which time has a Rank larger than 3, and a Name of andrey kapralov?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which time has a Rank larger than 3, and a Name of andrey kapralov?`:
```sql
                SELECT "time" FROM "semifinal_2" WHERE "rank">3 AND "name"='andrey kapralov';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Name of igor koleda?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Name of igor koleda?`:
```sql
                SELECT "nationality" FROM "semifinal_2" WHERE "name"='igor koleda';
```
## Task
Generate a SQL query to answer the following question:
`Where is the headquarters of the getinge group located?`

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

CREATE TABLE "largest_nordic_companies_according_to_fo" (
  "rank" text,
  "company" text,
  "headquarters" text,
  "industry" text,
  "revenue_billion" real,
  "profits_billion" real,
  "s_asset_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the headquarters of the getinge group located?`:
```sql
                SELECT "headquarters" FROM "largest_nordic_companies_according_to_fo" WHERE "company"='getinge group';
```
## Task
Generate a SQL query to answer the following question:
`How much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1?`

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

CREATE TABLE "largest_nordic_companies_according_to_fo" (
  "rank" text,
  "company" text,
  "headquarters" text,
  "industry" text,
  "revenue_billion" real,
  "profits_billion" real,
  "s_asset_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1?`:
```sql
                SELECT COUNT("s_asset_billion") FROM "largest_nordic_companies_according_to_fo" WHERE "headquarters"='stockholm, sweden' AND "market_value_billion"<39.8 AND "revenue_billion">5.8 AND "profits_billion"=1.1;
```