cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the low lap total for the under 4 grid car driven by juan pablo montoya?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the low lap total for the under 4 grid car driven by juan pablo montoya?`:
```sql
                SELECT MIN("laps") FROM "race" WHERE "grid"<4 AND "driver"='juan pablo montoya';
```
## Task
Generate a SQL query to answer the following question:
`Who drove the grid 11 car?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove the grid 11 car?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the grid total for cars with over 69 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid total for cars with over 69 laps?`:
```sql
                SELECT COUNT("grid") FROM "race" WHERE "laps">69;
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired with 22 laps and a grid of 29?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/retired with 22 laps and a grid of 29?`:
```sql
                SELECT "time_retired" FROM "125cc_classification" WHERE "laps"=22 AND "grid"=29;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of laps with a time of +6.643 and grid less than 2?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of laps with a time of +6.643 and grid less than 2?`:
```sql
                SELECT MAX("laps") FROM "125cc_classification" WHERE "time_retired"='+6.643' AND "grid"<2;
```
## Task
Generate a SQL query to answer the following question:
`When was there 204 deaths?`

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

CREATE TABLE "season_effects" (
  "name" text,
  "dates_active" text,
  "windspeeds" text,
  "pressure" text,
  "deaths" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was there 204 deaths?`:
```sql
                SELECT "dates_active" FROM "season_effects" WHERE "deaths"='204';
```
## Task
Generate a SQL query to answer the following question:
`When is the birth date of player with right arm fast style?`

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

CREATE TABLE "west_indies" (
  "player" text,
  "date_of_birth" text,
  "batting_style" text,
  "bowling_style" text,
  "first_class_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the birth date of player with right arm fast style?`:
```sql
                SELECT "date_of_birth" FROM "west_indies" WHERE "bowling_style"='right arm fast';
```
## Task
Generate a SQL query to answer the following question:
`What batting style corresponds to a bowling style of right arm medium for Stuart Williams?`

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

CREATE TABLE "west_indies" (
  "player" text,
  "date_of_birth" text,
  "batting_style" text,
  "bowling_style" text,
  "first_class_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What batting style corresponds to a bowling style of right arm medium for Stuart Williams?`:
```sql
                SELECT "batting_style" FROM "west_indies" WHERE "bowling_style"='right arm medium' AND "player"='stuart williams';
```
## Task
Generate a SQL query to answer the following question:
`What is the birth date for Mervyn Dillon?`

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

CREATE TABLE "west_indies" (
  "player" text,
  "date_of_birth" text,
  "batting_style" text,
  "bowling_style" text,
  "first_class_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the birth date for Mervyn Dillon?`:
```sql
                SELECT "date_of_birth" FROM "west_indies" WHERE "player"='mervyn dillon';
```
## Task
Generate a SQL query to answer the following question:
`What position does Michael Ruffin play?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Michael Ruffin play?`:
```sql
                SELECT "position" FROM "r" WHERE "player"='michael ruffin';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the center?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the center?`:
```sql
                SELECT "nationality" FROM "r" WHERE "position"='center';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the Jazz player 1977-79?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the Jazz player 1977-79?`:
```sql
                SELECT "nationality" FROM "r" WHERE "years_for_jazz"='1977-79';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the School/Club team of the player from the United States that play'de guard?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the School/Club team of the player from the United States that play'de guard?`:
```sql
                SELECT "school_club_team" FROM "r" WHERE "nationality"='united states' AND "position"='guard';
```
## Task
Generate a SQL query to answer the following question:
`What nationality is Bill Robinzine?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is Bill Robinzine?`:
```sql
                SELECT "nationality" FROM "r" WHERE "player"='bill robinzine';
```
## Task
Generate a SQL query to answer the following question:
`What is the average of seasons for 10th place finishes?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average of seasons for 10th place finishes?`:
```sql
                SELECT AVG("season") FROM "season_to_season" WHERE "position"='10th';
```
## Task
Generate a SQL query to answer the following question:
`What season was there a 2nd place finish?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season was there a 2nd place finish?`:
```sql
                SELECT "season" FROM "season_to_season" WHERE "position"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?`:
```sql
                SELECT "level" FROM "season_to_season" WHERE "season">2003 AND "division"='kakkonen (second division)' AND "position"='12th';
```
## Task
Generate a SQL query to answer the following question:
`What was the streak on April 2?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the streak on April 2?`:
```sql
                SELECT "streak" FROM "april" WHERE "date"='april 2';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team when the leading scorer was Jones : 20?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team when the leading scorer was Jones : 20?`:
```sql
                SELECT "visitor" FROM "april" WHERE "leading_scorer"='jones : 20';
```
## Task
Generate a SQL query to answer the following question:
`How many people watched season 1?`

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

CREATE TABLE "american_television_ratings" (
  "season" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people watched season 1?`:
```sql
                SELECT "viewers_in_millions" FROM "american_television_ratings" WHERE "season"='1';
```
## Task
Generate a SQL query to answer the following question:
`What was the ranking of the season whose finale aired on May 15, 2011?`

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

CREATE TABLE "american_television_ratings" (
  "season" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ranking of the season whose finale aired on May 15, 2011?`:
```sql
                SELECT "ranking" FROM "american_television_ratings" WHERE "season_finale"='may 15, 2011';
```
## Task
Generate a SQL query to answer the following question:
`Which season premiered on November 27, 2012?`

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

CREATE TABLE "american_television_ratings" (
  "season" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which season premiered on November 27, 2012?`:
```sql
                SELECT "season" FROM "american_television_ratings" WHERE "season_premiere"='november 27, 2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3?`:
```sql
                SELECT SUM("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num"<122 AND "player"='rob flockhart' AND "rd_num"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0?`:
```sql
                SELECT MIN("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num">2 AND "pick_num"=80 AND "pl_gp">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the highest FIPS code for coordinates of 41.827547, -74.118478 and land less than 1.196`

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

CREATE TABLE "census_designated_places_in_new_york" (
  "cdp_name" text,
  "county" text,
  "pop_2010" real,
  "land_sq_mi" real,
  "water_sq_mi" real,
  "coordinates" text,
  "fips_code" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest FIPS code for coordinates of 41.827547, -74.118478 and land less than 1.196`:
```sql
                SELECT MAX("fips_code") FROM "census_designated_places_in_new_york" WHERE "coordinates"='41.827547, -74.118478' AND "land_sq_mi"<1.196;
```
## Task
Generate a SQL query to answer the following question:
`Name the CDP name for FIPS code of 3659708`

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

CREATE TABLE "census_designated_places_in_new_york" (
  "cdp_name" text,
  "county" text,
  "pop_2010" real,
  "land_sq_mi" real,
  "water_sq_mi" real,
  "coordinates" text,
  "fips_code" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the CDP name for FIPS code of 3659708`:
```sql
                SELECT "cdp_name" FROM "census_designated_places_in_new_york" WHERE "fips_code"=3659708;
```
## Task
Generate a SQL query to answer the following question:
`Name the FIPS code for county of wyoming and CDP name of pike`

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

CREATE TABLE "census_designated_places_in_new_york" (
  "cdp_name" text,
  "county" text,
  "pop_2010" real,
  "land_sq_mi" real,
  "water_sq_mi" real,
  "coordinates" text,
  "fips_code" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the FIPS code for county of wyoming and CDP name of pike`:
```sql
                SELECT "fips_code" FROM "census_designated_places_in_new_york" WHERE "county"='wyoming' AND "cdp_name"='pike';
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of land for ANSI code of 2390496 and population less than 7,284`

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

CREATE TABLE "census_designated_places_in_new_york" (
  "cdp_name" text,
  "county" text,
  "pop_2010" real,
  "land_sq_mi" real,
  "water_sq_mi" real,
  "coordinates" text,
  "fips_code" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of land for ANSI code of 2390496 and population less than 7,284`:
```sql
                SELECT SUM("land_sq_mi") FROM "census_designated_places_in_new_york" WHERE "ansi_code"=2390496 AND "pop_2010"<'7,284';
```
## Task
Generate a SQL query to answer the following question:
`How many solo tackles for the player with over 0 TDs and over 0 sacks?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many solo tackles for the player with over 0 TDs and over 0 sacks?`:
```sql
                SELECT MIN("solo") FROM "defense" WHERE "td_s">0 AND "sack">0;
```
## Task
Generate a SQL query to answer the following question:
`How many sacks for the player with over 1 tackle, under 3 assisted tackles, and over 0 yards?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many sacks for the player with over 1 tackle, under 3 assisted tackles, and over 0 yards?`:
```sql
                SELECT COUNT("sack") FROM "defense" WHERE "tackles">1 AND "assisted"<3 AND "yards">0;
```
## Task
Generate a SQL query to answer the following question:
`What stamp design has a denomination of $1.18?`

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

CREATE TABLE "2009" (
  "date_of_issue" text,
  "denomination" text,
  "design" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stamp design has a denomination of $1.18?`:
```sql
                SELECT "design" FROM "2009" WHERE "denomination"='$1.18';
```
## Task
Generate a SQL query to answer the following question:
`What is the denomination for the stamp issued 8 January 2009?`

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

CREATE TABLE "2009" (
  "date_of_issue" text,
  "denomination" text,
  "design" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the denomination for the stamp issued 8 January 2009?`:
```sql
                SELECT "denomination" FROM "2009" WHERE "date_of_issue"='8 january 2009';
```
## Task
Generate a SQL query to answer the following question:
`What date was the John Belisle, Kosta Tsetsekas stamp issued?`

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

CREATE TABLE "2009" (
  "date_of_issue" text,
  "denomination" text,
  "design" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the John Belisle, Kosta Tsetsekas stamp issued?`:
```sql
                SELECT "date_of_issue" FROM "2009" WHERE "design"='john belisle, kosta tsetsekas';
```
## Task
Generate a SQL query to answer the following question:
`What is the first day cover cancellation for the Karen Smith Design stamp?`

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

CREATE TABLE "2009" (
  "date_of_issue" text,
  "denomination" text,
  "design" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first day cover cancellation for the Karen Smith Design stamp?`:
```sql
                SELECT "first_day_cover_cancellation" FROM "2009" WHERE "design"='karen smith design';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of Competition of 2008 africa cup of nations?`

### 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 is the date of Competition of 2008 africa cup of nations?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='2008 africa cup of nations';
```
## Task
Generate a SQL query to answer the following question:
`What is the score on 22 january 2008?`

### 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 is the score on 22 january 2008?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='22 january 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which venue was used 22 january 2008?`

### 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 `Which venue was used 22 january 2008?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='22 january 2008';
```
## Task
Generate a SQL query to answer the following question:
`What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification?`

### 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 result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "score"='1–0' AND "competition"='2014 fifa world cup qualification';
```
## Task
Generate a SQL query to answer the following question:
`What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?`

### 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 date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='2014 fifa world cup qualification' AND "score"='1–0';
```
## Task
Generate a SQL query to answer the following question:
`what is the object type when the right ascension (j2000) is 11h10m42.8s?`

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

CREATE TABLE "3501_3600" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the object type when the right ascension (j2000) is 11h10m42.8s?`:
```sql
                SELECT "object_type" FROM "3501_3600" WHERE "right_ascension_j2000"='11h10m42.8s';
```
## Task
Generate a SQL query to answer the following question:
`what is the declination (j2000) when the ngc number is higher than 3593?`

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

CREATE TABLE "3501_3600" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the declination (j2000) when the ngc number is higher than 3593?`:
```sql
                SELECT "declination_j2000" FROM "3501_3600" WHERE "ngc_number">3593;
```
## Task
Generate a SQL query to answer the following question:
`what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s?`

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

CREATE TABLE "3501_3600" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s?`:
```sql
                SELECT "constellation" FROM "3501_3600" WHERE "object_type"='spiral galaxy' AND "ngc_number"<3593 AND "right_ascension_j2000"='11h05m48.9s';
```
## Task
Generate a SQL query to answer the following question:
`what is the right ascension (j2000) when the ngc number is 3576?`

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

CREATE TABLE "3501_3600" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the right ascension (j2000) when the ngc number is 3576?`:
```sql
                SELECT "right_ascension_j2000" FROM "3501_3600" WHERE "ngc_number"=3576;
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver when the grid is 18?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver when the grid is 18?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"='18';
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired when the grid is 19?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/retired when the grid is 19?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid"='19';
```
## Task
Generate a SQL query to answer the following question:
`What was St Kilda's home team opponents score?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was St Kilda's home team opponents score?`:
```sql
                SELECT "home_team_score" FROM "round_16" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score at Carlton's away match?`

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

CREATE TABLE "round_14" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team score at Carlton's away match?`:
```sql
                SELECT "home_team_score" FROM "round_14" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`When did Hawthorn play at home?`

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

CREATE TABLE "round_14" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Hawthorn play at home?`:
```sql
                SELECT "date" FROM "round_14" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in attendance at St Kilda's away match?`

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

CREATE TABLE "round_14" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in attendance at St Kilda's away match?`:
```sql
                SELECT "crowd" FROM "round_14" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`Where did the home team score 8.9 (57)?`

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

CREATE TABLE "round_14" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the home team score 8.9 (57)?`:
```sql
                SELECT "venue" FROM "round_14" WHERE "home_team_score"='8.9 (57)';
```
## Task
Generate a SQL query to answer the following question:
`When did the away team score 7.16 (58)?`

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

CREATE TABLE "round_14" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the away team score 7.16 (58)?`:
```sql
                SELECT "date" FROM "round_14" WHERE "away_team_score"='7.16 (58)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the British Rail class 111 tslrb description?`

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

CREATE TABLE "list_of_great_central_railway_locomotive" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the British Rail class 111 tslrb description?`:
```sql
                SELECT "date" FROM "list_of_great_central_railway_locomotive" WHERE "description"='british rail class 111 tslrb';
```
## Task
Generate a SQL query to answer the following question:
`What is the number & name with an Undergoing overhaul, restoration or repairs date?`

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

CREATE TABLE "list_of_great_central_railway_locomotive" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number & name with an Undergoing overhaul, restoration or repairs date?`:
```sql
                SELECT "number_name" FROM "list_of_great_central_railway_locomotive" WHERE "date"='undergoing overhaul, restoration or repairs';
```
## Task
Generate a SQL query to answer the following question:
`What is the number & name of the livery in 1958?`

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

CREATE TABLE "list_of_great_central_railway_locomotive" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number & name of the livery in 1958?`:
```sql
                SELECT "number_name" FROM "list_of_great_central_railway_locomotive" WHERE "date"='1958';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank for a nation with 29 total medals, over 5 silvers, and under 16 bronze?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank for a nation with 29 total medals, over 5 silvers, and under 16 bronze?`:
```sql
                SELECT MIN("rank") FROM "medal_count" WHERE "silver">5 AND "total"=29 AND "bronze"<16;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank for a nation with 26 golds and over 17 silvers?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank for a nation with 26 golds and over 17 silvers?`:
```sql
                SELECT MAX("rank") FROM "medal_count" WHERE "gold"=26 AND "silver">17;
```
## Task
Generate a SQL query to answer the following question:
`What is the catalog number with the date November 16, 2004?`

### 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 `What is the catalog number with the date November 16, 2004?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "date"='november 16, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482?`

### 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 `What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482?`:
```sql
                SELECT "date" FROM "release_history" WHERE "label"='sony bmg, epic' AND "catalog"='5187482';
```
## Task
Generate a SQL query to answer the following question:
`Which Catalog has a Region of Canada and a Format of cd/dvd?`

### 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 `Which Catalog has a Region of Canada and a Format of cd/dvd?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "region"='canada' AND "format"='cd/dvd';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for a CD format with a Region of Europe?`

### 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 `What is the date for a CD format with a Region of Europe?`:
```sql
                SELECT "date" FROM "release_history" WHERE "region"='europe' AND "format"='cd';
```
## Task
Generate a SQL query to answer the following question:
`What nationality is the la salle team?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is the la salle team?`:
```sql
                SELECT "nationality" FROM "l" WHERE "school_club_team"='la salle';
```
## Task
Generate a SQL query to answer the following question:
`What's the nationality of jim les?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the nationality of jim les?`:
```sql
                SELECT "nationality" FROM "l" WHERE "player"='jim les';
```
## Task
Generate a SQL query to answer the following question:
`Which player has a nationality of spain?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a nationality of spain?`:
```sql
                SELECT "player" FROM "l" WHERE "nationality"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What position is listed for the nebraska team?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position is listed for the nebraska team?`:
```sql
                SELECT "position" FROM "l" WHERE "school_club_team"='nebraska';
```
## Task
Generate a SQL query to answer the following question:
`On October 24, who played at home when there was a decision of Ward?`

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

CREATE TABLE "october" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On October 24, who played at home when there was a decision of Ward?`:
```sql
                SELECT "home" FROM "october" WHERE "decision"='ward' AND "date"='october 24';
```
## Task
Generate a SQL query to answer the following question:
`How many laps are there for grid 8?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps are there for grid 8?`:
```sql
                SELECT "laps" FROM "classification" WHERE "grid"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the driver for Grid 8?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the driver for Grid 8?`:
```sql
                SELECT "driver" FROM "classification" WHERE "grid"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the average grid for Clay Regazzoni?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average grid for Clay Regazzoni?`:
```sql
                SELECT AVG("grid") FROM "classification" WHERE "driver"='clay regazzoni';
```
## Task
Generate a SQL query to answer the following question:
`What is the average laps for the grid smaller than 21 for Renzo Zorzi?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average laps for the grid smaller than 21 for Renzo Zorzi?`:
```sql
                SELECT AVG("laps") FROM "classification" WHERE "grid"<21 AND "driver"='renzo zorzi';
```
## Task
Generate a SQL query to answer the following question:
`What is the average laps for Grid 9?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average laps for Grid 9?`:
```sql
                SELECT AVG("laps") FROM "classification" WHERE "grid"=9;
```
## Task
Generate a SQL query to answer the following question:
`Name the constituted for labor and scullin ministry`

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

CREATE TABLE "ministries" (
  "order" real,
  "name" text,
  "party" text,
  "constituted" text,
  "concluded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the constituted for labor and scullin ministry`:
```sql
                SELECT "constituted" FROM "ministries" WHERE "party"='labor' AND "name"='scullin ministry';
```
## Task
Generate a SQL query to answer the following question:
`What location is the tournament with a 1st Prize larger than $202,500, and a Score of 274 (-14)?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `What location is the tournament with a 1st Prize larger than $202,500, and a Score of 274 (-14)?`:
```sql
                SELECT "location" FROM "tournament_results" WHERE "1st_prize">'202,500' AND "score"='274 (-14)';
```
## Task
Generate a SQL query to answer the following question:
`Who was South Melbourne's away team opponents?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was South Melbourne's away team opponents?`:
```sql
                SELECT "away_team" FROM "round_17" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer on November 2, 2007?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer on November 2, 2007?`:
```sql
                SELECT "leading_scorer" FROM "november" WHERE "date"='november 2, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance when the Hawks played?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when the Hawks played?`:
```sql
                SELECT COUNT("attendance") FROM "november" WHERE "home"='hawks';
```
## Task
Generate a SQL query to answer the following question:
`How many bronzes are there for the total nation with 112 silver and a total of 72?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronzes are there for the total nation with 112 silver and a total of 72?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "total">72 AND "nation"='total' AND "silver"<112;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest bronze for San Marino with less than 82 total and less than 3 golds?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest bronze for San Marino with less than 82 total and less than 3 golds?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "total"<82 AND "nation"='san marino' AND "gold"<3;
```
## Task
Generate a SQL query to answer the following question:
`How many golds were there when there was more than 11 bronze and 29 in total?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds were there when there was more than 11 bronze and 29 in total?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">11 AND "total"=29;
```
## Task
Generate a SQL query to answer the following question:
`What was Montenegro's average bronze with less than 7 silver and more than 4 golds?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Montenegro's average bronze with less than 7 silver and more than 4 golds?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "silver"<7 AND "nation"='montenegro' AND "gold">4;
```
## Task
Generate a SQL query to answer the following question:
`How many golds were there for Iceland with more than 15 silver?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds were there for Iceland with more than 15 silver?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "silver">15 AND "nation"='iceland';
```