cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the drop number on 08/06/2011?`

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

CREATE TABLE "most_points_in_a_match" (
  "player" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the drop number on 08/06/2011?`:
```sql
                SELECT "drop" FROM "most_points_in_a_match" WHERE "date"='08/06/2011';
```
## Task
Generate a SQL query to answer the following question:
`How many drops occurred with 0 pens and Fangatapu Apikotoa playing?`

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

CREATE TABLE "most_points_in_a_match" (
  "player" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drops occurred with 0 pens and Fangatapu Apikotoa playing?`:
```sql
                SELECT "drop" FROM "most_points_in_a_match" WHERE "pens"='0' AND "player"='fangatapu apikotoa';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player associated with the Esher venue?`

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

CREATE TABLE "most_points_in_a_match" (
  "player" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player associated with the Esher venue?`:
```sql
                SELECT "player" FROM "most_points_in_a_match" WHERE "venue"='esher';
```
## Task
Generate a SQL query to answer the following question:
`What is the conversion number with 0 drops on 02/07/2011?`

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

CREATE TABLE "most_points_in_a_match" (
  "player" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the conversion number with 0 drops on 02/07/2011?`:
```sql
                SELECT "conv" FROM "most_points_in_a_match" WHERE "drop"='0' AND "date"='02/07/2011';
```
## Task
Generate a SQL query to answer the following question:
`In which venue did 0 pens and 1 try occur?`

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

CREATE TABLE "most_points_in_a_match" (
  "player" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which venue did 0 pens and 1 try occur?`:
```sql
                SELECT "venue" FROM "most_points_in_a_match" WHERE "pens"='0' AND "tries"='1';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game against the St. Louis Cardinals?`

### 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 the score of the game against the St. Louis Cardinals?`:
```sql
                SELECT "result" FROM "exhibition_schedule" WHERE "opponent"='st. louis cardinals';
```
## Task
Generate a SQL query to answer the following question:
`Which model has a CPU speed of 133mhz?`

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

CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" (
  "model" real,
  "introduction" text,
  "discontinued" text,
  "cpu_speed" text,
  "print_speed_ppm" text,
  "standard_memory" text,
  "maximum_memory" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which model has a CPU speed of 133mhz?`:
```sql
                SELECT "model" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "cpu_speed"='133mhz';
```
## Task
Generate a SQL query to answer the following question:
`Which model has a maximum memory of 512 mb?`

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

CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" (
  "model" real,
  "introduction" text,
  "discontinued" text,
  "cpu_speed" text,
  "print_speed_ppm" text,
  "standard_memory" text,
  "maximum_memory" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which model has a maximum memory of 512 mb?`:
```sql
                SELECT MAX("model") FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "maximum_memory"='512 mb';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum memory of the model that has a standard memory of 16 mb?`

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

CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" (
  "model" real,
  "introduction" text,
  "discontinued" text,
  "cpu_speed" text,
  "print_speed_ppm" text,
  "standard_memory" text,
  "maximum_memory" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum memory of the model that has a standard memory of 16 mb?`:
```sql
                SELECT "maximum_memory" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "standard_memory"='16 mb';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd for a Melbourne away 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 `What is the largest crowd for a Melbourne away team?`:
```sql
                SELECT MAX("crowd") FROM "round_1" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score when the home team is Essendon?`

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

CREATE TABLE "round_9" (
  "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 score when the home team is Essendon?`:
```sql
                SELECT "home_team_score" FROM "round_9" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team when the home team score is 12.17 (89)?`

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

CREATE TABLE "round_9" (
  "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 when the home team score is 12.17 (89)?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "home_team_score"='12.17 (89)';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team when the away team score is 10.10 (70)?`

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

CREATE TABLE "round_9" (
  "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 away team when the away team score is 10.10 (70)?`:
```sql
                SELECT "away_team" FROM "round_9" WHERE "away_team_score"='10.10 (70)';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent was playing on December 20, 1998?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent was playing on December 20, 1998?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='december 20, 1998';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that had a score of 13.11 (89)?`

### 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 home team that had a score of 13.11 (89)?`:
```sql
                SELECT "home_team" FROM "round_15" WHERE "home_team_score"='13.11 (89)';
```
## Task
Generate a SQL query to answer the following question:
`When was the game that was held at the Princes Park?`

### 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 `When was the game that was held at the Princes Park?`:
```sql
                SELECT "date" FROM "round_15" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd size at a home game for Footscray?`

### 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 smallest crowd size at a home game for Footscray?`:
```sql
                SELECT MIN("crowd") FROM "round_15" WHERE "home_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`When was the game where the home team scored 18.14 (122)?`

### 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 `When was the game where the home team scored 18.14 (122)?`:
```sql
                SELECT "date" FROM "round_15" WHERE "home_team_score"='18.14 (122)';
```
## Task
Generate a SQL query to answer the following question:
`What was Melbourne'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_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 Melbourne's score as the home team?`:
```sql
                SELECT "home_team_score" FROM "round_15" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team's score when the crowd at Arden Street Oval was larger than 31,481?`

### 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 away team's score when the crowd at Arden Street Oval was larger than 31,481?`:
```sql
                SELECT "away_team_score" FROM "round_15" WHERE "crowd">'31,481' AND "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team that played Fitzroy?`

### 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 away team that played Fitzroy?`:
```sql
                SELECT "away_team" FROM "round_15" WHERE "home_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What was the sum of the crowds at Western 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 `What was the sum of the crowds at Western Oval?`:
```sql
                SELECT SUM("crowd") FROM "round_15" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the total crowd size when the away team scored 17.13 (115)?`

### 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 total crowd size when the away team scored 17.13 (115)?`:
```sql
                SELECT COUNT("crowd") FROM "round_15" WHERE "away_team_score"='17.13 (115)';
```
## Task
Generate a SQL query to answer the following question:
`Where did the home team score 18.17 (125)?`

### 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 did the home team score 18.17 (125)?`:
```sql
                SELECT "venue" FROM "round_15" WHERE "home_team_score"='18.17 (125)';
```
## Task
Generate a SQL query to answer the following question:
`What country had a winner in 1907?`

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

CREATE TABLE "winners" (
  "year" real,
  "rider" text,
  "country" text,
  "distance" text,
  "pacing" text,
  "velodrome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country had a winner in 1907?`:
```sql
                SELECT "country" FROM "winners" WHERE "year"=1907;
```
## Task
Generate a SQL query to answer the following question:
`What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km?`

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

CREATE TABLE "winners" (
  "year" real,
  "rider" text,
  "country" text,
  "distance" text,
  "pacing" text,
  "velodrome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km?`:
```sql
                SELECT "velodrome" FROM "winners" WHERE "year"<1950 AND "country"='france' AND "pacing"='tandem paced' AND "distance"='951.750 km';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played when they kickoff was 12:00 p.m., and a Record of 8-5?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff" text,
  "game_site" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played when they kickoff was 12:00 p.m., and a Record of 8-5?`:
```sql
                SELECT "game_site" FROM "schedule" WHERE "kickoff"='12:00 p.m.' AND "record"='8-5';
```
## Task
Generate a SQL query to answer the following question:
`What date has a Game site of 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
);
### SQL
Given the database schema, here is the SQL query that answers `What date has a Game site of bye?`:
```sql
                SELECT "date" FROM "schedule" WHERE "game_site"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What is the record which shows Kickoff as kickoff?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record which shows Kickoff as kickoff?`:
```sql
                SELECT "record" FROM "schedule" WHERE "kickoff"='kickoff';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when the game was played at raymond james stadium?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the game was played at raymond james stadium?`:
```sql
                SELECT "record" FROM "schedule" WHERE "game_site"='raymond james stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the kickoff for the game on october 22, 2000?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the kickoff for the game on october 22, 2000?`:
```sql
                SELECT "kickoff" FROM "schedule" WHERE "date"='october 22, 2000';
```
## Task
Generate a SQL query to answer the following question:
`Which Hindi network is based in India and uses dish service and shows general programming?`

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

CREATE TABLE "united_states" (
  "network" text,
  "origin_of_programming" text,
  "language" text,
  "genre" text,
  "service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Hindi network is based in India and uses dish service and shows general programming?`:
```sql
                SELECT "network" FROM "united_states" WHERE "service"='dish' AND "language"='hindi' AND "origin_of_programming"='india' AND "genre"='general';
```
## Task
Generate a SQL query to answer the following question:
`Which language is used by the optimum TV service that shows cricket and is based in the United States?`

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

CREATE TABLE "united_states" (
  "network" text,
  "origin_of_programming" text,
  "language" text,
  "genre" text,
  "service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which language is used by the optimum TV service that shows cricket and is based in the United States?`:
```sql
                SELECT "language" FROM "united_states" WHERE "service"='optimum tv' AND "origin_of_programming"='united states' AND "genre"='cricket';
```
## Task
Generate a SQL query to answer the following question:
`What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network?`

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

CREATE TABLE "united_states" (
  "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 is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network?`:
```sql
                SELECT "origin_of_programming" FROM "united_states" WHERE "service"='dish' AND "language"='malayalam' AND "genre"='general' AND "network"='asianet plus';
```
## Task
Generate a SQL query to answer the following question:
`What is the average grid number with a ferrari and a time or retired time of 1:32:35.101?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average grid number with a ferrari and a time or retired time of 1:32:35.101?`:
```sql
                SELECT AVG("grid") FROM "race" WHERE "constructor"='ferrari' AND "time_retired"='1:32:35.101';
```
## Task
Generate a SQL query to answer the following question:
`What week of the season was November 24, 1957?`

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

CREATE TABLE "regular_season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week of the season was November 24, 1957?`:
```sql
                SELECT "week" FROM "regular_season_schedule" WHERE "date"='november 24, 1957';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game against the San Diego Chargers?`

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

CREATE TABLE "regular_season_schedule" (
  "date" text,
  "opponent" text,
  "score" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game against the San Diego Chargers?`:
```sql
                SELECT "score" FROM "regular_season_schedule" WHERE "opponent"='san diego chargers';
```
## Task
Generate a SQL query to answer the following question:
`What is the week more than 58,675 attended on october 22, 1995?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week more than 58,675 attended on october 22, 1995?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "attendance">'58,675' AND "date"='october 22, 1995';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest week with the date of november 5, 1995?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest week with the date of november 5, 1995?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "date"='november 5, 1995';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks was the attendance less than 74,171 and the result was w 26–10?`

### 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 `How many weeks was the attendance less than 74,171 and the result was w 26–10?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"<'74,171' AND "result"='w 26–10';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the Tournament in Buenos Aires?`

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

CREATE TABLE "doubles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the Tournament in Buenos Aires?`:
```sql
                SELECT "outcome" FROM "doubles_finals" WHERE "tournament"='buenos aires';
```
## Task
Generate a SQL query to answer the following question:
`In the match played with partner Andres Molteni, with the outcome of winner, who was the opponent?`

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

CREATE TABLE "doubles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the match played with partner Andres Molteni, with the outcome of winner, who was the opponent?`:
```sql
                SELECT "opponent" FROM "doubles_finals" WHERE "outcome"='winner' AND "partner"='andres molteni';
```
## Task
Generate a SQL query to answer the following question:
`What is the player with a Span of 1998-2009?`

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

CREATE TABLE "most_caps" (
  "player" text,
  "span" text,
  "start" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "lost" text,
  "draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the player with a Span of 1998-2009?`:
```sql
                SELECT "player" FROM "most_caps" WHERE "span"='1998-2009';
```
## Task
Generate a SQL query to answer the following question:
`What draw has a Span of 1987-1999?`

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

CREATE TABLE "most_caps" (
  "player" text,
  "span" text,
  "start" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "lost" text,
  "draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What draw has a Span of 1987-1999?`:
```sql
                SELECT "draw" FROM "most_caps" WHERE "span"='1987-1999';
```
## Task
Generate a SQL query to answer the following question:
`What player has a span of 1997-2009?`

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

CREATE TABLE "most_caps" (
  "player" text,
  "span" text,
  "start" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "lost" text,
  "draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a span of 1997-2009?`:
```sql
                SELECT "player" FROM "most_caps" WHERE "span"='1997-2009';
```
## Task
Generate a SQL query to answer the following question:
`What drop has a 0 conv and Tries of 6?`

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

CREATE TABLE "most_caps" (
  "player" text,
  "span" text,
  "start" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "lost" text,
  "draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What drop has a 0 conv and Tries of 6?`:
```sql
                SELECT "drop" FROM "most_caps" WHERE "conv"='0' AND "tries"='6';
```
## Task
Generate a SQL query to answer the following question:
`What drop had a start of 40?`

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

CREATE TABLE "most_caps" (
  "player" text,
  "span" text,
  "start" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "lost" text,
  "draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What drop had a start of 40?`:
```sql
                SELECT "drop" FROM "most_caps" WHERE "start"='40';
```
## Task
Generate a SQL query to answer the following question:
`What drop had 0 pens, 1 draw, and 8 tries?`

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

CREATE TABLE "most_caps" (
  "player" text,
  "span" text,
  "start" text,
  "tries" text,
  "conv" text,
  "pens" text,
  "drop" text,
  "lost" text,
  "draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What drop had 0 pens, 1 draw, and 8 tries?`:
```sql
                SELECT "drop" FROM "most_caps" WHERE "pens"='0' AND "draw"='1' AND "tries"='8';
```
## Task
Generate a SQL query to answer the following question:
`What round did Takayo Hashi face Yoko Hattori?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did Takayo Hashi face Yoko Hattori?`:
```sql
                SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "opponent"='yoko hattori';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team that played at Princes Park?`

### 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 away team that played at Princes Park?`:
```sql
                SELECT "away_team" FROM "round_2" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`What was the date when Footscray was 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 date when Footscray was the away team?`:
```sql
                SELECT "date" FROM "round_2" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team's score in the match at Victoria Park?`

### 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's score in the match at Victoria Park?`:
```sql
                SELECT "home_team_score" FROM "round_2" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`On what date was South Melbourne 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 `On what date was South Melbourne the away team?`:
```sql
                SELECT "date" FROM "round_2" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`At what venue did the home team score 12.19 (91)?`

### 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 `At what venue did the home team score 12.19 (91)?`:
```sql
                SELECT "venue" FROM "round_2" WHERE "home_team_score"='12.19 (91)';
```
## Task
Generate a SQL query to answer the following question:
`What away team did Carlton play?`

### 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 away team did Carlton play?`:
```sql
                SELECT "away_team" FROM "round_2" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of bronze when silver is greater than 3?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of bronze when silver is greater than 3?`:
```sql
                SELECT SUM("bronze") FROM "medals_table" WHERE "silver">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?`:
```sql
                SELECT AVG("total") FROM "medals_table" WHERE "gold"=0 AND "bronze"=0 AND "silver"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the total attendance in week 8?`

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

CREATE TABLE "game_by_game_results" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total attendance in week 8?`:
```sql
                SELECT COUNT("attendance") FROM "game_by_game_results" WHERE "week"=8;
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner in 2007?`

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

CREATE TABLE "list_of_international_matches" (
  "date" real,
  "sport" text,
  "winner" text,
  "score" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner in 2007?`:
```sql
                SELECT "winner" FROM "list_of_international_matches" WHERE "date"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What sport was played before 2006 with a loser of france b?`

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

CREATE TABLE "list_of_international_matches" (
  "date" real,
  "sport" text,
  "winner" text,
  "score" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `What sport was played before 2006 with a loser of france b?`:
```sql
                SELECT "sport" FROM "list_of_international_matches" WHERE "date"<2006 AND "loser"='france b';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner with the loser being russia-2?`

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

CREATE TABLE "list_of_international_matches" (
  "date" real,
  "sport" text,
  "winner" text,
  "score" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner with the loser being russia-2?`:
```sql
                SELECT "winner" FROM "list_of_international_matches" WHERE "loser"='russia-2';
```
## Task
Generate a SQL query to answer the following question:
`Who was the loser playing football with england b as a winner after 1992?`

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

CREATE TABLE "list_of_international_matches" (
  "date" real,
  "sport" text,
  "winner" text,
  "score" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the loser playing football with england b as a winner after 1992?`:
```sql
                SELECT "loser" FROM "list_of_international_matches" WHERE "sport"='football' AND "winner"='england b' AND "date">1992;
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the race that occurred in Brooklyn, Michigan with a sanctioning of cart?`

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

CREATE TABLE "calendar" (
  "sanctioning" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the race that occurred in Brooklyn, Michigan with a sanctioning of cart?`:
```sql
                SELECT "race_name" FROM "calendar" WHERE "sanctioning"='cart' AND "city_location"='brooklyn, michigan';
```
## Task
Generate a SQL query to answer the following question:
`Where did the Gould Rex Mays Classic 150 occur?`

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

CREATE TABLE "calendar" (
  "sanctioning" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the Gould Rex Mays Classic 150 occur?`:
```sql
                SELECT "city_location" FROM "calendar" WHERE "race_name"='gould rex mays classic 150';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the race that has a circuit of Milwaukee Mile and the sanctioning of cart?`

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

CREATE TABLE "calendar" (
  "sanctioning" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the race that has a circuit of Milwaukee Mile and the sanctioning of cart?`:
```sql
                SELECT "date" FROM "calendar" WHERE "circuit"='milwaukee mile' AND "sanctioning"='cart';
```
## Task
Generate a SQL query to answer the following question:
`15 albums were released in the UK during which year?`

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

CREATE TABLE "albums" (
  "year" text,
  "us_200" text,
  "uk_albums" text,
  "riaa_certification" text,
  "bpi_certification" text
);
### SQL
Given the database schema, here is the SQL query that answers `15 albums were released in the UK during which year?`:
```sql
                SELECT "year" FROM "albums" WHERE "uk_albums"='15';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue where Collingwood played as the home team?`

### 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 venue where Collingwood played as the home team?`:
```sql
                SELECT "venue" FROM "round_13" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team for the game where the home team scored 13.11 (89)?`

### 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 `Who was the away team for the game where the home team scored 13.11 (89)?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "home_team_score"='13.11 (89)';
```
## Task
Generate a SQL query to answer the following question:
`What is the size of the crowd for the game with Footscray as the home team?`

### 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 size of the crowd for the game with Footscray as the home team?`:
```sql
                SELECT AVG("crowd") FROM "round_13" WHERE "home_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd for any game where Footscray is the home team?`

### 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 largest crowd for any game where Footscray is the home team?`:
```sql
                SELECT MAX("crowd") FROM "round_13" WHERE "home_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6?`

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

CREATE TABLE "australasia_pool_a" (
  "club" text,
  "played" real,
  "lost" real,
  "drawn" real,
  "against" real,
  "diff" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6?`:
```sql
                SELECT MAX("drawn") FROM "australasia_pool_a" WHERE "diff"<186 AND "points"<12 AND "played"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the average diff when games played are more than 6?`

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

CREATE TABLE "australasia_pool_a" (
  "club" text,
  "played" real,
  "lost" real,
  "drawn" real,
  "against" real,
  "diff" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average diff when games played are more than 6?`:
```sql
                SELECT AVG("diff") FROM "australasia_pool_a" WHERE "played">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest draws when more than 6 are played and the points against are 54?`

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

CREATE TABLE "australasia_pool_a" (
  "club" text,
  "played" real,
  "lost" real,
  "drawn" real,
  "against" real,
  "diff" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest draws when more than 6 are played and the points against are 54?`:
```sql
                SELECT MAX("drawn") FROM "australasia_pool_a" WHERE "against"=54 AND "played">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of points against when the team has more than 0 losses and plays fewer than 6 games?`

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

CREATE TABLE "australasia_pool_a" (
  "club" text,
  "played" real,
  "lost" real,
  "drawn" real,
  "against" real,
  "diff" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of points against when the team has more than 0 losses and plays fewer than 6 games?`:
```sql
                SELECT MAX("against") FROM "australasia_pool_a" WHERE "lost">0 AND "played"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of games played for the team with 12 points and an against smaller than 52?`

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

CREATE TABLE "australasia_pool_a" (
  "club" text,
  "played" real,
  "lost" real,
  "drawn" real,
  "against" real,
  "diff" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of games played for the team with 12 points and an against smaller than 52?`:
```sql
                SELECT AVG("played") FROM "australasia_pool_a" WHERE "points"=12 AND "against"<52;
```
## Task
Generate a SQL query to answer the following question:
`What was the crowd size when the home team scored 10.10 (70)?`

### 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 was the crowd size when the home team scored 10.10 (70)?`:
```sql
                SELECT "crowd" FROM "round_13" WHERE "home_team_score"='10.10 (70)';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team when the home team scored 10.10 (70)?`

### 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 was the away team when the home team scored 10.10 (70)?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "home_team_score"='10.10 (70)';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team's score when the crowd was larger than 16,500 and the home team scored 15.15 (105)?`

### 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 was the away team's score when the crowd was larger than 16,500 and the home team scored 15.15 (105)?`:
```sql
                SELECT "away_team_score" FROM "round_13" WHERE "crowd">'16,500' AND "home_team_score"='15.15 (105)';
```