cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which role had a closing broadway cast of Adam Grupper?`

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

CREATE TABLE "casts" (
  "role" text,
  "original_broadway_cast" text,
  "closing_broadway_cast" text,
  "original_us_tour_cast" text,
  "original_non_equity_tour_cast" text,
  "original_s_o_paulo_cast" text,
  "original_lima_cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which role had a closing broadway cast of Adam Grupper?`:
```sql
                SELECT "role" FROM "casts" WHERE "closing_broadway_cast"='adam grupper';
```
## Task
Generate a SQL query to answer the following question:
`What was the original US Tour cast when the original broadway was Kevin Chamberlin?`

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

CREATE TABLE "casts" (
  "role" text,
  "original_broadway_cast" text,
  "closing_broadway_cast" text,
  "original_us_tour_cast" text,
  "original_non_equity_tour_cast" text,
  "original_s_o_paulo_cast" text,
  "original_lima_cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original US Tour cast when the original broadway was Kevin Chamberlin?`:
```sql
                SELECT "original_us_tour_cast" FROM "casts" WHERE "original_broadway_cast"='kevin chamberlin';
```
## Task
Generate a SQL query to answer the following question:
`What was the original nonequity tour when the original broadway was Kevin Chamberlin?`

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

CREATE TABLE "casts" (
  "role" text,
  "original_broadway_cast" text,
  "closing_broadway_cast" text,
  "original_us_tour_cast" text,
  "original_non_equity_tour_cast" text,
  "original_s_o_paulo_cast" text,
  "original_lima_cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original nonequity tour when the original broadway was Kevin Chamberlin?`:
```sql
                SELECT "original_non_equity_tour_cast" FROM "casts" WHERE "original_broadway_cast"='kevin chamberlin';
```
## Task
Generate a SQL query to answer the following question:
`What was the role when the original broadway was Adam Riegler?`

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

CREATE TABLE "casts" (
  "role" text,
  "original_broadway_cast" text,
  "closing_broadway_cast" text,
  "original_us_tour_cast" text,
  "original_non_equity_tour_cast" text,
  "original_s_o_paulo_cast" text,
  "original_lima_cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the role when the original broadway was Adam Riegler?`:
```sql
                SELECT "role" FROM "casts" WHERE "original_broadway_cast"='adam riegler';
```
## Task
Generate a SQL query to answer the following question:
`What is the number for the international with 669 domestic earlier than 2005?`

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

CREATE TABLE "annual_passenger_statistics_for_enonteki" (
  "year" real,
  "domestic" real,
  "international" real,
  "total" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for the international with 669 domestic earlier than 2005?`:
```sql
                SELECT AVG("international") FROM "annual_passenger_statistics_for_enonteki" WHERE "domestic"=669 AND "year"<2005;
```
## Task
Generate a SQL query to answer the following question:
`What year was the international lower than 17,517 and domestic was less than 545?`

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

CREATE TABLE "annual_passenger_statistics_for_enonteki" (
  "year" real,
  "domestic" real,
  "international" real,
  "total" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the international lower than 17,517 and domestic was less than 545?`:
```sql
                SELECT AVG("year") FROM "annual_passenger_statistics_for_enonteki" WHERE "international"<'17,517' AND "domestic"<545;
```
## Task
Generate a SQL query to answer the following question:
`What was the score on 14 march 2004?`

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

CREATE TABLE "league_cup" (
  "season" text,
  "date" text,
  "winners" text,
  "finalists" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 14 march 2004?`:
```sql
                SELECT "score" FROM "league_cup" WHERE "date"='14 march 2004';
```
## Task
Generate a SQL query to answer the following question:
`In what season was Kilmarnock a finalist and Hibernian the winner?`

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

CREATE TABLE "league_cup" (
  "season" text,
  "date" text,
  "winners" text,
  "finalists" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what season was Kilmarnock a finalist and Hibernian the winner?`:
```sql
                SELECT "season" FROM "league_cup" WHERE "winners"='hibernian' AND "finalists"='kilmarnock';
```
## Task
Generate a SQL query to answer the following question:
`Who were the finalists in the 1972–73 season?`

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

CREATE TABLE "league_cup" (
  "season" text,
  "date" text,
  "winners" text,
  "finalists" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the finalists in the 1972–73 season?`:
```sql
                SELECT "finalists" FROM "league_cup" WHERE "season"='1972–73';
```
## Task
Generate a SQL query to answer the following question:
`In which season did the Rangers win with a score of 2–1?`

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

CREATE TABLE "league_cup" (
  "season" text,
  "date" text,
  "winners" text,
  "finalists" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season did the Rangers win with a score of 2–1?`:
```sql
                SELECT "season" FROM "league_cup" WHERE "score"='2–1' AND "winners"='rangers';
```
## Task
Generate a SQL query to answer the following question:
`When did Motherwell win?`

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

CREATE TABLE "league_cup" (
  "season" text,
  "date" text,
  "winners" text,
  "finalists" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Motherwell win?`:
```sql
                SELECT "date" FROM "league_cup" WHERE "winners"='motherwell';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8?`

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

CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
  "state" text,
  "city" text,
  "population" real,
  "violent_crime" text,
  "murder_and_non_negligent_manslaughter" real,
  "forcible_rape" text,
  "robbery" real,
  "aggravated_assault" real,
  "property_crime" text,
  "burglary" real,
  "larceny_theft" text,
  "motor_vehicle_theft" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8?`:
```sql
                SELECT MIN("burglary") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "forcible_rape"='39.1' AND "motor_vehicle_theft"<568.8;
```
## Task
Generate a SQL query to answer the following question:
`When population is greater than 832,901 and murder and non-negligent manslaughter is 11.6, what is the smallest burglary?`

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

CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
  "state" text,
  "city" text,
  "population" real,
  "violent_crime" text,
  "murder_and_non_negligent_manslaughter" real,
  "forcible_rape" text,
  "robbery" real,
  "aggravated_assault" real,
  "property_crime" text,
  "burglary" real,
  "larceny_theft" text,
  "motor_vehicle_theft" real
);
### SQL
Given the database schema, here is the SQL query that answers `When population is greater than 832,901 and murder and non-negligent manslaughter is 11.6, what is the smallest burglary?`:
```sql
                SELECT MIN("burglary") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "population">'832,901' AND "murder_and_non_negligent_manslaughter"=11.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0?`

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

CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
  "state" text,
  "city" text,
  "population" real,
  "violent_crime" text,
  "murder_and_non_negligent_manslaughter" real,
  "forcible_rape" text,
  "robbery" real,
  "aggravated_assault" real,
  "property_crime" text,
  "burglary" real,
  "larceny_theft" text,
  "motor_vehicle_theft" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0?`:
```sql
                SELECT SUM("murder_and_non_negligent_manslaughter") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "larceny_theft"='3,693.9' AND "burglary">'1,027.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the name for district total:?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for district total:?`:
```sql
                SELECT "name" FROM "assembly_segments" WHERE "district"='total:';
```
## Task
Generate a SQL query to answer the following question:
`What is the electorates in 2009 for Modi Nagar?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the electorates in 2009 for Modi Nagar?`:
```sql
                SELECT AVG("number_of_electorates_2009") FROM "assembly_segments" WHERE "name"='modi nagar';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on 12 May, when the match day was more than 33?`

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

CREATE TABLE "scottish_premier_league" (
  "match_day" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "score" text,
  "attendance" real,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on 12 May, when the match day was more than 33?`:
```sql
                SELECT "opponent" FROM "scottish_premier_league" WHERE "match_day">33 AND "date"='12 may';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest issue date for an album that reached position of 3?`

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

CREATE TABLE "top_10_albums" (
  "issue_date" real,
  "album_title" text,
  "artist" text,
  "sales" real,
  "highest_position" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest issue date for an album that reached position of 3?`:
```sql
                SELECT MAX("issue_date") FROM "top_10_albums" WHERE "highest_position"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the record on March 16?`

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

CREATE TABLE "game_log" (
  "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 on March 16?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='march 16';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on January 23?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on January 23?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='january 23';
```
## Task
Generate a SQL query to answer the following question:
`How many strokes off par was the player who scored 157?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many strokes off par was the player who scored 157?`:
```sql
                SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "total"=157;
```
## Task
Generate a SQL query to answer the following question:
`Which player who won in 1977 and scored great than 155 was the closest to par?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player who won in 1977 and scored great than 155 was the closest to par?`:
```sql
                SELECT MAX("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1977' AND "total">155;
```
## Task
Generate a SQL query to answer the following question:
`What country was the player who was 11 off par from?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the player who was 11 off par from?`:
```sql
                SELECT "country" FROM "missed_the_cut" WHERE "to_par"=11;
```
## Task
Generate a SQL query to answer the following question:
`What was the Home team in Tie no 16?`

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

CREATE TABLE "second_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 Home team in Tie no 16?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "tie_no"='16';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of Tie no 9?`

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

CREATE TABLE "second_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 is the Date of Tie no 9?`:
```sql
                SELECT "date" FROM "second_round_proper" WHERE "tie_no"='9';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score in Tie 2?`

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

CREATE TABLE "second_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 is the Score in Tie 2?`:
```sql
                SELECT "score" FROM "second_round_proper" WHERE "tie_no"='2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tie no when Scarborough is the Home team?`

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

CREATE TABLE "second_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 is the Tie no when Scarborough is the Home team?`:
```sql
                SELECT "tie_no" FROM "second_round_proper" WHERE "home_team"='scarborough';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tie no when Swansea City is the Away team with a Score of 2–2?`

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

CREATE TABLE "second_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 is the Tie no when Swansea City is the Away team with a Score of 2–2?`:
```sql
                SELECT "tie_no" FROM "second_round_proper" WHERE "score"='2–2' AND "away_team"='swansea city';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of constituency 5?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of constituency 5?`:
```sql
                SELECT "name" FROM "assembly_segments" WHERE "constituency_number"='5';
```
## Task
Generate a SQL query to answer the following question:
`What label is released on September 20, 2005?`

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

CREATE TABLE "studio_albums" (
  "date_of_release" text,
  "title" text,
  "billboard_peak" real,
  "riaa_cert" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What label is released on September 20, 2005?`:
```sql
                SELECT "label" FROM "studio_albums" WHERE "date_of_release"='september 20, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total with an all around of 10 and a rope higher than 10?`

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

CREATE TABLE "individual_rope" (
  "place" real,
  "name" text,
  "all_around" real,
  "rope" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total with an all around of 10 and a rope higher than 10?`:
```sql
                SELECT MIN("total") FROM "individual_rope" WHERE "all_around"=10 AND "rope">10;
```
## Task
Generate a SQL query to answer the following question:
`What is Bianka Panova's highest total with lower than place 1?`

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

CREATE TABLE "individual_rope" (
  "place" real,
  "name" text,
  "all_around" real,
  "rope" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Bianka Panova's highest total with lower than place 1?`:
```sql
                SELECT MAX("total") FROM "individual_rope" WHERE "name"='bianka panova' AND "place"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is Milena Reljin's place with a smaller than 9.8 rope?`

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

CREATE TABLE "individual_rope" (
  "place" real,
  "name" text,
  "all_around" real,
  "rope" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Milena Reljin's place with a smaller than 9.8 rope?`:
```sql
                SELECT "place" FROM "individual_rope" WHERE "rope"<9.8 AND "name"='milena reljin';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest game with a 24-23 record?`

### 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,
  "result" text,
  "hornets_score" real,
  "opponent_score" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest game with a 24-23 record?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "record"='24-23';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest game with a 1-0 record, and the Hornets scored more than 100?`

### 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,
  "result" text,
  "hornets_score" real,
  "opponent_score" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest game with a 1-0 record, and the Hornets scored more than 100?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "record"='1-0' AND "hornets_score">100;
```
## Task
Generate a SQL query to answer the following question:
`When was Daniel Moro born?`

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

CREATE TABLE "spain" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Daniel Moro born?`:
```sql
                SELECT "date_of_birth" FROM "spain" WHERE "name"='daniel moro';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the player than won $450?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the player than won $450?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "money"=450;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the player that had a to par score of +9 and took home less than $1,000?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the player that had a to par score of +9 and took home less than $1,000?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "money"<'1,000' AND "to_par"='+9';
```
## Task
Generate a SQL query to answer the following question:
`What place did the player that took won $350 finish in?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What place did the player that took won $350 finish in?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "money"=350;
```
## Task
Generate a SQL query to answer the following question:
`Which player had a score of 71-73-68-75=287?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had a score of 71-73-68-75=287?`:
```sql
                SELECT "player" FROM "final_leaderboard" WHERE "score"='71-73-68-75=287';
```
## Task
Generate a SQL query to answer the following question:
`What is Year, when Name is "Dong Shihou, 29 (董世侯)"?`

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

CREATE TABLE "other_incidents" (
  "name" text,
  "date" text,
  "year" real,
  "location" text,
  "killed" text,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Year, when Name is "Dong Shihou, 29 (董世侯)"?`:
```sql
                SELECT "year" FROM "other_incidents" WHERE "name"='dong shihou, 29 (董世侯)';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Location is "DZ"?`

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

CREATE TABLE "other_incidents" (
  "name" text,
  "date" text,
  "year" real,
  "location" text,
  "killed" text,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Location is "DZ"?`:
```sql
                SELECT "name" FROM "other_incidents" WHERE "location"='dz';
```
## Task
Generate a SQL query to answer the following question:
`What is Injured, when Date is "09.15 Sep. 15"?`

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

CREATE TABLE "other_incidents" (
  "name" text,
  "date" text,
  "year" real,
  "location" text,
  "killed" text,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Injured, when Date is "09.15 Sep. 15"?`:
```sql
                SELECT "injured" FROM "other_incidents" WHERE "date"='09.15 sep. 15';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Name is "Guay, Albert , 32"?`

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

CREATE TABLE "other_incidents" (
  "name" text,
  "date" text,
  "year" real,
  "location" text,
  "killed" text,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Name is "Guay, Albert , 32"?`:
```sql
                SELECT "date" FROM "other_incidents" WHERE "name"='guay, albert , 32';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest grid for rider Fonsi Nieto?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest grid for rider Fonsi Nieto?`:
```sql
                SELECT MAX("grid") FROM "superbike_race_2_classification" WHERE "rider"='fonsi nieto';
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of Laps for the rider whose time was +7.951?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of Laps for the rider whose time was +7.951?`:
```sql
                SELECT COUNT("laps") FROM "superbike_race_2_classification" WHERE "time"='+7.951';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of laps for rider Shuhei Aoyama in a grid higher than 24?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of laps for rider Shuhei Aoyama in a grid higher than 24?`:
```sql
                SELECT MAX("laps") FROM "superbike_race_2_classification" WHERE "rider"='shuhei aoyama' AND "grid">24;
```
## Task
Generate a SQL query to answer the following question:
`What was the grid for rider Russell Holland, riding a Honda CBR1000rr?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the grid for rider Russell Holland, riding a Honda CBR1000rr?`:
```sql
                SELECT "grid" FROM "superbike_race_2_classification" WHERE "bike"='honda cbr1000rr' AND "rider"='russell holland';
```
## Task
Generate a SQL query to answer the following question:
`Who was the rider who went 14 laps on a Honda CBR1000rr, with a time of +1'04.877 on a grid larger than 23?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the rider who went 14 laps on a Honda CBR1000rr, with a time of +1'04.877 on a grid larger than 23?`:
```sql
                SELECT "rider" FROM "superbike_race_2_classification" WHERE "laps"=14 AND "grid">23 AND "bike"='honda cbr1000rr' AND "time"='+1''04.877';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year with a Drama Desk award when the Mineola Twins was a nominated work?`

### 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,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year with a Drama Desk award when the Mineola Twins was a nominated work?`:
```sql
                SELECT MIN("year") FROM "awards_and_nominations" WHERE "award"='drama desk award' AND "nominated_work"='the mineola twins';
```
## Task
Generate a SQL query to answer the following question:
`Which nominated work is in the category of best performance by a leading actress in a play earlier than 2007?`

### 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,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nominated work is in the category of best performance by a leading actress in a play earlier than 2007?`:
```sql
                SELECT "nominated_work" FROM "awards_and_nominations" WHERE "category"='best performance by a leading actress in a play' AND "year"<2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year that the Mineola Twins was nominated for outstanding actress in a play and a Drama Desk award?`

### 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,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year that the Mineola Twins was nominated for outstanding actress in a play and a Drama Desk award?`:
```sql
                SELECT MAX("year") FROM "awards_and_nominations" WHERE "nominated_work"='the mineola twins' AND "category"='outstanding actress in a play' AND "award"='drama desk award';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for the Outer Critics Circle award earlier than 2004?`

### 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,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for the Outer Critics Circle award earlier than 2004?`:
```sql
                SELECT "result" FROM "awards_and_nominations" WHERE "award"='outer critics circle award' AND "year"<2004;
```
## Task
Generate a SQL query to answer the following question:
`In what year was The House of Blue Leaves nominated for outstanding actress in a play?`

### 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,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was The House of Blue Leaves nominated for outstanding actress in a play?`:
```sql
                SELECT SUM("year") FROM "awards_and_nominations" WHERE "nominated_work"='the house of blue leaves' AND "category"='outstanding actress in a play';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Total smaller than 284?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Total smaller than 284?`:
```sql
                SELECT "country" FROM "made_the_cut" WHERE "total"<284;
```
## Task
Generate a SQL query to answer the following question:
`Which To par  has a Year(s) won of 1983?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par  has a Year(s) won of 1983?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "year_s_won"='1983';
```
## Task
Generate a SQL query to answer the following question:
`How many Total has a Player of dave stockton?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Total has a Player of dave stockton?`:
```sql
                SELECT COUNT("total") FROM "made_the_cut" WHERE "player"='dave stockton';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in 1973 when the surface was clay?`

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

CREATE TABLE "women_s_doubles_10_4_titles_6_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in 1973 when the surface was clay?`:
```sql
                SELECT "outcome" FROM "women_s_doubles_10_4_titles_6_runner_ups" WHERE "year"=1973 AND "surface"='clay';
```
## Task
Generate a SQL query to answer the following question:
`Who was Margaret Court's opponent on clay in 1975?`

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

CREATE TABLE "women_s_doubles_10_4_titles_6_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Margaret Court's opponent on clay in 1975?`:
```sql
                SELECT "opponents" FROM "women_s_doubles_10_4_titles_6_runner_ups" WHERE "surface"='clay' AND "partner"='margaret court' AND "year"=1975;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of against when Central Murray is Tooleybuc Manangatang and there are fewer than 13 wins?`

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

CREATE TABLE "2011_ladder" (
  "central_murray" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of against when Central Murray is Tooleybuc Manangatang and there are fewer than 13 wins?`:
```sql
                SELECT MAX("against") FROM "2011_ladder" WHERE "central_murray"='tooleybuc manangatang' AND "wins"<13;
```
## Task
Generate a SQL query to answer the following question:
`How many byes when the draws are fewer than 0?`

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

CREATE TABLE "2011_ladder" (
  "central_murray" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many byes when the draws are fewer than 0?`:
```sql
                SELECT AVG("byes") FROM "2011_ladder" WHERE "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the byes for Woorineen when losses are more than 13?`

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

CREATE TABLE "2011_ladder" (
  "central_murray" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the byes for Woorineen when losses are more than 13?`:
```sql
                SELECT SUM("byes") FROM "2011_ladder" WHERE "central_murray"='woorineen' AND "losses">13;
```
## Task
Generate a SQL query to answer the following question:
`How many wins when there are 4 losses and against are fewer than 1281?`

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

CREATE TABLE "2011_ladder" (
  "central_murray" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins when there are 4 losses and against are fewer than 1281?`:
```sql
                SELECT AVG("wins") FROM "2011_ladder" WHERE "losses"=4 AND "against"<1281;
```
## Task
Generate a SQL query to answer the following question:
`How many against when losses are 11 and wins are fewer than 5?`

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

CREATE TABLE "2011_ladder" (
  "central_murray" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many against when losses are 11 and wins are fewer than 5?`:
```sql
                SELECT AVG("against") FROM "2011_ladder" WHERE "losses"=11 AND "wins"<5;
```
## Task
Generate a SQL query to answer the following question:
`which Player has a To par of –7, and a Country of spain?`

### 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 `which Player has a To par of –7, and a Country of spain?`:
```sql
                SELECT "player" FROM "third_round" WHERE "to_par"='–7' AND "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What doctor published on June 2003?`

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

CREATE TABLE "external_links" (
  "title" text,
  "author" text,
  "doctor" text,
  "companion_s" text,
  "published" text
);
### SQL
Given the database schema, here is the SQL query that answers `What doctor published on June 2003?`:
```sql
                SELECT "doctor" FROM "external_links" WHERE "published"='june 2003';
```
## Task
Generate a SQL query to answer the following question:
`What title was published on November 2001 and has a 1st Doctor?`

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

CREATE TABLE "external_links" (
  "title" text,
  "author" text,
  "doctor" text,
  "companion_s" text,
  "published" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title was published on November 2001 and has a 1st Doctor?`:
```sql
                SELECT "title" FROM "external_links" WHERE "doctor"='1st' AND "published"='november 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the 8th doctor published in January 2003?`

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

CREATE TABLE "external_links" (
  "title" text,
  "author" text,
  "doctor" text,
  "companion_s" text,
  "published" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the 8th doctor published in January 2003?`:
```sql
                SELECT "title" FROM "external_links" WHERE "doctor"='8th' AND "published"='january 2003';
```
## Task
Generate a SQL query to answer the following question:
`What is the companion for the author Dave Stone?`

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

CREATE TABLE "external_links" (
  "title" text,
  "author" text,
  "doctor" text,
  "companion_s" text,
  "published" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the companion for the author Dave Stone?`:
```sql
                SELECT "companion_s" FROM "external_links" WHERE "author"='dave stone';
```
## Task
Generate a SQL query to answer the following question:
`What Player won the PGA in 1989?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player won the PGA in 1989?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='1989';
```
## Task
Generate a SQL query to answer the following question:
`Which player is from Northern Ireland?`

### 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 `Which player is from Northern Ireland?`:
```sql
                SELECT "player" FROM "third_round" WHERE "country"='northern ireland';
```
## Task
Generate a SQL query to answer the following question:
`What player has a score of 69-68-68=205?`

### 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 player has a score of 69-68-68=205?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='69-68-68=205';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has an Attendance larger than 63,369?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has an Attendance larger than 63,369?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "attendance">'63,369';
```
## Task
Generate a SQL query to answer the following question:
`What was the result on september 26?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result on september 26?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='september 26';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has a Game site of oakland-alameda county coliseum, and an Attendance larger than 52,169?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has a Game site of oakland-alameda county coliseum, and an Attendance larger than 52,169?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "game_site"='oakland-alameda county coliseum' AND "attendance">'52,169';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Score is "68-71=139"?`

### 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 Player, when Score is "68-71=139"?`:
```sql
                SELECT "player" FROM "second_round" WHERE "score"='68-71=139';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Player is "Tom Watson"?`

### 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 Country, when Player is "Tom Watson"?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='tom watson';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Player is "Steve Pate"?`

### 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 Place, when Player is "Steve Pate"?`:
```sql
                SELECT "place" FROM "second_round" WHERE "player"='steve pate';
```
## Task
Generate a SQL query to answer the following question:
`How many against on the date of  08/06/1985?`

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

CREATE TABLE "1985" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many against on the date of  08/06/1985?`:
```sql
                SELECT SUM("against") FROM "1985" WHERE "date"='08/06/1985';
```