cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the score when the home team was Stockport County?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the home team was Stockport County?`:
```sql
                SELECT "score" FROM "third_round_proper" WHERE "home_team"='stockport county';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tie Number when Barnsley was the away team?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tie Number when Barnsley was the away team?`:
```sql
                SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='barnsley';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that took place on october 22, 1976?`

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

CREATE TABLE "october" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game that took place on october 22, 1976?`:
```sql
                SELECT "score" FROM "october" WHERE "date"='october 22, 1976';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where the record was 2-2?`

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

CREATE TABLE "october" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game where the record was 2-2?`:
```sql
                SELECT "score" FROM "october" WHERE "record"='2-2';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team in the game with a record of 2-4?`

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

CREATE TABLE "october" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team in the game with a record of 2-4?`:
```sql
                SELECT "home" FROM "october" WHERE "record"='2-4';
```
## Task
Generate a SQL query to answer the following question:
`What was the race for the world championship formula 1 at a venue of hungaroring?`

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

CREATE TABLE "races" (
  "race" text,
  "date" text,
  "venue" text,
  "winner" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the race for the world championship formula 1 at a venue of hungaroring?`:
```sql
                SELECT "race" FROM "races" WHERE "notes"='world championship formula 1' AND "venue"='hungaroring';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winner for the match on October 7?`

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

CREATE TABLE "races" (
  "race" text,
  "date" text,
  "venue" text,
  "winner" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winner for the match on October 7?`:
```sql
                SELECT "winner" FROM "races" WHERE "date"='october 7';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the race for the new zealand grand prix?`

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

CREATE TABLE "races" (
  "race" text,
  "date" text,
  "venue" text,
  "winner" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the race for the new zealand grand prix?`:
```sql
                SELECT "date" FROM "races" WHERE "race"='new zealand grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner for the world championship formula 1 at the venue, circuit de monaco?`

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

CREATE TABLE "races" (
  "race" text,
  "date" text,
  "venue" text,
  "winner" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner for the world championship formula 1 at the venue, circuit de monaco?`:
```sql
                SELECT "winner" FROM "races" WHERE "notes"='world championship formula 1' AND "venue"='circuit de monaco';
```
## Task
Generate a SQL query to answer the following question:
`What is Result, when Opponent is New England Patriots?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tv_time" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Opponent is New England Patriots?`:
```sql
                SELECT "result" FROM "schedule" WHERE "opponent"='new england patriots';
```
## Task
Generate a SQL query to answer the following question:
`What competition took place on 28/04/1906?`

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

CREATE TABLE "cup_finals_at_dalymount" (
  "date" text,
  "competition" text,
  "winners" text,
  "score" text,
  "runners_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition took place on 28/04/1906?`:
```sql
                SELECT "competition" FROM "cup_finals_at_dalymount" WHERE "date"='28/04/1906';
```
## Task
Generate a SQL query to answer the following question:
`Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?`

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

CREATE TABLE "cup_finals_at_dalymount" (
  "date" text,
  "competition" text,
  "winners" text,
  "score" text,
  "runners_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?`:
```sql
                SELECT "runners_up" FROM "cup_finals_at_dalymount" WHERE "winners"='cork city f.c.' AND "date"='10/05/1998';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the game that was won by Sligo Rovers F.C.?`

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

CREATE TABLE "cup_finals_at_dalymount" (
  "date" text,
  "competition" text,
  "winners" text,
  "score" text,
  "runners_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the game that was won by Sligo Rovers F.C.?`:
```sql
                SELECT "score" FROM "cup_finals_at_dalymount" WHERE "winners"='sligo rovers f.c.';
```
## Task
Generate a SQL query to answer the following question:
`What date did the Fai Cup with Derry City F.C. as runners-up take place?`

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

CREATE TABLE "cup_finals_at_dalymount" (
  "date" text,
  "competition" text,
  "winners" text,
  "score" text,
  "runners_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Fai Cup with Derry City F.C. as runners-up take place?`:
```sql
                SELECT "date" FROM "cup_finals_at_dalymount" WHERE "competition"='fai cup' AND "runners_up"='derry city f.c.';
```
## Task
Generate a SQL query to answer the following question:
`What is the Runner-up on April 11?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner" text,
  "runner_up" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Runner-up on April 11?`:
```sql
                SELECT "runner_up" FROM "singles" WHERE "week"='april 11';
```
## Task
Generate a SQL query to answer the following question:
`What was the Tournament on May 2?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner" text,
  "runner_up" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Tournament on May 2?`:
```sql
                SELECT "tournament" FROM "singles" WHERE "week"='may 2';
```
## Task
Generate a SQL query to answer the following question:
`What is Left Office, when Took Office is "11 June 2001", and when Minister is "Mirko Tremaglia"?`

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

CREATE TABLE "ministers_without_portfolio" (
  "portfolio" text,
  "minister" text,
  "took_office" text,
  "left_office" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Left Office, when Took Office is "11 June 2001", and when Minister is "Mirko Tremaglia"?`:
```sql
                SELECT "left_office" FROM "ministers_without_portfolio" WHERE "took_office"='11 june 2001' AND "minister"='mirko tremaglia';
```
## Task
Generate a SQL query to answer the following question:
`What is Minister, when Party is "AN"?`

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

CREATE TABLE "ministers_without_portfolio" (
  "portfolio" text,
  "minister" text,
  "took_office" text,
  "left_office" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Minister, when Party is "AN"?`:
```sql
                SELECT "minister" FROM "ministers_without_portfolio" WHERE "party"='an';
```
## Task
Generate a SQL query to answer the following question:
`What is Left Office, when Party is "UDC", and when Took Office is "11 June 2001"?`

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

CREATE TABLE "ministers_without_portfolio" (
  "portfolio" text,
  "minister" text,
  "took_office" text,
  "left_office" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Left Office, when Party is "UDC", and when Took Office is "11 June 2001"?`:
```sql
                SELECT "left_office" FROM "ministers_without_portfolio" WHERE "party"='udc' AND "took_office"='11 june 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is Party, when Left Office is "23 April 2005", when Portfolio is "Minister of Reforms and Devolutions"?`

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

CREATE TABLE "ministers_without_portfolio" (
  "portfolio" text,
  "minister" text,
  "took_office" text,
  "left_office" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Party, when Left Office is "23 April 2005", when Portfolio is "Minister of Reforms and Devolutions"?`:
```sql
                SELECT "party" FROM "ministers_without_portfolio" WHERE "left_office"='23 april 2005' AND "portfolio"='minister of reforms and devolutions';
```
## Task
Generate a SQL query to answer the following question:
`What is Minister, when Portfolio is "Minister of Pubblic Administration", and when Took Office is "14 November 2002"?`

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

CREATE TABLE "ministers_without_portfolio" (
  "portfolio" text,
  "minister" text,
  "took_office" text,
  "left_office" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Minister, when Portfolio is "Minister of Pubblic Administration", and when Took Office is "14 November 2002"?`:
```sql
                SELECT "minister" FROM "ministers_without_portfolio" WHERE "portfolio"='minister of pubblic administration' AND "took_office"='14 november 2002';
```
## Task
Generate a SQL query to answer the following question:
`What is Party, when Minister is "Franco Frattini"?`

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

CREATE TABLE "ministers_without_portfolio" (
  "portfolio" text,
  "minister" text,
  "took_office" text,
  "left_office" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Party, when Minister is "Franco Frattini"?`:
```sql
                SELECT "party" FROM "ministers_without_portfolio" WHERE "minister"='franco frattini';
```
## Task
Generate a SQL query to answer the following question:
`What event had the opponent Ryan Bow?`

### 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 event had the opponent Ryan Bow?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='ryan bow';
```
## Task
Generate a SQL query to answer the following question:
`What location had the opponent Hiroyuki Abe?`

### 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 location had the opponent Hiroyuki Abe?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='hiroyuki abe';
```
## Task
Generate a SQL query to answer the following question:
`What was the 2nd leg for 2004?`

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

CREATE TABLE "winners" (
  "year" real,
  "winner" text,
  "runners_up" text,
  "aggregate" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2nd leg for 2004?`:
```sql
                SELECT "2nd_leg" FROM "winners" WHERE "year"=2004;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg when San Pedro was the winner?`

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

CREATE TABLE "winners" (
  "year" real,
  "winner" text,
  "runners_up" text,
  "aggregate" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg when San Pedro was the winner?`:
```sql
                SELECT "2nd_leg" FROM "winners" WHERE "winner"='san pedro';
```
## Task
Generate a SQL query to answer the following question:
`What was the rate when there were more than 22 goals?`

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

CREATE TABLE "2005_present" (
  "season" real,
  "player" text,
  "club" text,
  "goals" real,
  "games" real,
  "rate" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rate when there were more than 22 goals?`:
```sql
                SELECT "rate" FROM "2005_present" WHERE "goals">22;
```
## Task
Generate a SQL query to answer the following question:
`What largest against has the opposing team of fiji?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What largest against has the opposing team of fiji?`:
```sql
                SELECT MAX("against") FROM "matches" WHERE "opposing_team"='fiji';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Competition of european race walking cup?`

### 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,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Competition of european race walking cup?`:
```sql
                SELECT "position" FROM "achievements" WHERE "competition"='european race walking cup';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Competition of european championships, and a Position of 7th?`

### 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,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Competition of european championships, and a Position of 7th?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "competition"='european championships' AND "position"='7th';
```
## Task
Generate a SQL query to answer the following question:
`Where was the world race walking cup held before 2001?`

### 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,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the world race walking cup held before 2001?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year"<2001 AND "competition"='world race walking cup';
```
## Task
Generate a SQL query to answer the following question:
`WHAT COMPETITION HAS MARIAN SANDU?`

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

CREATE TABLE "notable_final_matches" (
  "opponent" text,
  "res" text,
  "class" text,
  "score" text,
  "date" text,
  "competition" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT COMPETITION HAS MARIAN SANDU?`:
```sql
                SELECT "competition" FROM "notable_final_matches" WHERE "res"='marian sandu';
```
## Task
Generate a SQL query to answer the following question:
`WHAT SCORE WAS ON 1999-05-31?`

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

CREATE TABLE "notable_final_matches" (
  "opponent" text,
  "res" text,
  "class" text,
  "score" text,
  "date" text,
  "competition" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT SCORE WAS ON 1999-05-31?`:
```sql
                SELECT "score" FROM "notable_final_matches" WHERE "date"='1999-05-31';
```
## Task
Generate a SQL query to answer the following question:
`WHAT OPPONENT HAD A SCORE OF 5:5?`

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

CREATE TABLE "notable_final_matches" (
  "opponent" text,
  "res" text,
  "class" text,
  "score" text,
  "date" text,
  "competition" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT OPPONENT HAD A SCORE OF 5:5?`:
```sql
                SELECT "opponent" FROM "notable_final_matches" WHERE "score"='5:5';
```
## Task
Generate a SQL query to answer the following question:
`What Competition on August 3, 2005 had a Score of 5-0?`

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

CREATE TABLE "goals_for_senior_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Competition on August 3, 2005 had a Score of 5-0?`:
```sql
                SELECT "competition" FROM "goals_for_senior_national_team" WHERE "score"='5-0' AND "date"='august 3, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What was the Venue of the 2009 Gulf Cup of Nations?`

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

CREATE TABLE "goals_for_senior_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Venue of the 2009 Gulf Cup of Nations?`:
```sql
                SELECT "venue" FROM "goals_for_senior_national_team" WHERE "competition"='2009 gulf cup of nations';
```
## Task
Generate a SQL query to answer the following question:
`What Venue on October 27, 2005 had a Score of 5-0?`

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

CREATE TABLE "goals_for_senior_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue on October 27, 2005 had a Score of 5-0?`:
```sql
                SELECT "venue" FROM "goals_for_senior_national_team" WHERE "score"='5-0' AND "date"='october 27, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of the Friendly Competition on October 27, 2005 with a Score of 5-0?`

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

CREATE TABLE "goals_for_senior_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the Friendly Competition on October 27, 2005 with a Score of 5-0?`:
```sql
                SELECT "result" FROM "goals_for_senior_national_team" WHERE "competition"='friendly' AND "score"='5-0' AND "date"='october 27, 2005';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of React that has the Lane of 5?`

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

CREATE TABLE "final" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of React that has the Lane of 5?`:
```sql
                SELECT COUNT("react") FROM "final" WHERE "lane"=5;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest React that has the Lane of 5?`

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

CREATE TABLE "final" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the lowest React that has the Lane of 5?`:
```sql
                SELECT MIN("react") FROM "final" WHERE "lane"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score of the match with a margin of 3 strokes?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score of the match with a margin of 3 strokes?`:
```sql
                SELECT "winning_score" FROM "wins_5" WHERE "margin"='3 strokes';
```
## Task
Generate a SQL query to answer the following question:
`How many years was there a peter jackson classic?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was there a peter jackson classic?`:
```sql
                SELECT COUNT("year") FROM "wins_5" WHERE "championship"='peter jackson classic';
```
## Task
Generate a SQL query to answer the following question:
`Which year was the peter jackson classic?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year was the peter jackson classic?`:
```sql
                SELECT "year" FROM "wins_5" WHERE "championship"='peter jackson classic';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Visitor is Toronto?`

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

CREATE TABLE "regular_season" (
  "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 Date, when Visitor is Toronto?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "visitor"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Date is November 23?`

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

CREATE TABLE "regular_season" (
  "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 Record, when Date is November 23?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='november 23';
```
## Task
Generate a SQL query to answer the following question:
`What is Visitor, when Home is Philadelphia, and when Date is November 18?`

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

CREATE TABLE "regular_season" (
  "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 Visitor, when Home is Philadelphia, and when Date is November 18?`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "home"='philadelphia' AND "date"='november 18';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Attendance, when Visitor is Toronto?`

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

CREATE TABLE "regular_season" (
  "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 average Attendance, when Visitor is Toronto?`:
```sql
                SELECT AVG("attendance") FROM "regular_season" WHERE "visitor"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`What's the average year with a rank less than 3?`

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

CREATE TABLE "accolades" (
  "year" real,
  "publication" text,
  "country" text,
  "accolade" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average year with a rank less than 3?`:
```sql
                SELECT AVG("year") FROM "accolades" WHERE "rank"<3;
```
## Task
Generate a SQL query to answer the following question:
`What country got accolades in 2002?`

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

CREATE TABLE "accolades" (
  "year" real,
  "publication" text,
  "country" text,
  "accolade" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country got accolades in 2002?`:
```sql
                SELECT "country" FROM "accolades" WHERE "year"=2002;
```
## Task
Generate a SQL query to answer the following question:
`What's the accolade for the rank of 497?`

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

CREATE TABLE "accolades" (
  "year" real,
  "publication" text,
  "country" text,
  "accolade" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the accolade for the rank of 497?`:
```sql
                SELECT "accolade" FROM "accolades" WHERE "rank"=497;
```
## Task
Generate a SQL query to answer the following question:
`What's the average year for the accolade 100 greatest singles of all time?`

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

CREATE TABLE "accolades" (
  "year" real,
  "publication" text,
  "country" text,
  "accolade" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average year for the accolade 100 greatest singles of all time?`:
```sql
                SELECT AVG("year") FROM "accolades" WHERE "accolade"='100 greatest singles of all time';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance during the game against Philadelphia?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance during the game against Philadelphia?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "team"='philadelphia';
```
## Task
Generate a SQL query to answer the following question:
`Which NFL team has a player that came from a college in Washington?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NFL team has a player that came from a college in Washington?`:
```sql
                SELECT "nfl_team" FROM "nfl_draft" WHERE "college"='washington';
```
## Task
Generate a SQL query to answer the following question:
`What position does Bobby Micho, who was picked later than 186 others, play on the Broncos team?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Bobby Micho, who was picked later than 186 others, play on the Broncos team?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "pick_num">186 AND "player"='bobby micho';
```
## Task
Generate a SQL query to answer the following question:
`What is Since, when Transfer Fee is "£ 12m"?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "ends" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Since, when Transfer Fee is "£ 12m"?`:
```sql
                SELECT "since" FROM "squad_information" WHERE "transfer_fee"='£ 12m';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Goals is greater than 14, and when Transfer Fee is "Youth System"?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "ends" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Goals is greater than 14, and when Transfer Fee is "Youth System"?`:
```sql
                SELECT "name" FROM "squad_information" WHERE "goals">14 AND "transfer_fee"='youth system';
```
## Task
Generate a SQL query to answer the following question:
`What is Nat., when Name is "Fàbregas ( Captain )"?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "ends" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Nat., when Name is "Fàbregas ( Captain )"?`:
```sql
                SELECT "nat" FROM "squad_information" WHERE "name"='fàbregas ( captain )';
```
## Task
Generate a SQL query to answer the following question:
`What is Time, when Method is "submission (knees)"?`

### 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 is Time, when Method is "submission (knees)"?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "method"='submission (knees)';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Event is "UFC 40"?`

### 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 is Record, when Event is "UFC 40"?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='ufc 40';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the track that hosted the Swedish Grand Prix in 1979?`

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

CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" (
  "year" text,
  "track" text,
  "125_cc" text,
  "250_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the track that hosted the Swedish Grand Prix in 1979?`:
```sql
                SELECT "track" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "year"='1979';
```
## Task
Generate a SQL query to answer the following question:
`What year did Barry Sheene win the 125 cc?`

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

CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" (
  "year" text,
  "track" text,
  "125_cc" text,
  "250_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Barry Sheene win the 125 cc?`:
```sql
                SELECT "year" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "125_cc"='barry sheene';
```
## Task
Generate a SQL query to answer the following question:
`Who won the 250 cc in 1987?`

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

CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" (
  "year" text,
  "track" text,
  "125_cc" text,
  "250_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the 250 cc in 1987?`:
```sql
                SELECT "250_cc" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "year"='1987';
```
## Task
Generate a SQL query to answer the following question:
`At what track resulted in Fausto Gresini winning the 125 cc and Carlos Lavado winning the 250 cc?`

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

CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" (
  "year" text,
  "track" text,
  "125_cc" text,
  "250_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what track resulted in Fausto Gresini winning the 125 cc and Carlos Lavado winning the 250 cc?`:
```sql
                SELECT "track" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "125_cc"='fausto gresini' AND "250_cc"='carlos lavado';
```
## Task
Generate a SQL query to answer the following question:
`Who won the 250 cc in 1985?`

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

CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" (
  "year" text,
  "track" text,
  "125_cc" text,
  "250_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the 250 cc in 1985?`:
```sql
                SELECT "250_cc" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "year"='1985';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has 1-1 as the record?`

### 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,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has 1-1 as the record?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='1-1';
```
## Task
Generate a SQL query to answer the following question:
`What record has magomedkhan gamzatkhanov as the opponent, and submission as the method?`

### 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,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record has magomedkhan gamzatkhanov as the opponent, and submission as the method?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='magomedkhan gamzatkhanov' AND "method"='submission';
```
## Task
Generate a SQL query to answer the following question:
`What round has 3-4 as the record?`

### 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,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round has 3-4 as the record?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='3-4';
```
## Task
Generate a SQL query to answer the following question:
`What record has loss as the res., 1 for the round, and akira maeda as the opponent?`

### 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,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record has loss as the res., 1 for the round, and akira maeda as the opponent?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "round"='1' AND "opponent"='akira maeda';
```
## Task
Generate a SQL query to answer the following question:
`What record has decision (majority) as the method?`

### 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,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record has decision (majority) as the method?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='decision (majority)';
```
## Task
Generate a SQL query to answer the following question:
`What is Agg., when Team 1 is CD Elá Nguema?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Agg., when Team 1 is CD Elá Nguema?`:
```sql
                SELECT "agg" FROM "preliminary_round" WHERE "team_1"='cd elá nguema';
```
## Task
Generate a SQL query to answer the following question:
`What is 1st Leg, when 2nd Leg is 1-3?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1st Leg, when 2nd Leg is 1-3?`:
```sql
                SELECT "1st_leg" FROM "preliminary_round" WHERE "2nd_leg"='1-3';
```
## Task
Generate a SQL query to answer the following question:
`What is 1st Leg, when 2nd Leg is 0-1?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1st Leg, when 2nd Leg is 0-1?`:
```sql
                SELECT "1st_leg" FROM "preliminary_round" WHERE "2nd_leg"='0-1';
```
## Task
Generate a SQL query to answer the following question:
`What is Team 2, when 2nd Leg is 1-0?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 2, when 2nd Leg is 1-0?`:
```sql
                SELECT "team_2" FROM "preliminary_round" WHERE "2nd_leg"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`What is Team 2, when 2nd Leg is 2-1?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 2, when 2nd Leg is 2-1?`:
```sql
                SELECT "team_2" FROM "preliminary_round" WHERE "2nd_leg"='2-1';
```
## Task
Generate a SQL query to answer the following question:
`What is Team 2, when 2nd Leg is 0-3 1?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 2, when 2nd Leg is 0-3 1?`:
```sql
                SELECT "team_2" FROM "preliminary_round" WHERE "2nd_leg"='0-3 1';
```
## Task
Generate a SQL query to answer the following question:
`What was Jim Colbert's score?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Jim Colbert's score?`:
```sql
                SELECT "score" FROM "third_round" WHERE "player"='jim colbert';
```
## Task
Generate a SQL query to answer the following question:
`What country scored 69-69-73=211?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country scored 69-69-73=211?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='69-69-73=211';
```
## Task
Generate a SQL query to answer the following question:
`What country does Bobby Nichols play for?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country does Bobby Nichols play for?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='bobby nichols';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TIME/ RETIRED WITH A HONDA MANUFACTURER, GRID 8?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TIME/ RETIRED WITH A HONDA MANUFACTURER, GRID 8?`:
```sql
                SELECT "time_retired" FROM "125cc_classification" WHERE "manufacturer"='honda' AND "grid"='8';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?`:
```sql
                SELECT "manufacturer" FROM "125cc_classification" WHERE "laps"='24' AND "time_retired"='+1.965';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND  Time/Retired of +13.997?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND  Time/Retired of +13.997?`:
```sql
                SELECT "grid" FROM "125cc_classification" WHERE "manufacturer"='honda' AND "laps"='24' AND "time_retired"='+13.997';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LAPS WITH A GRID OF 26?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LAPS WITH A GRID OF 26?`:
```sql
                SELECT "laps" FROM "125cc_classification" WHERE "grid"='26';
```