cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the location on november 23?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location on november 23?`:
```sql
                SELECT "location" FROM "game_log" WHERE "date"='november 23';
```
## Task
Generate a SQL query to answer the following question:
`Name the highest Ends Lost which has an Shot % larger than 78, and a Ends Won smaller than 38?`

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

CREATE TABLE "round_robin" (
  "country" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest Ends Lost which has an Shot % larger than 78, and a Ends Won smaller than 38?`:
```sql
                SELECT MAX("ends_lost") FROM "round_robin" WHERE "shot_pct">78 AND "ends_won"<38;
```
## Task
Generate a SQL query to answer the following question:
`Name the Country which has Stolen Ends larger than 7, and a Skip of david murdoch?`

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

CREATE TABLE "round_robin" (
  "country" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Country which has Stolen Ends larger than 7, and a Skip of david murdoch?`:
```sql
                SELECT "country" FROM "round_robin" WHERE "stolen_ends">7 AND "skip"='david murdoch';
```
## Task
Generate a SQL query to answer the following question:
`Name the average Stolen Ends which has an Ends Lost smaller than 35?`

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

CREATE TABLE "round_robin" (
  "country" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Stolen Ends which has an Ends Lost smaller than 35?`:
```sql
                SELECT AVG("stolen_ends") FROM "round_robin" WHERE "ends_lost"<35;
```
## Task
Generate a SQL query to answer the following question:
`Name the average Blank Ends  which has a Shot % smaller than 78, and a Ends Won larger than 43?`

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

CREATE TABLE "round_robin" (
  "country" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Blank Ends  which has a Shot % smaller than 78, and a Ends Won larger than 43?`:
```sql
                SELECT AVG("blank_ends") FROM "round_robin" WHERE "shot_pct"<78 AND "ends_won">43;
```
## Task
Generate a SQL query to answer the following question:
`What rank has skyfall as the title?`

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

CREATE TABLE "highest_grossing_films_of_2012" (
  "rank" real,
  "title" text,
  "studio" text,
  "director_s" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has skyfall as the title?`:
```sql
                SELECT "rank" FROM "highest_grossing_films_of_2012" WHERE "title"='skyfall';
```
## Task
Generate a SQL query to answer the following question:
`What director(s) have the intouchables as the title?`

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

CREATE TABLE "highest_grossing_films_of_2012" (
  "rank" real,
  "title" text,
  "studio" text,
  "director_s" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What director(s) have the intouchables as the title?`:
```sql
                SELECT "director_s" FROM "highest_grossing_films_of_2012" WHERE "title"='the intouchables';
```
## Task
Generate a SQL query to answer the following question:
`What studio has 6 as the rank?`

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

CREATE TABLE "highest_grossing_films_of_2012" (
  "rank" real,
  "title" text,
  "studio" text,
  "director_s" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What studio has 6 as the rank?`:
```sql
                SELECT "studio" FROM "highest_grossing_films_of_2012" WHERE "rank"=6;
```
## Task
Generate a SQL query to answer the following question:
`How many ranks have $1,084,439,099 as the worldwide gross?`

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

CREATE TABLE "highest_grossing_films_of_2012" (
  "rank" real,
  "title" text,
  "studio" text,
  "director_s" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many ranks have $1,084,439,099 as the worldwide gross?`:
```sql
                SELECT SUM("rank") FROM "highest_grossing_films_of_2012" WHERE "worldwide_gross"='$1,084,439,099';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748?`

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

CREATE TABLE "distribution" (
  "macedonian_population_in_vojvodina" text,
  "1961" real,
  "number_1971" real,
  "1981" real,
  "1991" real,
  "2002" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748?`:
```sql
                SELECT "1981" FROM "distribution" WHERE "number_1971">192 AND "1991"=1748;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest 1971 number of the Macedonian population with a 2002 value greater than 133 and a 1991 value less than 171?`

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

CREATE TABLE "distribution" (
  "macedonian_population_in_vojvodina" text,
  "1961" real,
  "number_1971" real,
  "1981" real,
  "1991" real,
  "2002" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 1971 number of the Macedonian population with a 2002 value greater than 133 and a 1991 value less than 171?`:
```sql
                SELECT MIN("number_1971") FROM "distribution" WHERE "2002">133 AND "1991"<171;
```
## Task
Generate a SQL query to answer the following question:
`What is the total 1961 number of the plandište Macedonian population with a 1981 value greater than 1027?`

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

CREATE TABLE "distribution" (
  "macedonian_population_in_vojvodina" text,
  "1961" real,
  "number_1971" real,
  "1981" real,
  "1991" real,
  "2002" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total 1961 number of the plandište Macedonian population with a 1981 value greater than 1027?`:
```sql
                SELECT COUNT("1961") FROM "distribution" WHERE "macedonian_population_in_vojvodina"='plandište' AND "1981">1027;
```
## Task
Generate a SQL query to answer the following question:
`What is the 1961 total of the Macedonian population with a 1971 number of 3325 and a 1991 value greater than 3177?`

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

CREATE TABLE "distribution" (
  "macedonian_population_in_vojvodina" text,
  "1961" real,
  "number_1971" real,
  "1981" real,
  "1991" real,
  "2002" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1961 total of the Macedonian population with a 1971 number of 3325 and a 1991 value greater than 3177?`:
```sql
                SELECT COUNT("1961") FROM "distribution" WHERE "number_1971"=3325 AND "1991">3177;
```
## Task
Generate a SQL query to answer the following question:
`What airport is in Muscat?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What airport is in Muscat?`:
```sql
                SELECT "airport" FROM "references" WHERE "city"='muscat';
```
## Task
Generate a SQL query to answer the following question:
`What country is Bandar Abbas in?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Bandar Abbas in?`:
```sql
                SELECT "country" FROM "references" WHERE "city"='bandar abbas';
```
## Task
Generate a SQL query to answer the following question:
`What is the city in India with an airport named Sardar Vallabhbhai Patel International Airport?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the city in India with an airport named Sardar Vallabhbhai Patel International Airport?`:
```sql
                SELECT "city" FROM "references" WHERE "country"='india' AND "airport"='sardar vallabhbhai patel international airport';
```
## Task
Generate a SQL query to answer the following question:
`What airport is in China with an ICAO of zbaa?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What airport is in China with an ICAO of zbaa?`:
```sql
                SELECT "airport" FROM "references" WHERE "country"='china' AND "icao"='zbaa';
```
## Task
Generate a SQL query to answer the following question:
`What airport is in Toronto?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What airport is in Toronto?`:
```sql
                SELECT "airport" FROM "references" WHERE "city"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`What country has an ICAO of ypph?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has an ICAO of ypph?`:
```sql
                SELECT "country" FROM "references" WHERE "icao"='ypph';
```
## Task
Generate a SQL query to answer the following question:
`When the mark is 8.54, the reaction time was over 0.23800000000000002 seconds, what's the highest amount of points recorded?`

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

CREATE TABLE "60_metres_hurdles" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the mark is 8.54, the reaction time was over 0.23800000000000002 seconds, what's the highest amount of points recorded?`:
```sql
                SELECT MAX("points") FROM "60_metres_hurdles" WHERE "mark"='8.54' AND "react">0.23800000000000002;
```
## Task
Generate a SQL query to answer the following question:
`Which country has a reaction time of under 0.242 seconds and over 1041 points?`

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

CREATE TABLE "60_metres_hurdles" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a reaction time of under 0.242 seconds and over 1041 points?`:
```sql
                SELECT "country" FROM "60_metres_hurdles" WHERE "react"<0.242 AND "points">1041;
```
## Task
Generate a SQL query to answer the following question:
`If a country has 1008 points what's their reaction time?`

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

CREATE TABLE "60_metres_hurdles" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `If a country has 1008 points what's their reaction time?`:
```sql
                SELECT MAX("react") FROM "60_metres_hurdles" WHERE "points"=1008;
```
## Task
Generate a SQL query to answer the following question:
`Which wicket had 580 runs?`

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

CREATE TABLE "first_class_record_partnerships_by_wicke" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which wicket had 580 runs?`:
```sql
                SELECT "wicket" FROM "first_class_record_partnerships_by_wicke" WHERE "runs"='580';
```
## Task
Generate a SQL query to answer the following question:
`Who fielded against the 8th wicket?`

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

CREATE TABLE "first_class_record_partnerships_by_wicke" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who fielded against the 8th wicket?`:
```sql
                SELECT "fielding_team" FROM "first_class_record_partnerships_by_wicke" WHERE "wicket"='8th';
```
## Task
Generate a SQL query to answer the following question:
`How many runs did Vijay Hazare and Gul Mohammad score?`

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

CREATE TABLE "first_class_record_partnerships_by_wicke" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs did Vijay Hazare and Gul Mohammad score?`:
```sql
                SELECT "runs" FROM "first_class_record_partnerships_by_wicke" WHERE "batting_partners"='vijay hazare and gul mohammad';
```
## Task
Generate a SQL query to answer the following question:
`Who were the batting partners in Colombo?`

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

CREATE TABLE "first_class_record_partnerships_by_wicke" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the batting partners in Colombo?`:
```sql
                SELECT "batting_partners" FROM "first_class_record_partnerships_by_wicke" WHERE "venue"='colombo';
```
## Task
Generate a SQL query to answer the following question:
`Who was the batting team in the 2006 season?`

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

CREATE TABLE "first_class_record_partnerships_by_wicke" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the batting team in the 2006 season?`:
```sql
                SELECT "batting_team" FROM "first_class_record_partnerships_by_wicke" WHERE "season"='2006';
```
## Task
Generate a SQL query to answer the following question:
`In what season was 577 runs scored?`

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

CREATE TABLE "first_class_record_partnerships_by_wicke" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what season was 577 runs scored?`:
```sql
                SELECT "season" FROM "first_class_record_partnerships_by_wicke" WHERE "runs"='577';
```
## Task
Generate a SQL query to answer the following question:
`What opposing team has 20 against?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opposing team has 20 against?`:
```sql
                SELECT "opposing_team" FROM "matches" WHERE "against"=20;
```
## Task
Generate a SQL query to answer the following question:
`Venue for Hawke's bay?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Venue for Hawke's bay?`:
```sql
                SELECT "venue" FROM "matches" WHERE "opposing_team"='hawke''s bay';
```
## Task
Generate a SQL query to answer the following question:
`What is the average December, when Game is "36"?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average December, when Game is "36"?`:
```sql
                SELECT AVG("december") FROM "schedule_and_results" WHERE "game"=36;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Game, when December is greater than 13, and when Score is "5 - 0"?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Game, when December is greater than 13, and when Score is "5 - 0"?`:
```sql
                SELECT MIN("game") FROM "schedule_and_results" WHERE "december">13 AND "score"='5 - 0';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of December, when Game is greater than 31, and when Score is "5 - 2"?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of December, when Game is greater than 31, and when Score is "5 - 2"?`:
```sql
                SELECT SUM("december") FROM "schedule_and_results" WHERE "game">31 AND "score"='5 - 2';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Game is "36"?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Game is "36"?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "game"=36;
```
## Task
Generate a SQL query to answer the following question:
`What was the away team that played against home team Leatherhead?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team that played against home team Leatherhead?`:
```sql
                SELECT "away_team" FROM "fourth_round_proper" WHERE "home_team"='leatherhead';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the match played against away team Arsenal?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the match played against away team Arsenal?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "away_team"='arsenal';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0?`

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

CREATE TABLE "election_results" (
  "election" real,
  "candidates_fielded" real,
  "num_of_seats_won" real,
  "total_votes" real,
  "pct_of_popular_vote" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0?`:
```sql
                SELECT MAX("total_votes") FROM "election_results" WHERE "pct_of_popular_vote"='0.86%' AND "num_of_seats_won">0;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the average Total votes that has the # of seats won smaller than 0?`

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

CREATE TABLE "election_results" (
  "election" real,
  "candidates_fielded" real,
  "num_of_seats_won" real,
  "total_votes" real,
  "pct_of_popular_vote" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the average Total votes that has the # of seats won smaller than 0?`:
```sql
                SELECT AVG("total_votes") FROM "election_results" WHERE "num_of_seats_won"<0;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Total votes that has the Election larger than 2009, and the Candidates fielded larger than 61?`

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

CREATE TABLE "election_results" (
  "election" real,
  "candidates_fielded" real,
  "num_of_seats_won" real,
  "total_votes" real,
  "pct_of_popular_vote" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Total votes that has the Election larger than 2009, and the Candidates fielded larger than 61?`:
```sql
                SELECT COUNT("total_votes") FROM "election_results" WHERE "election">2009 AND "candidates_fielded">61;
```
## Task
Generate a SQL query to answer the following question:
`Which tournament did the opponent Guillermo Carry play?`

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

CREATE TABLE "singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament did the opponent Guillermo Carry play?`:
```sql
                SELECT "tournament" FROM "singles_titles" WHERE "opponent"='guillermo carry';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on April 21, 2008?`

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

CREATE TABLE "singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on April 21, 2008?`:
```sql
                SELECT "opponent" FROM "singles_titles" WHERE "date"='april 21, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on November 22, 2009, clay surface?`

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

CREATE TABLE "singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on November 22, 2009, clay surface?`:
```sql
                SELECT "opponent" FROM "singles_titles" WHERE "surface"='clay' AND "date"='november 22, 2009';
```
## Task
Generate a SQL query to answer the following question:
`Which Laps have a Grid larger than 8, and a Rider of anthony west?`

### 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" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Laps have a Grid larger than 8, and a Rider of anthony west?`:
```sql
                SELECT MAX("laps") FROM "moto_gp_classification" WHERE "grid">8 AND "rider"='anthony west';
```
## Task
Generate a SQL query to answer the following question:
`Which time has a Rider of anthony west?`

### 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" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which time has a Rider of anthony west?`:
```sql
                SELECT "time" FROM "moto_gp_classification" WHERE "rider"='anthony west';
```
## Task
Generate a SQL query to answer the following question:
`Which Grid is the highest one that has a Rider of colin edwards, and Laps smaller than 28?`

### 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" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid is the highest one that has a Rider of colin edwards, and Laps smaller than 28?`:
```sql
                SELECT MAX("grid") FROM "moto_gp_classification" WHERE "rider"='colin edwards' AND "laps"<28;
```
## Task
Generate a SQL query to answer the following question:
`Which Laps have a Rider of andrea dovizioso?`

### 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" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Laps have a Rider of andrea dovizioso?`:
```sql
                SELECT MIN("laps") FROM "moto_gp_classification" WHERE "rider"='andrea dovizioso';
```
## Task
Generate a SQL query to answer the following question:
`What college/junior/club team had a player selected in round 6?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college/junior/club team had a player selected in round 6?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round"=6;
```
## Task
Generate a SQL query to answer the following question:
`What round of the draft was Stan Adams selected?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round of the draft was Stan Adams selected?`:
```sql
                SELECT AVG("round") FROM "draft_picks" WHERE "player"='stan adams';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance for the t7-7 result?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance for the t7-7 result?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "result"='t7-7';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for 45,000 in attendance?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for 45,000 in attendance?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='45,000';
```
## Task
Generate a SQL query to answer the following question:
`How many strokes under par was the player who scored 71?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many strokes under par was the player who scored 71?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "score"=71;
```
## Task
Generate a SQL query to answer the following question:
`What place is Jay Hebert?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place is Jay Hebert?`:
```sql
                SELECT "place" FROM "first_round" WHERE "player"='jay hebert';
```
## Task
Generate a SQL query to answer the following question:
`Which Games lost has Points against of 61, and Points difference smaller than 42?`

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

CREATE TABLE "winners" (
  "year" real,
  "games_played" real,
  "games_won" real,
  "games_drawn" real,
  "games_lost" real,
  "points_for" real,
  "points_against" real,
  "points_difference" real,
  "bonus_points" real,
  "table_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Games lost has Points against of 61, and Points difference smaller than 42?`:
```sql
                SELECT SUM("games_lost") FROM "winners" WHERE "points_against"=61 AND "points_difference"<42;
```
## Task
Generate a SQL query to answer the following question:
`Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152?`

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

CREATE TABLE "winners" (
  "year" real,
  "games_played" real,
  "games_won" real,
  "games_drawn" real,
  "games_lost" real,
  "points_for" real,
  "points_against" real,
  "points_difference" real,
  "bonus_points" real,
  "table_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152?`:
```sql
                SELECT COUNT("games_won") FROM "winners" WHERE "bonus_points">1 AND "points_difference"<50 AND "points_against"=106 AND "points_for"<152;
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Record of 1-2?`

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

CREATE TABLE "stanley_cup_playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Record of 1-2?`:
```sql
                SELECT "score" FROM "stanley_cup_playoffs" WHERE "record"='1-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record for April 15?`

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

CREATE TABLE "stanley_cup_playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record for April 15?`:
```sql
                SELECT "record" FROM "stanley_cup_playoffs" WHERE "date"='april 15';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record for April 13?`

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

CREATE TABLE "stanley_cup_playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record for April 13?`:
```sql
                SELECT "record" FROM "stanley_cup_playoffs" WHERE "date"='april 13';
```
## Task
Generate a SQL query to answer the following question:
`On April 15 who is the Home team?`

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

CREATE TABLE "stanley_cup_playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On April 15 who is the Home team?`:
```sql
                SELECT "home" FROM "stanley_cup_playoffs" WHERE "date"='april 15';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Date of december 22, 1985, and a Week smaller than 16?`

### 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 `Which Attendance has a Date of december 22, 1985, and a Week smaller than 16?`:
```sql
                SELECT SUM("attendance") FROM "schedule" WHERE "date"='december 22, 1985' AND "week"<16;
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Result of w 23-21, and a Week smaller 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 `Which Attendance has a Result of w 23-21, and a Week smaller than 5?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "result"='w 23-21' AND "week"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which Week has a Result of w 20-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 `Which Week has a Result of w 20-13?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "result"='w 20-13';
```
## Task
Generate a SQL query to answer the following question:
`What are the Japanese characters for the Chinese word 叉焼?`

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

CREATE TABLE "examples_of_chinese_loanwords_in_japanes" (
  "japanese" text,
  "r_maji" text,
  "meaning" text,
  "chinese" text,
  "romanization" text,
  "source_language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Japanese characters for the Chinese word 叉焼?`:
```sql
                SELECT "japanese" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "chinese"='叉焼';
```
## Task
Generate a SQL query to answer the following question:
`What language did the word that means mahjong first come from?`

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

CREATE TABLE "examples_of_chinese_loanwords_in_japanes" (
  "japanese" text,
  "r_maji" text,
  "meaning" text,
  "chinese" text,
  "romanization" text,
  "source_language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language did the word that means mahjong first come from?`:
```sql
                SELECT "source_language" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "meaning"='mahjong';
```
## Task
Generate a SQL query to answer the following question:
`What is the Romanization of the Mandarin word whose Rōmaji is ūroncha`

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

CREATE TABLE "examples_of_chinese_loanwords_in_japanes" (
  "japanese" text,
  "r_maji" text,
  "meaning" text,
  "chinese" text,
  "romanization" text,
  "source_language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Romanization of the Mandarin word whose Rōmaji is ūroncha`:
```sql
                SELECT "romanization" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "source_language"='mandarin' AND "r_maji"='ūroncha';
```
## Task
Generate a SQL query to answer the following question:
`What language did the word mahjong originate from?`

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

CREATE TABLE "examples_of_chinese_loanwords_in_japanes" (
  "japanese" text,
  "r_maji" text,
  "meaning" text,
  "chinese" text,
  "romanization" text,
  "source_language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language did the word mahjong originate from?`:
```sql
                SELECT "source_language" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "meaning"='mahjong';
```
## Task
Generate a SQL query to answer the following question:
`What are the Chinese characters for the word that has a Rōmaji of chāshū?`

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

CREATE TABLE "examples_of_chinese_loanwords_in_japanes" (
  "japanese" text,
  "r_maji" text,
  "meaning" text,
  "chinese" text,
  "romanization" text,
  "source_language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Chinese characters for the word that has a Rōmaji of chāshū?`:
```sql
                SELECT "chinese" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "r_maji"='chāshū';
```
## Task
Generate a SQL query to answer the following question:
`What was the category of Richard Nixon as President in a year prior to 2009?`

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

CREATE TABLE "academy_awards_actual_presidents" (
  "year" real,
  "category" text,
  "president" text,
  "nominee" text,
  "film" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the category of Richard Nixon as President in a year prior to 2009?`:
```sql
                SELECT "category" FROM "academy_awards_actual_presidents" WHERE "president"='richard nixon' AND "year"<2009;
```
## Task
Generate a SQL query to answer the following question:
`What is the film that Raymond Massey was nominated for?`

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

CREATE TABLE "academy_awards_actual_presidents" (
  "year" real,
  "category" text,
  "president" text,
  "nominee" text,
  "film" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the film that Raymond Massey was nominated for?`:
```sql
                SELECT "film" FROM "academy_awards_actual_presidents" WHERE "nominee"='raymond massey';
```
## Task
Generate a SQL query to answer the following question:
`What was the film of Richard Nixon as President in a year newer than 1996?`

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

CREATE TABLE "academy_awards_actual_presidents" (
  "year" real,
  "category" text,
  "president" text,
  "nominee" text,
  "film" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the film of Richard Nixon as President in a year newer than 1996?`:
```sql
                SELECT "film" FROM "academy_awards_actual_presidents" WHERE "president"='richard nixon' AND "year">1996;
```
## Task
Generate a SQL query to answer the following question:
`WHich Partner has a Outcome of winner, and a Opponents in the final of rick leach jim pugh?`

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

CREATE TABLE "doubles_champion_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Partner has a Outcome of winner, and a Opponents in the final of rick leach jim pugh?`:
```sql
                SELECT "partner" FROM "doubles_champion_12" WHERE "outcome"='winner' AND "opponents_in_the_final"='rick leach jim pugh';
```
## Task
Generate a SQL query to answer the following question:
`Which Score in the final has a Surface of hard on august 20, 1989?`

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

CREATE TABLE "doubles_champion_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score in the final has a Surface of hard on august 20, 1989?`:
```sql
                SELECT "score_in_the_final" FROM "doubles_champion_12" WHERE "surface"='hard' AND "date"='august 20, 1989';
```
## Task
Generate a SQL query to answer the following question:
`Name the Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?`

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

CREATE TABLE "doubles_champion_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?`:
```sql
                SELECT "outcome" FROM "doubles_champion_12" WHERE "score_in_the_final"='4–6, 4–6' AND "date"='october 21, 1990';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Score in the final of 7–5, 6–4?`

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

CREATE TABLE "doubles_champion_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Score in the final of 7–5, 6–4?`:
```sql
                SELECT "tournament" FROM "doubles_champion_12" WHERE "score_in_the_final"='7–5, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`Name the Score which has a Partner of jorge lozano, an Outcome of runner-up, and Opponents in the final of udo riglewski michael stich?`

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

CREATE TABLE "doubles_champion_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Score which has a Partner of jorge lozano, an Outcome of runner-up, and Opponents in the final of udo riglewski michael stich?`:
```sql
                SELECT "score_in_the_final" FROM "doubles_champion_12" WHERE "partner"='jorge lozano' AND "outcome"='runner-up' AND "opponents_in_the_final"='udo riglewski michael stich';
```
## Task
Generate a SQL query to answer the following question:
`Name the Date which has Opponents in the final of patrick mcenroe tim wilkison?`

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

CREATE TABLE "doubles_champion_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Date which has Opponents in the final of patrick mcenroe tim wilkison?`:
```sql
                SELECT "date" FROM "doubles_champion_12" WHERE "opponents_in_the_final"='patrick mcenroe tim wilkison';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of goals that have games under 11, debut round over 15, and age of 20 years, 71 days?`

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

CREATE TABLE "players_who_made_their_afl_debut_during_" (
  "name" text,
  "club" text,
  "age_at_debut" text,
  "debut_round" real,
  "games_2008" real,
  "goals_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of goals that have games under 11, debut round over 15, and age of 20 years, 71 days?`:
```sql
                SELECT COUNT("goals_2008") FROM "players_who_made_their_afl_debut_during_" WHERE "games_2008"<11 AND "debut_round">15 AND "age_at_debut"='20 years, 71 days';
```
## Task
Generate a SQL query to answer the following question:
`What is the name that has a debut round over 14, games under 2, and a club of Melbourne?`

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

CREATE TABLE "players_who_made_their_afl_debut_during_" (
  "name" text,
  "club" text,
  "age_at_debut" text,
  "debut_round" real,
  "games_2008" real,
  "goals_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name that has a debut round over 14, games under 2, and a club of Melbourne?`:
```sql
                SELECT "name" FROM "players_who_made_their_afl_debut_during_" WHERE "debut_round">14 AND "games_2008"<2 AND "club"='melbourne';
```