cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Score, when To Par is greater than 7, when Place is "T4", and when Player is "Bob Rosburg"?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when To Par is greater than 7, when Place is "T4", and when Player is "Bob Rosburg"?`:
```sql
                SELECT "score" FROM "third_round" WHERE "to_par">7 AND "place"='t4' AND "player"='bob rosburg';
```
## Task
Generate a SQL query to answer the following question:
`Which transfer window ends after 2006?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which transfer window ends after 2006?`:
```sql
                SELECT "transfer_window" FROM "in" WHERE "ends">2006;
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer fee for Paolo Vanoli?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer fee for Paolo Vanoli?`:
```sql
                SELECT "transfer_fee" FROM "in" WHERE "name"='paolo vanoli';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of Gavin Rae?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of Gavin Rae?`:
```sql
                SELECT "nat" FROM "in" WHERE "name"='gavin rae';
```
## Task
Generate a SQL query to answer the following question:
`How much Overall has a Position of ot, and a Round larger than 5?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Overall has a Position of ot, and a Round larger than 5?`:
```sql
                SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "position"='ot' AND "round">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for Bart Bryant?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for Bart Bryant?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "player"='bart bryant';
```
## Task
Generate a SQL query to answer the following question:
`Who scored 68-73-66=207 in South Africa?`

### 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 `Who scored 68-73-66=207 in South Africa?`:
```sql
                SELECT "place" FROM "third_round" WHERE "country"='south africa' AND "score"='68-73-66=207';
```
## Task
Generate a SQL query to answer the following question:
`What year is Zhong from?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year is Zhong from?`:
```sql
                SELECT "from" FROM "vassal_states" WHERE "name"='zhong';
```
## Task
Generate a SQL query to answer the following question:
`Which Royal house has a name of ding?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Royal house has a name of ding?`:
```sql
                SELECT "royal_house" FROM "vassal_states" WHERE "name"='ding';
```
## Task
Generate a SQL query to answer the following question:
`What type of state is bo qin?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of state is bo qin?`:
```sql
                SELECT "type" FROM "vassal_states" WHERE "name"='bo qin';
```
## Task
Generate a SQL query to answer the following question:
`What year is the Royal house of ji from?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year is the Royal house of ji from?`:
```sql
                SELECT "from" FROM "vassal_states" WHERE "royal_house"='ji';
```
## Task
Generate a SQL query to answer the following question:
`What type of state has a royal house of ji and has a ruler?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of state has a royal house of ji and has a ruler?`:
```sql
                SELECT "type" FROM "vassal_states" WHERE "royal_house"='ji' AND "title"='ruler';
```
## Task
Generate a SQL query to answer the following question:
`what is the record when the game is 13?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the record when the game is 13?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game"=13;
```
## Task
Generate a SQL query to answer the following question:
`who had the high points on november 20?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who had the high points on november 20?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "date"='november 20';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score on November 23, 1946 with Washington Capitols Home team?`

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

CREATE TABLE "regular_season" (
  "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 Score on November 23, 1946 with Washington Capitols Home team?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "home"='washington capitols' AND "date"='november 23, 1946';
```
## Task
Generate a SQL query to answer the following question:
`On what Date is the Detroit Falcons the Home team in a game with a Score of 63–66?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date is the Detroit Falcons the Home team in a game with a Score of 63–66?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "home"='detroit falcons' AND "score"='63–66';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team on January 24, 1947?`

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

CREATE TABLE "regular_season" (
  "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 Home team on January 24, 1947?`:
```sql
                SELECT "home" FROM "regular_season" WHERE "date"='january 24, 1947';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team on November 16, 1946?`

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

CREATE TABLE "regular_season" (
  "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 Home team on November 16, 1946?`:
```sql
                SELECT "home" FROM "regular_season" WHERE "date"='november 16, 1946';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team on February 2, 1947?`

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

CREATE TABLE "regular_season" (
  "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 Home team on February 2, 1947?`:
```sql
                SELECT "home" FROM "regular_season" WHERE "date"='february 2, 1947';
```
## Task
Generate a SQL query to answer the following question:
`Which Laps have a Time of +23.002, and a Grid smaller than 11?`

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

CREATE TABLE "125cc_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 Time of +23.002, and a Grid smaller than 11?`:
```sql
                SELECT AVG("laps") FROM "125cc_classification" WHERE "time"='+23.002' AND "grid"<11;
```
## Task
Generate a SQL query to answer the following question:
`Which Laps have a Manufacturer of aprilia, and a Rider of sergio gadea?`

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

CREATE TABLE "125cc_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 Manufacturer of aprilia, and a Rider of sergio gadea?`:
```sql
                SELECT "laps" FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "rider"='sergio gadea';
```
## Task
Generate a SQL query to answer the following question:
`Which Grid that has a Rider of mike di meglio, and Laps larger than 23?`

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

CREATE TABLE "125cc_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 that has a Rider of mike di meglio, and Laps larger than 23?`:
```sql
                SELECT AVG("grid") FROM "125cc_classification" WHERE "rider"='mike di meglio' AND "laps">23;
```
## Task
Generate a SQL query to answer the following question:
`Which Manufacturer has a Grid smaller than 9, and a Time of +22.517?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Manufacturer has a Grid smaller than 9, and a Time of +22.517?`:
```sql
                SELECT "manufacturer" FROM "125cc_classification" WHERE "grid"<9 AND "time"='+22.517';
```
## Task
Generate a SQL query to answer the following question:
`What is Result, when Round is SF?`

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

CREATE TABLE "league_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Round is SF?`:
```sql
                SELECT "result" FROM "league_cup" WHERE "round"='sf';
```
## Task
Generate a SQL query to answer the following question:
`What is Scorers, when Attendance is greater than 11,091, and when Round is R3?`

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

CREATE TABLE "league_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Scorers, when Attendance is greater than 11,091, and when Round is R3?`:
```sql
                SELECT "scorers" FROM "league_cup" WHERE "attendance">'11,091' AND "round"='r3';
```
## Task
Generate a SQL query to answer the following question:
`What is Result, when Date is 11 August 1992?`

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

CREATE TABLE "league_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Date is 11 August 1992?`:
```sql
                SELECT "result" FROM "league_cup" WHERE "date"='11 august 1992';
```
## Task
Generate a SQL query to answer the following question:
`What is Result, when Date is 19 August 1992?`

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

CREATE TABLE "league_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Date is 19 August 1992?`:
```sql
                SELECT "result" FROM "league_cup" WHERE "date"='19 august 1992';
```
## Task
Generate a SQL query to answer the following question:
`Did he win or lose rof 32: respect?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Did he win or lose rof 32: respect?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "event"='rof 32: respect';
```
## Task
Generate a SQL query to answer the following question:
`What round did he win rof 29: aftershock in?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did he win rof 29: aftershock in?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "event"='rof 29: aftershock';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds did the match last when his record was 6-6?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did the match last when his record was 6-6?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='6-6';
```
## Task
Generate a SQL query to answer the following question:
`How did the match end when his record was 15-11?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did the match end when his record was 15-11?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='15-11';
```
## Task
Generate a SQL query to answer the following question:
`How many laps did ben spies do on the grid less than 7?`

### 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 `How many laps did ben spies do on the grid less than 7?`:
```sql
                SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "grid"<7 AND "rider"='ben spies';
```
## Task
Generate a SQL query to answer the following question:
`which grid did less than 20 laps in a time of +58.353?`

### 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 did less than 20 laps in a time of +58.353?`:
```sql
                SELECT MIN("grid") FROM "moto_gp_classification" WHERE "time"='+58.353' AND "laps"<20;
```
## Task
Generate a SQL query to answer the following question:
`what was valentino rossi's rider time?`

### 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 `what was valentino rossi's rider time?`:
```sql
                SELECT "time" FROM "moto_gp_classification" WHERE "rider"='valentino rossi';
```
## Task
Generate a SQL query to answer the following question:
`Who manufactures Makoto Tamada's vehicle?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who manufactures Makoto Tamada's vehicle?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "rider"='makoto tamada';
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired of the one with grid of 16?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/retired of the one with grid of 16?`:
```sql
                SELECT "time_retired" FROM "moto_gp_classification" WHERE "grid"=16;
```
## Task
Generate a SQL query to answer the following question:
`What team did gonzalo arconada manage?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did gonzalo arconada manage?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='gonzalo arconada';
```
## Task
Generate a SQL query to answer the following question:
`What team replaced their manager on 9 December 2008?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team replaced their manager on 9 December 2008?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "date_of_vacancy"='9 december 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of appointment for paco chaparro's replacement?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of appointment for paco chaparro's replacement?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='paco chaparro';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of appointment for javier aguirre's replacement?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of appointment for javier aguirre's replacement?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='javier aguirre';
```
## Task
Generate a SQL query to answer the following question:
`What date did Namigata play against Wen-Hsin Hsu in the finals?`

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

CREATE TABLE "singles_14_5_9" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did Namigata play against Wen-Hsin Hsu in the finals?`:
```sql
                SELECT "date" FROM "singles_14_5_9" WHERE "opponent_in_the_final"='wen-hsin hsu';
```
## Task
Generate a SQL query to answer the following question:
`What was the result during the week # of top 8?`

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

CREATE TABLE "performances_on" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result during the week # of top 8?`:
```sql
                SELECT "result" FROM "performances_on" WHERE "week_num"='top 8';
```
## Task
Generate a SQL query to answer the following question:
`What was the theme during the week # of top 24 (12 men)`

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

CREATE TABLE "performances_on" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the theme during the week # of top 24 (12 men)`:
```sql
                SELECT "theme" FROM "performances_on" WHERE "week_num"='top 24 (12 men)';
```
## Task
Generate a SQL query to answer the following question:
`What was the result after the week # top 11?`

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

CREATE TABLE "performances_on" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result after the week # top 11?`:
```sql
                SELECT "result" FROM "performances_on" WHERE "week_num"='top 11';
```
## Task
Generate a SQL query to answer the following question:
`What is the league of player ian schultz?`

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

CREATE TABLE "draft_picks" (
  "round" text,
  "pick" real,
  "player" text,
  "position" text,
  "shoots" text,
  "nationality" text,
  "league" text,
  "birthplace_date" text,
  "height_weight" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the league of player ian schultz?`:
```sql
                SELECT "league" FROM "draft_picks" WHERE "player"='ian schultz';
```
## Task
Generate a SQL query to answer the following question:
`What is the birthplace and date of pick 4?`

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

CREATE TABLE "draft_picks" (
  "round" text,
  "pick" real,
  "player" text,
  "position" text,
  "shoots" text,
  "nationality" text,
  "league" text,
  "birthplace_date" text,
  "height_weight" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the birthplace and date of pick 4?`:
```sql
                SELECT "birthplace_date" FROM "draft_picks" WHERE "pick"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the pick of player ian schultz from Canada?`

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

CREATE TABLE "draft_picks" (
  "round" text,
  "pick" real,
  "player" text,
  "position" text,
  "shoots" text,
  "nationality" text,
  "league" text,
  "birthplace_date" text,
  "height_weight" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick of player ian schultz from Canada?`:
```sql
                SELECT "pick" FROM "draft_picks" WHERE "nationality"='canada' AND "player"='ian schultz';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Opponent on January 7?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Opponent on January 7?`:
```sql
                SELECT "opponent" FROM "january" WHERE "date"='january 7';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Opponent on January 16?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Opponent on January 16?`:
```sql
                SELECT "opponent" FROM "january" WHERE "date"='january 16';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game against Philadelphia 76ers?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the game against Philadelphia 76ers?`:
```sql
                SELECT "score" FROM "january" WHERE "opponent"='philadelphia 76ers';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game where the Cavaliers have a Record of 15-27?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the game where the Cavaliers have a Record of 15-27?`:
```sql
                SELECT "date" FROM "january" WHERE "record"='15-27';
```
## Task
Generate a SQL query to answer the following question:
`What was the Opponent in the game with a Score of 102-125?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Opponent in the game with a Score of 102-125?`:
```sql
                SELECT "opponent" FROM "january" WHERE "score"='102-125';
```
## Task
Generate a SQL query to answer the following question:
`What is the Cavaliers Record in the game with a Score of 98-99?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Cavaliers Record in the game with a Score of 98-99?`:
```sql
                SELECT "record" FROM "january" WHERE "score"='98-99';
```
## Task
Generate a SQL query to answer the following question:
`What player has a no pick position in 1976?`

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

CREATE TABLE "player_selections" (
  "year" real,
  "pick" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a no pick position in 1976?`:
```sql
                SELECT "player" FROM "player_selections" WHERE "position"='no pick' AND "year"=1976;
```
## Task
Generate a SQL query to answer the following question:
`What pick number was the player that went to baylor college?`

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

CREATE TABLE "player_selections" (
  "year" real,
  "pick" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick number was the player that went to baylor college?`:
```sql
                SELECT "pick" FROM "player_selections" WHERE "college"='baylor';
```
## Task
Generate a SQL query to answer the following question:
`What year was the player pick number 15 picked?`

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

CREATE TABLE "player_selections" (
  "year" real,
  "pick" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the player pick number 15 picked?`:
```sql
                SELECT "year" FROM "player_selections" WHERE "pick"='15';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on september 2?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on september 2?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='september 2';
```
## Task
Generate a SQL query to answer the following question:
`What were phoenix's high points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were phoenix's high points?`:
```sql
                SELECT "high_points" FROM "regular_season" WHERE "opponent"='phoenix';
```
## Task
Generate a SQL query to answer the following question:
`When was the record 17-17?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the record 17-17?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "record"='17-17';
```
## Task
Generate a SQL query to answer the following question:
`What were the high points on september 9?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the high points on september 9?`:
```sql
                SELECT "high_points" FROM "regular_season" WHERE "date"='september 9';
```
## Task
Generate a SQL query to answer the following question:
`How many games had a record of 16-17?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games had a record of 16-17?`:
```sql
                SELECT COUNT("game") FROM "regular_season" WHERE "record"='16-17';
```
## Task
Generate a SQL query to answer the following question:
`Which leader has been a leader since 2007?`

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

CREATE TABLE "leaders_in_the_northern_ireland_assembel" (
  "leader" text,
  "party" text,
  "leader_s_seat" text,
  "number_of_seats" real,
  "leader_since" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which leader has been a leader since 2007?`:
```sql
                SELECT "leader" FROM "leaders_in_the_northern_ireland_assembel" WHERE "leader_since"='2007';
```
## Task
Generate a SQL query to answer the following question:
`How many seats does leader Raymond McCartney have?`

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

CREATE TABLE "leaders_in_the_northern_ireland_assembel" (
  "leader" text,
  "party" text,
  "leader_s_seat" text,
  "number_of_seats" real,
  "leader_since" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats does leader Raymond McCartney have?`:
```sql
                SELECT SUM("number_of_seats") FROM "leaders_in_the_northern_ireland_assembel" WHERE "leader"='raymond mccartney';
```
## Task
Generate a SQL query to answer the following question:
`Which leader of the Democratic Unionist party has more than 8 seats?`

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

CREATE TABLE "leaders_in_the_northern_ireland_assembel" (
  "leader" text,
  "party" text,
  "leader_s_seat" text,
  "number_of_seats" real,
  "leader_since" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which leader of the Democratic Unionist party has more than 8 seats?`:
```sql
                SELECT "leader" FROM "leaders_in_the_northern_ireland_assembel" WHERE "number_of_seats">8 AND "party"='democratic unionist party';
```
## Task
Generate a SQL query to answer the following question:
`Anuya Bhagvath was nominated for what award?`

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

CREATE TABLE "accolades" (
  "ceremony" text,
  "award" text,
  "category" text,
  "name" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Anuya Bhagvath was nominated for what award?`:
```sql
                SELECT "award" FROM "accolades" WHERE "outcome"='nominated' AND "name"='anuya bhagvath';
```
## Task
Generate a SQL query to answer the following question:
`Which award has film lyricist in the category?`

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

CREATE TABLE "accolades" (
  "ceremony" text,
  "award" text,
  "category" text,
  "name" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which award has film lyricist in the category?`:
```sql
                SELECT "award" FROM "accolades" WHERE "category"='film lyricist';
```
## Task
Generate a SQL query to answer the following question:
`What is the category Anuya Bhagvath was nominated for at vijay award?`

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

CREATE TABLE "accolades" (
  "ceremony" text,
  "award" text,
  "category" text,
  "name" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the category Anuya Bhagvath was nominated for at vijay award?`:
```sql
                SELECT "ceremony" FROM "accolades" WHERE "award"='vijay award' AND "outcome"='nominated' AND "name"='anuya bhagvath';
```
## Task
Generate a SQL query to answer the following question:
`Which ceremony has the best lyricist category?`

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

CREATE TABLE "accolades" (
  "ceremony" text,
  "award" text,
  "category" text,
  "name" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ceremony has the best lyricist category?`:
```sql
                SELECT "ceremony" FROM "accolades" WHERE "category"='best lyricist';
```
## Task
Generate a SQL query to answer the following question:
`Which best 3-year period has a best 15-year period of smyslov; kasparov, and a Position of 5?`

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

CREATE TABLE "moves_played_compared_with_computer_choi" (
  "position" real,
  "best_year" text,
  "best_2_year_period" text,
  "best_3_year_period" text,
  "best_5_year_period" text,
  "best_10_year_period" text,
  "best_15_year_period" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which best 3-year period has a best 15-year period of smyslov; kasparov, and a Position of 5?`:
```sql
                SELECT "best_3_year_period" FROM "moves_played_compared_with_computer_choi" WHERE "best_15_year_period"='smyslov; kasparov' AND "position"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which best 5-year period has a best 15-year period of alekhine; lasker?`

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

CREATE TABLE "moves_played_compared_with_computer_choi" (
  "position" real,
  "best_year" text,
  "best_2_year_period" text,
  "best_3_year_period" text,
  "best_5_year_period" text,
  "best_10_year_period" text,
  "best_15_year_period" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which best 5-year period has a best 15-year period of alekhine; lasker?`:
```sql
                SELECT "best_5_year_period" FROM "moves_played_compared_with_computer_choi" WHERE "best_15_year_period"='alekhine; lasker';
```
## Task
Generate a SQL query to answer the following question:
`Which best 10-year period has a best 2-year period of petrosian?`

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

CREATE TABLE "moves_played_compared_with_computer_choi" (
  "position" real,
  "best_year" text,
  "best_2_year_period" text,
  "best_3_year_period" text,
  "best_5_year_period" text,
  "best_10_year_period" text,
  "best_15_year_period" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which best 10-year period has a best 2-year period of petrosian?`:
```sql
                SELECT "best_10_year_period" FROM "moves_played_compared_with_computer_choi" WHERE "best_2_year_period"='petrosian';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a best 3-year period of petrosian?`

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

CREATE TABLE "moves_played_compared_with_computer_choi" (
  "position" real,
  "best_year" text,
  "best_2_year_period" text,
  "best_3_year_period" text,
  "best_5_year_period" text,
  "best_10_year_period" text,
  "best_15_year_period" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a best 3-year period of petrosian?`:
```sql
                SELECT MAX("position") FROM "moves_played_compared_with_computer_choi" WHERE "best_3_year_period"='petrosian';
```
## Task
Generate a SQL query to answer the following question:
`What is High Rebounds, when Score is 61-59?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is High Rebounds, when Score is 61-59?`:
```sql
                SELECT "high_rebounds" FROM "regular_season" WHERE "score"='61-59';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when High Rebounds is "Nolan (10)"?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when High Rebounds is "Nolan (10)"?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "high_rebounds"='nolan (10)';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when High Rebounds is "Pierson (6)"?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when High Rebounds is "Pierson (6)"?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "high_rebounds"='pierson (6)';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Game(s), when High Rebounds is "Pierson (6)"?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Game(s), when High Rebounds is "Pierson (6)"?`:
```sql
                SELECT SUM("game") FROM "regular_season" WHERE "high_rebounds"='pierson (6)';
```
## Task
Generate a SQL query to answer the following question:
`How many Laps did Bob Wollek have?`

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

CREATE TABLE "race_1" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps did Bob Wollek have?`:
```sql
                SELECT AVG("laps") FROM "race_1" WHERE "driver"='bob wollek';
```
## Task
Generate a SQL query to answer the following question:
`How many Laps did Team Primagaz Competition have?`

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

CREATE TABLE "race_1" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps did Team Primagaz Competition have?`:
```sql
                SELECT "laps" FROM "race_1" WHERE "team"='primagaz competition';
```
## Task
Generate a SQL query to answer the following question:
`What Team had 40 Laps in C1 Class?`

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

CREATE TABLE "race_1" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Team had 40 Laps in C1 Class?`:
```sql
                SELECT "team" FROM "race_1" WHERE "class"='c1' AND "laps"=40;
```
## Task
Generate a SQL query to answer the following question:
`What Team has Bob Wollek as a Driver with 76 Laps in C1 Class?`

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

CREATE TABLE "race_1" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Team has Bob Wollek as a Driver with 76 Laps in C1 Class?`:
```sql
                SELECT "team" FROM "race_1" WHERE "class"='c1' AND "laps"=76 AND "driver"='bob wollek';
```
## Task
Generate a SQL query to answer the following question:
`How many Laps does GP Motorsport Team have?`

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

CREATE TABLE "race_1" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps does GP Motorsport Team have?`:
```sql
                SELECT SUM("laps") FROM "race_1" WHERE "team"='gp motorsport';
```
## Task
Generate a SQL query to answer the following question:
`what is the location when the score is w 105-99?`

### 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 when the score is w 105-99?`:
```sql
                SELECT "location" FROM "game_log" WHERE "score"='w 105-99';
```