cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the venue that Saint Joseph's University hosted at?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue that Saint Joseph's University hosted at?`:
```sql
                SELECT "venue" FROM "first_and_second_rounds" WHERE "host"='saint joseph''s university';
```
## Task
Generate a SQL query to answer the following question:
`In which city is Hayman Hall (Tom Gola Arena) located?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which city is Hayman Hall (Tom Gola Arena) located?`:
```sql
                SELECT "city" FROM "first_and_second_rounds" WHERE "venue"='hayman hall (tom gola arena)';
```
## Task
Generate a SQL query to answer the following question:
`Which venue is in the city of Villanova?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue is in the city of Villanova?`:
```sql
                SELECT "venue" FROM "first_and_second_rounds" WHERE "city"='villanova';
```
## Task
Generate a SQL query to answer the following question:
`On which date did Ger Loughnane from Team Clare have a match?`

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

CREATE TABLE "debutantes" (
  "player" text,
  "team" text,
  "date" text,
  "opposition" text,
  "game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date did Ger Loughnane from Team Clare have a match?`:
```sql
                SELECT "date" FROM "debutantes" WHERE "team"='clare' AND "player"='ger loughnane';
```
## Task
Generate a SQL query to answer the following question:
`What team opposed Tipperary in the Munster Final game?`

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

CREATE TABLE "debutantes" (
  "player" text,
  "team" text,
  "date" text,
  "opposition" text,
  "game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team opposed Tipperary in the Munster Final game?`:
```sql
                SELECT "team" FROM "debutantes" WHERE "opposition"='tipperary' AND "game"='munster final';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Limerick play in the All-Ireland Final game?`

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

CREATE TABLE "debutantes" (
  "player" text,
  "team" text,
  "date" text,
  "opposition" text,
  "game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Limerick play in the All-Ireland Final game?`:
```sql
                SELECT "date" FROM "debutantes" WHERE "opposition"='limerick' AND "game"='all-ireland final';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opposition in the game on July 29?`

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

CREATE TABLE "debutantes" (
  "player" text,
  "team" text,
  "date" text,
  "opposition" text,
  "game" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opposition in the game on July 29?`:
```sql
                SELECT "opposition" FROM "debutantes" WHERE "date"='july 29';
```
## Task
Generate a SQL query to answer the following question:
`What day did the team play week 13?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did the team play week 13?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=13;
```
## Task
Generate a SQL query to answer the following question:
`What was Bye's opponent's attendance?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Bye's opponent's attendance?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "opponent"='bye';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent, before Week 10, had an attendance of 63,672?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent, before Week 10, had an attendance of 63,672?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"<10 AND "attendance"='63,672';
```
## Task
Generate a SQL query to answer the following question:
`Which week had an attendance of 70,225`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week had an attendance of 70,225`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "attendance"='70,225';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of people injured at incidents located at Rohtas, Bihar where fewer than 13 were killed?`

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

CREATE TABLE "2007" (
  "incident_no" text,
  "date" text,
  "place" text,
  "killed" real,
  "injured" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of people injured at incidents located at Rohtas, Bihar where fewer than 13 were killed?`:
```sql
                SELECT MAX("injured") FROM "2007" WHERE "place"='rohtas, bihar' AND "killed"<13;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of people injured in incidents in Vaishali, Bihar?`

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

CREATE TABLE "2007" (
  "incident_no" text,
  "date" text,
  "place" text,
  "killed" real,
  "injured" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of people injured in incidents in Vaishali, Bihar?`:
```sql
                SELECT MAX("injured") FROM "2007" WHERE "place"='vaishali, bihar';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the Away team from Geelong 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 the Away team from Geelong score?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in the crowd at Victoria Park?`

### 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 people were in the crowd at Victoria Park?`:
```sql
                SELECT COUNT("crowd") FROM "round_7" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the away team from Melbourne 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 the away team from Melbourne score?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What date did the home team from Carlton play on?`

### 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 date did the home team from Carlton play on?`:
```sql
                SELECT "date" FROM "round_7" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Who is the manager of the St. Johnstone club?`

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

CREATE TABLE "list_of_managers" (
  "manager" text,
  "nationality" text,
  "date_of_birth_and_age" text,
  "club" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manager of the St. Johnstone club?`:
```sql
                SELECT "manager" FROM "list_of_managers" WHERE "club"='st. johnstone';
```
## Task
Generate a SQL query to answer the following question:
`Who is the manager of the Stenhousemuir club?`

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

CREATE TABLE "list_of_managers" (
  "manager" text,
  "nationality" text,
  "date_of_birth_and_age" text,
  "club" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manager of the Stenhousemuir club?`:
```sql
                SELECT "manager" FROM "list_of_managers" WHERE "club"='stenhousemuir';
```
## Task
Generate a SQL query to answer the following question:
`What team was the away ream when they scored 13.12 (90)?`

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

CREATE TABLE "round_16" (
  "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 team was the away ream when they scored 13.12 (90)?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "away_team_score"='13.12 (90)';
```
## Task
Generate a SQL query to answer the following question:
`What team was home team when south Melbourne was the away team?`

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

CREATE TABLE "round_16" (
  "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 team was home team when south Melbourne was the away team?`:
```sql
                SELECT "home_team" FROM "round_16" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team score when the home team was Carlton?`

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

CREATE TABLE "round_16" (
  "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 score when the home team was Carlton?`:
```sql
                SELECT "away_team_score" FROM "round_16" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What is the Basin Area mi 2 when the Basin Area km 2 is larger than 2,261,763 and the Basin is Pearl River?`

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

CREATE TABLE "basins" (
  "basin" text,
  "continent" text,
  "drains_to" text,
  "basin_area_km_2" real,
  "basin_area_mi_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Basin Area mi 2 when the Basin Area km 2 is larger than 2,261,763 and the Basin is Pearl River?`:
```sql
                SELECT "basin_area_mi_2" FROM "basins" WHERE "basin_area_km_2">'2,261,763' AND "basin"='pearl river';
```
## Task
Generate a SQL query to answer the following question:
`Which Basin's Continent is South America, has a Basin Area km 2 larger than 6,144,727, and a Basin Area mi 2 of 238,539?`

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

CREATE TABLE "basins" (
  "basin" text,
  "continent" text,
  "drains_to" text,
  "basin_area_km_2" real,
  "basin_area_mi_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Basin's Continent is South America, has a Basin Area km 2 larger than 6,144,727, and a Basin Area mi 2 of 238,539?`:
```sql
                SELECT "basin" FROM "basins" WHERE "continent"='south america' AND "basin_area_km_2">'6,144,727' AND "basin_area_mi_2"='238,539';
```
## Task
Generate a SQL query to answer the following question:
`What was date of the bye week 11?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was date of the bye week 11?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='bye' AND "week"=11;
```
## Task
Generate a SQL query to answer the following question:
`Where did Essendon play as the away team?`

### 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 `Where did Essendon play as the away team?`:
```sql
                SELECT "venue" FROM "round_10" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Where did Carolyn Dawn Johnson win Female Artist of the Year, and Paul Brandt win Male Artist of the Year?`

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

CREATE TABLE "major_awards" (
  "year" real,
  "location" text,
  "fans_choice_award" text,
  "male_artist_of_the_year" text,
  "female_artist_of_the_year" text,
  "group_or_duo_of_the_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Carolyn Dawn Johnson win Female Artist of the Year, and Paul Brandt win Male Artist of the Year?`:
```sql
                SELECT "location" FROM "major_awards" WHERE "female_artist_of_the_year"='carolyn dawn johnson' AND "male_artist_of_the_year"='paul brandt';
```
## Task
Generate a SQL query to answer the following question:
`Where did Doc Walker win Group or Duo of the Year, and where did Crystal Shawanda win Female Artist of the year?`

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

CREATE TABLE "major_awards" (
  "year" real,
  "location" text,
  "fans_choice_award" text,
  "male_artist_of_the_year" text,
  "female_artist_of_the_year" text,
  "group_or_duo_of_the_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Doc Walker win Group or Duo of the Year, and where did Crystal Shawanda win Female Artist of the year?`:
```sql
                SELECT "location" FROM "major_awards" WHERE "group_or_duo_of_the_year"='doc walker' AND "female_artist_of_the_year"='crystal shawanda';
```
## Task
Generate a SQL query to answer the following question:
`Who won Female Artist of the year in 1983, in the same city that Family Brown won Group of Duo of the year?`

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

CREATE TABLE "major_awards" (
  "year" real,
  "location" text,
  "fans_choice_award" text,
  "male_artist_of_the_year" text,
  "female_artist_of_the_year" text,
  "group_or_duo_of_the_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Female Artist of the year in 1983, in the same city that Family Brown won Group of Duo of the year?`:
```sql
                SELECT "female_artist_of_the_year" FROM "major_awards" WHERE "group_or_duo_of_the_year"='family brown' AND "year"=1983;
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent season when Fernando Alonso had more than 13 podiums in a car with a Ferrari engine?`

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

CREATE TABLE "by_season" (
  "season" real,
  "driver" text,
  "team" text,
  "engine" text,
  "poles" real,
  "wins" real,
  "podiums" real,
  "points" real,
  "margin_of_defeat" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent season when Fernando Alonso had more than 13 podiums in a car with a Ferrari engine?`:
```sql
                SELECT MAX("season") FROM "by_season" WHERE "engine"='ferrari' AND "driver"='fernando alonso' AND "podiums">13;
```
## Task
Generate a SQL query to answer the following question:
`What is the engine for the Bettenhausen Motorsports team?`

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

CREATE TABLE "drivers_and_constructors" (
  "team" text,
  "chassis" text,
  "engine" text,
  "tires" text,
  "drivers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the engine for the Bettenhausen Motorsports team?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "team"='bettenhausen motorsports';
```
## Task
Generate a SQL query to answer the following question:
`What engine does Steve Chassey drive with a march chassis?`

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

CREATE TABLE "drivers_and_constructors" (
  "team" text,
  "chassis" text,
  "engine" text,
  "tires" text,
  "drivers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine does Steve Chassey drive with a march chassis?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "chassis"='march' AND "drivers"='steve chassey';
```
## Task
Generate a SQL query to answer the following question:
`What is the engine for the Arciero Racing team?`

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

CREATE TABLE "drivers_and_constructors" (
  "team" text,
  "chassis" text,
  "engine" text,
  "tires" text,
  "drivers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the engine for the Arciero Racing team?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "team"='arciero racing';
```
## Task
Generate a SQL query to answer the following question:
`What chassis belongs with the Cosworth Engine driven by Scott Pruett on the Dick Simon Racing team?`

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

CREATE TABLE "drivers_and_constructors" (
  "team" text,
  "chassis" text,
  "engine" text,
  "tires" text,
  "drivers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What chassis belongs with the Cosworth Engine driven by Scott Pruett on the Dick Simon Racing team?`:
```sql
                SELECT "chassis" FROM "drivers_and_constructors" WHERE "engine"='cosworth' AND "drivers"='scott pruett' AND "team"='dick simon racing';
```
## Task
Generate a SQL query to answer the following question:
`What is the engine for the team of Alex Morales Motorsports?`

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

CREATE TABLE "drivers_and_constructors" (
  "team" text,
  "chassis" text,
  "engine" text,
  "tires" text,
  "drivers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the engine for the team of Alex Morales Motorsports?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "team"='alex morales motorsports';
```
## Task
Generate a SQL query to answer the following question:
`What is the engine for the Machinists Union Racing team?`

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

CREATE TABLE "drivers_and_constructors" (
  "team" text,
  "chassis" text,
  "engine" text,
  "tires" text,
  "drivers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the engine for the Machinists Union Racing team?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "team"='machinists union racing';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home side when the away side score is 11.14 (80)?`

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

CREATE TABLE "round_16" (
  "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 is the home side when the away side score is 11.14 (80)?`:
```sql
                SELECT "home_team" FROM "round_16" WHERE "away_team_score"='11.14 (80)';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for Week 1?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "kickoff" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for Week 1?`:
```sql
                SELECT "attendance" FROM "regular_season" WHERE "week"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which team did the Patriots play when there was a game attendance of 73,369?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "kickoff" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team did the Patriots play when there was a game attendance of 73,369?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "attendance"='73,369';
```
## Task
Generate a SQL query to answer the following question:
`What date was the Week 3 game played?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "kickoff" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the Week 3 game played?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance of the matches that took place at Windy Hill?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance of the matches that took place at Windy Hill?`:
```sql
                SELECT MAX("crowd") FROM "round_15" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`Which team has a home field at Glenferrie Oval?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a home field at Glenferrie Oval?`:
```sql
                SELECT "home_team" FROM "round_15" WHERE "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`On what date is Footscray 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 `On what date is Footscray the away team?`:
```sql
                SELECT "date" FROM "round_3" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What was the crowd population for Footscray as an 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 the crowd population for Footscray as an away team?`:
```sql
                SELECT MAX("crowd") FROM "round_3" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`On what date was there both a crowd larger than 16,570 and the away team was Footscray?`

### 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 was there both a crowd larger than 16,570 and the away team was Footscray?`:
```sql
                SELECT "date" FROM "round_3" WHERE "crowd">'16,570' AND "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`How many bids were there for the .500 win percentage in the Ohio Valley conference?`

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

CREATE TABLE "record_by_conference" (
  "conference" text,
  "num_of_bids" real,
  "record" text,
  "win_pct" text,
  "round_of_32" text,
  "sweet_sixteen" text,
  "elite_eight" text,
  "final_four" text,
  "championship_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many bids were there for the .500 win percentage in the Ohio Valley conference?`:
```sql
                SELECT SUM("num_of_bids") FROM "record_by_conference" WHERE "win_pct"='.500' AND "conference"='ohio valley';
```
## Task
Generate a SQL query to answer the following question:
`What is the Championship Game when the Final Four is 1 and the conference is American South?`

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

CREATE TABLE "record_by_conference" (
  "conference" text,
  "num_of_bids" real,
  "record" text,
  "win_pct" text,
  "round_of_32" text,
  "sweet_sixteen" text,
  "elite_eight" text,
  "final_four" text,
  "championship_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Championship Game when the Final Four is 1 and the conference is American South?`:
```sql
                SELECT "championship_game" FROM "record_by_conference" WHERE "final_four"='1' AND "conference"='american south';
```
## Task
Generate a SQL query to answer the following question:
`What is the Final Four with a win percentage of .750?`

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

CREATE TABLE "record_by_conference" (
  "conference" text,
  "num_of_bids" real,
  "record" text,
  "win_pct" text,
  "round_of_32" text,
  "sweet_sixteen" text,
  "elite_eight" text,
  "final_four" text,
  "championship_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Final Four with a win percentage of .750?`:
```sql
                SELECT "final_four" FROM "record_by_conference" WHERE "win_pct"='.750';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game at the Arden Street Oval?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game at the Arden Street Oval?`:
```sql
                SELECT "date" FROM "round_18" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the date where the home team scores 8.7 (55)?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date where the home team scores 8.7 (55)?`:
```sql
                SELECT "date" FROM "round_18" WHERE "home_team_score"='8.7 (55)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game when the venue is Kardinia Park?`

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

CREATE TABLE "round_5" (
  "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 date of the game when the venue is Kardinia Park?`:
```sql
                SELECT "date" FROM "round_5" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the crowd when the away team score is 4.8 (32)?`

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

CREATE TABLE "round_5" (
  "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 total of the crowd when the away team score is 4.8 (32)?`:
```sql
                SELECT SUM("crowd") FROM "round_5" WHERE "away_team_score"='4.8 (32)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game when the home team score is 11.11 (77)?`

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

CREATE TABLE "round_5" (
  "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 date of the game when the home team score is 11.11 (77)?`:
```sql
                SELECT "date" FROM "round_5" WHERE "home_team_score"='11.11 (77)';
```
## Task
Generate a SQL query to answer the following question:
`Which away team played against the home team of St Kilda?`

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

CREATE TABLE "round_1" (
  "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 away team played against the home team of St Kilda?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`Which home team competed against the away team of Melbourne?`

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

CREATE TABLE "round_1" (
  "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 competed against the away team of Melbourne?`:
```sql
                SELECT "home_team" FROM "round_1" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Which away team resulted in a 15.14 (104) score for the home team?`

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

CREATE TABLE "round_1" (
  "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 away team resulted in a 15.14 (104) score for the home team?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "home_team_score"='15.14 (104)';
```
## Task
Generate a SQL query to answer the following question:
`Which venue hosted an away team with a score of 9.12 (66)?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue hosted an away team with a score of 9.12 (66)?`:
```sql
                SELECT "venue" FROM "round_1" WHERE "away_team_score"='9.12 (66)';
```
## Task
Generate a SQL query to answer the following question:
`What venue hosted a home team with a score of 6.12 (48)?`

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

CREATE TABLE "round_1" (
  "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 hosted a home team with a score of 6.12 (48)?`:
```sql
                SELECT "venue" FROM "round_1" WHERE "home_team_score"='6.12 (48)';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of week 1 and the opponent was bye?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff" text,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of week 1 and the opponent was bye?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"='1' AND "opponent"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What is the site of the game with a Record of 6-2?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff" text,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the site of the game with a Record of 6-2?`:
```sql
                SELECT "game_site" FROM "schedule" WHERE "record"='6-2';
```
## Task
Generate a SQL query to answer the following question:
`What week has a Record of 12-2?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff" text,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week has a Record of 12-2?`:
```sql
                SELECT "week" FROM "schedule" WHERE "record"='12-2';
```
## Task
Generate a SQL query to answer the following question:
`What city has Sky Tower?`

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

CREATE TABLE "buildings_above_140m" (
  "rank" text,
  "name" text,
  "city" text,
  "height_in_m_ft" text,
  "floors" real,
  "year_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What city has Sky Tower?`:
```sql
                SELECT "city" FROM "buildings_above_140m" WHERE "name"='sky tower';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of a building in Courbevoie built before 1973?`

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

CREATE TABLE "buildings_above_140m" (
  "rank" text,
  "name" text,
  "city" text,
  "height_in_m_ft" text,
  "floors" real,
  "year_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of a building in Courbevoie built before 1973?`:
```sql
                SELECT "name" FROM "buildings_above_140m" WHERE "year_built"<1973 AND "city"='courbevoie';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Lake Oval?`

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

CREATE TABLE "round_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 the away team at Lake Oval?`:
```sql
                SELECT "away_team" FROM "round_4" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score for the game where Hawthorn is 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 the home team score for the game where Hawthorn is the home team?`:
```sql
                SELECT "home_team_score" FROM "round_4" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team that scored 14.19 (103)?`

### 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 is the home team that scored 14.19 (103)?`:
```sql
                SELECT "home_team" FROM "round_4" WHERE "home_team_score"='14.19 (103)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game where Essendon is the away 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 is the date of the game where Essendon is the away team?`:
```sql
                SELECT "date" FROM "round_4" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What is the average crowd size when the home side scores 4.10 (34)?`

### 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 is the average crowd size when the home side scores 4.10 (34)?`:
```sql
                SELECT "crowd" FROM "round_10" WHERE "home_team_score"='4.10 (34)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team's score when the away team is south melbourne?`

### 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 is the home team's score when the away team is south melbourne?`:
```sql
                SELECT "home_team_score" FROM "round_10" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What venue featured the home side of st kilda?`

### 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 venue featured the home side of st kilda?`:
```sql
                SELECT "venue" FROM "round_10" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`How many metres tall is the building that is larger than 850 feet tall?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "city" text,
  "years_as_tallest" text,
  "metres" real,
  "feet" real,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many metres tall is the building that is larger than 850 feet tall?`:
```sql
                SELECT "metres" FROM "timeline_of_tallest_buildings" WHERE "feet">850;
```
## Task
Generate a SQL query to answer the following question:
`What was Geelong's score when they were the home team?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Geelong's score when they were the home team?`:
```sql
                SELECT "home_team_score" FROM "round_15" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game when Collingwood was the home team?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game when Collingwood was the home team?`:
```sql
                SELECT "venue" FROM "round_15" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team that scored 8.12 (60)?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team that scored 8.12 (60)?`:
```sql
                SELECT "away_team" FROM "round_15" WHERE "away_team_score"='8.12 (60)';
```
## Task
Generate a SQL query to answer the following question:
`What was Peter Woolfolk's Total Rebound average?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "player" text,
  "years" text,
  "games" real,
  "reb_avg" real,
  "total_rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Peter Woolfolk's Total Rebound average?`:
```sql
                SELECT SUM("total_rebounds") FROM "rebounds" WHERE "player"='peter woolfolk';
```
## Task
Generate a SQL query to answer the following question:
`What was week 3 score?`

### 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 was week 3 score?`:
```sql
                SELECT "result" FROM "exhibition_schedule" WHERE "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`What city had a crowd larger than 11,346 and score of 24-16?`

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

CREATE TABLE "round_1" (
  "date" text,
  "result" text,
  "score" text,
  "stadium" text,
  "city" text,
  "crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What city had a crowd larger than 11,346 and score of 24-16?`:
```sql
                SELECT "city" FROM "round_1" WHERE "crowd">'11,346' AND "score"='24-16';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the game at Odsal Stadium?`

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

CREATE TABLE "round_1" (
  "date" text,
  "result" text,
  "score" text,
  "stadium" text,
  "city" text,
  "crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the game at Odsal Stadium?`:
```sql
                SELECT "result" FROM "round_1" WHERE "stadium"='odsal stadium';
```
## Task
Generate a SQL query to answer the following question:
`Which championship had a margin of 10 strokes?`

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

CREATE TABLE "wins_6" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship had a margin of 10 strokes?`:
```sql
                SELECT "championship" FROM "wins_6" WHERE "margin"='10 strokes';
```