cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`for the name of jamar jackson what is the last update?`

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

CREATE TABLE "injured_players" (
  "position" text,
  "number" real,
  "name" text,
  "class" text,
  "injury_status" text,
  "last_update" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the name of jamar jackson what is the last update?`:
```sql
                SELECT "last_update" FROM "injured_players" WHERE "name"='jamar jackson';
```
## Task
Generate a SQL query to answer the following question:
`for the name of jamar jackson what is the class?`

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

CREATE TABLE "injured_players" (
  "position" text,
  "number" real,
  "name" text,
  "class" text,
  "injury_status" text,
  "last_update" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the name of jamar jackson what is the class?`:
```sql
                SELECT "class" FROM "injured_players" WHERE "name"='jamar jackson';
```
## Task
Generate a SQL query to answer the following question:
`for the name of jamar jackson what is the total of Number?`

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

CREATE TABLE "injured_players" (
  "position" text,
  "number" real,
  "name" text,
  "class" text,
  "injury_status" text,
  "last_update" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the name of jamar jackson what is the total of Number?`:
```sql
                SELECT COUNT("number") FROM "injured_players" WHERE "name"='jamar jackson';
```
## Task
Generate a SQL query to answer the following question:
`What term did Stewart Mcarthur from Vic serve in office?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What term did Stewart Mcarthur from Vic serve in office?`:
```sql
                SELECT "term_in_office" FROM "see_also" WHERE "state"='vic' AND "member"='stewart mcarthur';
```
## Task
Generate a SQL query to answer the following question:
`What is Hon Paul Keating's Party?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Hon Paul Keating's Party?`:
```sql
                SELECT "party" FROM "see_also" WHERE "member"='hon paul keating';
```
## Task
Generate a SQL query to answer the following question:
`What member is in the liberal party and has an electorate of bruce?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What member is in the liberal party and has an electorate of bruce?`:
```sql
                SELECT "member" FROM "see_also" WHERE "party"='liberal' AND "electorate"='bruce';
```
## Task
Generate a SQL query to answer the following question:
`Which Electorate is from vic, a labor party, and is David Charles a member of?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Electorate is from vic, a labor party, and is David Charles a member of?`:
```sql
                SELECT "electorate" FROM "see_also" WHERE "state"='vic' AND "party"='labor' AND "member"='david charles';
```
## Task
Generate a SQL query to answer the following question:
`Name the format on july 27, 1994 for alfa records`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the format on july 27, 1994 for alfa records`:
```sql
                SELECT "format" FROM "release_history" WHERE "label"='alfa records' AND "date"='july 27, 1994';
```
## Task
Generate a SQL query to answer the following question:
`Name the region for cd with catalog of alca-9203`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the region for cd with catalog of alca-9203`:
```sql
                SELECT "region" FROM "release_history" WHERE "format"='cd' AND "catalog"='alca-9203';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for alfa records and catalog of alr-28045`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for alfa records and catalog of alr-28045`:
```sql
                SELECT "date" FROM "release_history" WHERE "label"='alfa records' AND "catalog"='alr-28045';
```
## Task
Generate a SQL query to answer the following question:
`Name the region for cd format on february 22, 1984`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the region for cd format on february 22, 1984`:
```sql
                SELECT "region" FROM "release_history" WHERE "format"='cd' AND "date"='february 22, 1984';
```
## Task
Generate a SQL query to answer the following question:
`Name the region for february 14, 2002`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the region for february 14, 2002`:
```sql
                SELECT "region" FROM "release_history" WHERE "date"='february 14, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What First game has a Lost greater than 16?`

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

CREATE TABLE "rugby_japan_internationals_1991" (
  "first_game" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What First game has a Lost greater than 16?`:
```sql
                SELECT AVG("first_game") FROM "rugby_japan_internationals_1991" WHERE "lost">16;
```
## Task
Generate a SQL query to answer the following question:
`What Percentage did the First game of 1998 have?`

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

CREATE TABLE "rugby_japan_internationals_1991" (
  "first_game" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Percentage did the First game of 1998 have?`:
```sql
                SELECT "percentage" FROM "rugby_japan_internationals_1991" WHERE "first_game"=1998;
```
## Task
Generate a SQL query to answer the following question:
`What bowler has a record of 4-15?`

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

CREATE TABLE "best_in_an_innings" (
  "rank" text,
  "bowling" text,
  "player" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What bowler has a record of 4-15?`:
```sql
                SELECT "player" FROM "best_in_an_innings" WHERE "bowling"='4-15';
```
## Task
Generate a SQL query to answer the following question:
`What ranking is james franklin?`

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

CREATE TABLE "best_in_an_innings" (
  "rank" text,
  "bowling" text,
  "player" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ranking is james franklin?`:
```sql
                SELECT "rank" FROM "best_in_an_innings" WHERE "player"='james franklin';
```
## Task
Generate a SQL query to answer the following question:
`what venue does tim southee bowl at?`

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

CREATE TABLE "best_in_an_innings" (
  "rank" text,
  "bowling" text,
  "player" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what venue does tim southee bowl at?`:
```sql
                SELECT "venue" FROM "best_in_an_innings" WHERE "player"='tim southee';
```
## Task
Generate a SQL query to answer the following question:
`What was the regular season for 2012?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the regular season for 2012?`:
```sql
                SELECT "regular_season" FROM "year_by_year" WHERE "year"='2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest division in the playoffs and did not qualify for the Open Cup in 2002?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest division in the playoffs and did not qualify for the Open Cup in 2002?`:
```sql
                SELECT MIN("division") FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "open_cup"='did not qualify' AND "year"='2002';
```
## Task
Generate a SQL query to answer the following question:
`What chassis has more than 0 points?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What chassis has more than 0 points?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "points">0;
```
## Task
Generate a SQL query to answer the following question:
`How many points were there before 1955?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were there before 1955?`:
```sql
                SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "year"<1955;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of points held by the Epperly Indy roadster in 1959?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of points held by the Epperly Indy roadster in 1959?`:
```sql
                SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='epperly indy roadster' AND "year"=1959;
```
## Task
Generate a SQL query to answer the following question:
`What Chassis has more than 0 points?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Chassis has more than 0 points?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "points">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the date that 4,286 attended?`

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

CREATE TABLE "2007_game_log" (
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date that 4,286 attended?`:
```sql
                SELECT "date" FROM "2007_game_log" WHERE "attendance"='4,286';
```
## Task
Generate a SQL query to answer the following question:
`Where does CF Pachuca play?`

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

CREATE TABLE "2007_game_log" (
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where does CF Pachuca play?`:
```sql
                SELECT "game_site" FROM "2007_game_log" WHERE "opponent"='cf pachuca';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the Cup Quarterfinals game?`

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

CREATE TABLE "2007_game_log" (
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the Cup Quarterfinals game?`:
```sql
                SELECT "attendance" FROM "2007_game_log" WHERE "game_site"='cup quarterfinals';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2000 when 2013 shows 3rd?`

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

CREATE TABLE "team_appearances" (
  "2000" text,
  "2004" text,
  "2009" text,
  "2013" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2000 when 2013 shows 3rd?`:
```sql
                SELECT "2000" FROM "team_appearances" WHERE "2013"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2004 when 2013 is 3rd?`

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

CREATE TABLE "team_appearances" (
  "2000" text,
  "2004" text,
  "2009" text,
  "2013" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004 when 2013 is 3rd?`:
```sql
                SELECT "2004" FROM "team_appearances" WHERE "2013"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2009 when the 2013 is 4th?`

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

CREATE TABLE "team_appearances" (
  "2000" text,
  "2004" text,
  "2009" text,
  "2013" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2009 when the 2013 is 4th?`:
```sql
                SELECT "2009" FROM "team_appearances" WHERE "2013"='4th';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 209 when the 2000 is –, and a Total of 3, and a 2004 of 9th?`

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

CREATE TABLE "team_appearances" (
  "2000" text,
  "2004" text,
  "2009" text,
  "2013" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 209 when the 2000 is –, and a Total of 3, and a 2004 of 9th?`:
```sql
                SELECT "2009" FROM "team_appearances" WHERE "2000"='–' AND "total"=3 AND "2004"='9th';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score in the PGA Championship?`

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

CREATE TABLE "wins_18" (
  "year" text,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score in the PGA Championship?`:
```sql
                SELECT "winning_score" FROM "wins_18" WHERE "championship"='pga championship';
```
## Task
Generate a SQL query to answer the following question:
`How many draws with 1 loss?`

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

CREATE TABLE "captains" (
  "name" text,
  "first_captaincy" text,
  "games_as_captain" real,
  "wins" real,
  "draws" real,
  "losses" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws with 1 loss?`:
```sql
                SELECT SUM("draws") FROM "captains" WHERE "losses"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many losses does Alex Wilkinson have?`

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

CREATE TABLE "captains" (
  "name" text,
  "first_captaincy" text,
  "games_as_captain" real,
  "wins" real,
  "draws" real,
  "losses" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses does Alex Wilkinson have?`:
```sql
                SELECT COUNT("losses") FROM "captains" WHERE "name"='alex wilkinson';
```
## Task
Generate a SQL query to answer the following question:
`Name the incorporated for Group's equity shareholding 10 march 2010 of 25% and principal activities of cargo loading`

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

CREATE TABLE "subsidiaries_and_associates" (
  "company" text,
  "type" text,
  "principal_activities" text,
  "incorporated_in" text,
  "group_s_equity_shareholding_10_march_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incorporated for Group's equity shareholding 10 march 2010 of 25% and principal activities of cargo loading`:
```sql
                SELECT "incorporated_in" FROM "subsidiaries_and_associates" WHERE "group_s_equity_shareholding_10_march_2010"='25%' AND "principal_activities"='cargo loading';
```
## Task
Generate a SQL query to answer the following question:
`Name the group's equity shareholding for company of yangtze river express.`

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

CREATE TABLE "subsidiaries_and_associates" (
  "company" text,
  "type" text,
  "principal_activities" text,
  "incorporated_in" text,
  "group_s_equity_shareholding_10_march_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the group's equity shareholding for company of yangtze river express.`:
```sql
                SELECT "group_s_equity_shareholding_10_march_2010" FROM "subsidiaries_and_associates" WHERE "company"='yangtze river express';
```
## Task
Generate a SQL query to answer the following question:
`Name the type for headquarters principal activites.`

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

CREATE TABLE "subsidiaries_and_associates" (
  "company" text,
  "type" text,
  "principal_activities" text,
  "incorporated_in" text,
  "group_s_equity_shareholding_10_march_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the type for headquarters principal activites.`:
```sql
                SELECT "type" FROM "subsidiaries_and_associates" WHERE "principal_activities"='headquarters';
```
## Task
Generate a SQL query to answer the following question:
`Name the incorporated for principal activites of travel agency`

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

CREATE TABLE "subsidiaries_and_associates" (
  "company" text,
  "type" text,
  "principal_activities" text,
  "incorporated_in" text,
  "group_s_equity_shareholding_10_march_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incorporated for principal activites of travel agency`:
```sql
                SELECT "incorporated_in" FROM "subsidiaries_and_associates" WHERE "principal_activities"='travel agency';
```
## Task
Generate a SQL query to answer the following question:
`Name the title with presentation of credentials of april 24, 1884`

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

CREATE TABLE "notes" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title with presentation of credentials of april 24, 1884`:
```sql
                SELECT "title" FROM "notes" WHERE "presentation_of_credentials"='april 24, 1884';
```
## Task
Generate a SQL query to answer the following question:
`Name the presentation of credentials for appointed by of grover cleveland and representative of charles w. buck`

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

CREATE TABLE "notes" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the presentation of credentials for appointed by of grover cleveland and representative of charles w. buck`:
```sql
                SELECT "presentation_of_credentials" FROM "notes" WHERE "appointed_by"='grover cleveland' AND "representative"='charles w. buck';
```
## Task
Generate a SQL query to answer the following question:
`Name the title with presentation of credentials of april 10, 1907`

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

CREATE TABLE "notes" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title with presentation of credentials of april 10, 1907`:
```sql
                SELECT "title" FROM "notes" WHERE "presentation_of_credentials"='april 10, 1907';
```
## Task
Generate a SQL query to answer the following question:
`Name the title with termination of mission of february 24, 1828`

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

CREATE TABLE "notes" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title with termination of mission of february 24, 1828`:
```sql
                SELECT "title" FROM "notes" WHERE "termination_of_mission"='february 24, 1828';
```
## Task
Generate a SQL query to answer the following question:
`Name the title with termination of mission of april 10, 1939`

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

CREATE TABLE "notes" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title with termination of mission of april 10, 1939`:
```sql
                SELECT "title" FROM "notes" WHERE "termination_of_mission"='april 10, 1939';
```
## Task
Generate a SQL query to answer the following question:
`Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin`

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

CREATE TABLE "notes" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin`:
```sql
                SELECT "termination_of_mission" FROM "notes" WHERE "appointed_by"='woodrow wilson' AND "representative"='benton mcmillin';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest points gained of the match where fans took 907 and there were more than 44.9 miles one way?`

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

CREATE TABLE "head_to_head" (
  "team" text,
  "miles_one_way" real,
  "home_result" text,
  "fans_brought" text,
  "away_result" text,
  "fans_took" text,
  "points_gained" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest points gained of the match where fans took 907 and there were more than 44.9 miles one way?`:
```sql
                SELECT MAX("points_gained") FROM "head_to_head" WHERE "fans_took"='907' AND "miles_one_way">44.9;
```
## Task
Generate a SQL query to answer the following question:
`What is the points gained of the match where fans took 403 [sunday]?`

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

CREATE TABLE "head_to_head" (
  "team" text,
  "miles_one_way" real,
  "home_result" text,
  "fans_brought" text,
  "away_result" text,
  "fans_took" text,
  "points_gained" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points gained of the match where fans took 403 [sunday]?`:
```sql
                SELECT SUM("points_gained") FROM "head_to_head" WHERE "fans_took"='403 [sunday]';
```
## Task
Generate a SQL query to answer the following question:
`Which team had fans took of 288?`

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

CREATE TABLE "head_to_head" (
  "team" text,
  "miles_one_way" real,
  "home_result" text,
  "fans_brought" text,
  "away_result" text,
  "fans_took" text,
  "points_gained" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had fans took of 288?`:
```sql
                SELECT "team" FROM "head_to_head" WHERE "fans_took"='288';
```
## Task
Generate a SQL query to answer the following question:
`What years had a ranking of 1?`

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

CREATE TABLE "top_scorers_in_loi" (
  "ranking" real,
  "nationality" text,
  "name" text,
  "years" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What years had a ranking of 1?`:
```sql
                SELECT "years" FROM "top_scorers_in_loi" WHERE "ranking"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the person with 50 goals and rank 3?`

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

CREATE TABLE "top_scorers_in_loi" (
  "ranking" real,
  "nationality" text,
  "name" text,
  "years" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the person with 50 goals and rank 3?`:
```sql
                SELECT "nationality" FROM "top_scorers_in_loi" WHERE "goals"=50 AND "ranking"=3;
```
## Task
Generate a SQL query to answer the following question:
`How many losses occurred with regular season standing of 17th from 20 later than 1996?`

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

CREATE TABLE "references" (
  "season" real,
  "year" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "regular_season_standing" text,
  "final_standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses occurred with regular season standing of 17th from 20 later than 1996?`:
```sql
                SELECT COUNT("losses") FROM "references" WHERE "regular_season_standing"='17th from 20' AND "year">1996;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest season with a regular season standing of 11th from 15 and more than 10 wins?`

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

CREATE TABLE "references" (
  "season" real,
  "year" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "regular_season_standing" text,
  "final_standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest season with a regular season standing of 11th from 15 and more than 10 wins?`:
```sql
                SELECT MIN("season") FROM "references" WHERE "regular_season_standing"='11th from 15' AND "wins">10;
```
## Task
Generate a SQL query to answer the following question:
`What was the status of joon-hyung park 박준형?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the status of joon-hyung park 박준형?`:
```sql
                SELECT "status" FROM "billy_elliot" WHERE "name"='joon-hyung park 박준형';
```
## Task
Generate a SQL query to answer the following question:
`Who had a ballet style with original cast?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a ballet style with original cast?`:
```sql
                SELECT "name" FROM "billy_elliot" WHERE "style"='ballet' AND "status"='original cast';
```
## Task
Generate a SQL query to answer the following question:
`When was the first performance with a replacement cast?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the first performance with a replacement cast?`:
```sql
                SELECT "first_performance" FROM "billy_elliot" WHERE "status"='replacement cast';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year for the Tyrrell 018 Chassis that has less than 3 points?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year for the Tyrrell 018 Chassis that has less than 3 points?`:
```sql
                SELECT MAX("year") FROM "complete_formula_one_results" WHERE "chassis"='tyrrell 018' AND "points"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which entrant has a Honda V6 engine and a Lotus 99t chassis?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which entrant has a Honda V6 engine and a Lotus 99t chassis?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_results" WHERE "engine"='honda v6' AND "chassis"='lotus 99t';
```
## Task
Generate a SQL query to answer the following question:
`Name the least wickets when matches are more than 10 and 10 WM is more than 1`

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

CREATE TABLE "most_wickets_in_a_season" (
  "matches" real,
  "wickets" real,
  "runs" real,
  "10_wm" real,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least wickets when matches are more than 10 and 10 WM is more than 1`:
```sql
                SELECT MIN("wickets") FROM "most_wickets_in_a_season" WHERE "matches">10 AND "10_wm">1;
```
## Task
Generate a SQL query to answer the following question:
`Name the best when runs of 1088 and matches more than 11`

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

CREATE TABLE "most_wickets_in_a_season" (
  "matches" real,
  "wickets" real,
  "runs" real,
  "10_wm" real,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the best when runs of 1088 and matches more than 11`:
```sql
                SELECT "best" FROM "most_wickets_in_a_season" WHERE "matches">11 AND "runs"=1088;
```
## Task
Generate a SQL query to answer the following question:
`Name the most runs for wickets of 66 and matches less than 13`

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

CREATE TABLE "most_wickets_in_a_season" (
  "matches" real,
  "wickets" real,
  "runs" real,
  "10_wm" real,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most runs for wickets of 66 and matches less than 13`:
```sql
                SELECT MAX("runs") FROM "most_wickets_in_a_season" WHERE "wickets"=66 AND "matches"<13;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with the San Diego Padres as the opponent and a record of 11-23?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game with the San Diego Padres as the opponent and a record of 11-23?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='san diego padres' AND "record"='11-23';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with a record of 14-31?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game with a record of 14-31?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='14-31';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with a 17-31 record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game with a 17-31 record?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='17-31';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game on 13 May?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game on 13 May?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='13 may';
```
## Task
Generate a SQL query to answer the following question:
`What was average attendance during week 15?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was average attendance during week 15?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "week"=15;
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest week that had a result of t 17–17?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest week that had a result of t 17–17?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "result"='t 17–17';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in week 12?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in week 12?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=12;
```
## Task
Generate a SQL query to answer the following question:
`What is the current club of the Forward who was born after 1983 and who has a height under 2.12?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current club of the Forward who was born after 1983 and who has a height under 2.12?`:
```sql
                SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "year_born">1983 AND "height"<2.12 AND "position"='forward';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player who is taller than 2.12?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player who is taller than 2.12?`:
```sql
                SELECT "position" FROM "fiba_euro_basket_2007_squads" WHERE "height">2.12;
```
## Task
Generate a SQL query to answer the following question:
`How many no votes did North Dakota have?`

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

CREATE TABLE "states_that_have_voted_on_amendments" (
  "state" text,
  "date" text,
  "yes_vote" text,
  "no_vote" text,
  "vote_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many no votes did North Dakota have?`:
```sql
                SELECT "no_vote" FROM "states_that_have_voted_on_amendments" WHERE "state"='north dakota';
```
## Task
Generate a SQL query to answer the following question:
`What was the date for Colorado?`

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

CREATE TABLE "states_that_have_voted_on_amendments" (
  "state" text,
  "date" text,
  "yes_vote" text,
  "no_vote" text,
  "vote_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for Colorado?`:
```sql
                SELECT "date" FROM "states_that_have_voted_on_amendments" WHERE "state"='colorado';
```
## Task
Generate a SQL query to answer the following question:
`How many no votes from Alaska in 1998?`

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

CREATE TABLE "states_that_have_voted_on_amendments" (
  "state" text,
  "date" text,
  "yes_vote" text,
  "no_vote" text,
  "vote_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many no votes from Alaska in 1998?`:
```sql
                SELECT "no_vote" FROM "states_that_have_voted_on_amendments" WHERE "date"='1998' AND "state"='alaska';
```
## Task
Generate a SQL query to answer the following question:
`How many positive votes for Tennessee in 2006?`

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

CREATE TABLE "states_that_have_voted_on_amendments" (
  "state" text,
  "date" text,
  "yes_vote" text,
  "no_vote" text,
  "vote_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positive votes for Tennessee in 2006?`:
```sql
                SELECT "yes_vote" FROM "states_that_have_voted_on_amendments" WHERE "date"='2006' AND "state"='tennessee';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the song that is part of the opening theme and has a drama of the revolving doors of vengeance?`

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

CREATE TABLE "songs" (
  "number" real,
  "name_of_the_song" text,
  "singer" text,
  "drama" text,
  "kind_of_the_song" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the song that is part of the opening theme and has a drama of the revolving doors of vengeance?`:
```sql
                SELECT "name_of_the_song" FROM "songs" WHERE "kind_of_the_song"='opening theme' AND "drama"='revolving doors of vengeance';
```
## Task
Generate a SQL query to answer the following question:
`How many floors are there at 32 n. main street?`

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

CREATE TABLE "tallest_completed_buildings" (
  "rank" text,
  "building_name" text,
  "street_address" text,
  "height_feet_meters" text,
  "floors" real,
  "completed" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many floors are there at 32 n. main street?`:
```sql
                SELECT SUM("floors") FROM "tallest_completed_buildings" WHERE "street_address"='32 n. main street';
```
## Task
Generate a SQL query to answer the following question:
`When did the rank 9 building got completed?`

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

CREATE TABLE "tallest_completed_buildings" (
  "rank" text,
  "building_name" text,
  "street_address" text,
  "height_feet_meters" text,
  "floors" real,
  "completed" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the rank 9 building got completed?`:
```sql
                SELECT "completed" FROM "tallest_completed_buildings" WHERE "rank"='9';
```
## Task
Generate a SQL query to answer the following question:
`Which party has 24 governments?`

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

CREATE TABLE "deputy_ministers" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party has 24 governments?`:
```sql
                SELECT "party" FROM "deputy_ministers" WHERE "governments"='24';
```
## Task
Generate a SQL query to answer the following question:
`What governments did the minister with a term start on 24 September 1984 have?`

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

CREATE TABLE "deputy_ministers" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What governments did the minister with a term start on 24 September 1984 have?`:
```sql
                SELECT "governments" FROM "deputy_ministers" WHERE "term_start"='24 september 1984';
```
## Task
Generate a SQL query to answer the following question:
`When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?`

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

CREATE TABLE "deputy_ministers" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?`:
```sql
                SELECT "term_end" FROM "deputy_ministers" WHERE "party"='national religious party' AND "minister"='shlomo-yisrael ben-meir';
```
## Task
Generate a SQL query to answer the following question:
`Who is the minister with a term end on 10 March 1974?`

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

CREATE TABLE "deputy_ministers" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the minister with a term end on 10 March 1974?`:
```sql
                SELECT "minister" FROM "deputy_ministers" WHERE "term_end"='10 march 1974';
```
## Task
Generate a SQL query to answer the following question:
`Name the points classification for predictor-lotto and stage 1`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points classification for predictor-lotto and stage 1`:
```sql
                SELECT "points_classification" FROM "jersey_progress" WHERE "team_classification"='predictor-lotto' AND "stage"='1';
```
## Task
Generate a SQL query to answer the following question:
`Name the points classification for quick step-innergetic with stage 7`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points classification for quick step-innergetic with stage 7`:
```sql
                SELECT "points_classification" FROM "jersey_progress" WHERE "team_classification"='quick step-innergetic' AND "stage"='7';
```