cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the 1988 value when the 1987 value was 1r?`

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

CREATE TABLE "grand_slam_singles_tournament_timeline" (
  "tournament" text,
  "1980" text,
  "1981" text,
  "1982" text,
  "1983" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1988 value when the 1987 value was 1r?`:
```sql
                SELECT "1988" FROM "grand_slam_singles_tournament_timeline" WHERE "1987"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1981 value at the Tournament of Wimbledon?`

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

CREATE TABLE "grand_slam_singles_tournament_timeline" (
  "tournament" text,
  "1980" text,
  "1981" text,
  "1982" text,
  "1983" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1981 value at the Tournament of Wimbledon?`:
```sql
                SELECT "1981" FROM "grand_slam_singles_tournament_timeline" WHERE "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the rollercoaster that opened in 2004 in bobbejaanland?`

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

CREATE TABLE "roller_coasters" (
  "name" text,
  "model" text,
  "park" text,
  "opened" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the rollercoaster that opened in 2004 in bobbejaanland?`:
```sql
                SELECT "name" FROM "roller_coasters" WHERE "opened"='2004' AND "park"='bobbejaanland';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the junior coaster model that opened in 2008?`

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

CREATE TABLE "roller_coasters" (
  "name" text,
  "model" text,
  "park" text,
  "opened" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the junior coaster model that opened in 2008?`:
```sql
                SELECT "status" FROM "roller_coasters" WHERE "opened"='2008' AND "model"='junior coaster';
```
## Task
Generate a SQL query to answer the following question:
`What is the model for Thor's Hammer which is listed as operating?`

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

CREATE TABLE "roller_coasters" (
  "name" text,
  "model" text,
  "park" text,
  "opened" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the model for Thor's Hammer which is listed as operating?`:
```sql
                SELECT "model" FROM "roller_coasters" WHERE "status"='operating' AND "name"='thor''s hammer';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the coaster that opened in 2011 and is a euro-fighter model?`

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

CREATE TABLE "roller_coasters" (
  "name" text,
  "model" text,
  "park" text,
  "opened" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the coaster that opened in 2011 and is a euro-fighter model?`:
```sql
                SELECT "name" FROM "roller_coasters" WHERE "model"='euro-fighter' AND "opened"='2011';
```
## Task
Generate a SQL query to answer the following question:
`Which driver won the iv j.c.c. jersey road race?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver won the iv j.c.c. jersey road race?`:
```sql
                SELECT "winning_driver" FROM "non_championship_race_results" WHERE "race_name"='iv j.c.c. jersey road race';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of games that had more than 34 points and exactly 3 losses?`

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

CREATE TABLE "all_time_record" (
  "season" text,
  "team_name" text,
  "games" real,
  "losses" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of games that had more than 34 points and exactly 3 losses?`:
```sql
                SELECT COUNT("games") FROM "all_time_record" WHERE "points"=34 AND "losses"=3;
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of losses with less than 19 points and more than 36 games?`

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

CREATE TABLE "all_time_record" (
  "season" text,
  "team_name" text,
  "games" real,
  "losses" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of losses with less than 19 points and more than 36 games?`:
```sql
                SELECT COUNT("losses") FROM "all_time_record" WHERE "points"<19 AND "games">36;
```
## Task
Generate a SQL query to answer the following question:
`Which season has less than 26 points, more than 18 games, and exactly 13 losses?`

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

CREATE TABLE "all_time_record" (
  "season" text,
  "team_name" text,
  "games" real,
  "losses" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which season has less than 26 points, more than 18 games, and exactly 13 losses?`:
```sql
                SELECT "season" FROM "all_time_record" WHERE "points"<26 AND "games">18 AND "losses"=13;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest crowd number of the game where the away team was south melbourne?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest crowd number of the game where the away team was south melbourne?`:
```sql
                SELECT MAX("crowd") FROM "round_3" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score that played the away team of north melbourne?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team score that played the away team of north melbourne?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team score of the game that was played at princes park?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team score of the game that was played at princes park?`:
```sql
                SELECT "away_team_score" FROM "round_3" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`If the Home team had a score of 21.22 (148), what is the sum of all Crowds?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Home team had a score of 21.22 (148), what is the sum of all Crowds?`:
```sql
                SELECT SUM("crowd") FROM "round_8" WHERE "home_team_score"='21.22 (148)';
```
## Task
Generate a SQL query to answer the following question:
`If the Home team is carlton, what's the lowest Crowd found?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Home team is carlton, what's the lowest Crowd found?`:
```sql
                SELECT MIN("crowd") FROM "round_8" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What is the average amount of attenders when away team score is 12.10 (82)?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average amount of attenders when away team score is 12.10 (82)?`:
```sql
                SELECT AVG("crowd") FROM "round_19" WHERE "away_team_score"='12.10 (82)';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team score when the home team scored 11.11 (77)?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team score when the home team scored 11.11 (77)?`:
```sql
                SELECT "away_team_score" FROM "round_19" WHERE "home_team_score"='11.11 (77)';
```
## Task
Generate a SQL query to answer the following question:
`Where did the game take place when the away team score is 15.11 (101)?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the game take place when the away team score is 15.11 (101)?`:
```sql
                SELECT "venue" FROM "round_19" WHERE "away_team_score"='15.11 (101)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Block A value for an El NOSAWA Mendoza value of kondo (7:08)?`

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

CREATE TABLE "2007" (
  "block_a" text,
  "ryuji_hijikata" text,
  "shuji_kondo" text,
  "el_nosawa_mendoza" text,
  "pepe_michinoku" text,
  "katsuhiko_nakajima" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Block A value for an El NOSAWA Mendoza value of kondo (7:08)?`:
```sql
                SELECT "block_a" FROM "2007" WHERE "el_nosawa_mendoza"='kondo (7:08)';
```
## Task
Generate a SQL query to answer the following question:
`What is the PEPE Michinoku value for a Ryuji Hijikata value of sabin (12:33)?`

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

CREATE TABLE "2007" (
  "block_a" text,
  "ryuji_hijikata" text,
  "shuji_kondo" text,
  "el_nosawa_mendoza" text,
  "pepe_michinoku" text,
  "katsuhiko_nakajima" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the PEPE Michinoku value for a Ryuji Hijikata value of sabin (12:33)?`:
```sql
                SELECT "pepe_michinoku" FROM "2007" WHERE "ryuji_hijikata"='sabin (12:33)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Shuji Kondo value related to a PEPE Michinoku value of sabin (14:43)?`

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

CREATE TABLE "2007" (
  "block_a" text,
  "ryuji_hijikata" text,
  "shuji_kondo" text,
  "el_nosawa_mendoza" text,
  "pepe_michinoku" text,
  "katsuhiko_nakajima" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Shuji Kondo value related to a PEPE Michinoku value of sabin (14:43)?`:
```sql
                SELECT "shuji_kondo" FROM "2007" WHERE "pepe_michinoku"='sabin (14:43)';
```
## Task
Generate a SQL query to answer the following question:
`when did asts reach 0?`

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

CREATE TABLE "b" (
  "player" text,
  "pos" text,
  "from" real,
  "school_country" text,
  "rebs" real,
  "asts" real
);
### SQL
Given the database schema, here is the SQL query that answers `when did asts reach 0?`:
```sql
                SELECT "from" FROM "b" WHERE "asts"=0;
```
## Task
Generate a SQL query to answer the following question:
`beyond 2001, what is the lowest asts from a pos of sf?`

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

CREATE TABLE "b" (
  "player" text,
  "pos" text,
  "from" real,
  "school_country" text,
  "rebs" real,
  "asts" real
);
### SQL
Given the database schema, here is the SQL query that answers `beyond 2001, what is the lowest asts from a pos of sf?`:
```sql
                SELECT MIN("asts") FROM "b" WHERE "pos"='sf' AND "from">2001;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the declination with NGC number larger than 5750`

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

CREATE TABLE "5701_5800" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the declination with NGC number larger than 5750`:
```sql
                SELECT "declination_j2000" FROM "5701_5800" WHERE "ngc_number">5750;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the final position for fa community shield`

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

CREATE TABLE "competition_overall" (
  "competition" text,
  "current_position_round" text,
  "final_position_round" text,
  "first_match" text,
  "last_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the final position for fa community shield`:
```sql
                SELECT "final_position_round" FROM "competition_overall" WHERE "competition"='fa community shield';
```
## Task
Generate a SQL query to answer the following question:
`Name the first match for 11 may 2008`

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

CREATE TABLE "competition_overall" (
  "competition" text,
  "current_position_round" text,
  "final_position_round" text,
  "first_match" text,
  "last_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the first match for 11 may 2008`:
```sql
                SELECT "first_match" FROM "competition_overall" WHERE "last_match"='11 may 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Lifetime India Distributor share earlier than 2009?`

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

CREATE TABLE "lifetime_distributor_share" (
  "rank" real,
  "movie" text,
  "year" real,
  "studio_s" text,
  "lifetime_india_distributor_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Lifetime India Distributor share earlier than 2009?`:
```sql
                SELECT COUNT("lifetime_india_distributor_share") FROM "lifetime_distributor_share" WHERE "year"<2009;
```
## Task
Generate a SQL query to answer the following question:
`When did South Melbourne play as the home team?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did South Melbourne play as the home team?`:
```sql
                SELECT "date" FROM "round_17" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the largest amount of spectators when St Kilda was the away team?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest amount of spectators when St Kilda was the away team?`:
```sql
                SELECT MAX("crowd") FROM "round_17" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What was Richmond's score when it was the away team?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Richmond's score when it was the away team?`:
```sql
                SELECT "away_team_score" FROM "round_17" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`what is the declination (j2000) that has a constellation of hydra and a right ascension (j2000) of 10h46m44.9s?`

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

CREATE TABLE "3301_3400" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the declination (j2000) that has a constellation of hydra and a right ascension (j2000) of 10h46m44.9s?`:
```sql
                SELECT "declination_j2000" FROM "3301_3400" WHERE "constellation"='hydra' AND "right_ascension_j2000"='10h46m44.9s';
```
## Task
Generate a SQL query to answer the following question:
`What is the ngc number when the object type is lenticular galaxy and the constellation is hydra?`

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

CREATE TABLE "3301_3400" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ngc number when the object type is lenticular galaxy and the constellation is hydra?`:
```sql
                SELECT MAX("ngc_number") FROM "3301_3400" WHERE "object_type"='lenticular galaxy' AND "constellation"='hydra';
```
## Task
Generate a SQL query to answer the following question:
`what is the object type when the ngc number is 3314?`

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

CREATE TABLE "3301_3400" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the object type when the ngc number is 3314?`:
```sql
                SELECT "object_type" FROM "3301_3400" WHERE "ngc_number"=3314;
```
## Task
Generate a SQL query to answer the following question:
`what is the ngc number when the constellation is leo and the declination (j2000) is °42′13″?`

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

CREATE TABLE "3301_3400" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the ngc number when the constellation is leo and the declination (j2000) is °42′13″?`:
```sql
                SELECT AVG("ngc_number") FROM "3301_3400" WHERE "constellation"='leo' AND "declination_j2000"='°42′13″';
```
## Task
Generate a SQL query to answer the following question:
`what is the right ascension (j2000) with the ngc number less than 3384, the constellation is hydra and the object type is spiral galaxy?`

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

CREATE TABLE "3301_3400" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the right ascension (j2000) with the ngc number less than 3384, the constellation is hydra and the object type is spiral galaxy?`:
```sql
                SELECT "right_ascension_j2000" FROM "3301_3400" WHERE "ngc_number"<3384 AND "constellation"='hydra' AND "object_type"='spiral galaxy';
```
## Task
Generate a SQL query to answer the following question:
`What competition was played on October 7, 2011?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition was played on October 7, 2011?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='october 7, 2011';
```
## Task
Generate a SQL query to answer the following question:
`What's the score for 1992, with the result of a loss?`

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

CREATE TABLE "1990s" (
  "year" real,
  "date" text,
  "location" text,
  "score" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score for 1992, with the result of a loss?`:
```sql
                SELECT "score" FROM "1990s" WHERE "year"=1992 AND "result"='loss';
```
## Task
Generate a SQL query to answer the following question:
`What national league has limoges csp, and french basketball cup?`

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

CREATE TABLE "third_and_fourth_tiers" (
  "season" text,
  "club" text,
  "national_league" text,
  "national_cup" text,
  "european_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What national league has limoges csp, and french basketball cup?`:
```sql
                SELECT "national_league" FROM "third_and_fourth_tiers" WHERE "club"='limoges csp' AND "national_cup"='french basketball cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the club that has the turkish basketball cup and fiba eurochallenge (3rd tier)?`

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

CREATE TABLE "third_and_fourth_tiers" (
  "season" text,
  "club" text,
  "national_league" text,
  "national_cup" text,
  "european_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the club that has the turkish basketball cup and fiba eurochallenge (3rd tier)?`:
```sql
                SELECT "club" FROM "third_and_fourth_tiers" WHERE "national_cup"='turkish basketball cup' AND "european_cup"='fiba eurochallenge (3rd tier)';
```
## Task
Generate a SQL query to answer the following question:
`What national cup has fc barcelona?`

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

CREATE TABLE "third_and_fourth_tiers" (
  "season" text,
  "club" text,
  "national_league" text,
  "national_cup" text,
  "european_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What national cup has fc barcelona?`:
```sql
                SELECT "national_cup" FROM "third_and_fourth_tiers" WHERE "club"='fc barcelona';
```
## Task
Generate a SQL query to answer the following question:
`Name the series ^ when the CPU clock is 1500 and the model is t-52r`

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

CREATE TABLE "available_processors" (
  "series" text,
  "model" text,
  "cpu_clock_m_hz" text,
  "cpu_cores" real,
  "tdp_w" text,
  "l2_cache_ki_b" text,
  "radeon_cores" real,
  "ddr3_speed" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series ^ when the CPU clock is 1500 and the model is t-52r`:
```sql
                SELECT "series" FROM "available_processors" WHERE "cpu_clock_m_hz"='1500' AND "model"='t-52r';
```
## Task
Generate a SQL query to answer the following question:
`Name the average DDR3 speed for model e-350`

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

CREATE TABLE "available_processors" (
  "series" text,
  "model" text,
  "cpu_clock_m_hz" text,
  "cpu_cores" real,
  "tdp_w" text,
  "l2_cache_ki_b" text,
  "radeon_cores" real,
  "ddr3_speed" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average DDR3 speed for model e-350`:
```sql
                SELECT AVG("ddr3_speed") FROM "available_processors" WHERE "model"='e-350';
```
## Task
Generate a SQL query to answer the following question:
`Name the CPU clock for L2 cache of 2*512 and series ^ of e-series and DDR3 speed of 1066`

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

CREATE TABLE "available_processors" (
  "series" text,
  "model" text,
  "cpu_clock_m_hz" text,
  "cpu_cores" real,
  "tdp_w" text,
  "l2_cache_ki_b" text,
  "radeon_cores" real,
  "ddr3_speed" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the CPU clock for L2 cache of 2*512 and series ^ of e-series and DDR3 speed of 1066`:
```sql
                SELECT "cpu_clock_m_hz" FROM "available_processors" WHERE "l2_cache_ki_b"='2*512' AND "series"='e-series' AND "ddr3_speed"=1066;
```
## Task
Generate a SQL query to answer the following question:
`who lost on august 21?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who lost on august 21?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "date"='august 21';
```
## Task
Generate a SQL query to answer the following question:
`On August 10, what was the record against the Expos?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On August 10, what was the record against the Expos?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='expos' AND "date"='august 10';
```
## Task
Generate a SQL query to answer the following question:
`What is the average laps for lorenzo bandini with a grid under 3?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average laps for lorenzo bandini with a grid under 3?`:
```sql
                SELECT AVG("laps") FROM "classification" WHERE "driver"='lorenzo bandini' AND "grid"<3;
```
## Task
Generate a SQL query to answer the following question:
`What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential?`:
```sql
                SELECT "driver" FROM "classification" WHERE "laps"<53 AND "grid"<14 AND "time_retired"='differential';
```
## Task
Generate a SQL query to answer the following question:
`What music is in the film with an Uncut run time of 95 minutes?`

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

CREATE TABLE "jacopetti_and_prosperi" (
  "title" text,
  "year" real,
  "country" text,
  "music" text,
  "uncut_run_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What music is in the film with an Uncut run time of 95 minutes?`:
```sql
                SELECT "music" FROM "jacopetti_and_prosperi" WHERE "uncut_run_time"='95 minutes';
```
## Task
Generate a SQL query to answer the following question:
`What country is the film that has music of nino oliviero?`

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

CREATE TABLE "jacopetti_and_prosperi" (
  "title" text,
  "year" real,
  "country" text,
  "music" text,
  "uncut_run_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is the film that has music of nino oliviero?`:
```sql
                SELECT "country" FROM "jacopetti_and_prosperi" WHERE "music"='nino oliviero';
```
## Task
Generate a SQL query to answer the following question:
`What music is in the film before 1963?`

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

CREATE TABLE "jacopetti_and_prosperi" (
  "title" text,
  "year" real,
  "country" text,
  "music" text,
  "uncut_run_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What music is in the film before 1963?`:
```sql
                SELECT "music" FROM "jacopetti_and_prosperi" WHERE "year"<1963;
```
## Task
Generate a SQL query to answer the following question:
`What music is in the film before 1962?`

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

CREATE TABLE "jacopetti_and_prosperi" (
  "title" text,
  "year" real,
  "country" text,
  "music" text,
  "uncut_run_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What music is in the film before 1962?`:
```sql
                SELECT "music" FROM "jacopetti_and_prosperi" WHERE "year"=1962;
```
## Task
Generate a SQL query to answer the following question:
`Which home team scored 15.16 (106)?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team scored 15.16 (106)?`:
```sql
                SELECT "home_team" FROM "round_10" WHERE "home_team_score"='15.16 (106)';
```
## Task
Generate a SQL query to answer the following question:
`Which team played as the home team when north melbourne played as away?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team played as the home team when north melbourne played as away?`:
```sql
                SELECT "home_team" FROM "round_10" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`When the away team scored 7.13 (55), who were they playing?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the away team scored 7.13 (55), who were they playing?`:
```sql
                SELECT "home_team_score" FROM "round_10" WHERE "away_team_score"='7.13 (55)';
```
## Task
Generate a SQL query to answer the following question:
`When the home team scored 19.10 (124), what was the total crowd number?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team scored 19.10 (124), what was the total crowd number?`:
```sql
                SELECT COUNT("crowd") FROM "round_10" WHERE "home_team_score"='19.10 (124)';
```
## Task
Generate a SQL query to answer the following question:
`what is the position of pick #53?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position of pick #53?`:
```sql
                SELECT "position" FROM "round_six" WHERE "pick_num"=53;
```
## Task
Generate a SQL query to answer the following question:
`what is the position for andrew paopao?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position for andrew paopao?`:
```sql
                SELECT "position" FROM "round_six" WHERE "player"='andrew paopao';
```
## Task
Generate a SQL query to answer the following question:
`In which venue is South Melbourne the home team?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which venue is South Melbourne the home team?`:
```sql
                SELECT "venue" FROM "round_11" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`In the game where the home team scored 12.14 (86), what was the total crowd number?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the game where the home team scored 12.14 (86), what was the total crowd number?`:
```sql
                SELECT COUNT("crowd") FROM "round_11" WHERE "home_team_score"='12.14 (86)';
```
## Task
Generate a SQL query to answer the following question:
`When South Melbourne was the home team, who was the away team?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When South Melbourne was the home team, who was the away team?`:
```sql
                SELECT "away_team" FROM "round_11" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What venue is Hawthorn the home team at?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue is Hawthorn the home team at?`:
```sql
                SELECT "venue" FROM "round_11" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the capacity for the arena in Chester?`

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

CREATE TABLE "teams" (
  "team" text,
  "city_area" text,
  "arena" text,
  "capacity" text,
  "last_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity for the arena in Chester?`:
```sql
                SELECT "capacity" FROM "teams" WHERE "city_area"='chester';
```
## Task
Generate a SQL query to answer the following question:
`Which arena has a capactiy of 1,100?`

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

CREATE TABLE "teams" (
  "team" text,
  "city_area" text,
  "arena" text,
  "capacity" text,
  "last_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which arena has a capactiy of 1,100?`:
```sql
                SELECT "arena" FROM "teams" WHERE "capacity"='1,100';
```
## Task
Generate a SQL query to answer the following question:
`What is the last season that the Scottish Rocks played?`

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

CREATE TABLE "teams" (
  "team" text,
  "city_area" text,
  "arena" text,
  "capacity" text,
  "last_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last season that the Scottish Rocks played?`:
```sql
                SELECT "last_season" FROM "teams" WHERE "team"='scottish rocks';
```
## Task
Generate a SQL query to answer the following question:
`Which arena has the Milton Keynes Lions and a capacity of 800?`

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

CREATE TABLE "teams" (
  "team" text,
  "city_area" text,
  "arena" text,
  "capacity" text,
  "last_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which arena has the Milton Keynes Lions and a capacity of 800?`:
```sql
                SELECT "arena" FROM "teams" WHERE "capacity"='800' AND "team"='milton keynes lions';
```
## Task
Generate a SQL query to answer the following question:
`What is the last season the Worcester Wolves played?`

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

CREATE TABLE "teams" (
  "team" text,
  "city_area" text,
  "arena" text,
  "capacity" text,
  "last_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last season the Worcester Wolves played?`:
```sql
                SELECT "last_season" FROM "teams" WHERE "team"='worcester wolves';
```
## Task
Generate a SQL query to answer the following question:
`Which team is from Birmingham & Telford?`

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

CREATE TABLE "teams" (
  "team" text,
  "city_area" text,
  "arena" text,
  "capacity" text,
  "last_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team is from Birmingham & Telford?`:
```sql
                SELECT "team" FROM "teams" WHERE "city_area"='birmingham & telford';
```
## Task
Generate a SQL query to answer the following question:
`Who has the least wins when ranked above 3 with over 10 events?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the least wins when ranked above 3 with over 10 events?`:
```sql
                SELECT MIN("wins") FROM "leaders" WHERE "rank"<3 AND "events">10;
```
## Task
Generate a SQL query to answer the following question:
`How many wins for billy casper over 8 events and uner $71,979 in earnings?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins for billy casper over 8 events and uner $71,979 in earnings?`:
```sql
                SELECT MIN("wins") FROM "leaders" WHERE "events"=8 AND "player"='billy casper' AND "earnings"<'71,979';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank for a player earning $71,979?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank for a player earning $71,979?`:
```sql
                SELECT MIN("rank") FROM "leaders" WHERE "earnings"<'71,979';
```
## Task
Generate a SQL query to answer the following question:
`What was the Gdp (bn) for the region that has ioannina as its Capital?`

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

CREATE TABLE "administrative_divisions" (
  "region" text,
  "capital" text,
  "area_km" text,
  "area_sq_mi" text,
  "population" text,
  "gdp_bn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Gdp (bn) for the region that has ioannina as its Capital?`:
```sql
                SELECT "gdp_bn" FROM "administrative_divisions" WHERE "capital"='ioannina';
```
## Task
Generate a SQL query to answer the following question:
`Which Region has an Area of 9,451km²?`

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

CREATE TABLE "administrative_divisions" (
  "region" text,
  "capital" text,
  "area_km" text,
  "area_sq_mi" text,
  "population" text,
  "gdp_bn" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Region has an Area of 9,451km²?`:
```sql
                SELECT "region" FROM "administrative_divisions" WHERE "area_km"='9,451';
```
## Task
Generate a SQL query to answer the following question:
`Which capital has a population of 308,610?`

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

CREATE TABLE "administrative_divisions" (
  "region" text,
  "capital" text,
  "area_km" text,
  "area_sq_mi" text,
  "population" text,
  "gdp_bn" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which capital has a population of 308,610?`:
```sql
                SELECT "capital" FROM "administrative_divisions" WHERE "population"='308,610';
```
## Task
Generate a SQL query to answer the following question:
`Which Region has an area of 14,037km²?`

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

CREATE TABLE "administrative_divisions" (
  "region" text,
  "capital" text,
  "area_km" text,
  "area_sq_mi" text,
  "population" text,
  "gdp_bn" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Region has an area of 14,037km²?`:
```sql
                SELECT "region" FROM "administrative_divisions" WHERE "area_km"='14,037';
```
## Task
Generate a SQL query to answer the following question:
`What is the GDP for the region with an area of 7,263 sq. mi.?`

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

CREATE TABLE "administrative_divisions" (
  "region" text,
  "capital" text,
  "area_km" text,
  "area_sq_mi" text,
  "population" text,
  "gdp_bn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GDP for the region with an area of 7,263 sq. mi.?`:
```sql
                SELECT "gdp_bn" FROM "administrative_divisions" WHERE "area_sq_mi"='7,263';
```
## Task
Generate a SQL query to answer the following question:
`What is the population for the region with an area of 6,004 sq. Mi.?`

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

CREATE TABLE "administrative_divisions" (
  "region" text,
  "capital" text,
  "area_km" text,
  "area_sq_mi" text,
  "population" text,
  "gdp_bn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population for the region with an area of 6,004 sq. Mi.?`:
```sql
                SELECT "population" FROM "administrative_divisions" WHERE "area_sq_mi"='6,004';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest episode # with an air date of October 31, 2001?`

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

CREATE TABLE "season_4_2001_2002" (
  "episode_num" real,
  "num_in_season" real,
  "episode_name" text,
  "airdate" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest episode # with an air date of October 31, 2001?`:
```sql
                SELECT MIN("episode_num") FROM "season_4_2001_2002" WHERE "airdate"='october 31, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the average episode # located in Tanzania and whose # in season is larger than 5?`

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

CREATE TABLE "season_4_2001_2002" (
  "episode_num" real,
  "num_in_season" real,
  "episode_name" text,
  "airdate" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average episode # located in Tanzania and whose # in season is larger than 5?`:
```sql
                SELECT AVG("episode_num") FROM "season_4_2001_2002" WHERE "location"='tanzania' AND "num_in_season">5;
```