cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the score on January 14 when the Chicago Black Hawks were home against the New York Rangers?`

### 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 14 when the Chicago Black Hawks were home against the New York Rangers?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "home"='chicago black hawks' AND "visitor"='new york rangers' AND "date"='january 14';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team on February 18 that had a visitor of the Chicago Black Hawks?`

### 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 was the home team on February 18 that had a visitor of the Chicago Black Hawks?`:
```sql
                SELECT "home" FROM "regular_season" WHERE "visitor"='chicago black hawks' AND "date"='february 18';
```
## Task
Generate a SQL query to answer the following question:
`What is points diff when points against is 123?`

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

CREATE TABLE "pool_4" (
  "team" text,
  "tries_for" text,
  "tries_against" text,
  "try_diff" text,
  "points_for" text,
  "points_against" text,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is points diff when points against is 123?`:
```sql
                SELECT "points_diff" FROM "pool_4" WHERE "points_against"='123';
```
## Task
Generate a SQL query to answer the following question:
`Which team has 123 points agaibst the other team?`

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

CREATE TABLE "pool_4" (
  "team" text,
  "tries_for" text,
  "tries_against" text,
  "try_diff" text,
  "points_for" text,
  "points_against" text,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has 123 points agaibst the other team?`:
```sql
                SELECT "team" FROM "pool_4" WHERE "points_against"='123';
```
## Task
Generate a SQL query to answer the following question:
`What is the points against when try diff is +23?`

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

CREATE TABLE "pool_4" (
  "team" text,
  "tries_for" text,
  "tries_against" text,
  "try_diff" text,
  "points_for" text,
  "points_against" text,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points against when try diff is +23?`:
```sql
                SELECT "points_against" FROM "pool_4" WHERE "try_diff"='+23';
```
## Task
Generate a SQL query to answer the following question:
`What is points when try diff is +23?`

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

CREATE TABLE "pool_4" (
  "team" text,
  "tries_for" text,
  "tries_against" text,
  "try_diff" text,
  "points_for" text,
  "points_against" text,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is points when try diff is +23?`:
```sql
                SELECT "points_for" FROM "pool_4" WHERE "try_diff"='+23';
```
## Task
Generate a SQL query to answer the following question:
`What is points sgsinst when points diff is +96?`

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

CREATE TABLE "pool_4" (
  "team" text,
  "tries_for" text,
  "tries_against" text,
  "try_diff" text,
  "points_for" text,
  "points_against" text,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is points sgsinst when points diff is +96?`:
```sql
                SELECT "points_against" FROM "pool_4" WHERE "points_diff"='+96';
```
## Task
Generate a SQL query to answer the following question:
`How many laps led when the Grid was 15?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps led when the Grid was 15?`:
```sql
                SELECT "laps_led" FROM "classification" WHERE "grid"='15';
```
## Task
Generate a SQL query to answer the following question:
`Name the Time/Retired when the points were 32.`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Time/Retired when the points were 32.`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "points"='32';
```
## Task
Generate a SQL query to answer the following question:
`What car number had 24 points?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What car number had 24 points?`:
```sql
                SELECT "car_no" FROM "classification" WHERE "points"='24';
```
## Task
Generate a SQL query to answer the following question:
`What team does Dan Wheldon drive for when he led 0 laps?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team does Dan Wheldon drive for when he led 0 laps?`:
```sql
                SELECT "team" FROM "classification" WHERE "laps_led"='0' AND "driver"='dan wheldon';
```
## Task
Generate a SQL query to answer the following question:
`How many points when the Grid was 1?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points when the Grid was 1?`:
```sql
                SELECT "points" FROM "classification" WHERE "grid"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the average game number that was on october 19?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average game number that was on october 19?`:
```sql
                SELECT AVG("game") FROM "schedule_and_results" WHERE "october"=19;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of October, when Opponent is "Pittsburgh Penguins"?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of October, when Opponent is "Pittsburgh Penguins"?`:
```sql
                SELECT SUM("october") FROM "schedule_and_results" WHERE "opponent"='pittsburgh penguins';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Game, when Record is "2-1-1", and when October is less than 21?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Game, when Record is "2-1-1", and when October is less than 21?`:
```sql
                SELECT SUM("game") FROM "schedule_and_results" WHERE "record"='2-1-1' AND "october"<21;
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when October is less than 31, and when Game is greater than 7?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when October is less than 31, and when Game is greater than 7?`:
```sql
                SELECT "opponent" FROM "schedule_and_results" WHERE "october"<31 AND "game">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the tie number for the home team Orient?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tie number for the home team Orient?`:
```sql
                SELECT "tie_no" FROM "third_round_proper" WHERE "home_team"='orient';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the away team Chelsea?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the away team Chelsea?`:
```sql
                SELECT "score" FROM "third_round_proper" WHERE "away_team"='chelsea';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team for the tie no. 29?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team for the tie no. 29?`:
```sql
                SELECT "away_team" FROM "third_round_proper" WHERE "tie_no"='29';
```
## Task
Generate a SQL query to answer the following question:
`What is the coronie with a 0.7% nickerie?`

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

CREATE TABLE "demography" (
  "religion" text,
  "suriname" text,
  "paramaribo" text,
  "wanica" text,
  "nickerie" text,
  "coronie" text,
  "saramacca" text,
  "commewijne" text,
  "marowijne" text,
  "para" text,
  "brokopondo" text,
  "sipaliwini" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coronie with a 0.7% nickerie?`:
```sql
                SELECT "coronie" FROM "demography" WHERE "nickerie"='0.7%';
```
## Task
Generate a SQL query to answer the following question:
`What is the marowijne with an 18.8% saramacca?`

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

CREATE TABLE "demography" (
  "religion" text,
  "suriname" text,
  "paramaribo" text,
  "wanica" text,
  "nickerie" text,
  "coronie" text,
  "saramacca" text,
  "commewijne" text,
  "marowijne" text,
  "para" text,
  "brokopondo" text,
  "sipaliwini" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the marowijne with an 18.8% saramacca?`:
```sql
                SELECT "marowijne" FROM "demography" WHERE "saramacca"='18.8%';
```
## Task
Generate a SQL query to answer the following question:
`What is the para with a 0.1% sipaliwini?`

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

CREATE TABLE "demography" (
  "religion" text,
  "suriname" text,
  "paramaribo" text,
  "wanica" text,
  "nickerie" text,
  "coronie" text,
  "saramacca" text,
  "commewijne" text,
  "marowijne" text,
  "para" text,
  "brokopondo" text,
  "sipaliwini" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the para with a 0.1% sipaliwini?`:
```sql
                SELECT "para" FROM "demography" WHERE "sipaliwini"='0.1%';
```
## Task
Generate a SQL query to answer the following question:
`What religion has a para of 56.5%?`

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

CREATE TABLE "demography" (
  "religion" text,
  "suriname" text,
  "paramaribo" text,
  "wanica" text,
  "nickerie" text,
  "coronie" text,
  "saramacca" text,
  "commewijne" text,
  "marowijne" text,
  "para" text,
  "brokopondo" text,
  "sipaliwini" text
);
### SQL
Given the database schema, here is the SQL query that answers `What religion has a para of 56.5%?`:
```sql
                SELECT "religion" FROM "demography" WHERE "para"='56.5%';
```
## Task
Generate a SQL query to answer the following question:
`What is the suriname with a 16.8% brokopondo?`

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

CREATE TABLE "demography" (
  "religion" text,
  "suriname" text,
  "paramaribo" text,
  "wanica" text,
  "nickerie" text,
  "coronie" text,
  "saramacca" text,
  "commewijne" text,
  "marowijne" text,
  "para" text,
  "brokopondo" text,
  "sipaliwini" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the suriname with a 16.8% brokopondo?`:
```sql
                SELECT "suriname" FROM "demography" WHERE "brokopondo"='16.8%';
```
## Task
Generate a SQL query to answer the following question:
`What's the rank average when the gold medals are less than 0?`

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

CREATE TABLE "medal_table" (
  "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's the rank average when the gold medals are less than 0?`:
```sql
                SELECT AVG("rank") FROM "medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total rank of Hungary (HUN) when the bronze medals were less than 0?`

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

CREATE TABLE "medal_table" (
  "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 total rank of Hungary (HUN) when the bronze medals were less than 0?`:
```sql
                SELECT SUM("rank") FROM "medal_table" WHERE "nation"='hungary (hun)' AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the total number of medals when silver is less than 0?`

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

CREATE TABLE "medal_table" (
  "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 sum of the total number of medals when silver is less than 0?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is Born-Died, when Term Start is 4 December 1941?`

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

CREATE TABLE "1939_1943" (
  "name" text,
  "born_died" text,
  "term_start" text,
  "term_end" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Born-Died, when Term Start is 4 December 1941?`:
```sql
                SELECT "born_died" FROM "1939_1943" WHERE "term_start"='4 december 1941';
```
## Task
Generate a SQL query to answer the following question:
`What is Term Start, when Name is Prime Ministers 1939 - 1943?`

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

CREATE TABLE "1939_1943" (
  "name" text,
  "born_died" text,
  "term_start" text,
  "term_end" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Term Start, when Name is Prime Ministers 1939 - 1943?`:
```sql
                SELECT "term_start" FROM "1939_1943" WHERE "name"='prime ministers 1939 - 1943';
```
## Task
Generate a SQL query to answer the following question:
`What is Born-Died, when Name is Maliq Bushati?`

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

CREATE TABLE "1939_1943" (
  "name" text,
  "born_died" text,
  "term_start" text,
  "term_end" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Born-Died, when Name is Maliq Bushati?`:
```sql
                SELECT "born_died" FROM "1939_1943" WHERE "name"='maliq bushati';
```
## Task
Generate a SQL query to answer the following question:
`What is Term End, when Political Party is Albanian Fascist Party, and when Term Start is 12 April 1939?`

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

CREATE TABLE "1939_1943" (
  "name" text,
  "born_died" text,
  "term_start" text,
  "term_end" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Term End, when Political Party is Albanian Fascist Party, and when Term Start is 12 April 1939?`:
```sql
                SELECT "term_end" FROM "1939_1943" WHERE "political_party"='albanian fascist party' AND "term_start"='12 april 1939';
```
## Task
Generate a SQL query to answer the following question:
`What is Term Start, when Born-Died is Prime Ministers 1939 - 1943?`

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

CREATE TABLE "1939_1943" (
  "name" text,
  "born_died" text,
  "term_start" text,
  "term_end" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Term Start, when Born-Died is Prime Ministers 1939 - 1943?`:
```sql
                SELECT "term_start" FROM "1939_1943" WHERE "born_died"='prime ministers 1939 - 1943';
```
## Task
Generate a SQL query to answer the following question:
`What is Born-Died, when Term End is 19 January 1943?`

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

CREATE TABLE "1939_1943" (
  "name" text,
  "born_died" text,
  "term_start" text,
  "term_end" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Born-Died, when Term End is 19 January 1943?`:
```sql
                SELECT "born_died" FROM "1939_1943" WHERE "term_end"='19 january 1943';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game with a Record of 5–4–3?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the game with a Record of 5–4–3?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "record"='5–4–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score on January 23?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score on January 23?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "date"='january 23';
```
## Task
Generate a SQL query to answer the following question:
`What is the Visitor of the Montreal Canadiens Home game with a Record of 6–4–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 `What is the Visitor of the Montreal Canadiens Home game with a Record of 6–4–4?`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "home"='montreal canadiens' AND "record"='6–4–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game with a Record of 12–7–6?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the game with a Record of 12–7–6?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "record"='12–7–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record of the Montreal Canadiens Home game on March 23?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record of the Montreal Canadiens Home game on March 23?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "home"='montreal canadiens' AND "date"='march 23';
```
## Task
Generate a SQL query to answer the following question:
`What tournament location has 1 stroke as the margin of victory, with 1,200,000 as the purse ($)?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse" text,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament location has 1 stroke as the margin of victory, with 1,200,000 as the purse ($)?`:
```sql
                SELECT "tournament_location" FROM "winners" WHERE "margin_of_victory"='1 stroke' AND "purse"='1,200,000';
```
## Task
Generate a SQL query to answer the following question:
`What tournament location has south korea as the country?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse" text,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament location has south korea as the country?`:
```sql
                SELECT "tournament_location" FROM "winners" WHERE "country"='south korea';
```
## Task
Generate a SQL query to answer the following question:
`What is the total population of American Samoa (US) that has less than 16,280 km² arable land, less than 240 km² land area, and has a population density of more than 291?`

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

CREATE TABLE "ranking" (
  "country" text,
  "population_july_2005_est" real,
  "land_area_km" real,
  "pct_of_arable_land_2005_est" text,
  "arable_land_km" real,
  "population_density_pop_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total population of American Samoa (US) that has less than 16,280 km² arable land, less than 240 km² land area, and has a population density of more than 291?`:
```sql
                SELECT COUNT("population_july_2005_est") FROM "ranking" WHERE "arable_land_km"<'16,280' AND "land_area_km"<240 AND "country"='american samoa (us)' AND "population_density_pop_per_km">291;
```
## Task
Generate a SQL query to answer the following question:
`What's the arable land for the population of 20,090,437?`

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

CREATE TABLE "ranking" (
  "country" text,
  "population_july_2005_est" real,
  "land_area_km" real,
  "pct_of_arable_land_2005_est" text,
  "arable_land_km" real,
  "population_density_pop_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the arable land for the population of 20,090,437?`:
```sql
                SELECT MAX("arable_land_km") FROM "ranking" WHERE "population_july_2005_est"='20,090,437';
```
## Task
Generate a SQL query to answer the following question:
`What is the land area of Switzerland with a population density fewer than 188 km²?`

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

CREATE TABLE "ranking" (
  "country" text,
  "population_july_2005_est" real,
  "land_area_km" real,
  "pct_of_arable_land_2005_est" text,
  "arable_land_km" real,
  "population_density_pop_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the land area of Switzerland with a population density fewer than 188 km²?`:
```sql
                SELECT AVG("land_area_km") FROM "ranking" WHERE "country"='switzerland' AND "population_density_pop_per_km"<188;
```
## Task
Generate a SQL query to answer the following question:
`What's the population density of the Democratic Republic of the Congo when the population is greater than 37,762,842, and the arable land is more than 200 km²?`

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

CREATE TABLE "ranking" (
  "country" text,
  "population_july_2005_est" real,
  "land_area_km" real,
  "pct_of_arable_land_2005_est" text,
  "arable_land_km" real,
  "population_density_pop_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the population density of the Democratic Republic of the Congo when the population is greater than 37,762,842, and the arable land is more than 200 km²?`:
```sql
                SELECT "population_density_pop_per_km" FROM "ranking" WHERE "population_july_2005_est">'37,762,842' AND "arable_land_km">200 AND "country"='democratic republic of the congo';
```
## Task
Generate a SQL query to answer the following question:
`What lost has 86 points?`

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

CREATE TABLE "league_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 86 points?`:
```sql
                SELECT "lost" FROM "league_table" WHERE "points"='86';
```
## Task
Generate a SQL query to answer the following question:
`With 37 tries against, what is the try bonus?`

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

CREATE TABLE "league_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 `With 37 tries against, what is the try bonus?`:
```sql
                SELECT "try_bonus" FROM "league_table" WHERE "tries_against"='37';
```
## Task
Generate a SQL query to answer the following question:
`How many points against when 41 is the tries for?`

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

CREATE TABLE "league_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 `How many points against when 41 is the tries for?`:
```sql
                SELECT "points_against" FROM "league_table" WHERE "tries_for"='41';
```
## Task
Generate a SQL query to answer the following question:
`With a lost of lost what was the losing bonus?`

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

CREATE TABLE "league_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 `With a lost of lost what was the losing bonus?`:
```sql
                SELECT "losing_bonus" FROM "league_table" WHERE "lost"='lost';
```
## Task
Generate a SQL query to answer the following question:
`What points has points for as points for?`

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

CREATE TABLE "league_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 has points for as points for?`:
```sql
                SELECT "points" FROM "league_table" WHERE "points_for"='points for';
```
## Task
Generate a SQL query to answer the following question:
`What is the points when the club is Barry RFC with a 5 as the try bonus?`

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

CREATE TABLE "league_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 points when the club is Barry RFC with a 5 as the try bonus?`:
```sql
                SELECT "points" FROM "league_table" WHERE "try_bonus"='5' AND "club"='barry rfc';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "silver">6 AND "rank"='1' AND "bronze"<61;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Silver, when Bronze is 1, and when Total is less than 3?`

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

CREATE TABLE "medal_table" (
  "rank" 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 Silver, when Bronze is 1, and when Total is less than 3?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=1 AND "total"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "silver"<107 AND "bronze">42 AND "rank"='3';
```
## Task
Generate a SQL query to answer the following question:
`Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "laps"<28 AND "grid"<9 AND "rider"='jeremy mcwilliams';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid average with a +1 lap time and more than 27 laps?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid average with a +1 lap time and more than 27 laps?`:
```sql
                SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time_retired"='+1 lap' AND "laps">27;
```
## Task
Generate a SQL query to answer the following question:
`Which lap has more than 17 grids with tetsuya harada?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which lap has more than 17 grids with tetsuya harada?`:
```sql
                SELECT "laps" FROM "moto_gp_classification" WHERE "grid">17 AND "rider"='tetsuya harada';
```
## Task
Generate a SQL query to answer the following question:
`Prior to 1978, what is the Danish of the Film directed by Bent Christensen?`

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

CREATE TABLE "submissions" (
  "year" real,
  "english_title" text,
  "danish_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Prior to 1978, what is the Danish of the Film directed by Bent Christensen?`:
```sql
                SELECT "danish_title" FROM "submissions" WHERE "year"<1978 AND "director"='bent christensen';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Director of the Olsen Gang Sees Red?`

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

CREATE TABLE "submissions" (
  "year" real,
  "english_title" text,
  "danish_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Director of the Olsen Gang Sees Red?`:
```sql
                SELECT "director" FROM "submissions" WHERE "english_title"='the olsen gang sees red';
```
## Task
Generate a SQL query to answer the following question:
`What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen?`

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

CREATE TABLE "submissions" (
  "year" real,
  "english_title" text,
  "danish_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen?`:
```sql
                SELECT SUM("year") FROM "submissions" WHERE "director"='erik clausen' AND "english_title"='the dark side of the moon';
```
## Task
Generate a SQL query to answer the following question:
`What is the Year of submission of the Film The Art of Crying?`

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

CREATE TABLE "submissions" (
  "year" real,
  "english_title" text,
  "danish_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year of submission of the Film The Art of Crying?`:
```sql
                SELECT MIN("year") FROM "submissions" WHERE "english_title"='the art of crying';
```
## Task
Generate a SQL query to answer the following question:
`Which Home Town had the weight of 201?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home Town had the weight of 201?`:
```sql
                SELECT "home_town" FROM "roster" WHERE "weight"=201;
```
## Task
Generate a SQL query to answer the following question:
`What Position did the sophomore Darnell Jackson play?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position did the sophomore Darnell Jackson play?`:
```sql
                SELECT "position" FROM "roster" WHERE "year"='sophomore' AND "name"='darnell jackson';
```
## Task
Generate a SQL query to answer the following question:
`what kind of 2007 has a 1999 of —, and a Model of seat mii?`

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

CREATE TABLE "sales_and_production_figures" (
  "model" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `what kind of 2007 has a 1999 of —, and a Model of seat mii?`:
```sql
                SELECT "2007" FROM "sales_and_production_figures" WHERE "1999"='—' AND "model"='seat mii';
```
## Task
Generate a SQL query to answer the following question:
`Which 2005 has a 2006 of 126,511?`

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

CREATE TABLE "sales_and_production_figures" (
  "model" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2005 has a 2006 of 126,511?`:
```sql
                SELECT "2005" FROM "sales_and_production_figures" WHERE "2006"='126,511';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2004 which has a 2003 of 36,026?`

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

CREATE TABLE "sales_and_production_figures" (
  "model" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2004 which has a 2003 of 36,026?`:
```sql
                SELECT "2004" FROM "sales_and_production_figures" WHERE "2003"='36,026';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2007 which has a 2011 of 191,183? Question 4`

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

CREATE TABLE "sales_and_production_figures" (
  "model" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2007 which has a 2011 of 191,183? Question 4`:
```sql
                SELECT "2007" FROM "sales_and_production_figures" WHERE "2011"='191,183';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2011 which has a 2002 of —, and a Model of seat marbella?`

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

CREATE TABLE "sales_and_production_figures" (
  "model" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 which has a 2002 of —, and a Model of seat marbella?`:
```sql
                SELECT "2011" FROM "sales_and_production_figures" WHERE "2002"='—' AND "model"='seat marbella';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2003 which has a 2000 of —, and a 2007 of —, and a 2010 of —?`

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

CREATE TABLE "sales_and_production_figures" (
  "model" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2003 which has a 2000 of —, and a 2007 of —, and a 2010 of —?`:
```sql
                SELECT "2003" FROM "sales_and_production_figures" WHERE "2000"='—' AND "2007"='—' AND "2010"='—';
```
## Task
Generate a SQL query to answer the following question:
`Who is affiliated with the Dukes?`

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

CREATE TABLE "2013_2014_teams" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is affiliated with the Dukes?`:
```sql
                SELECT "affiliation" FROM "2013_2014_teams" WHERE "nickname"='dukes';
```
## Task
Generate a SQL query to answer the following question:
`What school is in Radford, Va?`

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

CREATE TABLE "2013_2014_teams" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is in Radford, Va?`:
```sql
                SELECT "school" FROM "2013_2014_teams" WHERE "location"='radford, va';
```
## Task
Generate a SQL query to answer the following question:
`What school has a public nickname, founded after 1838 in Harrisonburg, Va?`

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

CREATE TABLE "2013_2014_teams" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has a public nickname, founded after 1838 in Harrisonburg, Va?`:
```sql
                SELECT "nickname" FROM "2013_2014_teams" WHERE "affiliation"='public' AND "founded">1838 AND "location"='harrisonburg, va';
```
## Task
Generate a SQL query to answer the following question:
`Lowest pick for mike flater?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Lowest pick for mike flater?`:
```sql
                SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "name"='mike flater';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team on January 2 with 23 points?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team on January 2 with 23 points?`:
```sql
                SELECT "home" FROM "game_log" WHERE "points"=23 AND "date"='january 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when St. Louis is the visitor?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when St. Louis is the visitor?`:
```sql
                SELECT "record" FROM "game_log" WHERE "visitor"='st. louis';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game on November 1?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game on November 1?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='november 1';
```
## Task
Generate a SQL query to answer the following question:
`What were the location and attendance for the game against New Jersey?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the location and attendance for the game against New Jersey?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "team"='new jersey';
```