cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When the Away team of essendon was playing, what was the Home team's score?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Away team of essendon was playing, what was the Home team's score?`:
```sql
                SELECT "home_team_score" FROM "round_11" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`For the Venue of western oval, what's the Away team playing?`

### 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 `For the Venue of western oval, what's the Away team playing?`:
```sql
                SELECT "away_team" FROM "round_11" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`Which venue has a Home team score of 9.12 (66)?`

### 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 venue has a Home team score of 9.12 (66)?`:
```sql
                SELECT "venue" FROM "round_6" WHERE "home_team_score"='9.12 (66)';
```
## Task
Generate a SQL query to answer the following question:
`How large is the crowd with an Away team score of 7.13 (55)?`

### 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 `How large is the crowd with an Away team score of 7.13 (55)?`:
```sql
                SELECT COUNT("crowd") FROM "round_6" WHERE "away_team_score"='7.13 (55)';
```
## Task
Generate a SQL query to answer the following question:
`Which venue has an Away team score of 12.11 (83)?`

### 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 venue has an Away team score of 12.11 (83)?`:
```sql
                SELECT "venue" FROM "round_6" WHERE "away_team_score"='12.11 (83)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on week 7?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "home_away_game" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on week 7?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"='7';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on week 5?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "home_away_game" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on week 5?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"='5';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer of the game that had a score of 107–97?`

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

CREATE TABLE "march" (
  "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 of the game that had a score of 107–97?`:
```sql
                SELECT "leading_scorer" FROM "march" WHERE "score"='107–97';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team when the Suns were the home team?`

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

CREATE TABLE "march" (
  "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 visiting team when the Suns were the home team?`:
```sql
                SELECT "visitor" FROM "march" WHERE "home"='suns';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?`

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

CREATE TABLE "coaching_record_vs_other_teams" (
  "team" text,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?`:
```sql
                SELECT AVG("ties") FROM "coaching_record_vs_other_teams" WHERE "losses"<3 AND "wins"<5 AND "win_pct"='0.800' AND "team"='detroit lions';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year in which the score was 4–6, 6–3, 7–5?`

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

CREATE TABLE "titles_5" (
  "year" real,
  "championship" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year in which the score was 4–6, 6–3, 7–5?`:
```sql
                SELECT MAX("year") FROM "titles_5" WHERE "score"='4–6, 6–3, 7–5';
```
## Task
Generate a SQL query to answer the following question:
`Which player has a height of 6-7?`

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

CREATE TABLE "2006_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a height of 6-7?`:
```sql
                SELECT "player" FROM "2006_boys_team" WHERE "height"='6-7';
```
## Task
Generate a SQL query to answer the following question:
`What is the NBA draft result of the player from Washington, DC?`

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

CREATE TABLE "2006_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NBA draft result of the player from Washington, DC?`:
```sql
                SELECT "nba_draft" FROM "2006_boys_team" WHERE "hometown"='washington, dc';
```
## Task
Generate a SQL query to answer the following question:
`What is the NBA draft result of the player from the College of Kansas?`

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

CREATE TABLE "2006_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NBA draft result of the player from the College of Kansas?`:
```sql
                SELECT "nba_draft" FROM "2006_boys_team" WHERE "college"='kansas';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from La Costa Canyon High School?`

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

CREATE TABLE "2006_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from La Costa Canyon High School?`:
```sql
                SELECT "player" FROM "2006_boys_team" WHERE "school"='la costa canyon high school';
```
## Task
Generate a SQL query to answer the following question:
`How tall is the player from Nacogdoches High School?`

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

CREATE TABLE "2006_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is the player from Nacogdoches High School?`:
```sql
                SELECT "height" FROM "2006_boys_team" WHERE "school"='nacogdoches high school';
```
## Task
Generate a SQL query to answer the following question:
`What is the school of the player from Dallas, TX?`

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

CREATE TABLE "2006_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the school of the player from Dallas, TX?`:
```sql
                SELECT "school" FROM "2006_boys_team" WHERE "hometown"='dallas, tx';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for world group, consolation round?`

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

CREATE TABLE "1970_1979" (
  "year" text,
  "competition" text,
  "date" text,
  "location" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for world group, consolation round?`:
```sql
                SELECT "result" FROM "1970_1979" WHERE "competition"='world group, consolation round';
```
## Task
Generate a SQL query to answer the following question:
`What was the long of Trandon Harvey who had an greater than 8 average, more than 3 rec., and more than 28 TD's?`

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

CREATE TABLE "wide_receivers" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the long of Trandon Harvey who had an greater than 8 average, more than 3 rec., and more than 28 TD's?`:
```sql
                SELECT SUM("long") FROM "wide_receivers" WHERE "avg">8 AND "rec">3 AND "player"='trandon harvey' AND "td_s">28;
```
## Task
Generate a SQL query to answer the following question:
`How many attended tie number 1?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many attended tie number 1?`:
```sql
                SELECT SUM("attendance") FROM "fifth_round_proper" WHERE "tie_no"='1';
```
## Task
Generate a SQL query to answer the following question:
`How many attended tie number 3?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many attended tie number 3?`:
```sql
                SELECT MAX("attendance") FROM "fifth_round_proper" WHERE "tie_no"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown for tre madden?`

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

CREATE TABLE "2010_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown for tre madden?`:
```sql
                SELECT "hometown" FROM "2010_team" WHERE "player"='tre madden';
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown for the player that is defensive back and went to alabama?`

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

CREATE TABLE "2010_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown for the player that is defensive back and went to alabama?`:
```sql
                SELECT "hometown" FROM "2010_team" WHERE "position"='defensive back' AND "college"='alabama';
```
## Task
Generate a SQL query to answer the following question:
`What is the college for the player that went to ridge community high school and is defensive back?`

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

CREATE TABLE "2010_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the college for the player that went to ridge community high school and is defensive back?`:
```sql
                SELECT "college" FROM "2010_team" WHERE "position"='defensive back' AND "school"='ridge community high school';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Year with a Type of informal, and a Location with justus lipsius building, brussels, and a Date with 23 may?`

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

CREATE TABLE "2010_present" (
  "year" real,
  "date" text,
  "type" text,
  "president" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Year with a Type of informal, and a Location with justus lipsius building, brussels, and a Date with 23 may?`:
```sql
                SELECT SUM("year") FROM "2010_present" WHERE "type"='informal' AND "location"='justus lipsius building, brussels' AND "date"='23 may';
```
## Task
Generate a SQL query to answer the following question:
`What is the Type with a Location with justus lipsius building, brussels, and a Year of 2012, and a President with herman van rompuy (1st term), and a Date with 23 may?`

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

CREATE TABLE "2010_present" (
  "year" real,
  "date" text,
  "type" text,
  "president" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Type with a Location with justus lipsius building, brussels, and a Year of 2012, and a President with herman van rompuy (1st term), and a Date with 23 may?`:
```sql
                SELECT "type" FROM "2010_present" WHERE "location"='justus lipsius building, brussels' AND "year"=2012 AND "president"='herman van rompuy (1st term)' AND "date"='23 may';
```
## Task
Generate a SQL query to answer the following question:
`What is the President with a Location of justus lipsius building, brussels, and a Type with scheduled, and a Year larger than 2011, and a Date with 18–19 october?`

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

CREATE TABLE "2010_present" (
  "year" real,
  "date" text,
  "type" text,
  "president" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the President with a Location of justus lipsius building, brussels, and a Type with scheduled, and a Year larger than 2011, and a Date with 18–19 october?`:
```sql
                SELECT "president" FROM "2010_present" WHERE "location"='justus lipsius building, brussels' AND "type"='scheduled' AND "year">2011 AND "date"='18–19 october';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location with a Year larger than 2011, and a President with herman van rompuy (2nd term), and a Date of 28–29 june, and a Type with scheduled?`

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

CREATE TABLE "2010_present" (
  "year" real,
  "date" text,
  "type" text,
  "president" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location with a Year larger than 2011, and a President with herman van rompuy (2nd term), and a Date of 28–29 june, and a Type with scheduled?`:
```sql
                SELECT "location" FROM "2010_present" WHERE "year">2011 AND "president"='herman van rompuy (2nd term)' AND "date"='28–29 june' AND "type"='scheduled';
```
## Task
Generate a SQL query to answer the following question:
`What is the President with a Year larger than 2011, and a Date with 23 may?`

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

CREATE TABLE "2010_present" (
  "year" real,
  "date" text,
  "type" text,
  "president" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the President with a Year larger than 2011, and a Date with 23 may?`:
```sql
                SELECT "president" FROM "2010_present" WHERE "year">2011 AND "date"='23 may';
```
## Task
Generate a SQL query to answer the following question:
`What is the Type with a Year larger than 2010, and a Location with justus lipsius building, brussels, and a President of herman van rompuy (2nd term), and a Date with 28–29 june?`

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

CREATE TABLE "2010_present" (
  "year" real,
  "date" text,
  "type" text,
  "president" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Type with a Year larger than 2010, and a Location with justus lipsius building, brussels, and a President of herman van rompuy (2nd term), and a Date with 28–29 june?`:
```sql
                SELECT "type" FROM "2010_present" WHERE "year">2010 AND "location"='justus lipsius building, brussels' AND "president"='herman van rompuy (2nd term)' AND "date"='28–29 june';
```
## Task
Generate a SQL query to answer the following question:
`What competition has a goal number of 13?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition has a goal number of 13?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "goal"=13;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of yards when asst. is 19, totaltk is 60 and sack is more than 0?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "asst" real,
  "total_tk" real,
  "sack" real,
  "yards" real,
  "fum_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of yards when asst. is 19, totaltk is 60 and sack is more than 0?`:
```sql
                SELECT SUM("yards") FROM "defense" WHERE "asst"=19 AND "total_tk"=60 AND "sack">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the total sack for mike green when fumr is less than 0?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "asst" real,
  "total_tk" real,
  "sack" real,
  "yards" real,
  "fum_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total sack for mike green when fumr is less than 0?`:
```sql
                SELECT SUM("sack") FROM "defense" WHERE "player"='mike green' AND "fum_r"<0;
```
## Task
Generate a SQL query to answer the following question:
`what is the total sack when totaltk is 1 and asst. is more than 0?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "asst" real,
  "total_tk" real,
  "sack" real,
  "yards" real,
  "fum_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total sack when totaltk is 1 and asst. is more than 0?`:
```sql
                SELECT SUM("sack") FROM "defense" WHERE "total_tk"=1 AND "asst">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "asst" real,
  "total_tk" real,
  "sack" real,
  "yards" real,
  "fum_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?`:
```sql
                SELECT COUNT("tackles") FROM "defense" WHERE "fum_r"=0 AND "total_tk"=54 AND "yards"<0;
```
## Task
Generate a SQL query to answer the following question:
`what is the sum of totaltk when yards is less than 0?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "asst" real,
  "total_tk" real,
  "sack" real,
  "yards" real,
  "fum_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sum of totaltk when yards is less than 0?`:
```sql
                SELECT SUM("total_tk") FROM "defense" WHERE "yards"<0;
```
## Task
Generate a SQL query to answer the following question:
`What class is after 1973 with 41 points?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What class is after 1973 with 41 points?`:
```sql
                SELECT "class" FROM "grand_prix_motorcycle_racing_results" WHERE "year">1973 AND "points"=41;
```
## Task
Generate a SQL query to answer the following question:
`How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?`:
```sql
                SELECT COUNT("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "points"<54 AND "team"='yamaha' AND "class"='250cc' AND "year"<1977;
```
## Task
Generate a SQL query to answer the following question:
`What distance did giovanni lombardi win after stage 5?`

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

CREATE TABLE "stages" (
  "stage" real,
  "date" text,
  "course" text,
  "distance" text,
  "winner" text,
  "gc_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What distance did giovanni lombardi win after stage 5?`:
```sql
                SELECT "distance" FROM "stages" WHERE "stage">5 AND "winner"='giovanni lombardi';
```
## Task
Generate a SQL query to answer the following question:
`Who is the GC leader at ávila - segovia?`

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

CREATE TABLE "stages" (
  "stage" real,
  "date" text,
  "course" text,
  "distance" text,
  "winner" text,
  "gc_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the GC leader at ávila - segovia?`:
```sql
                SELECT "gc_leader" FROM "stages" WHERE "course"='ávila - segovia';
```
## Task
Generate a SQL query to answer the following question:
`How many grids have less than 41 laps and a Driver of pedro de la rosa?`

### 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 `How many grids have less than 41 laps and a Driver of pedro de la rosa?`:
```sql
                SELECT COUNT("grid") FROM "race" WHERE "laps"<41 AND "driver"='pedro de la rosa';
```
## Task
Generate a SQL query to answer the following question:
`Which Time/Retired has a Grid smaller than 3, and a Driver of mika häkkinen?`

### 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 `Which Time/Retired has a Grid smaller than 3, and a Driver of mika häkkinen?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid"<3 AND "driver"='mika häkkinen';
```
## Task
Generate a SQL query to answer the following question:
`What are toranosuke takagi's average laps?`

### 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 are toranosuke takagi's average laps?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "driver"='toranosuke takagi';
```
## Task
Generate a SQL query to answer the following question:
`Which grid has a Time/Retired of +5.004?`

### 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 `Which grid has a Time/Retired of +5.004?`:
```sql
                SELECT MIN("grid") FROM "race" WHERE "time_retired"='+5.004';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on November 9 when Atlanta was the visiting team?`

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

CREATE TABLE "november" (
  "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 score of the game on November 9 when Atlanta was the visiting team?`:
```sql
                SELECT "score" FROM "november" WHERE "visitor"='atlanta' AND "date"='november 9';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the home game at Tampa Bay?`

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

CREATE TABLE "november" (
  "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 score of the home game at Tampa Bay?`:
```sql
                SELECT "score" FROM "november" WHERE "home"='tampa bay';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game where Ottawa was the home team and Atlanta is the visiting team?`

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

CREATE TABLE "november" (
  "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 date of the game where Ottawa was the home team and Atlanta is the visiting team?`:
```sql
                SELECT "date" FROM "november" WHERE "visitor"='atlanta' AND "home"='ottawa';
```
## Task
Generate a SQL query to answer the following question:
`I want the result for team of giants`

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

CREATE TABLE "awards" (
  "pitcher" text,
  "date" text,
  "team" text,
  "result" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the result for team of giants`:
```sql
                SELECT "result" FROM "awards" WHERE "team"='giants';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the pitcher on september 6, 2006`

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

CREATE TABLE "awards" (
  "pitcher" text,
  "date" text,
  "team" text,
  "result" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the pitcher on september 6, 2006`:
```sql
                SELECT "pitcher" FROM "awards" WHERE "date"='september 6, 2006';
```
## Task
Generate a SQL query to answer the following question:
`I want the date for rockies`

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

CREATE TABLE "awards" (
  "pitcher" text,
  "date" text,
  "team" text,
  "result" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the date for rockies`:
```sql
                SELECT "date" FROM "awards" WHERE "team"='rockies';
```
## Task
Generate a SQL query to answer the following question:
`I want the date for aníbal sánchez`

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

CREATE TABLE "awards" (
  "pitcher" text,
  "date" text,
  "team" text,
  "result" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the date for aníbal sánchez`:
```sql
                SELECT "date" FROM "awards" WHERE "pitcher"='aníbal sánchez';
```
## Task
Generate a SQL query to answer the following question:
`I want the site for september 29, 2013`

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

CREATE TABLE "awards" (
  "pitcher" text,
  "date" text,
  "team" text,
  "result" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the site for september 29, 2013`:
```sql
                SELECT "site" FROM "awards" WHERE "date"='september 29, 2013';
```
## Task
Generate a SQL query to answer the following question:
`When the apparent magnitude is 10.5, what is the right ascension?`

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

CREATE TABLE "5001_5100" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the apparent magnitude is 10.5, what is the right ascension?`:
```sql
                SELECT "right_ascension_j2000" FROM "5001_5100" WHERE "apparent_magnitude"=10.5;
```
## Task
Generate a SQL query to answer the following question:
`Which livery is from 1919?`

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

CREATE TABLE "north_british_railway_coaches" (
  "number_name" text,
  "description" text,
  "current_status" text,
  "livery" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which livery is from 1919?`:
```sql
                SELECT "livery" FROM "north_british_railway_coaches" WHERE "date"='1919';
```
## Task
Generate a SQL query to answer the following question:
`Of the games with a record of 80-81, what was the highest attendance?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Of the games with a record of 80-81, what was the highest attendance?`:
```sql
                SELECT MAX("attendance") FROM "game_log" WHERE "record"='80-81';
```
## Task
Generate a SQL query to answer the following question:
`How many entries have a HK viewers of 2.23 million, and a Rank below 2?`

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

CREATE TABLE "highest_rating_drama_series_of_2005" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries have a HK viewers of 2.23 million, and a Rank below 2?`:
```sql
                SELECT COUNT("peak") FROM "highest_rating_drama_series_of_2005" WHERE "hk_viewers"='2.23 million' AND "rank">2;
```
## Task
Generate a SQL query to answer the following question:
`What premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心?`

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

CREATE TABLE "highest_rating_drama_series_of_2005" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心?`:
```sql
                SELECT "premiere" FROM "highest_rating_drama_series_of_2005" WHERE "finale"<41 AND "peak"<40 AND "average">31 AND "chinese_title"='學警雄心';
```
## Task
Generate a SQL query to answer the following question:
`What is the high average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40?`

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

CREATE TABLE "highest_rating_drama_series_of_2005" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40?`:
```sql
                SELECT MAX("average") FROM "highest_rating_drama_series_of_2005" WHERE "finale">35 AND "hk_viewers"='2.12 million' AND "peak">40;
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the home team when the venue is Junction 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 is the score for the home team when the venue is Junction Oval?`:
```sql
                SELECT "home_team_score" FROM "round_18" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the location when the home team score is 11.16 (82) and the away team score is 18.13 (121)?`

### 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 is the location when the home team score is 11.16 (82) and the away team score is 18.13 (121)?`:
```sql
                SELECT "venue" FROM "round_18" WHERE "home_team_score"='11.16 (82)' AND "away_team_score"='18.13 (121)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest crowd number at the venue MCG?`

### 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 is the lowest crowd number at the venue MCG?`:
```sql
                SELECT MIN("crowd") FROM "round_18" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`How many total viewers for "the summer house"?`

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

CREATE TABLE "american_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot_est" text,
  "rating" real,
  "share" text,
  "18_49_rating" text,
  "viewers_millions" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total viewers for "the summer house"?`:
```sql
                SELECT SUM("viewers_millions") FROM "american_weekly_ratings" WHERE "episode"='\"the summer house\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the average round for jacksonville`

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

CREATE TABLE "2011_supercross_results" (
  "round" real,
  "date" text,
  "place" text,
  "finished" text,
  "total_points" real,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average round for jacksonville`:
```sql
                SELECT AVG("round") FROM "2011_supercross_results" WHERE "place"='jacksonville';
```
## Task
Generate a SQL query to answer the following question:
`I want the standing for january 29 and finished of 3rd and total points less than 248`

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

CREATE TABLE "2011_supercross_results" (
  "round" real,
  "date" text,
  "place" text,
  "finished" text,
  "total_points" real,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the standing for january 29 and finished of 3rd and total points less than 248`:
```sql
                SELECT "standing" FROM "2011_supercross_results" WHERE "total_points"<248 AND "finished"='3rd' AND "date"='january 29';
```
## Task
Generate a SQL query to answer the following question:
`What was the result and score of the game on February 22?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result and score of the game on February 22?`:
```sql
                SELECT "result" FROM "season_schedule" WHERE "date"='february 22';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest Rd# for a PI GP greater than 0 and a Reg GP less than 62?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest Rd# for a PI GP greater than 0 and a Reg GP less than 62?`:
```sql
                SELECT MAX("rd_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pl_gp">0 AND "reg_gp"<62;
```
## Task
Generate a SQL query to answer the following question:
`Which team has a Reg GP over 62?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a Reg GP over 62?`:
```sql
                SELECT "team_league" FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp">62;
```
## Task
Generate a SQL query to answer the following question:
`What is the total year with a Position of 12th?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total year with a Position of 12th?`:
```sql
                SELECT SUM("year") FROM "achievements" WHERE "position"='12th';
```
## Task
Generate a SQL query to answer the following question:
`When a race had less than 18 laps and time/retired of accident, what was the smallest grid?`

### 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 `When a race had less than 18 laps and time/retired of accident, what was the smallest grid?`:
```sql
                SELECT MIN("grid") FROM "race" WHERE "time_retired"='accident' AND "laps"<18;
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for a grid over 17 with 74 laps?`

### 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 time/retired for a grid over 17 with 74 laps?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid">17 AND "laps"=74;
```
## Task
Generate a SQL query to answer the following question:
`What is the grid total for david coulthard?`

### 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 total for david coulthard?`:
```sql
                SELECT SUM("grid") FROM "race" WHERE "driver"='david coulthard';
```
## Task
Generate a SQL query to answer the following question:
`What day did Chris Maddocks compete in the 35000 m?`

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

CREATE TABLE "walking" (
  "event" text,
  "data" text,
  "athlete" text,
  "date" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did Chris Maddocks compete in the 35000 m?`:
```sql
                SELECT "date" FROM "walking" WHERE "athlete"='chris maddocks' AND "event"='35000 m';
```
## Task
Generate a SQL query to answer the following question:
`Who has a walking data of 214.061km?`

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

CREATE TABLE "walking" (
  "event" text,
  "data" text,
  "athlete" text,
  "date" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a walking data of 214.061km?`:
```sql
                SELECT "athlete" FROM "walking" WHERE "data"='214.061km';
```
## Task
Generate a SQL query to answer the following question:
`Who has a walking data of 3:10:48+?`

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

CREATE TABLE "walking" (
  "event" text,
  "data" text,
  "athlete" text,
  "date" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a walking data of 3:10:48+?`:
```sql
                SELECT "athlete" FROM "walking" WHERE "data"='3:10:48+';
```
## Task
Generate a SQL query to answer the following question:
`what is the title of the episode with the original air date of october2,2002?`

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

CREATE TABLE "season_1" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title of the episode with the original air date of october2,2002?`:
```sql
                SELECT "title" FROM "season_1" WHERE "original_air_date"='october2,2002';
```
## Task
Generate a SQL query to answer the following question:
`what is the title of the episode with the production code of ad1a22?`

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

CREATE TABLE "season_1" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title of the episode with the production code of ad1a22?`:
```sql
                SELECT "title" FROM "season_1" WHERE "production_code"='ad1a22';
```
## Task
Generate a SQL query to answer the following question:
`who was the director of the episode with production code ad1a26?`

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

CREATE TABLE "season_1" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the director of the episode with production code ad1a26?`:
```sql
                SELECT "directed_by" FROM "season_1" WHERE "production_code"='ad1a26';
```
## Task
Generate a SQL query to answer the following question:
`Who is the constructor whose circuit was Oulton Park?`

### 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 `Who is the constructor whose circuit was Oulton Park?`:
```sql
                SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='oulton park';
```