cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What's the release date of the processor with 2.8 ghz of frequency?`

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

CREATE TABLE "sandy_bridge_dual_core_32_nm" (
  "model_number" text,
  "s_spec_number" text,
  "cores" text,
  "frequency" text,
  "turbo" text,
  "l2_cache" text,
  "l3_cache" text,
  "gpu_model" text,
  "gpu_frequency" text,
  "socket" text,
  "i_o_bus" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the release date of the processor with 2.8 ghz of frequency?`:
```sql
                SELECT "release_date" FROM "sandy_bridge_dual_core_32_nm" WHERE "frequency"='2.8 ghz';
```
## Task
Generate a SQL query to answer the following question:
`What is the total S ÷ D with a 3298 (1986) [3 H] nizoxetine and an N ÷ D greater than 37.01?`

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

CREATE TABLE "pharmacotherapy_for_cocaine_abuse" (
  "3_h_cft" real,
  "3_h_nisoxetine" text,
  "3_h_paroxetine" text,
  "n_d" real,
  "s_d" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total S ÷ D with a 3298 (1986) [3 H] nizoxetine and an N ÷ D greater than 37.01?`:
```sql
                SELECT COUNT("s_d") FROM "pharmacotherapy_for_cocaine_abuse" WHERE "3_h_nisoxetine"='3298 (1986)' AND "n_d">37.01;
```
## Task
Generate a SQL query to answer the following question:
`What is the [3 H] paroxetine with a [3 H] CFT less than 3.93, an S ÷ D greater than 1891, and a [3H] nizoxetine of 299 (180)?`

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

CREATE TABLE "pharmacotherapy_for_cocaine_abuse" (
  "3_h_cft" real,
  "3_h_nisoxetine" text,
  "3_h_paroxetine" text,
  "n_d" real,
  "s_d" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the [3 H] paroxetine with a [3 H] CFT less than 3.93, an S ÷ D greater than 1891, and a [3H] nizoxetine of 299 (180)?`:
```sql
                SELECT "3_h_paroxetine" FROM "pharmacotherapy_for_cocaine_abuse" WHERE "3_h_cft"<3.93 AND "s_d">1891 AND "3_h_nisoxetine"='299 (180)';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the [3 H]CFT with an N ÷ D less than 393.8 and a [3H] paroxetine of 1045 (45)?`

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

CREATE TABLE "pharmacotherapy_for_cocaine_abuse" (
  "3_h_cft" real,
  "3_h_nisoxetine" text,
  "3_h_paroxetine" text,
  "n_d" real,
  "s_d" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the [3 H]CFT with an N ÷ D less than 393.8 and a [3H] paroxetine of 1045 (45)?`:
```sql
                SELECT SUM("3_h_cft") FROM "pharmacotherapy_for_cocaine_abuse" WHERE "n_d"<393.8 AND "3_h_paroxetine"='1045 (45)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest S ÷ D with a 2420 (220) [3H] paroxetine and an N ÷ D less than 393.8?`

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

CREATE TABLE "pharmacotherapy_for_cocaine_abuse" (
  "3_h_cft" real,
  "3_h_nisoxetine" text,
  "3_h_paroxetine" text,
  "n_d" real,
  "s_d" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest S ÷ D with a 2420 (220) [3H] paroxetine and an N ÷ D less than 393.8?`:
```sql
                SELECT MAX("s_d") FROM "pharmacotherapy_for_cocaine_abuse" WHERE "3_h_paroxetine"='2420 (220)' AND "n_d"<393.8;
```
## Task
Generate a SQL query to answer the following question:
`What round was the match at Westpac Stadium that had the Newcastle Jets as the away team?`

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

CREATE TABLE "top_10_attendances" (
  "attendance" real,
  "round" text,
  "date" text,
  "home" text,
  "score" text,
  "away" text,
  "venue" text,
  "weekday" text,
  "time_of_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the match at Westpac Stadium that had the Newcastle Jets as the away team?`:
```sql
                SELECT "round" FROM "top_10_attendances" WHERE "venue"='westpac stadium' AND "away"='newcastle jets';
```
## Task
Generate a SQL query to answer the following question:
`On what weekday was the match that had Perth Glory as the away team?`

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

CREATE TABLE "top_10_attendances" (
  "attendance" real,
  "round" text,
  "date" text,
  "home" text,
  "score" text,
  "away" text,
  "venue" text,
  "weekday" text,
  "time_of_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what weekday was the match that had Perth Glory as the away team?`:
```sql
                SELECT "weekday" FROM "top_10_attendances" WHERE "away"='perth glory';
```
## Task
Generate a SQL query to answer the following question:
`What is the British record for the fish with a Guernsey record of 32-8-0?`

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

CREATE TABLE "guernsey_records" (
  "fish" text,
  "guernsey_record" text,
  "year" text,
  "location" text,
  "british_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the British record for the fish with a Guernsey record of 32-8-0?`:
```sql
                SELECT "british_record" FROM "guernsey_records" WHERE "guernsey_record"='32-8-0';
```
## Task
Generate a SQL query to answer the following question:
`What year was the Guernsey record of 2-3-12 set?`

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

CREATE TABLE "guernsey_records" (
  "fish" text,
  "guernsey_record" text,
  "year" text,
  "location" text,
  "british_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the Guernsey record of 2-3-12 set?`:
```sql
                SELECT "year" FROM "guernsey_records" WHERE "guernsey_record"='2-3-12';
```
## Task
Generate a SQL query to answer the following question:
`What was the guernsey record set with a fish caught at Bordeaux Harbour?`

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

CREATE TABLE "guernsey_records" (
  "fish" text,
  "guernsey_record" text,
  "year" text,
  "location" text,
  "british_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the guernsey record set with a fish caught at Bordeaux Harbour?`:
```sql
                SELECT "guernsey_record" FROM "guernsey_records" WHERE "location"='bordeaux harbour';
```
## Task
Generate a SQL query to answer the following question:
`When was the film released that a less than 5038 production number and was of the character Bosko?`

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

CREATE TABLE "1931" (
  "title" text,
  "series" text,
  "characters" text,
  "production_num" real,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the film released that a less than 5038 production number and was of the character Bosko?`:
```sql
                SELECT "release_date" FROM "1931" WHERE "production_num"<5038 AND "characters"='bosko';
```
## Task
Generate a SQL query to answer the following question:
`With 4645 as the production number what was the title?`

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

CREATE TABLE "1931" (
  "title" text,
  "series" text,
  "characters" text,
  "production_num" real,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `With 4645 as the production number what was the title?`:
```sql
                SELECT "title" FROM "1931" WHERE "production_num"=4645;
```
## Task
Generate a SQL query to answer the following question:
`The film titled Bosko's fox hunt had what as the smallest production number?`

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

CREATE TABLE "1931" (
  "title" text,
  "series" text,
  "characters" text,
  "production_num" real,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `The film titled Bosko's fox hunt had what as the smallest production number?`:
```sql
                SELECT MIN("production_num") FROM "1931" WHERE "title"='bosko''s fox hunt';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest production number for the LT series with the Dumb Patrol title?`

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

CREATE TABLE "1931" (
  "title" text,
  "series" text,
  "characters" text,
  "production_num" real,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest production number for the LT series with the Dumb Patrol title?`:
```sql
                SELECT MIN("production_num") FROM "1931" WHERE "series"='lt' AND "title"='dumb patrol';
```
## Task
Generate a SQL query to answer the following question:
`What was the average capacity for vélez sársfield?`

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

CREATE TABLE "list" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "province" text,
  "home_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average capacity for vélez sársfield?`:
```sql
                SELECT AVG("capacity") FROM "list" WHERE "home_team_s"='vélez sársfield';
```
## Task
Generate a SQL query to answer the following question:
`What city was the home team Tigre?`

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

CREATE TABLE "list" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "province" text,
  "home_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city was the home team Tigre?`:
```sql
                SELECT "city" FROM "list" WHERE "home_team_s"='tigre';
```
## Task
Generate a SQL query to answer the following question:
`What province is in Mendoza with a stadium feliciano gambarte?`

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

CREATE TABLE "list" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "province" text,
  "home_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What province is in Mendoza with a stadium feliciano gambarte?`:
```sql
                SELECT "province" FROM "list" WHERE "city"='mendoza' AND "stadium"='feliciano gambarte';
```
## Task
Generate a SQL query to answer the following question:
`On what date was there a tv time of ABC 8:00pm and after week 9?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was there a tv time of ABC 8:00pm and after week 9?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">9 AND "tv_time"='abc 8:00pm';
```
## Task
Generate a SQL query to answer the following question:
`What is total number of years that has genre of first-person shooter?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is total number of years that has genre of first-person shooter?`:
```sql
                SELECT SUM("year") FROM "list_of_game_of_the_year_awards" WHERE "genre"='first-person shooter';
```
## Task
Generate a SQL query to answer the following question:
`Which year is the lowest for genre of action-adventure?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year is the lowest for genre of action-adventure?`:
```sql
                SELECT MIN("year") FROM "list_of_game_of_the_year_awards" WHERE "genre"='action-adventure';
```
## Task
Generate a SQL query to answer the following question:
`What is the Roman translation with "Normalised" transliteration i`

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

CREATE TABLE "alphabet_and_transliteration" (
  "gothic_letter_or_digraph" text,
  "roman_equivalent" text,
  "normalised_transliteration" text,
  "sound" text,
  "normal_environment_of_occurrence_in_native_words" text,
  "proto_germanic_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Roman translation with "Normalised" transliteration i`:
```sql
                SELECT "roman_equivalent" FROM "alphabet_and_transliteration" WHERE "normalised_transliteration"='i';
```
## Task
Generate a SQL query to answer the following question:
`what is the "normalized" transliteration for Roman i`

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

CREATE TABLE "alphabet_and_transliteration" (
  "gothic_letter_or_digraph" text,
  "roman_equivalent" text,
  "normalised_transliteration" text,
  "sound" text,
  "normal_environment_of_occurrence_in_native_words" text,
  "proto_germanic_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the "normalized" transliteration for Roman i`:
```sql
                SELECT "normalised_transliteration" FROM "alphabet_and_transliteration" WHERE "roman_equivalent"='i';
```
## Task
Generate a SQL query to answer the following question:
`what is the normal environment of occurrence that has a Proto-Germanic origin /ai/`

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

CREATE TABLE "alphabet_and_transliteration" (
  "gothic_letter_or_digraph" text,
  "roman_equivalent" text,
  "normalised_transliteration" text,
  "sound" text,
  "normal_environment_of_occurrence_in_native_words" text,
  "proto_germanic_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the normal environment of occurrence that has a Proto-Germanic origin /ai/`:
```sql
                SELECT "normal_environment_of_occurrence_in_native_words" FROM "alphabet_and_transliteration" WHERE "proto_germanic_origin"='/ai/';
```
## Task
Generate a SQL query to answer the following question:
`Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast?`:
```sql
                SELECT MIN("against") FROM "matches" WHERE "status"='tour match' AND "venue"='ravenhill , belfast';
```
## Task
Generate a SQL query to answer the following question:
`Name the average Against that has a Venue of twickenham , london on 25 november 1978?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Against that has a Venue of twickenham , london on 25 november 1978?`:
```sql
                SELECT AVG("against") FROM "matches" WHERE "venue"='twickenham , london' AND "date"='25 november 1978';
```
## Task
Generate a SQL query to answer the following question:
`Name the highest Against on 21 november 1978?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest Against on 21 november 1978?`:
```sql
                SELECT MAX("against") FROM "matches" WHERE "date"='21 november 1978';
```
## Task
Generate a SQL query to answer the following question:
`Name the Against of Venue of brewery field , bridgend?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Against of Venue of brewery field , bridgend?`:
```sql
                SELECT "against" FROM "matches" WHERE "venue"='brewery field , bridgend';
```
## Task
Generate a SQL query to answer the following question:
`Name the Status with an Against larger than 15?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Status with an Against larger than 15?`:
```sql
                SELECT "status" FROM "matches" WHERE "against">15;
```
## Task
Generate a SQL query to answer the following question:
`what is the name when 2008 club is vc nova?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when 2008 club is vc nova?`:
```sql
                SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='vc nova';
```
## Task
Generate a SQL query to answer the following question:
`what is the name when 2008 club is patron patra?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when 2008 club is patron patra?`:
```sql
                SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='patron patra';
```
## Task
Generate a SQL query to answer the following question:
`what is spike when 2008 club is vc nova?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is spike when 2008 club is vc nova?`:
```sql
                SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='vc nova';
```
## Task
Generate a SQL query to answer the following question:
`what is the score on 24 january 1976 with the tie no of 1?`

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

CREATE TABLE "fourth_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 on 24 january 1976 with the tie no of 1?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "date"='24 january 1976' AND "tie_no"='1';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team when the away team is newcastle united?`

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

CREATE TABLE "fourth_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 `Who is the home team when the away team is newcastle united?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='newcastle united';
```
## Task
Generate a SQL query to answer the following question:
`who is the home team when the away team is wolverhampton wanderers?`

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

CREATE TABLE "fourth_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 `who is the home team when the away team is wolverhampton wanderers?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='wolverhampton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`what is the date when the tie no is 9?`

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

CREATE TABLE "fourth_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 date when the tie no is 9?`:
```sql
                SELECT "date" FROM "fourth_round_proper" WHERE "tie_no"='9';
```
## Task
Generate a SQL query to answer the following question:
`who is the away team when the tie no is 7?`

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

CREATE TABLE "fourth_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 `who is the away team when the tie no is 7?`:
```sql
                SELECT "away_team" FROM "fourth_round_proper" WHERE "tie_no"='7';
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the home team is sunderland?`

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

CREATE TABLE "fourth_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 when the home team is sunderland?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "home_team"='sunderland';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the title that was directed by Friz Freleng and has a production number of 443?`

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

CREATE TABLE "1942" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" text,
  "release_date" text,
  "reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the title that was directed by Friz Freleng and has a production number of 443?`:
```sql
                SELECT "title" FROM "1942" WHERE "director"='friz freleng' AND "production_number"='443';
```
## Task
Generate a SQL query to answer the following question:
`Which title has a production number of 627?`

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

CREATE TABLE "1942" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" text,
  "release_date" text,
  "reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title has a production number of 627?`:
```sql
                SELECT "title" FROM "1942" WHERE "production_number"='627';
```
## Task
Generate a SQL query to answer the following question:
`what is the film when the year is earlier than 2002 and the category is outstanding actress?`

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

CREATE TABLE "screen_actors_guild" (
  "year" real,
  "category" text,
  "film" text,
  "result" text,
  "lost_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the film when the year is earlier than 2002 and the category is outstanding actress?`:
```sql
                SELECT "film" FROM "screen_actors_guild" WHERE "year"<2002 AND "category"='outstanding actress';
```
## Task
Generate a SQL query to answer the following question:
`What is the total latitude of the greenland township with more than 34.846 sqmi of land, a geo id less than 3805529660, and an ANSI code greater than 1036405?`

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

CREATE TABLE "g" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total latitude of the greenland township with more than 34.846 sqmi of land, a geo id less than 3805529660, and an ANSI code greater than 1036405?`:
```sql
                SELECT COUNT("latitude") FROM "g" WHERE "land_sqmi">34.846 AND "geo_id"<3805529660 AND "township"='greenland' AND "ansi_code">1036405;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water?`

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

CREATE TABLE "g" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water?`:
```sql
                SELECT SUM("land_sqmi") FROM "g" WHERE "ansi_code"<1036538 AND "pop_2010"<42 AND "longitude">-99.442872 AND "water_sqmi">0.882;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest water (sq mi) of the township glenila, which has more than 33.576 sq mi of land and a latitude greater than 48.832189?`

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

CREATE TABLE "g" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest water (sq mi) of the township glenila, which has more than 33.576 sq mi of land and a latitude greater than 48.832189?`:
```sql
                SELECT MAX("water_sqmi") FROM "g" WHERE "land_sqmi">33.576 AND "township"='glenila' AND "latitude">48.832189;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land?`

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

CREATE TABLE "g" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land?`:
```sql
                SELECT SUM("pop_2010") FROM "g" WHERE "latitude">47.710905 AND "longitude"=-101.79876 AND "land_sqmi"<35.695;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water?`

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

CREATE TABLE "g" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water?`:
```sql
                SELECT MIN("land_sqmi") FROM "g" WHERE "longitude"=-99.172785 AND "water_sqmi"<0.973;
```
## Task
Generate a SQL query to answer the following question:
`Who was the head coach?`

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

CREATE TABLE "coaches_staff" (
  "position" text,
  "name" text,
  "year_at_cu" text,
  "experience" real,
  "alma_mater" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the head coach?`:
```sql
                SELECT "name" FROM "coaches_staff" WHERE "position"='head coach';
```
## Task
Generate a SQL query to answer the following question:
`Who has the alma mater of Dayton ('07), and was in their 1st year at CU?`

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

CREATE TABLE "coaches_staff" (
  "position" text,
  "name" text,
  "year_at_cu" text,
  "experience" real,
  "alma_mater" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the alma mater of Dayton ('07), and was in their 1st year at CU?`:
```sql
                SELECT "name" FROM "coaches_staff" WHERE "year_at_cu"='1st' AND "alma_mater"='dayton (''07)';
```
## Task
Generate a SQL query to answer the following question:
`What year at CU is the person in video services with an experience less than 1?`

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

CREATE TABLE "coaches_staff" (
  "position" text,
  "name" text,
  "year_at_cu" text,
  "experience" real,
  "alma_mater" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year at CU is the person in video services with an experience less than 1?`:
```sql
                SELECT "year_at_cu" FROM "coaches_staff" WHERE "experience"<1 AND "position"='video services';
```
## Task
Generate a SQL query to answer the following question:
`The graduate assistant who was in the 1st year at CU has what experience?`

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

CREATE TABLE "coaches_staff" (
  "position" text,
  "name" text,
  "year_at_cu" text,
  "experience" real,
  "alma_mater" text
);
### SQL
Given the database schema, here is the SQL query that answers `The graduate assistant who was in the 1st year at CU has what experience?`:
```sql
                SELECT "experience" FROM "coaches_staff" WHERE "year_at_cu"='1st' AND "position"='graduate assistant';
```
## Task
Generate a SQL query to answer the following question:
`What person has the alma mater of Eastern Nazarene ('74), and greater than 19 experience?`

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

CREATE TABLE "coaches_staff" (
  "position" text,
  "name" text,
  "year_at_cu" text,
  "experience" real,
  "alma_mater" text
);
### SQL
Given the database schema, here is the SQL query that answers `What person has the alma mater of Eastern Nazarene ('74), and greater than 19 experience?`:
```sql
                SELECT "name" FROM "coaches_staff" WHERE "experience">19 AND "alma_mater"='eastern nazarene (''74)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total engine capacity of the a4 transmission, which has an urban mpg-US greater than 19, an mpg-us extra-urban greater than 38.6, and an aveo model?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "model" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total engine capacity of the a4 transmission, which has an urban mpg-US greater than 19, an mpg-us extra-urban greater than 38.6, and an aveo model?`:
```sql
                SELECT COUNT("engine_capacity") FROM "see_also" WHERE "transmission"='a4' AND "mpg_us_urban">19 AND "mpg_us_extra_urban">38.6 AND "model"='aveo';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest engine capacity with a bmw manufacturer, an mpg-UK extra-urban of 52.3, a 176 CO 2 g/km, and an mpg-us urban greater than 27.3?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "model" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest engine capacity with a bmw manufacturer, an mpg-UK extra-urban of 52.3, a 176 CO 2 g/km, and an mpg-us urban greater than 27.3?`:
```sql
                SELECT MAX("engine_capacity") FROM "see_also" WHERE "manufacturer"='bmw' AND "mpg_uk_extra_urban"=52.3 AND "co_2_g_km"=176 AND "mpg_us_urban">27.3;
```
## Task
Generate a SQL query to answer the following question:
`What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "model" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560?`:
```sql
                SELECT "mpg_uk_combined" FROM "see_also" WHERE "mpg_uk_urban_cold">26.6 AND "transmission"='m5' AND "fuel_type"='diesel' AND "engine_capacity"<1560;
```
## Task
Generate a SQL query to answer the following question:
`What is the l/100km urban (cold) with a CO 2 g/km less than 222, an mpg-us urban greater than 17.8, an mpg-uk extra-urban of 55.4, and an engine capacity greater than 1560?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "model" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the l/100km urban (cold) with a CO 2 g/km less than 222, an mpg-us urban greater than 17.8, an mpg-uk extra-urban of 55.4, and an engine capacity greater than 1560?`:
```sql
                SELECT "l_100km_urban_cold" FROM "see_also" WHERE "co_2_g_km"<222 AND "mpg_us_urban">17.8 AND "mpg_uk_extra_urban"=55.4 AND "engine_capacity">1560;
```
## Task
Generate a SQL query to answer the following question:
`What model has a g green rating, has chrysler jeep as a manufacturer, has an l/100km urban (cold) less than 18, and has an mpg-uk combined of 27.7?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "model" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What model has a g green rating, has chrysler jeep as a manufacturer, has an l/100km urban (cold) less than 18, and has an mpg-uk combined of 27.7?`:
```sql
                SELECT "model" FROM "see_also" WHERE "green_rating"='g' AND "manufacturer"='chrysler jeep' AND "l_100km_urban_cold"<18 AND "mpg_uk_combined"=27.7;
```
## Task
Generate a SQL query to answer the following question:
`what is the league cup apps when the total goals is less than 2 and the total apps is 12?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the league cup apps when the total goals is less than 2 and the total apps is 12?`:
```sql
                SELECT "league_cup_apps" FROM "appearances_and_goals" WHERE "total_goals"<2 AND "total_apps"='12';
```
## Task
Generate a SQL query to answer the following question:
`what is the average ga cup goals when the league cup apps is 2, the fa cup apps is 3 and the league goals is 3?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average ga cup goals when the league cup apps is 2, the fa cup apps is 3 and the league goals is 3?`:
```sql
                SELECT AVG("fa_cup_goals") FROM "appearances_and_goals" WHERE "league_cup_apps"='2' AND "fa_cup_apps"='3' AND "league_goals"=3;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest fa cup goals when flt goals is more than 0?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest fa cup goals when flt goals is more than 0?`:
```sql
                SELECT MAX("fa_cup_goals") FROM "appearances_and_goals" WHERE "flt_goals">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the total apps when the league apps is 4 (2)?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total apps when the league apps is 4 (2)?`:
```sql
                SELECT "total_apps" FROM "appearances_and_goals" WHERE "league_apps"='4 (2)';
```
## Task
Generate a SQL query to answer the following question:
`How much Silver has a Total larger than 9, and a Gold of 14?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Silver has a Total larger than 9, and a Gold of 14?`:
```sql
                SELECT COUNT("silver") FROM "medals_table" WHERE "total">9 AND "gold"=14;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Total larger than 9, and a Gold larger than 6?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Total larger than 9, and a Gold larger than 6?`:
```sql
                SELECT "rank" FROM "medals_table" WHERE "total">9 AND "gold">6;
```
## Task
Generate a SQL query to answer the following question:
`How much Silver has a Rank of 4, and a Bronze smaller than 12?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Silver has a Rank of 4, and a Bronze smaller than 12?`:
```sql
                SELECT COUNT("silver") FROM "medals_table" WHERE "rank"='4' AND "bronze"<12;
```
## Task
Generate a SQL query to answer the following question:
`How many bronzes have a Total of 9?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "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 have a Total of 9?`:
```sql
                SELECT SUM("bronze") FROM "medals_table" WHERE "total"=9;
```
## Task
Generate a SQL query to answer the following question:
`How much Gold has a Nation of mongolia, and a Total larger than 18?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Gold has a Nation of mongolia, and a Total larger than 18?`:
```sql
                SELECT SUM("gold") FROM "medals_table" WHERE "nation"='mongolia' AND "total">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the Lok Sabha for Dravida Munnetra Kazhagam, in 1999-04?`

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

CREATE TABLE "members_of_the_parliament" (
  "lok_sabha" text,
  "duration" text,
  "name_of_m_p" text,
  "party_affiliation" text,
  "election_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lok Sabha for Dravida Munnetra Kazhagam, in 1999-04?`:
```sql
                SELECT "lok_sabha" FROM "members_of_the_parliament" WHERE "party_affiliation"='dravida munnetra kazhagam' AND "duration"='1999-04';
```
## Task
Generate a SQL query to answer the following question:
`What is the duration when Lok Sabha shows fifth?`

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

CREATE TABLE "members_of_the_parliament" (
  "lok_sabha" text,
  "duration" text,
  "name_of_m_p" text,
  "party_affiliation" text,
  "election_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the duration when Lok Sabha shows fifth?`:
```sql
                SELECT "duration" FROM "members_of_the_parliament" WHERE "lok_sabha"='fifth';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the game played on December 20, 1970?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the game played on December 20, 1970?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='december 20, 1970';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for week 2?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for week 2?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30?`

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

CREATE TABLE "semifinal_a_b_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30?`:
```sql
                SELECT SUM("rank") FROM "semifinal_a_b_2" WHERE "notes"='fb' AND "time"='6:47.30';
```
## Task
Generate a SQL query to answer the following question:
`What is the least rank for athletes with a time of 6:36.65?`

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

CREATE TABLE "semifinal_a_b_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least rank for athletes with a time of 6:36.65?`:
```sql
                SELECT MIN("rank") FROM "semifinal_a_b_2" WHERE "time"='6:36.65';
```
## Task
Generate a SQL query to answer the following question:
`What is the average react for a rank more than 8?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average react for a rank more than 8?`:
```sql
                SELECT AVG("react") FROM "heat_1" WHERE "rank">8;
```