output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "away_team" FROM "round_10" WHERE "crowd">'13,000' AND "venue"='punt road oval'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team at the game at Punt Road Oval with a crowd larger than 13,000?`
### 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 `Who was the away team at the game at Punt Road Oval with a crowd larger than 13,000?`:
```sql
|
SELECT "stadium" FROM "schedule" WHERE "attendance"='65,677'; |
## Task
Generate a SQL query to answer the following question:
`Which stadium held the game that 65,677 people attended?`
### 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,
"stadium" text,
"record" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium held the game that 65,677 people attended?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "date"='october 17, 2004'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the game on October 17, 2004?`
### 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,
"stadium" text,
"record" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the game on October 17, 2004?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "date"='october 17, 2004'; |
## Task
Generate a SQL query to answer the following question:
`Which week was the October 17, 2004 game played?`
### 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,
"stadium" text,
"record" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week was the October 17, 2004 game played?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "stadium"='paul brown stadium'; |
## Task
Generate a SQL query to answer the following question:
`What was the Browns record after they played the game at the Paul Brown stadium?`
### 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,
"stadium" text,
"record" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Browns record after they played the game at the Paul Brown stadium?`:
```sql
|
SELECT "player" FROM "s" WHERE "school_country"='gonzaga'; |
## Task
Generate a SQL query to answer the following question:
`Which player went to Gonzaga?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to Gonzaga?`:
```sql
|
SELECT "nationality" FROM "s" WHERE "position"='forward/center' AND "from"='1951'; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the forward/center who started playing in 1951?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the forward/center who started playing in 1951?`:
```sql
|
SELECT "school_country" FROM "s" WHERE "position"='guard' AND "from"='1991'; |
## Task
Generate a SQL query to answer the following question:
`What school did the guard who began playing in 1991 come from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did the guard who began playing in 1991 come from?`:
```sql
|
SELECT "nationality" FROM "s" WHERE "position"='guard/forward' AND "from"='1977'; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the guard/forward who began playing in 1977?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the guard/forward who began playing in 1977?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "record"='2-3'; |
## Task
Generate a SQL query to answer the following question:
`Which Rams opponent had a record of 2-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"opponent" text,
"result" text,
"record" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rams opponent had a record of 2-3?`:
```sql
|
SELECT "podiums" FROM "champions" WHERE "races"='13/15'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of podiums for the races of 13/15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "champions" (
"season" real,
"series_name" text,
"champion" text,
"races" text,
"pole_positions" text,
"wins" text,
"podiums" text,
"fastest_laps" text,
"points" text,
"margin_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of podiums for the races of 13/15?`:
```sql
|
SELECT "wins" FROM "champions" WHERE "races"='12/12'; |
## Task
Generate a SQL query to answer the following question:
`How many wins are there for the Races of 12/12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "champions" (
"season" real,
"series_name" text,
"champion" text,
"races" text,
"pole_positions" text,
"wins" text,
"podiums" text,
"fastest_laps" text,
"points" text,
"margin_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins are there for the Races of 12/12?`:
```sql
|
SELECT "fastest_laps" FROM "champions" WHERE "season"<1979; |
## Task
Generate a SQL query to answer the following question:
`What is the fastest lap for a season smaller than 1979?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "champions" (
"season" real,
"series_name" text,
"champion" text,
"races" text,
"pole_positions" text,
"wins" text,
"podiums" text,
"fastest_laps" text,
"points" text,
"margin_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fastest lap for a season smaller than 1979?`:
```sql
|
SELECT "fastest_laps" FROM "champions" WHERE "races"='12/12'; |
## Task
Generate a SQL query to answer the following question:
`For the 12/12 races, what is the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "champions" (
"season" real,
"series_name" text,
"champion" text,
"races" text,
"pole_positions" text,
"wins" text,
"podiums" text,
"fastest_laps" text,
"points" text,
"margin_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the 12/12 races, what is the fastest lap?`:
```sql
|
SELECT "home_team" FROM "round_10" WHERE "crowd">'7,000' AND "venue"='brunswick street oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the home team that played at The Brunswick Street Oval to a crowd of 7,000?`
### 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 name of the home team that played at The Brunswick Street Oval to a crowd of 7,000?`:
```sql
|
SELECT MAX("crowd") FROM "round_10" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd where Carlton was 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 `What was the largest crowd where Carlton was the away team?`:
```sql
|
SELECT "home_team" FROM "round_10" WHERE "venue"='western oval'; |
## Task
Generate a SQL query to answer the following question:
`Which team's home is the Western Oval?`
### 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 `Which team's home is the Western Oval?`:
```sql
|
SELECT "home_team" FROM "round_10" WHERE "venue"='arden street oval'; |
## Task
Generate a SQL query to answer the following question:
`Which team's home is the Arden Street Oval?`
### 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 `Which team's home is the Arden Street Oval?`:
```sql
|
SELECT MIN("crowd") FROM "round_8" WHERE "home_team"='fitzroy'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest attendance at a Fitzroy match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest attendance at a Fitzroy match?`:
```sql
|
SELECT MAX("rank") FROM "appearances" WHERE "all_time_rank"='86' AND "debut_year"<1995; |
## Task
Generate a SQL query to answer the following question:
`What is the highest rank that corresponds to an all-time rank of 86 and a debut year before 1995?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"rank" real,
"all_time_rank" text,
"name" text,
"debut_year" real,
"current_club" text,
"apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank that corresponds to an all-time rank of 86 and a debut year before 1995?`:
```sql
|
SELECT "current_club" FROM "appearances" WHERE "apps">368 AND "debut_year"<1994; |
## Task
Generate a SQL query to answer the following question:
`What is the current club with more than 368 apps and a debut year earlier than 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"rank" real,
"all_time_rank" text,
"name" text,
"debut_year" real,
"current_club" text,
"apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current club with more than 368 apps and a debut year earlier than 1994?`:
```sql
|
SELECT MAX("rank") FROM "appearances" WHERE "apps">498 AND "all_time_rank"='6' AND "debut_year">1992; |
## Task
Generate a SQL query to answer the following question:
`What is the highest rank with more than 498 apps, an all time rank of 6, and a debut year later than 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"rank" real,
"all_time_rank" text,
"name" text,
"debut_year" real,
"current_club" text,
"apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank with more than 498 apps, an all time rank of 6, and a debut year later than 1992?`:
```sql
|
SELECT "all_time_rank" FROM "appearances" WHERE "rank"<9 AND "debut_year"=1994; |
## Task
Generate a SQL query to answer the following question:
`What is the all-time rank associated with a rank less than 9 and a debut in 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"rank" real,
"all_time_rank" text,
"name" text,
"debut_year" real,
"current_club" text,
"apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the all-time rank associated with a rank less than 9 and a debut in 1994?`:
```sql
|
SELECT "tournament" FROM "doubles_5" WHERE "surface"='clay' AND "score"='4–6, 6–1, 6–4'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament was played on clay and there was a score of 4–6, 6–1, 6–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was played on clay and there was a score of 4–6, 6–1, 6–4?`:
```sql
|
SELECT "score" FROM "doubles_5" WHERE "partner"='albert montañés'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for the match where albert montañés was the partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the match where albert montañés was the partner?`:
```sql
|
SELECT "score" FROM "doubles_5" WHERE "opponents_in_the_final"='james cerretani todd perry'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for the match where the opponent in the final was james cerretani todd perry?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the match where the opponent in the final was james cerretani todd perry?`:
```sql
|
SELECT "date" FROM "doubles_5" WHERE "opponents_in_the_final"='gastón etlis martín rodríguez'; |
## Task
Generate a SQL query to answer the following question:
`What is the date when the opponent in the final is gastón etlis martín rodríguez?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date when the opponent in the final is gastón etlis martín rodríguez?`:
```sql
|
SELECT "score" FROM "doubles_5" WHERE "opponents_in_the_final"='james cerretani todd perry'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the match were the opponent in the final was james cerretani todd perry?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the match were the opponent in the final was james cerretani todd perry?`:
```sql
|
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='birmingham city'; |
## Task
Generate a SQL query to answer the following question:
`Who is Birmingham City's outgoing manager?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Birmingham City's outgoing manager?`:
```sql
|
SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='bolton wanderers'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the replacement manager for the Bolton Wanderers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the replacement manager for the Bolton Wanderers?`:
```sql
|
SELECT "position_in_table" FROM "managerial_changes" WHERE "outgoing_manager"='sammy lee'; |
## Task
Generate a SQL query to answer the following question:
`How was Sammy Lee's team doing on the table before being replaced?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `How was Sammy Lee's team doing on the table before being replaced?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='gary megson'; |
## Task
Generate a SQL query to answer the following question:
`Which team hired Gary Megson as the replacement manager?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team hired Gary Megson as the replacement manager?`:
```sql
|
SELECT "date" FROM "round_4" WHERE "venue"='mcg'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the match played at MCG?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the match played at MCG?`:
```sql
|
SELECT "home_team_score" FROM "round_4" WHERE "home_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What was Carlton's score as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Carlton's score as the home team?`:
```sql
|
SELECT "home_team" FROM "round_4" WHERE "venue"='princes park'; |
## Task
Generate a SQL query to answer the following question:
`What home team plays at Princes Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team plays at Princes Park?`:
```sql
|
SELECT "home_team_score" FROM "round_4" WHERE "home_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`What was Geelong's score as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Geelong's score as the home team?`:
```sql
|
SELECT "away_team" FROM "round_4" WHERE "away_team_score"='12.8 (80)'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team that scored 12.8 (80)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team that scored 12.8 (80)?`:
```sql
|
SELECT "home_team_score" FROM "round_4" WHERE "crowd">'16,112' AND "away_team_score"='11.11 (77)'; |
## Task
Generate a SQL query to answer the following question:
`What was the home teams score when the away team scored 11.11 (77) in front of a crowd of 16,112?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home teams score when the away team scored 11.11 (77) in front of a crowd of 16,112?`:
```sql
|
SELECT "date" FROM "round_3" WHERE "home_team_score"='12.16 (88)'; |
## Task
Generate a SQL query to answer the following question:
`ON WHAT DATE DID THE HOME TEAM SCORE 12.16 (88)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `ON WHAT DATE DID THE HOME TEAM SCORE 12.16 (88)?`:
```sql
|
SELECT MIN("crowd") FROM "round_3" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`WHAT WAS COLLINGWOOD'S LOWEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT WAS COLLINGWOOD'S LOWEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?`:
```sql
|
SELECT MAX("crowd") FROM "round_3" WHERE "away_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`WHAT WAS ESSENDON'S HIGHEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT WAS ESSENDON'S HIGHEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?`:
```sql
|
SELECT "venue" FROM "round_3" WHERE "away_team_score"='12.15 (87)'; |
## Task
Generate a SQL query to answer the following question:
`WHAT VENUE HAD AN AWAY TEAM SCORE OF 12.15 (87)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT VENUE HAD AN AWAY TEAM SCORE OF 12.15 (87)?`:
```sql
|
SELECT "away_team_score" FROM "round_3" WHERE "away_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`WHAT DID HAWTHORN SCORE AT ITS AWAY GAME?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT DID HAWTHORN SCORE AT ITS AWAY GAME?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='november 26, 1989'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on November 26, 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on November 26, 1989?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "date"='october 29, 1989'; |
## Task
Generate a SQL query to answer the following question:
`What was the result on October 29, 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result on October 29, 1989?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "date"='october 1, 1989'; |
## Task
Generate a SQL query to answer the following question:
`What was the result on October 1, 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result on October 1, 1989?`:
```sql
|
SELECT MAX("losses") FROM "standings" WHERE "away"='1-6' AND "wins">4; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of losses that a team who had an away record of 1-6 and more than 4 wins had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"team" text,
"wins" real,
"losses" real,
"percentage" real,
"home" text,
"away" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of losses that a team who had an away record of 1-6 and more than 4 wins had?`:
```sql
|
SELECT "home_team_score" FROM "round_3" WHERE "venue"='corio oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the home team's score at corio oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team's score at corio oval?`:
```sql
|
SELECT "service" FROM "middle_east" WHERE "language"='bengali'; |
## Task
Generate a SQL query to answer the following question:
`What network is in the language of Bengali?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "middle_east" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network is in the language of Bengali?`:
```sql
|
SELECT "network" FROM "middle_east" WHERE "origin_of_programming"='india' AND "genre"='general' AND "language"='bengali'; |
## Task
Generate a SQL query to answer the following question:
`What network has an origin in India, a genre of general, and broadcasts in Bengali?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "middle_east" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network has an origin in India, a genre of general, and broadcasts in Bengali?`:
```sql
|
SELECT "language" FROM "middle_east" WHERE "network"='ary digital'; |
## Task
Generate a SQL query to answer the following question:
`What language does the Ary Digital network broadcast in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "middle_east" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language does the Ary Digital network broadcast in?`:
```sql
|
SELECT AVG("crowd") FROM "round_7" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What is the average crowd for Carlton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average crowd for Carlton?`:
```sql
|
SELECT "home_team_score" FROM "round_7" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`How many points did Carlton score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Carlton score?`:
```sql
|
SELECT MAX("crowd") FROM "round_7" WHERE "home_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd for North Melbourne`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest crowd for North Melbourne`:
```sql
|
SELECT "away_team_score" FROM "round_7" WHERE "away_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for Footscray?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for Footscray?`:
```sql
|
SELECT "result" FROM "exhibition_schedule" WHERE "week"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the result of week 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of week 5?`:
```sql
|
SELECT "name" FROM "264in_6_6mm_and_up" WHERE "shoulder"='10.688 (.420)'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the gun with a shoulder that measures 10.688 (.420)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "264in_6_6mm_and_up" (
"name" text,
"bullet" text,
"length" text,
"base" text,
"shoulder" text,
"neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the gun with a shoulder that measures 10.688 (.420)?`:
```sql
|
SELECT "shoulder" FROM "264in_6_6mm_and_up" WHERE "length"='57.85 (2.278)'; |
## Task
Generate a SQL query to answer the following question:
`What is the shoulder measurement of the gun with a length of 57.85 (2.278)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "264in_6_6mm_and_up" (
"name" text,
"bullet" text,
"length" text,
"base" text,
"shoulder" text,
"neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the shoulder measurement of the gun with a length of 57.85 (2.278)?`:
```sql
|
SELECT "neck" FROM "264in_6_6mm_and_up" WHERE "shoulder"='10.688 (.420)'; |
## Task
Generate a SQL query to answer the following question:
`What is the neck measurement of the gun with a shoulder measurement of 10.688 (.420)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "264in_6_6mm_and_up" (
"name" text,
"bullet" text,
"length" text,
"base" text,
"shoulder" text,
"neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the neck measurement of the gun with a shoulder measurement of 10.688 (.420)?`:
```sql
|
SELECT "length" FROM "264in_6_6mm_and_up" WHERE "shoulder"='12.18 (.480)'; |
## Task
Generate a SQL query to answer the following question:
`What is the length of the gun that has a shoulder measurement of 12.18 (.480)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "264in_6_6mm_and_up" (
"name" text,
"bullet" text,
"length" text,
"base" text,
"shoulder" text,
"neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length of the gun that has a shoulder measurement of 12.18 (.480)?`:
```sql
|
SELECT "bullet" FROM "264in_6_6mm_and_up" WHERE "shoulder"='12.5 (.491)'; |
## Task
Generate a SQL query to answer the following question:
`What bullet does the gun with a shoulder measurement of 12.5 (.491)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "264in_6_6mm_and_up" (
"name" text,
"bullet" text,
"length" text,
"base" text,
"shoulder" text,
"neck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What bullet does the gun with a shoulder measurement of 12.5 (.491)?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "week"<5 AND "date"='september 18, 1994'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game held on September 18, 1994, with a week less than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game held on September 18, 1994, with a week less than 5?`:
```sql
|
SELECT AVG("attendance") FROM "schedule" WHERE "week">6 AND "opponent"='at philadelphia eagles'; |
## Task
Generate a SQL query to answer the following question:
`What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6?`:
```sql
|
SELECT COUNT("attendance") FROM "schedule" WHERE "week">2 AND "date"='october 30, 1994'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game on October 30, 1994 for a week after week 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game on October 30, 1994 for a week after week 2?`:
```sql
|
SELECT "title" FROM "season_3" WHERE "podcast_date"='september 25, 2005'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode that aired on September 25, 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_number" real,
"title" text,
"podcast_date" text,
"run_time" text,
"historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode that aired on September 25, 2005?`:
```sql
|
SELECT "run_time" FROM "season_3" WHERE "podcast_date"='september 4, 2005'; |
## Task
Generate a SQL query to answer the following question:
`What is the run time of the episode that aired on September 4, 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_number" real,
"title" text,
"podcast_date" text,
"run_time" text,
"historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the run time of the episode that aired on September 4, 2005?`:
```sql
|
SELECT "historical_references" FROM "season_3" WHERE "podcast_date"='october 23, 2005'; |
## Task
Generate a SQL query to answer the following question:
`What is the historical reference of the episode that aired on October 23, 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_number" real,
"title" text,
"podcast_date" text,
"run_time" text,
"historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the historical reference of the episode that aired on October 23, 2005?`:
```sql
|
SELECT "podcast_date" FROM "season_3" WHERE "episode_number"<307 AND "historical_references"='p.t. barnum' AND "run_time"='5:48'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the episode that is before 307, run time equals 5:48 and has P.T. Barnum as the topic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_number" real,
"title" text,
"podcast_date" text,
"run_time" text,
"historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the episode that is before 307, run time equals 5:48 and has P.T. Barnum as the topic?`:
```sql
|
SELECT "historical_references" FROM "season_3" WHERE "run_time"='6:07'; |
## Task
Generate a SQL query to answer the following question:
`What is the topic of the episode that runs 6:07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_number" real,
"title" text,
"podcast_date" text,
"run_time" text,
"historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the topic of the episode that runs 6:07?`:
```sql
|
SELECT "episode_number" FROM "season_3" WHERE "podcast_date"='august 8, 2005'; |
## Task
Generate a SQL query to answer the following question:
`What is the episode number of the episode that aired on August 8, 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_number" real,
"title" text,
"podcast_date" text,
"run_time" text,
"historical_references" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode number of the episode that aired on August 8, 2005?`:
```sql
|
SELECT MAX("crowd") FROM "round_13" WHERE "home_team_score"='7.7 (49)'; |
## Task
Generate a SQL query to answer the following question:
`What is the biggest crowd when the home side scores 7.7 (49)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the biggest crowd when the home side scores 7.7 (49)?`:
```sql
|
SELECT "date" FROM "round_13" WHERE "away_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What day is south melbourne the away side?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day is south melbourne the away side?`:
```sql
|
SELECT "away_team" FROM "round_13" WHERE "home_team_score"='11.12 (78)'; |
## Task
Generate a SQL query to answer the following question:
`Whom is the away team when the home team score is 11.12 (78)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whom is the away team when the home team score is 11.12 (78)?`:
```sql
|
SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='ryo takigawa'; |
## Task
Generate a SQL query to answer the following question:
`Did the fighter beat Ryo Takigawa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Did the fighter beat Ryo Takigawa?`:
```sql
|
SELECT "incident_no" FROM "2005" WHERE "place"='dantewada, chattisgarh'; |
## Task
Generate a SQL query to answer the following question:
`What is the incident number of the incident that occurred in Dantewada, Chattisgarh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005" (
"incident_no" text,
"date" text,
"place" text,
"killed" real,
"injured" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the incident number of the incident that occurred in Dantewada, Chattisgarh?`:
```sql
|
SELECT "province" FROM "references" WHERE "iata"='uyn'; |
## Task
Generate a SQL query to answer the following question:
`WHich province has an IATA of UYN?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"province" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich province has an IATA of UYN?`:
```sql
|
SELECT "city" FROM "references" WHERE "icao"='zsxz'; |
## Task
Generate a SQL query to answer the following question:
`Which city has an ICAO of ZSXZ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"province" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has an ICAO of ZSXZ?`:
```sql
|
SELECT "province" FROM "references" WHERE "airport"='luogang international airport'; |
## Task
Generate a SQL query to answer the following question:
`Which province is Luogang International Airport located in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"province" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province is Luogang International Airport located in?`:
```sql
|
SELECT "province" FROM "references" WHERE "iata"='wnz'; |
## Task
Generate a SQL query to answer the following question:
`WHich province has an IATA of WNZ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"province" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich province has an IATA of WNZ?`:
```sql
|
SELECT "iata" FROM "references" WHERE "airport"='korla airport'; |
## Task
Generate a SQL query to answer the following question:
`What is the IATA for Korla Airport.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"province" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IATA for Korla Airport.`:
```sql
|
SELECT "division" FROM "1890s" WHERE "position"='4th'; |
## Task
Generate a SQL query to answer the following question:
`In what division did they place 4th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1890s" (
"season" text,
"tier" text,
"division" text,
"position" text,
"top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what division did they place 4th?`:
```sql
|
SELECT "top_scorer" FROM "1890s" WHERE "season"='1890-91'; |
## Task
Generate a SQL query to answer the following question:
`What was the top scorer in the 1890-91 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1890s" (
"season" text,
"tier" text,
"division" text,
"position" text,
"top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the top scorer in the 1890-91 season?`:
```sql
|
SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='arizona state'; |
## Task
Generate a SQL query to answer the following question:
`Which position has a player at Arizona state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has a player at Arizona state?`:
```sql
|
SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"<196 AND "round">5 AND "player"='blake miller'; |
## Task
Generate a SQL query to answer the following question:
`Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller?`:
```sql
|
SELECT AVG("round") FROM "nfl_draft" WHERE "position"='tight end' AND "player"='randy bethel'; |
## Task
Generate a SQL query to answer the following question:
`What is the average round at which is the position of Tight End and Randy Bethel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round at which is the position of Tight End and Randy Bethel?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "opponent"='new orleans saints'; |
## Task
Generate a SQL query to answer the following question:
`What day did they play the New Orleans Saints?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What day did they play the New Orleans Saints?`:
```sql
|
SELECT "coach" FROM "coaching_history" WHERE "conference_record"='42-78'; |
## Task
Generate a SQL query to answer the following question:
`Which coach has a conference record of 42-78?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaching_history" (
"coach" text,
"years" text,
"record" text,
"conference_record" text,
"overall_win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which coach has a conference record of 42-78?`:
```sql
|
SELECT "years" FROM "coaching_history" WHERE "conference_record"='18-15'; |
## Task
Generate a SQL query to answer the following question:
`In what years was the conference record 18-15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaching_history" (
"coach" text,
"years" text,
"record" text,
"conference_record" text,
"overall_win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what years was the conference record 18-15?`:
```sql
|
SELECT "years" FROM "coaching_history" WHERE "coach"='walter meanwell' AND "conference_record"='63-9'; |
## Task
Generate a SQL query to answer the following question:
`In what years, when the conference record was 63-9, was the coach Walter Meanwell?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaching_history" (
"coach" text,
"years" text,
"record" text,
"conference_record" text,
"overall_win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what years, when the conference record was 63-9, was the coach Walter Meanwell?`:
```sql
|
SELECT "overall_win_percentage" FROM "coaching_history" WHERE "coach"='dick bennett'; |
## Task
Generate a SQL query to answer the following question:
`What was coach Dick Bennett's overall win percentage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaching_history" (
"coach" text,
"years" text,
"record" text,
"conference_record" text,
"overall_win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was coach Dick Bennett's overall win percentage?`:
```sql
|
SELECT "notes" FROM "shirt_sponsors_and_manufacturers" WHERE "shirt_printing"='pavv' AND "year"<2005; |
## Task
Generate a SQL query to answer the following question:
`What are the notes for the shirt that said Pavv before 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "shirt_sponsors_and_manufacturers" (
"year" real,
"kit_supplier" text,
"sponsor" text,
"shirt_printing" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the shirt that said Pavv before 2005?`:
```sql
|
SELECT "notes" FROM "shirt_sponsors_and_manufacturers" WHERE "shirt_printing"='pavv' AND "year">2007; |
## Task
Generate a SQL query to answer the following question:
`What are the notes for the shirt that said Pavv after 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "shirt_sponsors_and_manufacturers" (
"year" real,
"kit_supplier" text,
"sponsor" text,
"shirt_printing" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the shirt that said Pavv after 2007?`:
```sql
|
SELECT AVG("year") FROM "shirt_sponsors_and_manufacturers" WHERE "notes"='electronics brand'; |
## Task
Generate a SQL query to answer the following question:
`What is the average of all the years when the notes are “electronics brand?”`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "shirt_sponsors_and_manufacturers" (
"year" real,
"kit_supplier" text,
"sponsor" text,
"shirt_printing" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average of all the years when the notes are “electronics brand?”`:
```sql
|
SELECT "notes" FROM "shirt_sponsors_and_manufacturers" WHERE "kit_supplier"='rapido' AND "shirt_printing"='名品+1'; |
## Task
Generate a SQL query to answer the following question:
`What are the notes for the shirt that says 名品+1 in the kit supplied by Rapido?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "shirt_sponsors_and_manufacturers" (
"year" real,
"kit_supplier" text,
"sponsor" text,
"shirt_printing" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the shirt that says 名品+1 in the kit supplied by Rapido?`:
```sql
|
SELECT MAX("crowd") FROM "round_2" WHERE "venue"='lake oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd at Lake Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest crowd at Lake Oval?`:
```sql
|
SELECT "home_team" FROM "round_2" WHERE "crowd">'25,000'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team for the game with more than 25,000 crowd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team for the game with more than 25,000 crowd?`:
```sql
|
SELECT "away_team_score" FROM "round_2" WHERE "away_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for Footscray when they were the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for Footscray when they were the away team?`:
```sql
|
SELECT "result" FROM "under_23_international_career" WHERE "date"='march 14, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the result from March 14, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_23_international_career" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result from March 14, 2007?`:
```sql
|
SELECT COUNT("goals") FROM "under_23_international_career" WHERE "result"='0-1' AND "date"='march 28, 2007'; |
## Task
Generate a SQL query to answer the following question:
`How many goals have a result of 0-1 on march 28, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_23_international_career" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals have a result of 0-1 on march 28, 2007?`:
```sql
|
SELECT "venue" FROM "under_23_international_career" WHERE "result"='3-0'; |
## Task
Generate a SQL query to answer the following question:
`What venue has a Result of 3-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_23_international_career" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has a Result of 3-0?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.