cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the all-time rank associated with a rank less than 9 and a debut in 1994?`

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

CREATE TABLE "appearances" (
  "rank" real,
  "all_time_rank" text,
  "name" text,
  "debut_year" real,
  "current_club" text,
  "apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the all-time rank associated with a rank less than 9 and a debut in 1994?`:
```sql
                SELECT "all_time_rank" FROM "appearances" WHERE "rank"<9 AND "debut_year"=1994;
```
## Task
Generate a SQL query to answer the following question:
`Which tournament was played on clay and there was a score of 4–6, 6–1, 6–4?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was played on clay and there was a score of 4–6, 6–1, 6–4?`:
```sql
                SELECT "tournament" FROM "doubles_5" WHERE "surface"='clay' AND "score"='4–6, 6–1, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the match where albert montañés was the partner?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the match where albert montañés was the partner?`:
```sql
                SELECT "score" FROM "doubles_5" WHERE "partner"='albert montañés';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the match where the opponent in the final was james cerretani todd perry?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the match where the opponent in the final was james cerretani todd perry?`:
```sql
                SELECT "score" FROM "doubles_5" WHERE "opponents_in_the_final"='james cerretani todd perry';
```
## Task
Generate a SQL query to answer the following question:
`What is the date when the opponent in the final is gastón etlis martín rodríguez?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date when the opponent in the final is gastón etlis martín rodríguez?`:
```sql
                SELECT "date" FROM "doubles_5" WHERE "opponents_in_the_final"='gastón etlis martín rodríguez';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the match were the opponent in the final was james cerretani todd perry?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the match were the opponent in the final was james cerretani todd perry?`:
```sql
                SELECT "score" FROM "doubles_5" WHERE "opponents_in_the_final"='james cerretani todd perry';
```
## Task
Generate a SQL query to answer the following question:
`Who is Birmingham City's outgoing manager?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Birmingham City's outgoing manager?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='birmingham city';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the replacement manager for the Bolton Wanderers?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the replacement manager for the Bolton Wanderers?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='bolton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`How was Sammy Lee's team doing on the table before being replaced?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `How was Sammy Lee's team doing on the table before being replaced?`:
```sql
                SELECT "position_in_table" FROM "managerial_changes" WHERE "outgoing_manager"='sammy lee';
```
## Task
Generate a SQL query to answer the following question:
`Which team hired Gary Megson as the replacement manager?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team hired Gary Megson as the replacement manager?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='gary megson';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the match played at MCG?`

### 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 date of the match played at MCG?`:
```sql
                SELECT "date" FROM "round_4" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`What was Carlton's score as the home team?`

### 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 Carlton's score as the home team?`:
```sql
                SELECT "home_team_score" FROM "round_4" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What home team plays at Princes Park?`

### 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 home team plays at Princes Park?`:
```sql
                SELECT "home_team" FROM "round_4" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`What was Geelong's score as the home team?`

### 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 Geelong's score as the home team?`:
```sql
                SELECT "home_team_score" FROM "round_4" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team that scored 12.8 (80)?`

### 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 away team that scored 12.8 (80)?`:
```sql
                SELECT "away_team" FROM "round_4" WHERE "away_team_score"='12.8 (80)';
```
## Task
Generate a SQL query to answer the following question:
`What was the home teams score when the away team scored 11.11 (77) in front of a crowd of 16,112?`

### 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 home teams score when the away team scored 11.11 (77) in front of a crowd of 16,112?`:
```sql
                SELECT "home_team_score" FROM "round_4" WHERE "crowd">'16,112' AND "away_team_score"='11.11 (77)';
```
## Task
Generate a SQL query to answer the following question:
`ON WHAT DATE DID THE HOME TEAM SCORE 12.16 (88)?`

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

CREATE TABLE "round_3" (
  "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 `ON WHAT DATE DID THE HOME TEAM SCORE 12.16 (88)?`:
```sql
                SELECT "date" FROM "round_3" WHERE "home_team_score"='12.16 (88)';
```
## Task
Generate a SQL query to answer the following question:
`WHAT WAS COLLINGWOOD'S LOWEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?`

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

CREATE TABLE "round_3" (
  "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 COLLINGWOOD'S LOWEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?`:
```sql
                SELECT MIN("crowd") FROM "round_3" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`WHAT WAS ESSENDON'S HIGHEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?`

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

CREATE TABLE "round_3" (
  "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 ESSENDON'S HIGHEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?`:
```sql
                SELECT MAX("crowd") FROM "round_3" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`WHAT VENUE HAD AN AWAY TEAM SCORE OF 12.15 (87)?`

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

CREATE TABLE "round_3" (
  "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 VENUE HAD AN AWAY TEAM SCORE OF 12.15 (87)?`:
```sql
                SELECT "venue" FROM "round_3" WHERE "away_team_score"='12.15 (87)';
```
## Task
Generate a SQL query to answer the following question:
`WHAT DID HAWTHORN SCORE AT ITS AWAY GAME?`

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

CREATE TABLE "round_3" (
  "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 DID HAWTHORN SCORE AT ITS AWAY GAME?`:
```sql
                SELECT "away_team_score" FROM "round_3" WHERE "away_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on November 26, 1989?`

### 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,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on November 26, 1989?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='november 26, 1989';
```
## Task
Generate a SQL query to answer the following question:
`What was the result on October 29, 1989?`

### 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,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result on October 29, 1989?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='october 29, 1989';
```
## Task
Generate a SQL query to answer the following question:
`What was the result on October 1, 1989?`

### 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,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result on October 1, 1989?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='october 1, 1989';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of losses that a team who had an away record of 1-6 and more than 4 wins had?`

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

CREATE TABLE "standings" (
  "team" text,
  "wins" real,
  "losses" real,
  "percentage" real,
  "home" text,
  "away" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of losses that a team who had an away record of 1-6 and more than 4 wins had?`:
```sql
                SELECT MAX("losses") FROM "standings" WHERE "away"='1-6' AND "wins">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the home team's score at corio oval?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team's score at corio oval?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "venue"='corio oval';
```
## Task
Generate a SQL query to answer the following question:
`What network is in the language of Bengali?`

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

CREATE TABLE "middle_east" (
  "network" text,
  "origin_of_programming" text,
  "language" text,
  "genre" text,
  "service" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network is in the language of Bengali?`:
```sql
                SELECT "service" FROM "middle_east" WHERE "language"='bengali';
```
## Task
Generate a SQL query to answer the following question:
`What network has an origin in India, a genre of general, and broadcasts in Bengali?`

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

CREATE TABLE "middle_east" (
  "network" text,
  "origin_of_programming" text,
  "language" text,
  "genre" text,
  "service" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network has an origin in India, a genre of general, and broadcasts in Bengali?`:
```sql
                SELECT "network" FROM "middle_east" WHERE "origin_of_programming"='india' AND "genre"='general' AND "language"='bengali';
```
## Task
Generate a SQL query to answer the following question:
`What language does the Ary Digital network broadcast in?`

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

CREATE TABLE "middle_east" (
  "network" text,
  "origin_of_programming" text,
  "language" text,
  "genre" text,
  "service" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language does the Ary Digital network broadcast in?`:
```sql
                SELECT "language" FROM "middle_east" WHERE "network"='ary digital';
```
## Task
Generate a SQL query to answer the following question:
`What is the average crowd for Carlton?`

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

CREATE TABLE "round_7" (
  "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 average crowd for Carlton?`:
```sql
                SELECT AVG("crowd") FROM "round_7" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`How many points did Carlton score?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Carlton score?`:
```sql
                SELECT "home_team_score" FROM "round_7" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd for North Melbourne`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest crowd for North Melbourne`:
```sql
                SELECT MAX("crowd") FROM "round_7" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for Footscray?`

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

CREATE TABLE "round_7" (
  "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 Footscray?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of week 5?`

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

CREATE TABLE "exhibition_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 result of week 5?`:
```sql
                SELECT "result" FROM "exhibition_schedule" WHERE "week"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the gun with a shoulder that measures 10.688 (.420)?`

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

CREATE TABLE "264in_6_6mm_and_up" (
  "name" text,
  "bullet" text,
  "length" text,
  "base" text,
  "shoulder" text,
  "neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the gun with a shoulder that measures 10.688 (.420)?`:
```sql
                SELECT "name" FROM "264in_6_6mm_and_up" WHERE "shoulder"='10.688 (.420)';
```
## Task
Generate a SQL query to answer the following question:
`What is the shoulder measurement of the gun with a length of 57.85 (2.278)?`

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

CREATE TABLE "264in_6_6mm_and_up" (
  "name" text,
  "bullet" text,
  "length" text,
  "base" text,
  "shoulder" text,
  "neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the shoulder measurement of the gun with a length of 57.85 (2.278)?`:
```sql
                SELECT "shoulder" FROM "264in_6_6mm_and_up" WHERE "length"='57.85 (2.278)';
```
## Task
Generate a SQL query to answer the following question:
`What is the neck measurement of the gun with a shoulder measurement of 10.688 (.420)?`

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

CREATE TABLE "264in_6_6mm_and_up" (
  "name" text,
  "bullet" text,
  "length" text,
  "base" text,
  "shoulder" text,
  "neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the neck measurement of the gun with a shoulder measurement of 10.688 (.420)?`:
```sql
                SELECT "neck" FROM "264in_6_6mm_and_up" WHERE "shoulder"='10.688 (.420)';
```
## Task
Generate a SQL query to answer the following question:
`What is the length of the gun that has a shoulder measurement of 12.18 (.480)?`

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

CREATE TABLE "264in_6_6mm_and_up" (
  "name" text,
  "bullet" text,
  "length" text,
  "base" text,
  "shoulder" text,
  "neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length of the gun that has a shoulder measurement of 12.18 (.480)?`:
```sql
                SELECT "length" FROM "264in_6_6mm_and_up" WHERE "shoulder"='12.18 (.480)';
```
## Task
Generate a SQL query to answer the following question:
`What bullet does the gun with a shoulder measurement of 12.5 (.491)?`

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

CREATE TABLE "264in_6_6mm_and_up" (
  "name" text,
  "bullet" text,
  "length" text,
  "base" text,
  "shoulder" text,
  "neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What bullet does the gun with a shoulder measurement of 12.5 (.491)?`:
```sql
                SELECT "bullet" FROM "264in_6_6mm_and_up" WHERE "shoulder"='12.5 (.491)';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game held on September 18, 1994, with a week less than 5?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game held on September 18, 1994, with a week less than 5?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"<5 AND "date"='september 18, 1994';
```
## Task
Generate a SQL query to answer the following question:
`What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "week">6 AND "opponent"='at philadelphia eagles';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game on October 30, 1994 for a week after week 2?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game on October 30, 1994 for a week after week 2?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "week">2 AND "date"='october 30, 1994';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode that aired on September 25, 2005?`

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

CREATE TABLE "season_3" (
  "episode_number" real,
  "title" text,
  "podcast_date" text,
  "run_time" text,
  "historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode that aired on September 25, 2005?`:
```sql
                SELECT "title" FROM "season_3" WHERE "podcast_date"='september 25, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the run time of the episode that aired on September 4, 2005?`

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

CREATE TABLE "season_3" (
  "episode_number" real,
  "title" text,
  "podcast_date" text,
  "run_time" text,
  "historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the run time of the episode that aired on September 4, 2005?`:
```sql
                SELECT "run_time" FROM "season_3" WHERE "podcast_date"='september 4, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the historical reference of the episode that aired on October 23, 2005?`

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

CREATE TABLE "season_3" (
  "episode_number" real,
  "title" text,
  "podcast_date" text,
  "run_time" text,
  "historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the historical reference of the episode that aired on October 23, 2005?`:
```sql
                SELECT "historical_references" FROM "season_3" WHERE "podcast_date"='october 23, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the episode that is before 307, run time equals 5:48 and has P.T. Barnum as the topic?`

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

CREATE TABLE "season_3" (
  "episode_number" real,
  "title" text,
  "podcast_date" text,
  "run_time" text,
  "historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the episode that is before 307, run time equals 5:48 and has P.T. Barnum as the topic?`:
```sql
                SELECT "podcast_date" FROM "season_3" WHERE "episode_number"<307 AND "historical_references"='p.t. barnum' AND "run_time"='5:48';
```
## Task
Generate a SQL query to answer the following question:
`What is the topic of the episode that runs 6:07?`

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

CREATE TABLE "season_3" (
  "episode_number" real,
  "title" text,
  "podcast_date" text,
  "run_time" text,
  "historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the topic of the episode that runs 6:07?`:
```sql
                SELECT "historical_references" FROM "season_3" WHERE "run_time"='6:07';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode number of the episode that aired on August 8, 2005?`

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

CREATE TABLE "season_3" (
  "episode_number" real,
  "title" text,
  "podcast_date" text,
  "run_time" text,
  "historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode number of the episode that aired on August 8, 2005?`:
```sql
                SELECT "episode_number" FROM "season_3" WHERE "podcast_date"='august 8, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the biggest crowd when the home side scores 7.7 (49)?`

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

CREATE TABLE "round_13" (
  "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 biggest crowd when the home side scores 7.7 (49)?`:
```sql
                SELECT MAX("crowd") FROM "round_13" WHERE "home_team_score"='7.7 (49)';
```
## Task
Generate a SQL query to answer the following question:
`What day is south melbourne the away side?`

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

CREATE TABLE "round_13" (
  "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 is south melbourne the away side?`:
```sql
                SELECT "date" FROM "round_13" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Whom is the away team when the home team score is 11.12 (78)?`

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

CREATE TABLE "round_13" (
  "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 `Whom is the away team when the home team score is 11.12 (78)?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "home_team_score"='11.12 (78)';
```
## Task
Generate a SQL query to answer the following question:
`Did the fighter beat Ryo Takigawa?`

### 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 `Did the fighter beat Ryo Takigawa?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='ryo takigawa';
```
## Task
Generate a SQL query to answer the following question:
`What is the incident number of the incident that occurred in Dantewada, Chattisgarh?`

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

CREATE TABLE "2005" (
  "incident_no" text,
  "date" text,
  "place" text,
  "killed" real,
  "injured" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the incident number of the incident that occurred in Dantewada, Chattisgarh?`:
```sql
                SELECT "incident_no" FROM "2005" WHERE "place"='dantewada, chattisgarh';
```
## Task
Generate a SQL query to answer the following question:
`WHich province has an IATA of UYN?`

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

CREATE TABLE "references" (
  "city" text,
  "province" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich province has an IATA of UYN?`:
```sql
                SELECT "province" FROM "references" WHERE "iata"='uyn';
```
## Task
Generate a SQL query to answer the following question:
`Which city has an ICAO of ZSXZ?`

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

CREATE TABLE "references" (
  "city" text,
  "province" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has an ICAO of ZSXZ?`:
```sql
                SELECT "city" FROM "references" WHERE "icao"='zsxz';
```
## Task
Generate a SQL query to answer the following question:
`Which province is Luogang International Airport located in?`

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

CREATE TABLE "references" (
  "city" text,
  "province" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province is Luogang International Airport located in?`:
```sql
                SELECT "province" FROM "references" WHERE "airport"='luogang international airport';
```
## Task
Generate a SQL query to answer the following question:
`WHich province has an IATA of WNZ?`

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

CREATE TABLE "references" (
  "city" text,
  "province" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich province has an IATA of WNZ?`:
```sql
                SELECT "province" FROM "references" WHERE "iata"='wnz';
```
## Task
Generate a SQL query to answer the following question:
`What is the IATA for Korla Airport.`

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

CREATE TABLE "references" (
  "city" text,
  "province" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IATA for Korla Airport.`:
```sql
                SELECT "iata" FROM "references" WHERE "airport"='korla airport';
```
## Task
Generate a SQL query to answer the following question:
`In what division did they place 4th?`

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

CREATE TABLE "1890s" (
  "season" text,
  "tier" text,
  "division" text,
  "position" text,
  "top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what division did they place 4th?`:
```sql
                SELECT "division" FROM "1890s" WHERE "position"='4th';
```
## Task
Generate a SQL query to answer the following question:
`What was the top scorer in the 1890-91 season?`

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

CREATE TABLE "1890s" (
  "season" text,
  "tier" text,
  "division" text,
  "position" text,
  "top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the top scorer in the 1890-91 season?`:
```sql
                SELECT "top_scorer" FROM "1890s" WHERE "season"='1890-91';
```
## Task
Generate a SQL query to answer the following question:
`Which position has a player at Arizona state?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has a player at Arizona state?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='arizona state';
```
## Task
Generate a SQL query to answer the following question:
`Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller?`:
```sql
                SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"<196 AND "round">5 AND "player"='blake miller';
```
## Task
Generate a SQL query to answer the following question:
`What is the average round at which is the position of Tight End and Randy Bethel?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round at which is the position of Tight End and Randy Bethel?`:
```sql
                SELECT AVG("round") FROM "nfl_draft" WHERE "position"='tight end' AND "player"='randy bethel';
```
## Task
Generate a SQL query to answer the following question:
`What day did they play the New Orleans Saints?`

### 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 day did they play the New Orleans Saints?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='new orleans saints';
```
## Task
Generate a SQL query to answer the following question:
`Which coach has a conference record of 42-78?`

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

CREATE TABLE "coaching_history" (
  "coach" text,
  "years" text,
  "record" text,
  "conference_record" text,
  "overall_win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which coach has a conference record of 42-78?`:
```sql
                SELECT "coach" FROM "coaching_history" WHERE "conference_record"='42-78';
```
## Task
Generate a SQL query to answer the following question:
`In what years was the conference record 18-15?`

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

CREATE TABLE "coaching_history" (
  "coach" text,
  "years" text,
  "record" text,
  "conference_record" text,
  "overall_win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what years was the conference record 18-15?`:
```sql
                SELECT "years" FROM "coaching_history" WHERE "conference_record"='18-15';
```
## Task
Generate a SQL query to answer the following question:
`In what years, when the conference record was 63-9, was the coach Walter Meanwell?`

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

CREATE TABLE "coaching_history" (
  "coach" text,
  "years" text,
  "record" text,
  "conference_record" text,
  "overall_win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what years, when the conference record was 63-9, was the coach Walter Meanwell?`:
```sql
                SELECT "years" FROM "coaching_history" WHERE "coach"='walter meanwell' AND "conference_record"='63-9';
```
## Task
Generate a SQL query to answer the following question:
`What was coach Dick Bennett's overall win percentage?`

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

CREATE TABLE "coaching_history" (
  "coach" text,
  "years" text,
  "record" text,
  "conference_record" text,
  "overall_win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was coach Dick Bennett's overall win percentage?`:
```sql
                SELECT "overall_win_percentage" FROM "coaching_history" WHERE "coach"='dick bennett';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for the shirt that said Pavv before 2005?`

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

CREATE TABLE "shirt_sponsors_and_manufacturers" (
  "year" real,
  "kit_supplier" text,
  "sponsor" text,
  "shirt_printing" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the shirt that said Pavv before 2005?`:
```sql
                SELECT "notes" FROM "shirt_sponsors_and_manufacturers" WHERE "shirt_printing"='pavv' AND "year"<2005;
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for the shirt that said Pavv after 2007?`

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

CREATE TABLE "shirt_sponsors_and_manufacturers" (
  "year" real,
  "kit_supplier" text,
  "sponsor" text,
  "shirt_printing" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the shirt that said Pavv after 2007?`:
```sql
                SELECT "notes" FROM "shirt_sponsors_and_manufacturers" WHERE "shirt_printing"='pavv' AND "year">2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the average of all the years when the notes are “electronics brand?”`

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

CREATE TABLE "shirt_sponsors_and_manufacturers" (
  "year" real,
  "kit_supplier" text,
  "sponsor" text,
  "shirt_printing" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average of all the years when the notes are “electronics brand?”`:
```sql
                SELECT AVG("year") FROM "shirt_sponsors_and_manufacturers" WHERE "notes"='electronics brand';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for the shirt that says 名品+1 in the kit supplied by Rapido?`

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

CREATE TABLE "shirt_sponsors_and_manufacturers" (
  "year" real,
  "kit_supplier" text,
  "sponsor" text,
  "shirt_printing" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the shirt that says 名品+1 in the kit supplied by Rapido?`:
```sql
                SELECT "notes" FROM "shirt_sponsors_and_manufacturers" WHERE "kit_supplier"='rapido' AND "shirt_printing"='名品+1';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd at Lake Oval?`

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

CREATE TABLE "round_2" (
  "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 largest crowd at Lake Oval?`:
```sql
                SELECT MAX("crowd") FROM "round_2" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team for the game with more than 25,000 crowd?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team for the game with more than 25,000 crowd?`:
```sql
                SELECT "home_team" FROM "round_2" WHERE "crowd">'25,000';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for Footscray when they were the away team?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for Footscray when they were the away team?`:
```sql
                SELECT "away_team_score" FROM "round_2" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What is the result from March 14, 2007?`

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

CREATE TABLE "under_23_international_career" (
  "date" text,
  "venue" text,
  "result" text,
  "goals" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result from March 14, 2007?`:
```sql
                SELECT "result" FROM "under_23_international_career" WHERE "date"='march 14, 2007';
```
## Task
Generate a SQL query to answer the following question:
`How many goals have a result of 0-1 on march 28, 2007?`

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

CREATE TABLE "under_23_international_career" (
  "date" text,
  "venue" text,
  "result" text,
  "goals" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals have a result of 0-1 on march 28, 2007?`:
```sql
                SELECT COUNT("goals") FROM "under_23_international_career" WHERE "result"='0-1' AND "date"='march 28, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What venue has a Result of 3-0?`

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

CREATE TABLE "under_23_international_career" (
  "date" text,
  "venue" text,
  "result" text,
  "goals" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has a Result of 3-0?`:
```sql
                SELECT "venue" FROM "under_23_international_career" WHERE "result"='3-0';
```
## Task
Generate a SQL query to answer the following question:
`when the 1st player has a choice of bb r what is the 2nd player's probability of winning?`

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

CREATE TABLE "variation_with_playing_cards" (
  "1st_player_s_choice" text,
  "2nd_player_s_choice" text,
  "probability_1st_player_wins" text,
  "probability_2nd_player_wins" text,
  "probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `when the 1st player has a choice of bb r what is the 2nd player's probability of winning?`:
```sql
                SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "1st_player_s_choice"='bb r';
```