cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the average height with the Highest mountain of hochgall?`

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

CREATE TABLE "alpine_club_classification" (
  "ave_no" text,
  "name" text,
  "country" text,
  "highest_mountain" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average height with the Highest mountain of hochgall?`:
```sql
                SELECT AVG("height_m") FROM "alpine_club_classification" WHERE "highest_mountain"='hochgall';
```
## Task
Generate a SQL query to answer the following question:
`What US Country released an album of singles only in 1967?`

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

CREATE TABLE "singles" (
  "year" real,
  "single" text,
  "u_s_country" text,
  "u_s" text,
  "u_s_ac" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What US Country released an album of singles only in 1967?`:
```sql
                SELECT "u_s_country" FROM "singles" WHERE "album"='singles only' AND "year"=1967;
```
## Task
Generate a SQL query to answer the following question:
`What was the best album in 1965?`

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

CREATE TABLE "singles" (
  "year" real,
  "single" text,
  "u_s_country" text,
  "u_s" text,
  "u_s_ac" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the best album in 1965?`:
```sql
                SELECT "u_s_ac" FROM "singles" WHERE "album"='the best' AND "year"=1965;
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the fight that had a tko (low kicks)?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the fight that had a tko (low kicks)?`:
```sql
                SELECT "result" FROM "kickboxing_record" WHERE "method"='tko (low kicks)';
```
## Task
Generate a SQL query to answer the following question:
`What event went under 3 rounds and was no contest (punch after knockdown)?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event went under 3 rounds and was no contest (punch after knockdown)?`:
```sql
                SELECT "event" FROM "kickboxing_record" WHERE "round"<3 AND "method"='no contest (punch after knockdown)';
```
## Task
Generate a SQL query to answer the following question:
`What event was in hong kong and went less than 2 rounds?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event was in hong kong and went less than 2 rounds?`:
```sql
                SELECT "event" FROM "kickboxing_record" WHERE "round"<2 AND "location"='hong kong';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds was the fight against carter williams?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds was the fight against carter williams?`:
```sql
                SELECT "round" FROM "kickboxing_record" WHERE "opponent"='carter williams';
```
## Task
Generate a SQL query to answer the following question:
`In rounds 7-13 what engine was featured?`

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

CREATE TABLE "teams_and_drivers" (
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `In rounds 7-13 what engine was featured?`:
```sql
                SELECT "engine" FROM "teams_and_drivers" WHERE "rounds"='7-13';
```
## Task
Generate a SQL query to answer the following question:
`What score was conceded by Richmond?`

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

CREATE TABLE "round_14" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score was conceded by Richmond?`:
```sql
                SELECT "away_team_score" FROM "round_14" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of Goals on 1950-05-30?`

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

CREATE TABLE "iran" (
  "date" text,
  "venue" text,
  "result" text,
  "competition" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Goals on 1950-05-30?`:
```sql
                SELECT COUNT("goals") FROM "iran" WHERE "date"='1950-05-30';
```
## Task
Generate a SQL query to answer the following question:
`In 1948-10-28, what were the lowest Goals in Tehran, Iran?`

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

CREATE TABLE "iran" (
  "date" text,
  "venue" text,
  "result" text,
  "competition" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `In 1948-10-28, what were the lowest Goals in Tehran, Iran?`:
```sql
                SELECT MIN("goals") FROM "iran" WHERE "venue"='tehran, iran' AND "date"='1948-10-28';
```
## Task
Generate a SQL query to answer the following question:
`In what Venue was the Result 1-3?`

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

CREATE TABLE "iran" (
  "date" text,
  "venue" text,
  "result" text,
  "competition" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what Venue was the Result 1-3?`:
```sql
                SELECT "venue" FROM "iran" WHERE "result"='1-3';
```
## Task
Generate a SQL query to answer the following question:
`In 1948-10-28, in what Venue was the Competition of International Match held?`

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

CREATE TABLE "iran" (
  "date" text,
  "venue" text,
  "result" text,
  "competition" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `In 1948-10-28, in what Venue was the Competition of International Match held?`:
```sql
                SELECT "venue" FROM "iran" WHERE "competition"='international match' AND "date"='1948-10-28';
```
## Task
Generate a SQL query to answer the following question:
`What was the Zakspeed 1500/4 1.5 l4 t chassis?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Zakspeed 1500/4 1.5 l4 t chassis?`:
```sql
                SELECT "chassis" FROM "drivers_and_constructors" WHERE "engine"='zakspeed 1500/4 1.5 l4 t';
```
## Task
Generate a SQL query to answer the following question:
`What was the Michele Alboreto's engine?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Michele Alboreto's engine?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "driver"='michele alboreto';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank for antun salman?`

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

CREATE TABLE "elected_candidates" (
  "rank" real,
  "list" text,
  "candidate_name" text,
  "gender" text,
  "religion" text,
  "votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for antun salman?`:
```sql
                SELECT AVG("rank") FROM "elected_candidates" WHERE "candidate_name"='antun salman';
```
## Task
Generate a SQL query to answer the following question:
`Khalil chawka has a gender of ♂, a religion of ☪, and how many votes?`

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

CREATE TABLE "elected_candidates" (
  "rank" real,
  "list" text,
  "candidate_name" text,
  "gender" text,
  "religion" text,
  "votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Khalil chawka has a gender of ♂, a religion of ☪, and how many votes?`:
```sql
                SELECT "votes" FROM "elected_candidates" WHERE "gender"='♂' AND "religion"='☪' AND "candidate_name"='khalil chawka';
```
## Task
Generate a SQL query to answer the following question:
`Who has a religion of ☪ and more than 1853 votes?`

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

CREATE TABLE "elected_candidates" (
  "rank" real,
  "list" text,
  "candidate_name" text,
  "gender" text,
  "religion" text,
  "votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a religion of ☪ and more than 1853 votes?`:
```sql
                SELECT "candidate_name" FROM "elected_candidates" WHERE "votes">1853 AND "religion"='☪';
```
## Task
Generate a SQL query to answer the following question:
`What is the recorder has a Track more than 11 with a time 3:06`

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

CREATE TABLE "disc_four_studio_highlights_1971_1976" (
  "track" real,
  "recorded" text,
  "original_issue" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the recorder has a Track more than 11 with a time 3:06`:
```sql
                SELECT "recorded" FROM "disc_four_studio_highlights_1971_1976" WHERE "track">11 AND "time"='3:06';
```
## Task
Generate a SQL query to answer the following question:
`Which track has a title : Just a little bit`

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

CREATE TABLE "disc_four_studio_highlights_1971_1976" (
  "track" real,
  "recorded" text,
  "original_issue" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which track has a title : Just a little bit`:
```sql
                SELECT MIN("track") FROM "disc_four_studio_highlights_1971_1976" WHERE "song_title"='just a little bit';
```
## Task
Generate a SQL query to answer the following question:
`What is the Trophy with a Season with 2008–2009?`

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

CREATE TABLE "season_by_season_records" (
  "season" text,
  "div" text,
  "pos" text,
  "pld" text,
  "pts" text,
  "play_offs" text,
  "trophy" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Trophy with a Season with 2008–2009?`:
```sql
                SELECT "trophy" FROM "season_by_season_records" WHERE "season"='2008–2009';
```
## Task
Generate a SQL query to answer the following question:
`What Wasatch time corresponds to a total time of 122:13:40?`

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

CREATE TABLE "controversy" (
  "year" real,
  "name" text,
  "western_states" text,
  "vermont" text,
  "leadville" text,
  "wasatch" text,
  "total_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Wasatch time corresponds to a total time of 122:13:40?`:
```sql
                SELECT "wasatch" FROM "controversy" WHERE "total_time"='122:13:40';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents in the final on 9 January 1994?`

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

CREATE TABLE "doubles_16_5_11" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents in the final on 9 January 1994?`:
```sql
                SELECT "opponents_in_final" FROM "doubles_16_5_11" WHERE "date"='9 january 1994';
```
## Task
Generate a SQL query to answer the following question:
`Who was Melbourne's home team opponent?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Melbourne's home team opponent?`:
```sql
                SELECT "home_team" FROM "round_15" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who was Richmond's away team opponent?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Richmond's away team opponent?`:
```sql
                SELECT "away_team" FROM "round_15" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is the average FA Cup value with a total greater than 2, a League Cup of 1, a league less than 3, and Paul Ince scoring?`

### 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 FA Cup value with a total greater than 2, a League Cup of 1, a league less than 3, and Paul Ince scoring?`:
```sql
                SELECT AVG("fa_cup") FROM "goalscorers" WHERE "total">2 AND "league_cup"=1 AND "name"='paul ince' AND "league"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total value in a League less than 1 with more than 1 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 average total value in a League less than 1 with more than 1 League Cup?`:
```sql
                SELECT AVG("total") FROM "goalscorers" WHERE "league"<1 AND "league_cup">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest value for League Cup when the League number is greater than 1, no FA Cups, and Brian Deane scoring?`

### 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 smallest value for League Cup when the League number is greater than 1, no FA Cups, and Brian Deane scoring?`:
```sql
                SELECT MIN("league_cup") FROM "goalscorers" WHERE "league">1 AND "name"='brian deane' AND "fa_cup"<1;
```
## Task
Generate a SQL query to answer the following question:
`Name the region before 2008 when name of best 1200`

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

CREATE TABLE "release_history" (
  "region" text,
  "year" real,
  "name" text,
  "format_s" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the region before 2008 when name of best 1200`:
```sql
                SELECT "region" FROM "release_history" WHERE "year"<2008 AND "name"='best 1200';
```
## Task
Generate a SQL query to answer the following question:
`What method resulted in a win and a time of 4:36?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What method resulted in a win and a time of 4:36?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "time"='4:36';
```
## Task
Generate a SQL query to answer the following question:
`At what venue did the Essendon team play as an 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what venue did the Essendon team play as an away team?`:
```sql
                SELECT "venue" FROM "round_17" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team for the game played at Junction Oval?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team for the game played at Junction Oval?`:
```sql
                SELECT "home_team" FROM "round_17" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the home team when the away team was Geelong?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the home team when the away team was Geelong?`:
```sql
                SELECT "home_team_score" FROM "round_17" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue where the away team ended in a score of 6.8 (44)?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue where the away team ended in a score of 6.8 (44)?`:
```sql
                SELECT "venue" FROM "round_17" WHERE "away_team_score"='6.8 (44)';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team when the home team was South Melbourne?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team when the home team was South Melbourne?`:
```sql
                SELECT "away_team" FROM "round_17" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the home team playing at the Junction Oval venue?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the home team playing at the Junction Oval venue?`:
```sql
                SELECT "home_team" FROM "round_17" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of the established club of Lehigh Valley Storm?`

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

CREATE TABLE "sports" (
  "club" text,
  "league" text,
  "sport" text,
  "venue" text,
  "established" real,
  "championships" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of the established club of Lehigh Valley Storm?`:
```sql
                SELECT COUNT("established") FROM "sports" WHERE "club"='lehigh valley storm';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of a league in the sport of baseball?`

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

CREATE TABLE "sports" (
  "club" text,
  "league" text,
  "sport" text,
  "venue" text,
  "established" real,
  "championships" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of a league in the sport of baseball?`:
```sql
                SELECT "league" FROM "sports" WHERE "sport"='baseball';
```
## Task
Generate a SQL query to answer the following question:
`What venue does the soccer team Pennsylvania Stoners play in?`

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

CREATE TABLE "sports" (
  "club" text,
  "league" text,
  "sport" text,
  "venue" text,
  "established" real,
  "championships" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue does the soccer team Pennsylvania Stoners play in?`:
```sql
                SELECT "venue" FROM "sports" WHERE "sport"='soccer' AND "club"='pennsylvania stoners';
```
## Task
Generate a SQL query to answer the following question:
`What game number was played on March 4?`

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

CREATE TABLE "march" (
  "game_num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What game number was played on March 4?`:
```sql
                SELECT AVG("game_num") FROM "march" WHERE "date"='march 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when the visitor is Buffalo?`

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

CREATE TABLE "march" (
  "game_num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the visitor is Buffalo?`:
```sql
                SELECT "record" FROM "march" WHERE "visitor"='buffalo';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the number of attendance that has a result of l 35-17`

### 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 `Tell me the number of attendance that has a result of l 35-17`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "result"='l 35-17';
```
## Task
Generate a SQL query to answer the following question:
`I want the attendance for week larger than 10 and result of l 22-21`

### 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 `I want the attendance for week larger than 10 and result of l 22-21`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week">10 AND "result"='l 22-21';
```
## Task
Generate a SQL query to answer the following question:
`Name for me the total number in attendance for week before 2 and result of t 24-24`

### 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 `Name for me the total number in attendance for week before 2 and result of t 24-24`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "result"='t 24-24' AND "week"<2;
```
## Task
Generate a SQL query to answer the following question:
`I want the greatest attendance when the opponent is the chicago bears`

### 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 `I want the greatest attendance when the opponent is the chicago bears`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='chicago bears';
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance for a game against Phoenix?`

### 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,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance for a game against Phoenix?`:
```sql
                SELECT AVG("attendance") FROM "february" WHERE "visitor"='phoenix';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team in the February 22 game that Legace played in for the St. Louis Blues?`

### 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,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team in the February 22 game that Legace played in for the St. Louis Blues?`:
```sql
                SELECT "home" FROM "february" WHERE "decision"='legace' AND "visitor"='st. louis' AND "date"='february 22';
```
## Task
Generate a SQL query to answer the following question:
`Who was Carlton's home team opponent?`

### 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 `Who was Carlton's home team opponent?`:
```sql
                SELECT "home_team" FROM "round_11" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Lake Oval?`

### 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 `Who was the away team at Lake Oval?`:
```sql
                SELECT "away_team_score" FROM "round_11" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was South Melbourne's away team opponent?`

### 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 `Who was South Melbourne's away team opponent?`:
```sql
                SELECT "away_team" FROM "round_11" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at Princes Park when the attendance was more than 30,848?`

### 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 `Who was the home team at Princes Park when the attendance was more than 30,848?`:
```sql
                SELECT "home_team" FROM "round_11" WHERE "crowd">'30,848' AND "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`What is the high grid with 27 laps?`

### 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 high grid with 27 laps?`:
```sql
                SELECT MAX("grid") FROM "classification" WHERE "laps"=27;
```
## Task
Generate a SQL query to answer the following question:
`What is the high grid that has a Time/Retired of +6 laps, and under 69 laps?`

### 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 high grid that has a Time/Retired of +6 laps, and under 69 laps?`:
```sql
                SELECT MAX("grid") FROM "classification" WHERE "time_retired"='+6 laps' AND "laps"<69;
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of copies sold for the single that sold 206,030 in the first week?`

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

CREATE TABLE "singles" (
  "release_date" text,
  "peak_chart_position" real,
  "first_week_sales" real,
  "copies_sold" real,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of copies sold for the single that sold 206,030 in the first week?`:
```sql
                SELECT COUNT("copies_sold") FROM "singles" WHERE "first_week_sales"='206,030';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest release date for Ariola in Spain?`

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

CREATE TABLE "release_history" (
  "release_format" text,
  "country" text,
  "label" text,
  "cat_no" text,
  "release_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest release date for Ariola in Spain?`:
```sql
                SELECT MAX("release_date") FROM "release_history" WHERE "label"='ariola' AND "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What type of format was released after 1979?`

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

CREATE TABLE "release_history" (
  "release_format" text,
  "country" text,
  "label" text,
  "cat_no" text,
  "release_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What type of format was released after 1979?`:
```sql
                SELECT "release_format" FROM "release_history" WHERE "release_date">1979;
```
## Task
Generate a SQL query to answer the following question:
`On what date did Epic label start its release?`

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

CREATE TABLE "release_history" (
  "release_format" text,
  "country" text,
  "label" text,
  "cat_no" text,
  "release_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Epic label start its release?`:
```sql
                SELECT SUM("release_date") FROM "release_history" WHERE "label"='epic';
```
## Task
Generate a SQL query to answer the following question:
`Which game had less than 270 rebounds and a rank lower than 5?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which game had less than 270 rebounds and a rank lower than 5?`:
```sql
                SELECT "games" FROM "rebounds" WHERE "rebounds"<270 AND "rank"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which game did Curtis Borchardt play with more than 274 rebounds?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which game did Curtis Borchardt play with more than 274 rebounds?`:
```sql
                SELECT SUM("games") FROM "rebounds" WHERE "name"='curtis borchardt' AND "rebounds">274;
```
## Task
Generate a SQL query to answer the following question:
`In game 34 Curtis Borchardt played on which team with less than 275 rebounds?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `In game 34 Curtis Borchardt played on which team with less than 275 rebounds?`:
```sql
                SELECT "team" FROM "rebounds" WHERE "rebounds"<275 AND "games"<34 AND "name"='curtis borchardt';
```
## Task
Generate a SQL query to answer the following question:
`How many rebounds occurred in a rank 4 game?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many rebounds occurred in a rank 4 game?`:
```sql
                SELECT "rebounds" FROM "rebounds" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`Which game did was Bud Eley a player in?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which game did was Bud Eley a player in?`:
```sql
                SELECT "games" FROM "rebounds" WHERE "name"='bud eley';
```
## Task
Generate a SQL query to answer the following question:
`Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?`:
```sql
                SELECT SUM("games") FROM "rebounds" WHERE "rank"<4 AND "rebounds"<275 AND "team"='bruesa gbc';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid for johnny herbert?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid for johnny herbert?`:
```sql
                SELECT "grid" FROM "race" WHERE "driver"='johnny herbert';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the average rank for dharma productions before 2013`

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

CREATE TABLE "biggest_third_week_domestic_nett_gross_e" (
  "rank" real,
  "movie" text,
  "year" real,
  "studio_s" text,
  "third_week_nett_gross" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the average rank for dharma productions before 2013`:
```sql
                SELECT AVG("rank") FROM "biggest_third_week_domestic_nett_gross_e" WHERE "studio_s"='dharma productions' AND "year"<2013;
```
## Task
Generate a SQL query to answer the following question:
`Name the average year for 4 rank`

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

CREATE TABLE "biggest_third_week_domestic_nett_gross_e" (
  "rank" real,
  "movie" text,
  "year" real,
  "studio_s" text,
  "third_week_nett_gross" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average year for 4 rank`:
```sql
                SELECT AVG("year") FROM "biggest_third_week_domestic_nett_gross_e" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest rank for red chillies entertainment for 2013`

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

CREATE TABLE "biggest_third_week_domestic_nett_gross_e" (
  "rank" real,
  "movie" text,
  "year" real,
  "studio_s" text,
  "third_week_nett_gross" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest rank for red chillies entertainment for 2013`:
```sql
                SELECT MIN("rank") FROM "biggest_third_week_domestic_nett_gross_e" WHERE "year"=2013 AND "studio_s"='red chillies entertainment';
```
## Task
Generate a SQL query to answer the following question:
`Which date did richmond play as away?`

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

CREATE TABLE "round_6" (
  "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 date did richmond play as away?`:
```sql
                SELECT "date" FROM "round_6" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the player with 5 wins and under 32 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 `What is the rank for the player with 5 wins and under 32 events?`:
```sql
                SELECT SUM("rank") FROM "leaders" WHERE "wins"=5 AND "events"<32;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the player with over $1,627,890?`

### 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 rank for the player with over $1,627,890?`:
```sql
                SELECT COUNT("rank") FROM "leaders" WHERE "earnings">'1,627,890';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the player with over 2 wins and under $1,162,581 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 `What is the rank for the player with over 2 wins and under $1,162,581 in earnings?`:
```sql
                SELECT SUM("rank") FROM "leaders" WHERE "earnings"<'1,162,581' AND "wins">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage.`

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

CREATE TABLE "land_sea_and_rail_transportation_series" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage.`:
```sql
                SELECT "issue_price" FROM "land_sea_and_rail_transportation_series" WHERE "artist"='john mardon' AND "year"=2000 AND "mintage"='included in steam buggy';
```
## Task
Generate a SQL query to answer the following question:
`What is the theme of the Year 2002 which was created by Artist Dan Fell?`

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

CREATE TABLE "land_sea_and_rail_transportation_series" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the theme of the Year 2002 which was created by Artist Dan Fell?`:
```sql
                SELECT "theme" FROM "land_sea_and_rail_transportation_series" WHERE "year"=2002 AND "artist"='dan fell';
```
## Task
Generate a SQL query to answer the following question:
`What artist had a mintage of 41,828 before year 2002?`

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

CREATE TABLE "land_sea_and_rail_transportation_series" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What artist had a mintage of 41,828 before year 2002?`:
```sql
                SELECT "artist" FROM "land_sea_and_rail_transportation_series" WHERE "year"<2002 AND "mintage"='41,828';
```
## Task
Generate a SQL query to answer the following question:
`A mintage of 31,997 has what issue price?`

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

CREATE TABLE "land_sea_and_rail_transportation_series" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `A mintage of 31,997 has what issue price?`:
```sql
                SELECT "issue_price" FROM "land_sea_and_rail_transportation_series" WHERE "mintage"='31,997';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the control trailers for 52 motors`

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

CREATE TABLE "manufacturers" (
  "year" text,
  "builder" text,
  "motors" text,
  "trailers" text,
  "control_trailers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the control trailers for 52 motors`:
```sql
                SELECT "control_trailers" FROM "manufacturers" WHERE "motors"='52';
```
## Task
Generate a SQL query to answer the following question:
`Name the year for mcwf and control trailers of 35`

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

CREATE TABLE "manufacturers" (
  "year" text,
  "builder" text,
  "motors" text,
  "trailers" text,
  "control_trailers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for mcwf and control trailers of 35`:
```sql
                SELECT "year" FROM "manufacturers" WHERE "builder"='mcwf' AND "control_trailers"='35';
```
## Task
Generate a SQL query to answer the following question:
`I want the trailers for 1931 and builder of mccw`

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

CREATE TABLE "manufacturers" (
  "year" text,
  "builder" text,
  "motors" text,
  "trailers" text,
  "control_trailers" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the trailers for 1931 and builder of mccw`:
```sql
                SELECT "trailers" FROM "manufacturers" WHERE "year"='1931' AND "builder"='mccw';
```
## Task
Generate a SQL query to answer the following question:
`I want the control trailers for 1931 with builder of grcw`

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

CREATE TABLE "manufacturers" (
  "year" text,
  "builder" text,
  "motors" text,
  "trailers" text,
  "control_trailers" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the control trailers for 1931 with builder of grcw`:
```sql
                SELECT "control_trailers" FROM "manufacturers" WHERE "year"='1931' AND "builder"='grcw';
```
## Task
Generate a SQL query to answer the following question:
`I want the trailers for motors of 145`

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

CREATE TABLE "manufacturers" (
  "year" text,
  "builder" text,
  "motors" text,
  "trailers" text,
  "control_trailers" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the trailers for motors of 145`:
```sql
                SELECT "trailers" FROM "manufacturers" WHERE "motors"='145';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1930 population when the 2006 est. is less than 44,726 in the county of frio?`

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

CREATE TABLE "core_county_population_statistics" (
  "county" text,
  "1900" real,
  "1930" real,
  "1950" real,
  "2000" real,
  "2006_est" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1930 population when the 2006 est. is less than 44,726 in the county of frio?`:
```sql
                SELECT SUM("1930") FROM "core_county_population_statistics" WHERE "2006_est"<'44,726' AND "county"='frio';
```