cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`On what Year did Entrant Leyton House have a Chassis type of Leyton House CG911?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what Year did Entrant Leyton House have a Chassis type of Leyton House CG911?`:
```sql
                SELECT "year" FROM "complete_formula_one_results" WHERE "entrant"='leyton house' AND "chassis"='leyton house cg911';
```
## Task
Generate a SQL query to answer the following question:
`What was the first year to have a Chassis of Jordan 193?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first year to have a Chassis of Jordan 193?`:
```sql
                SELECT MIN("year") FROM "complete_formula_one_results" WHERE "chassis"='jordan 193';
```
## Task
Generate a SQL query to answer the following question:
`Which School's Mascot is Raiders?`

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

CREATE TABLE "current_members" (
  "school" text,
  "mascot" text,
  "location" text,
  "league" text,
  "enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which School's Mascot is Raiders?`:
```sql
                SELECT "school" FROM "current_members" WHERE "mascot"='raiders';
```
## Task
Generate a SQL query to answer the following question:
`What is North Valleys School Mascot?`

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

CREATE TABLE "current_members" (
  "school" text,
  "mascot" text,
  "location" text,
  "league" text,
  "enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is North Valleys School Mascot?`:
```sql
                SELECT "mascot" FROM "current_members" WHERE "school"='north valleys';
```
## Task
Generate a SQL query to answer the following question:
`What is the Enrollment where Cougars is a Mascot?`

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

CREATE TABLE "current_members" (
  "school" text,
  "mascot" text,
  "location" text,
  "league" text,
  "enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Enrollment where Cougars is a Mascot?`:
```sql
                SELECT SUM("enrollment") FROM "current_members" WHERE "mascot"='cougars';
```
## Task
Generate a SQL query to answer the following question:
`In what League is the Reed School?`

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

CREATE TABLE "current_members" (
  "school" text,
  "mascot" text,
  "location" text,
  "league" text,
  "enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what League is the Reed School?`:
```sql
                SELECT "league" FROM "current_members" WHERE "school"='reed';
```
## Task
Generate a SQL query to answer the following question:
`What Mascot has an Enrollment greater than 2,464?`

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

CREATE TABLE "current_members" (
  "school" text,
  "mascot" text,
  "location" text,
  "league" text,
  "enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Mascot has an Enrollment greater than 2,464?`:
```sql
                SELECT "mascot" FROM "current_members" WHERE "enrollment">'2,464';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up in the tournament in which Omar Camporese held third place?`

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

CREATE TABLE "2004" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up in the tournament in which Omar Camporese held third place?`:
```sql
                SELECT "runner_up" FROM "2004" WHERE "third_place"='omar camporese';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up in the tournament in London?`

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

CREATE TABLE "2004" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up in the tournament in London?`:
```sql
                SELECT "runner_up" FROM "2004" WHERE "tournament"='london';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the tournament in which Michael Stich took third place?`

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

CREATE TABLE "2004" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the tournament in which Michael Stich took third place?`:
```sql
                SELECT "score" FROM "2004" WHERE "third_place"='michael stich';
```
## Task
Generate a SQL query to answer the following question:
`Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]?`

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

CREATE TABLE "2004" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]?`:
```sql
                SELECT "third_place" FROM "2004" WHERE "score"='2–6, 7–6(3), [10–5]';
```
## Task
Generate a SQL query to answer the following question:
`what is the least number of goals for when the goals against is 70 and the ties less than 0?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least number of goals for when the goals against is 70 and the ties less than 0?`:
```sql
                SELECT MIN("goals_for") FROM "final_standing" WHERE "goals_against"=70 AND "ties"<0;
```
## Task
Generate a SQL query to answer the following question:
`what is the average losses when the wins is 9 and ties more than 0?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average losses when the wins is 9 and ties more than 0?`:
```sql
                SELECT AVG("losses") FROM "final_standing" WHERE "wins"=9 AND "ties">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest number of ties when the losses is 7 and games played is less than 10?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest number of ties when the losses is 7 and games played is less than 10?`:
```sql
                SELECT MIN("ties") FROM "final_standing" WHERE "losses"=7 AND "games_played"<10;
```
## Task
Generate a SQL query to answer the following question:
`what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76?`:
```sql
                SELECT SUM("games_played") FROM "final_standing" WHERE "losses"<7 AND "wins"=6 AND "goals_for">76;
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of games played when the goals for is less than 30?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of games played when the goals for is less than 30?`:
```sql
                SELECT COUNT("games_played") FROM "final_standing" WHERE "goals_for"<30;
```
## Task
Generate a SQL query to answer the following question:
`what is the sum of wins for the ottawa hockey club when the games played is less than 10?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sum of wins for the ottawa hockey club when the games played is less than 10?`:
```sql
                SELECT SUM("wins") FROM "final_standing" WHERE "team"='ottawa hockey club' AND "games_played"<10;
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game on February 3, 2008?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game on February 3, 2008?`:
```sql
                SELECT SUM("attendance") FROM "february" WHERE "date"='february 3, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the home team that played against Collingwood?`

### 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 `What is the name of the home team that played against Collingwood?`:
```sql
                SELECT "home_team" FROM "round_10" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team played at the Windy Hill Venue?`

### 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 Away team played at the Windy Hill Venue?`:
```sql
                SELECT "away_team" FROM "round_10" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`How large of a crowd can the Glenferrie oval hold?`

### 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 `How large of a crowd can the Glenferrie oval hold?`:
```sql
                SELECT "crowd" FROM "round_10" WHERE "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`How large of a crowd can the Brunswick Street Oval hold?`

### 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 `How large of a crowd can the Brunswick Street Oval hold?`:
```sql
                SELECT COUNT("crowd") FROM "round_10" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`Which Home Team had a score of 26.16 (172) and a venue larger than 19,000?`

### 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 had a score of 26.16 (172) and a venue larger than 19,000?`:
```sql
                SELECT "home_team" FROM "round_10" WHERE "crowd">'19,000' AND "home_team_score"='26.16 (172)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored?`

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

CREATE TABLE "goalscorers" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored?`:
```sql
                SELECT MIN("league") FROM "goalscorers" WHERE "total">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of goals scored in regular league play by Mustoe where he scored 0 goals in the League Cup?`

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

CREATE TABLE "goalscorers" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of goals scored in regular league play by Mustoe where he scored 0 goals in the League Cup?`:
```sql
                SELECT SUM("league") FROM "goalscorers" WHERE "name"='mustoe' AND "league_cup"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of goals scored in the FA Cup by Whelan where he had more than 7 total goals?`

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

CREATE TABLE "goalscorers" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of goals scored in the FA Cup by Whelan where he had more than 7 total goals?`:
```sql
                SELECT AVG("fa_cup") FROM "goalscorers" WHERE "name"='whelan' AND "total">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of goals scored in regular league games by Ehiogu where he scored 0 goals in the FA Cup and at least 1 goal in the League Cup?`

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

CREATE TABLE "goalscorers" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of goals scored in regular league games by Ehiogu where he scored 0 goals in the FA Cup and at least 1 goal in the League Cup?`:
```sql
                SELECT MIN("league") FROM "goalscorers" WHERE "fa_cup"=0 AND "total"=1 AND "name"='ehiogu' AND "league_cup">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the Uyghur Latin with a population of 69,361?`

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

CREATE TABLE "subdivisions" (
  "name" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "uyghur_uey" text,
  "uyghur_latin_uly" text,
  "population_2010_census" text,
  "area_km" text,
  "density_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Uyghur Latin with a population of 69,361?`:
```sql
                SELECT "uyghur_latin_uly" FROM "subdivisions" WHERE "population_2010_census"='69,361';
```
## Task
Generate a SQL query to answer the following question:
`What is the Hanyu Pinyin with an area of 400?`

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

CREATE TABLE "subdivisions" (
  "name" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "uyghur_uey" text,
  "uyghur_latin_uly" text,
  "population_2010_census" text,
  "area_km" text,
  "density_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hanyu Pinyin with an area of 400?`:
```sql
                SELECT "hanyu_pinyin" FROM "subdivisions" WHERE "area_km"='400';
```
## Task
Generate a SQL query to answer the following question:
`What is the Hanyu Pinyin with a density of 39.63?`

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

CREATE TABLE "subdivisions" (
  "name" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "uyghur_uey" text,
  "uyghur_latin_uly" text,
  "population_2010_census" text,
  "area_km" text,
  "density_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hanyu Pinyin with a density of 39.63?`:
```sql
                SELECT "hanyu_pinyin" FROM "subdivisions" WHERE "density_km"='39.63';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in attendance when the visiting team was the Nuggets and the leading scorer was J.R. Smith (28)?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in attendance when the visiting team was the Nuggets and the leading scorer was J.R. Smith (28)?`:
```sql
                SELECT SUM("attendance") FROM "february" WHERE "visitor"='nuggets' AND "leading_scorer"='j.r. smith (28)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer on 23 February 2008?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer on 23 February 2008?`:
```sql
                SELECT "leading_scorer" FROM "february" WHERE "date"='23 february 2008';
```
## Task
Generate a SQL query to answer the following question:
`Name what was nominated in years before 2002 for most popular comedy performer at the national television awards`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_for" text,
  "award" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name what was nominated in years before 2002 for most popular comedy performer at the national television awards`:
```sql
                SELECT "nominated_for" FROM "awards_and_nominations" WHERE "year"<2002 AND "award"='national television awards' AND "category"='most popular comedy performer';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for the bafta tv awards`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_for" text,
  "award" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for the bafta tv awards`:
```sql
                SELECT "result" FROM "awards_and_nominations" WHERE "award"='bafta tv awards';
```
## Task
Generate a SQL query to answer the following question:
`Name the category for nominated at the british comedy awards`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_for" text,
  "award" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the category for nominated at the british comedy awards`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "result"='nominated' AND "award"='british comedy awards';
```
## Task
Generate a SQL query to answer the following question:
`Name the year that Birds of a feather category for most popular actress was nominated`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_for" text,
  "award" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year that Birds of a feather category for most popular actress was nominated`:
```sql
                SELECT AVG("year") FROM "awards_and_nominations" WHERE "category"='most popular actress' AND "nominated_for"='birds of a feather';
```
## Task
Generate a SQL query to answer the following question:
`What dates did Ferrari win races?`

### 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 `What dates did Ferrari win races?`:
```sql
                SELECT "date" FROM "non_championship_race_results" WHERE "constructor"='ferrari';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date of the episode with production code 2395120?`

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

CREATE TABLE "season_4_1995_1996" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date of the episode with production code 2395120?`:
```sql
                SELECT "original_air_date" FROM "season_4_1995_1996" WHERE "production_code"='2395120';
```
## Task
Generate a SQL query to answer the following question:
`How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965?`

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

CREATE TABLE "formula_one_world_championship_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965?`:
```sql
                SELECT MAX("pts") FROM "formula_one_world_championship_results" WHERE "engine"='ferrari v12' AND "chassis"='ferrari 1512' AND "year">1965;
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the away team when the home team scored 31.9 (195)?`

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

CREATE TABLE "round_18" (
  "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 score for the away team when the home team scored 31.9 (195)?`:
```sql
                SELECT "away_team" FROM "round_18" WHERE "home_team_score"='31.9 (195)';
```
## Task
Generate a SQL query to answer the following question:
`What was the date when the crowd was larger than 30,495?`

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

CREATE TABLE "round_18" (
  "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 date when the crowd was larger than 30,495?`:
```sql
                SELECT "date" FROM "round_18" WHERE "crowd">'30,495';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team when Carlton was the away team?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team when Carlton was the away team?`:
```sql
                SELECT "home_team" FROM "round_18" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the away team when they played at lake oval?`

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

CREATE TABLE "round_18" (
  "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 score for the away team when they played at lake oval?`:
```sql
                SELECT "away_team_score" FROM "round_18" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in the crowd when the home team scored 31.9 (195)?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in the crowd when the home team scored 31.9 (195)?`:
```sql
                SELECT COUNT("crowd") FROM "round_18" WHERE "home_team_score"='31.9 (195)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the away team when hawthorn was the home team?`

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

CREATE TABLE "round_18" (
  "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 score of the away team when hawthorn was the home team?`:
```sql
                SELECT "away_team_score" FROM "round_18" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`How many golds for nations ranked below 4, over 5 medals, and under 6 silvers?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds for nations ranked below 4, over 5 medals, and under 6 silvers?`:
```sql
                SELECT COUNT("gold") FROM "medal_count" WHERE "rank">4 AND "total">5 AND "silver"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency?`

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

CREATE TABLE "snp_targets" (
  "rank" real,
  "constituency" text,
  "winning_party_2003" text,
  "swing_to_gain" real,
  "snp_s_place_2003" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency?`:
```sql
                SELECT "rank" FROM "snp_targets" WHERE "winning_party_2003"='labour' AND "swing_to_gain">2.13 AND "result"='lab hold' AND "constituency"='linlithgow';
```
## Task
Generate a SQL query to answer the following question:
`Which party won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold?`

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

CREATE TABLE "snp_targets" (
  "rank" real,
  "constituency" text,
  "winning_party_2003" text,
  "swing_to_gain" real,
  "snp_s_place_2003" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold?`:
```sql
                SELECT "winning_party_2003" FROM "snp_targets" WHERE "swing_to_gain"<2.92 AND "result"='ld hold';
```
## Task
Generate a SQL query to answer the following question:
`Which constituency had the conservative party win in 2003?`

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

CREATE TABLE "snp_targets" (
  "rank" real,
  "constituency" text,
  "winning_party_2003" text,
  "swing_to_gain" real,
  "snp_s_place_2003" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which constituency had the conservative party win in 2003?`:
```sql
                SELECT "constituency" FROM "snp_targets" WHERE "winning_party_2003"='conservative';
```
## Task
Generate a SQL query to answer the following question:
`What is the final score when the visiting team is the Washington Redskins and the date is September 4?`

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

CREATE TABLE "2008" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final score when the visiting team is the Washington Redskins and the date is September 4?`:
```sql
                SELECT "final_score" FROM "2008" WHERE "visiting_team"='washington redskins' AND "date"='september 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the stadium when the date of the game is December 14?`

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

CREATE TABLE "2008" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stadium when the date of the game is December 14?`:
```sql
                SELECT "stadium" FROM "2008" WHERE "date"='december 14';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the stadium when the visiting team is the Denver Broncos?`

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

CREATE TABLE "2008" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the stadium when the visiting team is the Denver Broncos?`:
```sql
                SELECT "stadium" FROM "2008" WHERE "visiting_team"='denver broncos';
```
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd when Melbourne 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 `What was the smallest crowd when Melbourne was the away team?`:
```sql
                SELECT MIN("crowd") FROM "round_11" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd when the away team scored 2.19 (31)?`

### 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 was the largest crowd when the away team scored 2.19 (31)?`:
```sql
                SELECT MAX("crowd") FROM "round_11" WHERE "away_team_score"='2.19 (31)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Away when the Club is Neath?`

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

CREATE TABLE "uefa_europa_league" (
  "season" text,
  "competition" text,
  "round" text,
  "club" text,
  "home" text,
  "away" text,
  "aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away when the Club is Neath?`:
```sql
                SELECT "away" FROM "uefa_europa_league" WHERE "club"='neath';
```
## Task
Generate a SQL query to answer the following question:
`What country has area of 7,914 m²?`

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

CREATE TABLE "measurements" (
  "area_in_m" text,
  "completion" text,
  "city" text,
  "country" text,
  "denomination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has area of 7,914 m²?`:
```sql
                SELECT "country" FROM "measurements" WHERE "area_in_m"='7,914';
```
## Task
Generate a SQL query to answer the following question:
`What city was completed in 1910-1978?`

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

CREATE TABLE "measurements" (
  "area_in_m" text,
  "completion" text,
  "city" text,
  "country" text,
  "denomination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city was completed in 1910-1978?`:
```sql
                SELECT "city" FROM "measurements" WHERE "completion"='1910-1978';
```
## Task
Generate a SQL query to answer the following question:
`What is the country with area of 3,170 in m²?`

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

CREATE TABLE "measurements" (
  "area_in_m" text,
  "completion" text,
  "city" text,
  "country" text,
  "denomination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country with area of 3,170 in m²?`:
```sql
                SELECT "country" FROM "measurements" WHERE "area_in_m"='3,170';
```
## Task
Generate a SQL query to answer the following question:
`I want the time/retired for grid of 17`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the time/retired for grid of 17`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid"=17;
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent when the field is mitchel athletic complex`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent when the field is mitchel athletic complex`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "field"='mitchel athletic complex';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for when the home/away is away and the opponent is bayhawks`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for when the home/away is away and the opponent is bayhawks`:
```sql
                SELECT "date" FROM "schedule" WHERE "home_away"='away' AND "opponent"='bayhawks';
```
## Task
Generate a SQL query to answer the following question:
`Say the field with a result of w 12-11`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Say the field with a result of w 12-11`:
```sql
                SELECT "field" FROM "schedule" WHERE "result"='w 12-11';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent when the result is w 16-15 and has home/away of home`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent when the result is w 16-15 and has home/away of home`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "home_away"='home' AND "result"='w 16-15';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent when the resultwas w 12-11`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent when the resultwas w 12-11`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "result"='w 12-11';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent which has a home/away of home and date of july 27`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent which has a home/away of home and date of july 27`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "home_away"='home' AND "date"='july 27';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the home team for mcg venue`

### 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 `I want to know the home team for mcg venue`:
```sql
                SELECT "home_team" FROM "round_8" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`Where did Konchesky move to?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Konchesky move to?`:
```sql
                SELECT "moving_to" FROM "out" WHERE "name"='konchesky';
```
## Task
Generate a SQL query to answer the following question:
`Who is Essendon's home team?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Essendon's home team?`:
```sql
                SELECT MIN("crowd") FROM "round_9" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team score for North Melbourne's home team?`

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

CREATE TABLE "round_9" (
  "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 for North Melbourne's home team?`:
```sql
                SELECT "away_team_score" FROM "round_9" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is Geelong's home team score?`

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

CREATE TABLE "round_9" (
  "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 Geelong's home team score?`:
```sql
                SELECT "home_team_score" FROM "round_9" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score for St Kilda's home team?`

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

CREATE TABLE "round_9" (
  "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 for St Kilda's home team?`:
```sql
                SELECT "home_team_score" FROM "round_9" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`Who was #16 rank constructor with a grid of more than 1?`

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

CREATE TABLE "classification" (
  "grid" real,
  "driver" text,
  "constructor" text,
  "qual" real,
  "rank" real,
  "laps" real,
  "time_retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was #16 rank constructor with a grid of more than 1?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "grid">1 AND "rank"=16;
```
## Task
Generate a SQL query to answer the following question:
`Who constructed Joe James car when his rank was more than 10?`

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

CREATE TABLE "classification" (
  "grid" real,
  "driver" text,
  "constructor" text,
  "qual" real,
  "rank" real,
  "laps" real,
  "time_retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who constructed Joe James car when his rank was more than 10?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "rank">10 AND "driver"='joe james';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of the car who had more than 182 laps, gris less than 3, with a qual time of more than 134.14 and a time/retired of +14:21.72?`

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

CREATE TABLE "classification" (
  "grid" real,
  "driver" text,
  "constructor" text,
  "qual" real,
  "rank" real,
  "laps" real,
  "time_retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the car who had more than 182 laps, gris less than 3, with a qual time of more than 134.14 and a time/retired of +14:21.72?`:
```sql
                SELECT MIN("rank") FROM "classification" WHERE "laps">182 AND "qual">134.14 AND "time_retired"='+14:21.72' AND "grid"<3;
```
## Task
Generate a SQL query to answer the following question:
`How many laps did Chuck Stevenson have with a grid of less than 11?`

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

CREATE TABLE "classification" (
  "grid" real,
  "driver" text,
  "constructor" text,
  "qual" real,
  "rank" real,
  "laps" real,
  "time_retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did Chuck Stevenson have with a grid of less than 11?`:
```sql
                SELECT COUNT("laps") FROM "classification" WHERE "driver"='chuck stevenson' AND "grid"<11;
```
## Task
Generate a SQL query to answer the following question:
`Which Week has an Opponent of san francisco 49ers?`

### 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 `Which Week has an Opponent of san francisco 49ers?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "opponent"='san francisco 49ers';
```
## Task
Generate a SQL query to answer the following question:
`What is the snatch for the Clean & jerk of 145.0, and a Bodyweight larger than 76.22?`

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

CREATE TABLE "middleweight_77_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" text,
  "total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the snatch for the Clean & jerk of 145.0, and a Bodyweight larger than 76.22?`:
```sql
                SELECT AVG("snatch") FROM "middleweight_77_kg" WHERE "clean_jerk"='145.0' AND "bodyweight">76.22;
```
## Task
Generate a SQL query to answer the following question:
`What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18?`

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

CREATE TABLE "middleweight_77_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" text,
  "total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18?`:
```sql
                SELECT "clean_jerk" FROM "middleweight_77_kg" WHERE "snatch"<150 AND "bodyweight"=76.18;
```