cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the score for the away team of north melbourne?`

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

CREATE TABLE "round_14" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the away team of north melbourne?`:
```sql
                SELECT "away_team_score" FROM "round_14" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`If the away team scored 8.7 (55), what venue did the play at?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the away team scored 8.7 (55), what venue did the play at?`:
```sql
                SELECT "venue" FROM "round_19" WHERE "away_team_score"='8.7 (55)';
```
## Task
Generate a SQL query to answer the following question:
`When the home team scored 25.23 (173), what date did they play/`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team scored 25.23 (173), what date did they play/`:
```sql
                SELECT "date" FROM "round_19" WHERE "home_team_score"='25.23 (173)';
```
## Task
Generate a SQL query to answer the following question:
`Which home team scored 25.23 (173)?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team scored 25.23 (173)?`:
```sql
                SELECT "home_team" FROM "round_19" WHERE "home_team_score"='25.23 (173)';
```
## Task
Generate a SQL query to answer the following question:
`When the away team scored 7.9 (51), what was the smallest crowd that turned out?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the away team scored 7.9 (51), what was the smallest crowd that turned out?`:
```sql
                SELECT MIN("crowd") FROM "round_19" WHERE "away_team_score"='7.9 (51)';
```
## Task
Generate a SQL query to answer the following question:
`Which home team plays at victoria park?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team plays at victoria park?`:
```sql
                SELECT "home_team" FROM "round_19" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`what is the competition for the event team all-round in the year before 1913?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `what is the competition for the event team all-round in the year before 1913?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "event"='team all-round' AND "year"<1913;
```
## Task
Generate a SQL query to answer the following question:
`what is the event for the year less than 1913 with the position of 2nd?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `what is the event for the year less than 1913 with the position of 2nd?`:
```sql
                SELECT "event" FROM "achievements" WHERE "year"<1913 AND "position"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`what is the competition in paris for the parallel bars with a position of 1st?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `what is the competition in paris for the parallel bars with a position of 1st?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "venue"='paris' AND "position"='1st' AND "event"='parallel bars';
```
## Task
Generate a SQL query to answer the following question:
`what is the competition in a year after 1911 with the position of 1st for the rings?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `what is the competition in a year after 1911 with the position of 1st for the rings?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "year">1911 AND "position"='1st' AND "event"='rings';
```
## Task
Generate a SQL query to answer the following question:
`what is the year that the position was 1st in paris?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year that the position was 1st in paris?`:
```sql
                SELECT "year" FROM "achievements" WHERE "position"='1st' AND "venue"='paris';
```
## Task
Generate a SQL query to answer the following question:
`Which team plays their home matches at the mcg Venue?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team plays their home matches at the mcg Venue?`:
```sql
                SELECT "home_team" FROM "round_19" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`What host has an original air date of june 11, 2007?`

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

CREATE TABLE "season_1" (
  "production_no" text,
  "episode_no" real,
  "original_airdate" text,
  "episode_title" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What host has an original air date of june 11, 2007?`:
```sql
                SELECT "host" FROM "season_1" WHERE "original_airdate"='june 11, 2007';
```
## Task
Generate a SQL query to answer the following question:
`Where is the location of a team with a 3-2 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,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the location of a team with a 3-2 record?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='3-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the team with the 4-2 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,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the team with the 4-2 record?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='4-2';
```
## Task
Generate a SQL query to answer the following question:
`What day was played in SCG with the attendance more than 24,824?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was played in SCG with the attendance more than 24,824?`:
```sql
                SELECT "date" FROM "round_10" WHERE "crowd">'24,824' AND "venue"='scg';
```
## Task
Generate a SQL query to answer the following question:
`What was St Kilda's away team score?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was St Kilda's away team score?`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at Moorabbin Oval?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at Moorabbin Oval?`:
```sql
                SELECT AVG("crowd") FROM "round_4" WHERE "venue"='moorabbin oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was Melbourne's away team opponent?`

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

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

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the Footscray away game?`:
```sql
                SELECT "crowd" FROM "round_4" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the competition that happened on 14 june 2008`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the competition that happened on 14 june 2008`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='14 june 2008';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the score for Venue of tanteen recreation ground, st. george's`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the score for Venue of tanteen recreation ground, st. george's`:
```sql
                SELECT "score" FROM "international_goals" WHERE "venue"='tanteen recreation ground, st. george''s';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks are associated with Season 3 – spring 2008?`

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

CREATE TABLE "seasons" (
  "season" text,
  "num_of_stars" real,
  "num_of_weeks" real,
  "season_premiere_date" text,
  "season_finale_date" text,
  "winner" text,
  "runner_up" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks are associated with Season 3 – spring 2008?`:
```sql
                SELECT COUNT("num_of_weeks") FROM "seasons" WHERE "season"='3 – spring 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who won when robert kudelski finished with under 13 weeks?`

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

CREATE TABLE "seasons" (
  "season" text,
  "num_of_stars" real,
  "num_of_weeks" real,
  "season_premiere_date" text,
  "season_finale_date" text,
  "winner" text,
  "runner_up" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won when robert kudelski finished with under 13 weeks?`:
```sql
                SELECT "winner" FROM "seasons" WHERE "num_of_weeks"<13 AND "third_place"='robert kudelski';
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance when Brewers are the opponent with a score of 6–3?`

### 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 `What is the average attendance when Brewers are the opponent with a score of 6–3?`:
```sql
                SELECT AVG("attendance") FROM "game_log" WHERE "opponent"='brewers' AND "score"='6–3';
```
## Task
Generate a SQL query to answer the following question:
`What loss occurred on June 10?`

### 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 `What loss occurred on June 10?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "date"='june 10';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent with a score of 5–4?`

### 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 `Who is the opponent with a score of 5–4?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "score"='5–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the week for Result of w 28-17?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week for Result of w 28-17?`:
```sql
                SELECT "week" FROM "schedule" WHERE "result"='w 28-17';
```
## Task
Generate a SQL query to answer the following question:
`What is the avarage Attendance for the Date of october 26, 1947?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the avarage Attendance for the Date of october 26, 1947?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 26, 1947';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Years that has the Name of arapohue school?`

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

CREATE TABLE "kaipara" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Years that has the Name of arapohue school?`:
```sql
                SELECT "years" FROM "kaipara" WHERE "name"='arapohue school';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86?`

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

CREATE TABLE "kaipara" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86?`:
```sql
                SELECT MIN("decile") FROM "kaipara" WHERE "area"='matakohe' AND "roll">86;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Roll that has the Area of aranga?`

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

CREATE TABLE "kaipara" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Roll that has the Area of aranga?`:
```sql
                SELECT COUNT("roll") FROM "kaipara" WHERE "area"='aranga';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Name that has the Roll larger than 419?`

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

CREATE TABLE "kaipara" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Name that has the Roll larger than 419?`:
```sql
                SELECT "name" FROM "kaipara" WHERE "roll">419;
```
## Task
Generate a SQL query to answer the following question:
`Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at new orleans saints' AND "attendance">'53,448';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Result of w 51-21?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Result of w 51-21?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "result"='w 51-21';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Away team at Arden Street Oval?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Away team at Arden Street Oval?`:
```sql
                SELECT "away_team" FROM "round_8" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd size for a game when the away team scored 17.16 (118)?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest crowd size for a game when the away team scored 17.16 (118)?`:
```sql
                SELECT MIN("crowd") FROM "round_8" WHERE "away_team_score"='17.16 (118)';
```
## Task
Generate a SQL query to answer the following question:
`What is the average top-25 value for majors that have more than 0 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average top-25 value for majors that have more than 0 wins?`:
```sql
                SELECT AVG("top_25") FROM "summary" WHERE "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?`:
```sql
                SELECT MAX("cuts_made") FROM "summary" WHERE "events"=7 AND "top_25">2;
```
## Task
Generate a SQL query to answer the following question:
`For top-25 values under 2, what is the average number of cuts made?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `For top-25 values under 2, what is the average number of cuts made?`:
```sql
                SELECT AVG("cuts_made") FROM "summary" WHERE "top_25"<2;
```
## Task
Generate a SQL query to answer the following question:
`With a dail of 24th and more than 57 seats, what is the election?`

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

CREATE TABLE "general_election_results" (
  "election" text,
  "d_il" text,
  "share_of_votes" text,
  "seats" real,
  "total_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a dail of 24th and more than 57 seats, what is the election?`:
```sql
                SELECT "election" FROM "general_election_results" WHERE "seats">57 AND "d_il"='24th';
```
## Task
Generate a SQL query to answer the following question:
`with shares of 45.3% and total seats less than 166. what is the greatest number of seat?`

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

CREATE TABLE "general_election_results" (
  "election" text,
  "d_il" text,
  "share_of_votes" text,
  "seats" real,
  "total_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `with shares of 45.3% and total seats less than 166. what is the greatest number of seat?`:
```sql
                SELECT MAX("seats") FROM "general_election_results" WHERE "share_of_votes"='45.3%' AND "total_seats"<166;
```
## Task
Generate a SQL query to answer the following question:
`with a share of 44.2% and 77 seats, what is the greatest seat total?`

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

CREATE TABLE "general_election_results" (
  "election" text,
  "d_il" text,
  "share_of_votes" text,
  "seats" real,
  "total_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `with a share of 44.2% and 77 seats, what is the greatest seat total?`:
```sql
                SELECT MAX("total_seats") FROM "general_election_results" WHERE "seats"=77 AND "share_of_votes"='44.2%';
```
## Task
Generate a SQL query to answer the following question:
`What is the long in 1994?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the long in 1994?`:
```sql
                SELECT "long" FROM "regular_season" WHERE "year"='1994';
```
## Task
Generate a SQL query to answer the following question:
`Which team has a long of 67?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a long of 67?`:
```sql
                SELECT "team" FROM "regular_season" WHERE "long"='67';
```
## Task
Generate a SQL query to answer the following question:
`What is the RAvg of the year with Ratt of 9?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the RAvg of the year with Ratt of 9?`:
```sql
                SELECT "r_avg" FROM "regular_season" WHERE "r_att"='9';
```
## Task
Generate a SQL query to answer the following question:
`What is the Ratt of the year with a 78 long?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Ratt of the year with a 78 long?`:
```sql
                SELECT "r_att" FROM "regular_season" WHERE "long"='78';
```
## Task
Generate a SQL query to answer the following question:
`Which team has a Ravg of 1.3?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a Ravg of 1.3?`:
```sql
                SELECT "team" FROM "regular_season" WHERE "r_avg"='1.3';
```
## Task
Generate a SQL query to answer the following question:
`What is the rate of 17 years?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rate of 17 years?`:
```sql
                SELECT "rate" FROM "regular_season" WHERE "year"='17 years';
```
## Task
Generate a SQL query to answer the following question:
`Name the samurai for stampede of t. mask`

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

CREATE TABLE "2005" (
  "block_a" text,
  "goto" text,
  "jado" text,
  "kakihara" text,
  "kanemoto" text,
  "minoru" text,
  "samurai" text,
  "stampede" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the samurai for stampede of t. mask`:
```sql
                SELECT "samurai" FROM "2005" WHERE "stampede"='t. mask';
```
## Task
Generate a SQL query to answer the following question:
`Which series is based in Toronto on may 18?`

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

CREATE TABLE "western_conference_final_vs_3" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series is based in Toronto on may 18?`:
```sql
                SELECT "series" FROM "western_conference_final_vs_3" WHERE "home"='toronto' AND "date"='may 18';
```
## Task
Generate a SQL query to answer the following question:
`What is the combined crowd in Vancouver on may 22?`

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

CREATE TABLE "western_conference_final_vs_3" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the combined crowd in Vancouver on may 22?`:
```sql
                SELECT SUM("attendance") FROM "western_conference_final_vs_3" WHERE "home"='vancouver' AND "date"='may 22';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the 2012 when 2005 is 314`

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

CREATE TABLE "qs_world_university_rankings_university_" (
  "2005" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the 2012 when 2005 is 314`:
```sql
                SELECT "2012" FROM "qs_world_university_rankings_university_" WHERE "2005"='314';
```
## Task
Generate a SQL query to answer the following question:
`What position does the player with 13 caps play?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player with 13 caps play?`:
```sql
                SELECT "position" FROM "2007_rugby_world_cup_squads" WHERE "caps"=13;
```
## Task
Generate a SQL query to answer the following question:
`How many caps for mike macdonald?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many caps for mike macdonald?`:
```sql
                SELECT SUM("caps") FROM "2007_rugby_world_cup_squads" WHERE "player"='mike macdonald';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the position for round less than 3`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the position for round less than 3`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "round"<3;
```
## Task
Generate a SQL query to answer the following question:
`Name the nationality for d`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nationality for d`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "position"='d';
```
## Task
Generate a SQL query to answer the following question:
`What sort of Fuel/Trans does the Grey & Red locomotive have?`

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

CREATE TABLE "diesel_locomotives" (
  "name" text,
  "built" text,
  "wheels" text,
  "fuel_trans" text,
  "status" text,
  "colour" text
);
### SQL
Given the database schema, here is the SQL query that answers `What sort of Fuel/Trans does the Grey & Red locomotive have?`:
```sql
                SELECT "fuel_trans" FROM "diesel_locomotives" WHERE "colour"='grey & red';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the Cub/John locomotive?`

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

CREATE TABLE "diesel_locomotives" (
  "name" text,
  "built" text,
  "wheels" text,
  "fuel_trans" text,
  "status" text,
  "colour" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the Cub/John locomotive?`:
```sql
                SELECT "status" FROM "diesel_locomotives" WHERE "name"='the cub/john';
```
## Task
Generate a SQL query to answer the following question:
`What is the manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric?`

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

CREATE TABLE "diesel_locomotives" (
  "name" text,
  "built" text,
  "wheels" text,
  "fuel_trans" text,
  "status" text,
  "colour" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric?`:
```sql
                SELECT "built" FROM "diesel_locomotives" WHERE "fuel_trans"='diesel-electric';
```
## Task
Generate a SQL query to answer the following question:
`What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service?`

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

CREATE TABLE "diesel_locomotives" (
  "name" text,
  "built" text,
  "wheels" text,
  "fuel_trans" text,
  "status" text,
  "colour" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service?`:
```sql
                SELECT "built" FROM "diesel_locomotives" WHERE "wheels"='0-4-0' AND "status"='in service';
```
## Task
Generate a SQL query to answer the following question:
`What is the color of the locomotive built by Minirail 1954?`

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

CREATE TABLE "diesel_locomotives" (
  "name" text,
  "built" text,
  "wheels" text,
  "fuel_trans" text,
  "status" text,
  "colour" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the color of the locomotive built by Minirail 1954?`:
```sql
                SELECT "colour" FROM "diesel_locomotives" WHERE "built"='minirail 1954';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of rounds with a win result at the sf 5: stadium event?`

### 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's the total number of rounds with a win result at the sf 5: stadium event?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "res"='win' AND "event"='sf 5: stadium';
```
## Task
Generate a SQL query to answer the following question:
`What location was fábio maldonado the opponent at?`

### 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 was fábio maldonado the opponent at?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='fábio maldonado';
```
## Task
Generate a SQL query to answer the following question:
`How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4?`

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

CREATE TABLE "program_details" (
  "final_rank" real,
  "skater" text,
  "rank_in_sp" real,
  "rank_in_fs" real,
  "total_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4?`:
```sql
                SELECT COUNT("final_rank") FROM "program_details" WHERE "rank_in_fs"=3 AND "rank_in_sp">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5?`

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

CREATE TABLE "program_details" (
  "final_rank" real,
  "skater" text,
  "rank_in_sp" real,
  "rank_in_fs" real,
  "total_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5?`:
```sql
                SELECT AVG("rank_in_sp") FROM "program_details" WHERE "rank_in_fs">2 AND "final_rank">5;
```
## Task
Generate a SQL query to answer the following question:
`What tournament is listed as A in 1972 and 2R in 1975?`

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

CREATE TABLE "grand_slam_success" (
  "tournament" text,
  "1968" text,
  "1969" text,
  "1970" text,
  "1971" text,
  "1972" text,
  "1973" text,
  "1974" text,
  "1975" text,
  "1976" text,
  "1977" text,
  "1978" text,
  "1979" text,
  "career_sr" text,
  "career_w_l" text,
  "career_win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament is listed as A in 1972 and 2R in 1975?`:
```sql
                SELECT "tournament" FROM "grand_slam_success" WHERE "1972"='a' AND "1975"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is theW-L of the tournament listed as A for 1976?`

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

CREATE TABLE "grand_slam_success" (
  "tournament" text,
  "1968" text,
  "1969" text,
  "1970" text,
  "1971" text,
  "1972" text,
  "1973" text,
  "1974" text,
  "1975" text,
  "1976" text,
  "1977" text,
  "1978" text,
  "1979" text,
  "career_sr" text,
  "career_w_l" text,
  "career_win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is theW-L of the tournament listed as A for 1976?`:
```sql
                SELECT "career_w_l" FROM "grand_slam_success" WHERE "1976"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the listing for the US Open in 1977?`

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

CREATE TABLE "grand_slam_success" (
  "tournament" text,
  "1968" text,
  "1969" text,
  "1970" text,
  "1971" text,
  "1972" text,
  "1973" text,
  "1974" text,
  "1975" text,
  "1976" text,
  "1977" text,
  "1978" text,
  "1979" text,
  "career_sr" text,
  "career_w_l" text,
  "career_win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the listing for the US Open in 1977?`:
```sql
                SELECT "1977" FROM "grand_slam_success" WHERE "tournament"='us open';
```
## Task
Generate a SQL query to answer the following question:
`What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974?`

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

CREATE TABLE "grand_slam_success" (
  "tournament" text,
  "1968" text,
  "1969" text,
  "1970" text,
  "1971" text,
  "1972" text,
  "1973" text,
  "1974" text,
  "1975" text,
  "1976" text,
  "1977" text,
  "1978" text,
  "1979" text,
  "career_sr" text,
  "career_w_l" text,
  "career_win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974?`:
```sql
                SELECT "career_w_l" FROM "grand_slam_success" WHERE "1968"='a' AND "1974"='4r';
```
## Task
Generate a SQL query to answer the following question:
`What is the combined consumption of 1.6 16v?`

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

CREATE TABLE "engines" (
  "name" text,
  "code" text,
  "capacity" text,
  "type" text,
  "power" text,
  "torque" text,
  "top_speed" text,
  "combined_consumption" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the combined consumption of 1.6 16v?`:
```sql
                SELECT "combined_consumption" FROM "engines" WHERE "name"='1.6 16v';
```
## Task
Generate a SQL query to answer the following question:
`What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code?`

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

CREATE TABLE "engines" (
  "name" text,
  "code" text,
  "capacity" text,
  "type" text,
  "power" text,
  "torque" text,
  "top_speed" text,
  "combined_consumption" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code?`:
```sql
                SELECT "power" FROM "engines" WHERE "combined_consumption"='(gas/ethanol)' AND "code"='k7m hi-torque';
```
## Task
Generate a SQL query to answer the following question:
`What is the combined consumption of the engine with the code k9k 796?`

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

CREATE TABLE "engines" (
  "name" text,
  "code" text,
  "capacity" text,
  "type" text,
  "power" text,
  "torque" text,
  "top_speed" text,
  "combined_consumption" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the combined consumption of the engine with the code k9k 796?`:
```sql
                SELECT "combined_consumption" FROM "engines" WHERE "code"='k9k 796';
```
## Task
Generate a SQL query to answer the following question:
`What is the torque of the engine with a type 16 valves dohc and a code k4m hi-flex?`

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

CREATE TABLE "engines" (
  "name" text,
  "code" text,
  "capacity" text,
  "type" text,
  "power" text,
  "torque" text,
  "top_speed" text,
  "combined_consumption" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the torque of the engine with a type 16 valves dohc and a code k4m hi-flex?`:
```sql
                SELECT "torque" FROM "engines" WHERE "type"='16 valves dohc' AND "code"='k4m hi-flex';
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest assists on the November 13 game?`

### 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 `Who had the highest assists on the November 13 game?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='november 13';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent date for a singles final with the score of 1–6, 4–6, 5–7?`

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

CREATE TABLE "singles_finals_16_9_7" (
  "outcome" text,
  "date" real,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent date for a singles final with the score of 1–6, 4–6, 5–7?`:
```sql
                SELECT MAX("date") FROM "singles_finals_16_9_7" WHERE "score_in_the_final"='1–6, 4–6, 5–7';
```
## Task
Generate a SQL query to answer the following question:
`What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface?`

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

CREATE TABLE "singles_finals_16_9_7" (
  "outcome" text,
  "date" real,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface?`:
```sql
                SELECT "championship" FROM "singles_finals_16_9_7" WHERE "surface"='clay' AND "score_in_the_final"='6–2, 5–7, 6–4, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the final, that Víctor Pecci was the opponent and winner after 1984?`

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

CREATE TABLE "singles_finals_16_9_7" (
  "outcome" text,
  "date" real,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the final, that Víctor Pecci was the opponent and winner after 1984?`:
```sql
                SELECT "score_in_the_final" FROM "singles_finals_16_9_7" WHERE "date">1984 AND "outcome"='winner' AND "opponent_in_the_final"='víctor pecci';
```