cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which school was the drafted player from in a pick larger than 181?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school was the drafted player from in a pick larger than 181?`:
```sql
                SELECT "school" FROM "nfl_draft" WHERE "pick">181;
```
## Task
Generate a SQL query to answer the following question:
`Which points against has 17 as the lost?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which points against has 17 as the lost?`:
```sql
                SELECT "points_against" FROM "2008_2009_table" WHERE "lost"='17';
```
## Task
Generate a SQL query to answer the following question:
`What lost has 528 as the points?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What lost has 528 as the points?`:
```sql
                SELECT "lost" FROM "2008_2009_table" WHERE "points_for"='528';
```
## Task
Generate a SQL query to answer the following question:
`What is the drawn that has 16 as the trys bonus?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the drawn that has 16 as the trys bonus?`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "try_bonus"='16';
```
## Task
Generate a SQL query to answer the following question:
`What club has tries for in the category tries for?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club has tries for in the category tries for?`:
```sql
                SELECT "club" FROM "2008_2009_table" WHERE "tries_for"='tries for';
```
## Task
Generate a SQL query to answer the following question:
`What is the drawn that has 22 for played, and 96 for points?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the drawn that has 22 for played, and 96 for points?`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "played"='22' AND "points"='96';
```
## Task
Generate a SQL query to answer the following question:
`What points have 1 for drawn, and 16 as a try bonus?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What points have 1 for drawn, and 16 as a try bonus?`:
```sql
                SELECT "points_for" FROM "2008_2009_table" WHERE "drawn"='1' AND "try_bonus"='16';
```
## Task
Generate a SQL query to answer the following question:
`What is team 1 in group h?`

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

CREATE TABLE "2006_fifa_world_cup" (
  "date" text,
  "time_cest" real,
  "team_num1" text,
  "res" text,
  "team_num2" text,
  "round" text,
  "spectators" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is team 1 in group h?`:
```sql
                SELECT "team_num1" FROM "2006_fifa_world_cup" WHERE "round"='group h';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on 15 march 2006?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 15 march 2006?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='15 march 2006';
```
## Task
Generate a SQL query to answer the following question:
`Which winning team has a winning pitcher of Chris Young and was played in Arlington?`

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

CREATE TABLE "lone_star_series" (
  "date" text,
  "winning_team" text,
  "score" text,
  "winning_pitcher" text,
  "losing_pitcher" text,
  "attendance" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which winning team has a winning pitcher of Chris Young and was played in Arlington?`:
```sql
                SELECT "winning_team" FROM "lone_star_series" WHERE "winning_pitcher"='chris young' AND "location"='arlington';
```
## Task
Generate a SQL query to answer the following question:
`What winning team has a losing pitcher of Juan Dominguez?`

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

CREATE TABLE "lone_star_series" (
  "date" text,
  "winning_team" text,
  "score" text,
  "winning_pitcher" text,
  "losing_pitcher" text,
  "attendance" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What winning team has a losing pitcher of Juan Dominguez?`:
```sql
                SELECT "winning_team" FROM "lone_star_series" WHERE "losing_pitcher"='juan dominguez';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on August 14?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on August 14?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='august 14';
```
## Task
Generate a SQL query to answer the following question:
`Which loss had a record of 79-49?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which loss had a record of 79-49?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='79-49';
```
## Task
Generate a SQL query to answer the following question:
`What is the semi-final dual television commentator status of the year with Pierre Tchernia as the grand final television commentator and an unknown spokesperson?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "grand_final_television_commentator" text,
  "grand_final_dual_television_commentator" text,
  "spokesperson" text,
  "semi_final_television_commentator" text,
  "semi_final_dual_television_commentator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the semi-final dual television commentator status of the year with Pierre Tchernia as the grand final television commentator and an unknown spokesperson?`:
```sql
                SELECT "semi_final_dual_television_commentator" FROM "commentators_and_spokespersons" WHERE "grand_final_television_commentator"='pierre tchernia' AND "spokesperson"='unknown';
```
## Task
Generate a SQL query to answer the following question:
`What is the semi-final television commentator status in 1962 with an unknown spokesperson?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "grand_final_television_commentator" text,
  "grand_final_dual_television_commentator" text,
  "spokesperson" text,
  "semi_final_television_commentator" text,
  "semi_final_dual_television_commentator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the semi-final television commentator status in 1962 with an unknown spokesperson?`:
```sql
                SELECT "semi_final_television_commentator" FROM "commentators_and_spokespersons" WHERE "spokesperson"='unknown' AND "year_s"=1962;
```
## Task
Generate a SQL query to answer the following question:
`What is the grand final television commentator status after 1959 when Dave was the grand final dual television commentator and Marie Myriam was the spokesperson?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "grand_final_television_commentator" text,
  "grand_final_dual_television_commentator" text,
  "spokesperson" text,
  "semi_final_television_commentator" text,
  "semi_final_dual_television_commentator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grand final television commentator status after 1959 when Dave was the grand final dual television commentator and Marie Myriam was the spokesperson?`:
```sql
                SELECT "grand_final_television_commentator" FROM "commentators_and_spokespersons" WHERE "year_s">1959 AND "grand_final_dual_television_commentator"='dave' AND "spokesperson"='marie myriam';
```
## Task
Generate a SQL query to answer the following question:
`What is the grand final dual television commentator status of the year when Amaury Vassili was the spokesperson?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "grand_final_television_commentator" text,
  "grand_final_dual_television_commentator" text,
  "spokesperson" text,
  "semi_final_television_commentator" text,
  "semi_final_dual_television_commentator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grand final dual television commentator status of the year when Amaury Vassili was the spokesperson?`:
```sql
                SELECT "grand_final_dual_television_commentator" FROM "commentators_and_spokespersons" WHERE "spokesperson"='amaury vassili';
```
## Task
Generate a SQL query to answer the following question:
`What state has lincoln, de as the hometown?`

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

CREATE TABLE "delegates" (
  "state" text,
  "name" text,
  "hometown" text,
  "age_1" real,
  "talent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state has lincoln, de as the hometown?`:
```sql
                SELECT "state" FROM "delegates" WHERE "hometown"='lincoln, de';
```
## Task
Generate a SQL query to answer the following question:
`Name the ship with hull number of aor-6`

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

CREATE TABLE "ships" (
  "ship" text,
  "hull_no" text,
  "builder" text,
  "home_port" text,
  "commissioned_decommissioned" text,
  "nvr_page" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ship with hull number of aor-6`:
```sql
                SELECT "ship" FROM "ships" WHERE "hull_no"='aor-6';
```
## Task
Generate a SQL query to answer the following question:
`Name the hull number of Commissioned– Decommissioned of 1973–1996`

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

CREATE TABLE "ships" (
  "ship" text,
  "hull_no" text,
  "builder" text,
  "home_port" text,
  "commissioned_decommissioned" text,
  "nvr_page" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the hull number of Commissioned– Decommissioned of 1973–1996`:
```sql
                SELECT "hull_no" FROM "ships" WHERE "commissioned_decommissioned"='1973–1996';
```
## Task
Generate a SQL query to answer the following question:
`Name the commissioned-decommissioned for oakland and NVR page of aor-1`

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

CREATE TABLE "ships" (
  "ship" text,
  "hull_no" text,
  "builder" text,
  "home_port" text,
  "commissioned_decommissioned" text,
  "nvr_page" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the commissioned-decommissioned for oakland and NVR page of aor-1`:
```sql
                SELECT "commissioned_decommissioned" FROM "ships" WHERE "home_port"='oakland' AND "nvr_page"='aor-1';
```
## Task
Generate a SQL query to answer the following question:
`Name the home port for kansas city`

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

CREATE TABLE "ships" (
  "ship" text,
  "hull_no" text,
  "builder" text,
  "home_port" text,
  "commissioned_decommissioned" text,
  "nvr_page" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the home port for kansas city`:
```sql
                SELECT "home_port" FROM "ships" WHERE "ship"='kansas city';
```
## Task
Generate a SQL query to answer the following question:
`Name the commissioned-decommissioned for NVR page of aor-7`

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

CREATE TABLE "ships" (
  "ship" text,
  "hull_no" text,
  "builder" text,
  "home_port" text,
  "commissioned_decommissioned" text,
  "nvr_page" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the commissioned-decommissioned for NVR page of aor-7`:
```sql
                SELECT "commissioned_decommissioned" FROM "ships" WHERE "nvr_page"='aor-7';
```
## Task
Generate a SQL query to answer the following question:
`Name the ship for oakland home port and NVR page of aor-3`

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

CREATE TABLE "ships" (
  "ship" text,
  "hull_no" text,
  "builder" text,
  "home_port" text,
  "commissioned_decommissioned" text,
  "nvr_page" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ship for oakland home port and NVR page of aor-3`:
```sql
                SELECT "ship" FROM "ships" WHERE "home_port"='oakland' AND "nvr_page"='aor-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the location and ship type in the Gulf of Mexico that entered service in 1999?`

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

CREATE TABLE "ultra_deep_water" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text,
  "customer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the location and ship type in the Gulf of Mexico that entered service in 1999?`:
```sql
                SELECT "name" FROM "ultra_deep_water" WHERE "location"='gulf of mexico' AND "type"='ship' AND "entered_service"='1999';
```
## Task
Generate a SQL query to answer the following question:
`What was the water depth that entered service in 2001 named Cajun Express?`

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

CREATE TABLE "ultra_deep_water" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text,
  "customer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the water depth that entered service in 2001 named Cajun Express?`:
```sql
                SELECT "water_depth" FROM "ultra_deep_water" WHERE "entered_service"='2001' AND "name"='cajun express';
```
## Task
Generate a SQL query to answer the following question:
`What was the water depth in the Gulf of Mexico named Discoverer Clear Leader?`

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

CREATE TABLE "ultra_deep_water" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text,
  "customer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the water depth in the Gulf of Mexico named Discoverer Clear Leader?`:
```sql
                SELECT "water_depth" FROM "ultra_deep_water" WHERE "location"='gulf of mexico' AND "name"='discoverer clear leader';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of a location in Nigeria?`

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

CREATE TABLE "ultra_deep_water" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text,
  "customer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of a location in Nigeria?`:
```sql
                SELECT "name" FROM "ultra_deep_water" WHERE "location"='nigeria';
```
## Task
Generate a SQL query to answer the following question:
`What location entered service in 1999 and had a customer of Anadarko?`

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

CREATE TABLE "ultra_deep_water" (
  "name" text,
  "type" text,
  "entered_service" text,
  "water_depth" text,
  "location" text,
  "customer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location entered service in 1999 and had a customer of Anadarko?`:
```sql
                SELECT "location" FROM "ultra_deep_water" WHERE "entered_service"='1999' AND "customer"='anadarko';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score on January 30?`

### 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 was the Score on January 30?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "date"='january 30';
```
## Task
Generate a SQL query to answer the following question:
`Who were the Visitor of the Toronto Maple Leafs Home game on December 22?`

### 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 `Who were the Visitor of the Toronto Maple Leafs Home game on December 22?`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "home"='toronto maple leafs' AND "date"='december 22';
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the Record 9–6–4?`

### 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 was the Record 9–6–4?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "record"='9–6–4';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score on March 1?`

### 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 was the Score on March 1?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "date"='march 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the primary conference that was founded before 1866 and has an affiliation of private/catholic?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the primary conference that was founded before 1866 and has an affiliation of private/catholic?`:
```sql
                SELECT "primary_conference" FROM "membership" WHERE "founded"<1866 AND "affiliation"='private/catholic';
```
## Task
Generate a SQL query to answer the following question:
`What is the total enrollment for an affiliation of public, and was founded before 1866?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total enrollment for an affiliation of public, and was founded before 1866?`:
```sql
                SELECT COUNT("enrollment") FROM "membership" WHERE "affiliation"='public' AND "founded"<1866;
```
## Task
Generate a SQL query to answer the following question:
`What is the affiliation for towson, md?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the affiliation for towson, md?`:
```sql
                SELECT "affiliation" FROM "membership" WHERE "location"='towson, md';
```
## Task
Generate a SQL query to answer the following question:
`What is the total enrollment for a private/catholic affiliation and founded after 1842?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total enrollment for a private/catholic affiliation and founded after 1842?`:
```sql
                SELECT COUNT("enrollment") FROM "membership" WHERE "affiliation"='private/catholic' AND "founded">1842;
```
## Task
Generate a SQL query to answer the following question:
`What is the number founded for the nickname mountain hawks?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number founded for the nickname mountain hawks?`:
```sql
                SELECT COUNT("founded") FROM "membership" WHERE "nickname"='mountain hawks';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the season in the host city kėdainiai?`

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

CREATE TABLE "bbl_cup_winners" (
  "season" real,
  "winner" text,
  "finalist" text,
  "score" text,
  "host_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the season in the host city kėdainiai?`:
```sql
                SELECT "score" FROM "bbl_cup_winners" WHERE "host_city"='kėdainiai';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner of the season before 2010 with Lietuvos Rytas as a finalist?`

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

CREATE TABLE "bbl_cup_winners" (
  "season" real,
  "winner" text,
  "finalist" text,
  "score" text,
  "host_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of the season before 2010 with Lietuvos Rytas as a finalist?`:
```sql
                SELECT "winner" FROM "bbl_cup_winners" WHERE "finalist"='lietuvos rytas' AND "season"<2010;
```
## Task
Generate a SQL query to answer the following question:
`Who was the finalist in the 2010 season in the host city tartu?`

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

CREATE TABLE "bbl_cup_winners" (
  "season" real,
  "winner" text,
  "finalist" text,
  "score" text,
  "host_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the finalist in the 2010 season in the host city tartu?`:
```sql
                SELECT "finalist" FROM "bbl_cup_winners" WHERE "host_city"='tartu' AND "season"=2010;
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner during the 2009 season?`

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

CREATE TABLE "bbl_cup_winners" (
  "season" real,
  "winner" text,
  "finalist" text,
  "score" text,
  "host_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner during the 2009 season?`:
```sql
                SELECT "winner" FROM "bbl_cup_winners" WHERE "season"=2009;
```
## Task
Generate a SQL query to answer the following question:
`What is the host city during the 2012 season?`

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

CREATE TABLE "bbl_cup_winners" (
  "season" real,
  "winner" text,
  "finalist" text,
  "score" text,
  "host_city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the host city during the 2012 season?`:
```sql
                SELECT "host_city" FROM "bbl_cup_winners" WHERE "season"=2012;
```
## Task
Generate a SQL query to answer the following question:
`what game had a score of 4–6, 6–3, 7–6(10)?`

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

CREATE TABLE "singles" (
  "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 game had a score of 4–6, 6–3, 7–6(10)?`:
```sql
                SELECT "tournament" FROM "singles" WHERE "score"='4–6, 6–3, 7–6(10)';
```
## Task
Generate a SQL query to answer the following question:
`When did eleonor magdalene of the palatinate-neuburg become duchess?`

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

CREATE TABLE "house_of_habsburg_1653_1722" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did eleonor magdalene of the palatinate-neuburg become duchess?`:
```sql
                SELECT "became_duchess" FROM "house_of_habsburg_1653_1722" WHERE "name"='eleonor magdalene of the palatinate-neuburg';
```
## Task
Generate a SQL query to answer the following question:
`Which Marriage has a Became Duchess of 12 december 1666?`

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

CREATE TABLE "house_of_habsburg_1653_1722" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Marriage has a Became Duchess of 12 december 1666?`:
```sql
                SELECT "marriage" FROM "house_of_habsburg_1653_1722" WHERE "became_duchess"='12 december 1666';
```
## Task
Generate a SQL query to answer the following question:
`When did the person die who was born on 18 november 1630?`

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

CREATE TABLE "house_of_habsburg_1653_1722" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the person die who was born on 18 november 1630?`:
```sql
                SELECT "death" FROM "house_of_habsburg_1653_1722" WHERE "birth"='18 november 1630';
```
## Task
Generate a SQL query to answer the following question:
`Which Birth has a Became Duchess of 17 april 1711 husband's ascension?`

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

CREATE TABLE "house_of_habsburg_1653_1722" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Birth has a Became Duchess of 17 april 1711 husband's ascension?`:
```sql
                SELECT "birth" FROM "house_of_habsburg_1653_1722" WHERE "became_duchess"='17 april 1711 husband''s ascension';
```
## Task
Generate a SQL query to answer the following question:
`Which Spouse has a Birth of 30 may 1653?`

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

CREATE TABLE "house_of_habsburg_1653_1722" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Spouse has a Birth of 30 may 1653?`:
```sql
                SELECT "spouse" FROM "house_of_habsburg_1653_1722" WHERE "birth"='30 may 1653';
```
## Task
Generate a SQL query to answer the following question:
`When did the person born on 6 january 1655 die?`

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

CREATE TABLE "house_of_habsburg_1653_1722" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the person born on 6 january 1655 die?`:
```sql
                SELECT "death" FROM "house_of_habsburg_1653_1722" WHERE "birth"='6 january 1655';
```
## Task
Generate a SQL query to answer the following question:
`Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them?`

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

CREATE TABLE "2008_six_nations_championship_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them?`:
```sql
                SELECT "club_province" FROM "2008_six_nations_championship_squads" WHERE "caps">15 AND "player"='chris cusiter';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of birth for the player from Ulster and plays at Centre position?`

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

CREATE TABLE "2008_six_nations_championship_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of birth for the player from Ulster and plays at Centre position?`:
```sql
                SELECT "date_of_birth_age" FROM "2008_six_nations_championship_squads" WHERE "club_province"='ulster' AND "position"='centre';
```
## Task
Generate a SQL query to answer the following question:
`What type of disaster is rms atlantic categorized in that was located in Nova Scotia?`

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

CREATE TABLE "200_or_more_deaths" (
  "disaster" text,
  "type" text,
  "location" text,
  "deaths" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of disaster is rms atlantic categorized in that was located in Nova Scotia?`:
```sql
                SELECT "type" FROM "200_or_more_deaths" WHERE "location"='nova scotia' AND "disaster"='rms atlantic';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of disaster that the Arrow Air Flight 1285 categorized in?`

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

CREATE TABLE "200_or_more_deaths" (
  "disaster" text,
  "type" text,
  "location" text,
  "deaths" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of disaster that the Arrow Air Flight 1285 categorized in?`:
```sql
                SELECT "type" FROM "200_or_more_deaths" WHERE "disaster"='arrow air flight 1285';
```
## Task
Generate a SQL query to answer the following question:
`What is the disaster that was located in Ontario with 223 deaths?`

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

CREATE TABLE "200_or_more_deaths" (
  "disaster" text,
  "type" text,
  "location" text,
  "deaths" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the disaster that was located in Ontario with 223 deaths?`:
```sql
                SELECT "disaster" FROM "200_or_more_deaths" WHERE "location"='ontario' AND "deaths"='223';
```
## Task
Generate a SQL query to answer the following question:
`How many deaths were there during the shipwreck in 1873?`

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

CREATE TABLE "200_or_more_deaths" (
  "disaster" text,
  "type" text,
  "location" text,
  "deaths" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many deaths were there during the shipwreck in 1873?`:
```sql
                SELECT "deaths" FROM "200_or_more_deaths" WHERE "type"='shipwreck' AND "date"='1873';
```
## Task
Generate a SQL query to answer the following question:
`Where was the disaster located that took place on 1916?`

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

CREATE TABLE "200_or_more_deaths" (
  "disaster" text,
  "type" text,
  "location" text,
  "deaths" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the disaster located that took place on 1916?`:
```sql
                SELECT "location" FROM "200_or_more_deaths" WHERE "date"='1916';
```
## Task
Generate a SQL query to answer the following question:
`Which Laps is the highest one that has a Time/Retired of +3.370 secs?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Laps is the highest one that has a Time/Retired of +3.370 secs?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "time_retired"='+3.370 secs';
```
## Task
Generate a SQL query to answer the following question:
`Which Grid has a Team of rusport, and Laps larger than 221?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid has a Team of rusport, and Laps larger than 221?`:
```sql
                SELECT SUM("grid") FROM "race" WHERE "team"='rusport' AND "laps">221;
```
## Task
Generate a SQL query to answer the following question:
`What title has a producer of MAQ and Anna as a role?`

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

CREATE TABLE "1996_to_1999" (
  "year" real,
  "title" text,
  "role" text,
  "producer" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title has a producer of MAQ and Anna as a role?`:
```sql
                SELECT "title" FROM "1996_to_1999" WHERE "producer"='maq' AND "role"='anna';
```
## Task
Generate a SQL query to answer the following question:
`How many years was Kay Tagal Kang Hinintay directed by Rory Quintos and produced by Star Cinema?`

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

CREATE TABLE "1996_to_1999" (
  "year" real,
  "title" text,
  "role" text,
  "producer" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was Kay Tagal Kang Hinintay directed by Rory Quintos and produced by Star Cinema?`:
```sql
                SELECT COUNT("year") FROM "1996_to_1999" WHERE "producer"='star cinema' AND "director"='rory quintos' AND "title"='kay tagal kang hinintay';
```
## Task
Generate a SQL query to answer the following question:
`Which title was directed by Joyce Bernal?`

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

CREATE TABLE "1996_to_1999" (
  "year" real,
  "title" text,
  "role" text,
  "producer" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title was directed by Joyce Bernal?`:
```sql
                SELECT "title" FROM "1996_to_1999" WHERE "director"='joyce bernal';
```
## Task
Generate a SQL query to answer the following question:
`What song is it that artist morena camilleri does and has more than 38 points`

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

CREATE TABLE "results" (
  "draw" real,
  "artist" text,
  "song" text,
  "composer" text,
  "lyricist" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What song is it that artist morena camilleri does and has more than 38 points`:
```sql
                SELECT "song" FROM "results" WHERE "points">38 AND "artist"='morena camilleri';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of points for ray agius`

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

CREATE TABLE "results" (
  "draw" real,
  "artist" text,
  "song" text,
  "composer" text,
  "lyricist" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of points for ray agius`:
```sql
                SELECT SUM("points") FROM "results" WHERE "lyricist"='ray agius';
```
## Task
Generate a SQL query to answer the following question:
`What play did henry s. uber / betty uber (eng) finish in?`

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

CREATE TABLE "wins" (
  "season" real,
  "challenge" text,
  "class" text,
  "place" real,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What play did henry s. uber / betty uber (eng) finish in?`:
```sql
                SELECT COUNT("place") FROM "wins" WHERE "name"='henry s. uber / betty uber (eng)';
```
## Task
Generate a SQL query to answer the following question:
`When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)?`

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

CREATE TABLE "current_members_of_the_howard_county_del" (
  "district" text,
  "counties_represented" text,
  "delegate" text,
  "party" text,
  "first_elected" real,
  "committee" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)?`:
```sql
                SELECT MAX("first_elected") FROM "current_members_of_the_howard_county_del" WHERE "counties_represented"='baltimore county, howard' AND "committee"='environmental matters (vice-chair)';
```
## Task
Generate a SQL query to answer the following question:
`What party is the delegate of Turner, Frank S. Frank S. Turner of Howard County?`

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

CREATE TABLE "current_members_of_the_howard_county_del" (
  "district" text,
  "counties_represented" text,
  "delegate" text,
  "party" text,
  "first_elected" real,
  "committee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party is the delegate of Turner, Frank S. Frank S. Turner of Howard County?`:
```sql
                SELECT "party" FROM "current_members_of_the_howard_county_del" WHERE "counties_represented"='howard' AND "delegate"='turner, frank s. frank s. turner';
```
## Task
Generate a SQL query to answer the following question:
`What is the damage of storm three?`

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

CREATE TABLE "1932_north_atlantic_tropical_cyclone_sta" (
  "storm_name" text,
  "dates_active" text,
  "max_1_min_wind_mph_km_h" text,
  "min_press_mbar" text,
  "damage_millions_usd" text,
  "deaths" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the damage of storm three?`:
```sql
                SELECT "damage_millions_usd" FROM "1932_north_atlantic_tropical_cyclone_sta" WHERE "storm_name"='three';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a MotoGP winner of casey stoner, and a 250cc winner of hiroshi aoyama?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a MotoGP winner of casey stoner, and a 250cc winner of hiroshi aoyama?`:
```sql
                SELECT "date" FROM "grands_prix" WHERE "moto_gp_winner"='casey stoner' AND "250cc_winner"='hiroshi aoyama';
```
## Task
Generate a SQL query to answer the following question:
`Which 250cc winner has a 125cc winner of bradley smith, and a MotoGP winner of casey stoner?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 250cc winner has a 125cc winner of bradley smith, and a MotoGP winner of casey stoner?`:
```sql
                SELECT "250cc_winner" FROM "grands_prix" WHERE "125cc_winner"='bradley smith' AND "moto_gp_winner"='casey stoner';
```
## Task
Generate a SQL query to answer the following question:
`Which Round is the lowest one that has a Circuit of donington?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round is the lowest one that has a Circuit of donington?`:
```sql
                SELECT MIN("round") FROM "grands_prix" WHERE "circuit"='donington';
```
## Task
Generate a SQL query to answer the following question:
`Which MotoGP winner has a 250cc winner of marco simoncelli, and a Round of 15?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which MotoGP winner has a 250cc winner of marco simoncelli, and a Round of 15?`:
```sql
                SELECT "moto_gp_winner" FROM "grands_prix" WHERE "250cc_winner"='marco simoncelli' AND "round"=15;
```
## Task
Generate a SQL query to answer the following question:
`Which 250cc winner has a 125cc winner of bradley smith, and a Circuit of mugello?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 250cc winner has a 125cc winner of bradley smith, and a Circuit of mugello?`:
```sql
                SELECT "250cc_winner" FROM "grands_prix" WHERE "125cc_winner"='bradley smith' AND "circuit"='mugello';
```
## Task
Generate a SQL query to answer the following question:
`Which 250cc winner has a Round larger than 6, and a Date of 26 july?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 250cc winner has a Round larger than 6, and a Date of 26 july?`:
```sql
                SELECT "250cc_winner" FROM "grands_prix" WHERE "round">6 AND "date"='26 july';
```
## Task
Generate a SQL query to answer the following question:
`Attendance of 48,510 had what highest week?`

### 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,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Attendance of 48,510 had what highest week?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "attendance"='48,510';
```