output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "kickoff" FROM "schedule" WHERE "week"='sb xxxvi'; |
## Task
Generate a SQL query to answer the following question:
`When was the kickoff time of the SB XXXVI?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"kickoff" text,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the kickoff time of the SB XXXVI?`:
```sql
|
SELECT "home_team_score" FROM "round_5" WHERE "venue"='princes park'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team score for the game played at Princes Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team score for the game played at Princes Park?`:
```sql
|
SELECT "event" FROM "master_world_records" WHERE "time"='6:37.73'; |
## Task
Generate a SQL query to answer the following question:
`What event had a time of 6:37.73?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "master_world_records" (
"pool" text,
"age_group" text,
"time" text,
"event" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event had a time of 6:37.73?`:
```sql
|
SELECT "time" FROM "master_world_records" WHERE "event"='50m breaststroke'; |
## Task
Generate a SQL query to answer the following question:
`What is the time for the 50m breaststroke?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "master_world_records" (
"pool" text,
"age_group" text,
"time" text,
"event" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time for the 50m breaststroke?`:
```sql
|
SELECT "age_group" FROM "master_world_records" WHERE "event"='200m breaststroke' AND "time"='6:37.73'; |
## Task
Generate a SQL query to answer the following question:
`What age group has a time of 6:37.73 at the 200m breaststroke?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "master_world_records" (
"pool" text,
"age_group" text,
"time" text,
"event" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What age group has a time of 6:37.73 at the 200m breaststroke?`:
```sql
|
SELECT "date" FROM "master_world_records" WHERE "age_group"='90-94' AND "pool"='lc' AND "time"='1:25.91'; |
## Task
Generate a SQL query to answer the following question:
`What date did the 90-94 year old have a tie of 1:25.91 at the LC pool?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "master_world_records" (
"pool" text,
"age_group" text,
"time" text,
"event" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the 90-94 year old have a tie of 1:25.91 at the LC pool?`:
```sql
|
SELECT COUNT("total_points") FROM "points" WHERE "rank">9 AND "ppg_avg">13.4; |
## Task
Generate a SQL query to answer the following question:
`How many point totals are there that rank higher than 9 and have a PPG avg higher than 13.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points" (
"rank" real,
"player" text,
"years" text,
"games" real,
"ppg_avg" real,
"total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many point totals are there that rank higher than 9 and have a PPG avg higher than 13.4?`:
```sql
|
SELECT COUNT("rank") FROM "points" WHERE "games">125 AND "player"='david gonzalvez'; |
## Task
Generate a SQL query to answer the following question:
`How many players played over 125 games and were named david gonzalvez?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points" (
"rank" real,
"player" text,
"years" text,
"games" real,
"ppg_avg" real,
"total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many players played over 125 games and were named david gonzalvez?`:
```sql
|
SELECT "host" FROM "first_and_second_rounds" WHERE "city"='missoula'; |
## Task
Generate a SQL query to answer the following question:
`Which host university is based in Missoula?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which host university is based in Missoula?`:
```sql
|
SELECT "state" FROM "first_and_second_rounds" WHERE "city"='ruston'; |
## Task
Generate a SQL query to answer the following question:
`What state is the city of Ruston in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state is the city of Ruston in?`:
```sql
|
SELECT "state" FROM "first_and_second_rounds" WHERE "region"='mideast' AND "city"='seattle'; |
## Task
Generate a SQL query to answer the following question:
`Which mideast regional state contains the city of Seattle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mideast regional state contains the city of Seattle?`:
```sql
|
SELECT "region" FROM "first_and_second_rounds" WHERE "host"='old dominion university'; |
## Task
Generate a SQL query to answer the following question:
`Which region does Old Dominion University represent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region does Old Dominion University represent?`:
```sql
|
SELECT "state" FROM "first_and_second_rounds" WHERE "host"='university of tennessee'; |
## Task
Generate a SQL query to answer the following question:
`Which state is University of Tennessee based in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state is University of Tennessee based in?`:
```sql
|
SELECT "grid" FROM "race" WHERE "team"='dale coyne racing' AND "driver"='bruno junqueira'; |
## Task
Generate a SQL query to answer the following question:
`What was the grid for Bruno Junqueira for Dale Coyne Racing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the grid for Bruno Junqueira for Dale Coyne Racing?`:
```sql
|
SELECT MAX("points") FROM "race" WHERE "grid"=5 AND "laps"<78; |
## Task
Generate a SQL query to answer the following question:
`What were the highest points for less than 78 laps and on grid 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the highest points for less than 78 laps and on grid 5?`:
```sql
|
SELECT "crowd" FROM "round_6" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`How many were in the crowd at the Junction Oval venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"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 were in the crowd at the Junction Oval venue?`:
```sql
|
SELECT "away_team_score" FROM "round_6" WHERE "venue"='arden street oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team score in the game at Arden Street Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team score in the game at Arden Street Oval?`:
```sql
|
SELECT "date" FROM "round_6" WHERE "venue"='arden street oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the Arden Street Oval game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"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 Arden Street Oval game?`:
```sql
|
SELECT "away_team_score" FROM "round_3" WHERE "crowd">'25,819' AND "home_team_score"='14.10 (94)'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team's score during the match where the crowd was larger than 25,819 and the home team scored 14.10 (94)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team's score during the match where the crowd was larger than 25,819 and the home team scored 14.10 (94)?`:
```sql
|
SELECT SUM("crowd") FROM "round_3" WHERE "away_team_score"='7.6 (48)'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of all the crowds at matches where the away team's score was 7.6 (48)?`
### 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 sum of all the crowds at matches where the away team's score was 7.6 (48)?`:
```sql
|
SELECT "venue" FROM "round_3" WHERE "crowd">'29,840'; |
## Task
Generate a SQL query to answer the following question:
`What venue saw a crowd larger than 29,840?`
### 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 saw a crowd larger than 29,840?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"='11'; |
## Task
Generate a SQL query to answer the following question:
`When does week 11 start?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"location" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When does week 11 start?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "date"='december 28, 1997'; |
## Task
Generate a SQL query to answer the following question:
`Which week starts on December 28, 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"location" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week starts on December 28, 1997?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"='1'; |
## Task
Generate a SQL query to answer the following question:
`When does week 1 start?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"location" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When does week 1 start?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "opponent"='tampa bay buccaneers'; |
## Task
Generate a SQL query to answer the following question:
`Who one in the Tampa Bay Buccaneers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"location" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who one in the Tampa Bay Buccaneers?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "date"='november 23, 1997'; |
## Task
Generate a SQL query to answer the following question:
`Which week starts on November 23, 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"location" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week starts on November 23, 1997?`:
```sql
|
SELECT "home_team" FROM "round_6" WHERE "home_team_score"='8.15 (63)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team that scored 8.15 (63)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team that scored 8.15 (63)?`:
```sql
|
SELECT "away_team" FROM "round_6" WHERE "home_team"='fitzroy'; |
## Task
Generate a SQL query to answer the following question:
`Who is the away team when the home team was Fitzroy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team when the home team was Fitzroy?`:
```sql
|
SELECT "home_team_score" FROM "round_6" WHERE "home_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was Melbourne's score when they were the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"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 when they were the home team?`:
```sql
|
SELECT "date" FROM "round_6" WHERE "home_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game where Collingwood was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game where Collingwood was the home team?`:
```sql
|
SELECT "crowd" FROM "round_4" WHERE "away_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Who watches North Melbourne when they are away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who watches North Melbourne when they are away?`:
```sql
|
SELECT "away_team" FROM "round_4" WHERE "home_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What Away team is visiting Carlton?`
### 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 Away team is visiting Carlton?`:
```sql
|
SELECT "home_team_score" FROM "round_4" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`What team has Windy Hill as their home venue`
### 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 team has Windy Hill as their home venue`:
```sql
|
SELECT MAX("crowd") FROM "round_4" WHERE "away_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`When richmond played away, what was the largest number of people who watched?`
### 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 `When richmond played away, what was the largest number of people who watched?`:
```sql
|
SELECT "country" FROM "list" WHERE "rank">68 AND "capacity"='32,000' AND "city"='santa fe'; |
## Task
Generate a SQL query to answer the following question:
`Which country is ranked higher than 68, with a city named Santa Fe and a stadium that has a capacity of 32,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"rank" real,
"stadium" text,
"capacity" text,
"city" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is ranked higher than 68, with a city named Santa Fe and a stadium that has a capacity of 32,000?`:
```sql
|
SELECT "capacity" FROM "list" WHERE "rank"<31 AND "city"='belém'; |
## Task
Generate a SQL query to answer the following question:
`What is the capacity of the stadium with a rank lower than 31 located in the city of Belém ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"rank" real,
"stadium" text,
"capacity" text,
"city" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity of the stadium with a rank lower than 31 located in the city of Belém ?`:
```sql
|
SELECT SUM("week") FROM "exhibition_schedule" WHERE "attendance"='30,751'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of week(s) with an attendance of 30,751?`
### 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 sum of week(s) with an attendance of 30,751?`:
```sql
|
SELECT "date" FROM "round_11" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`On what date did the home team Essendon play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 Essendon play?`:
```sql
|
SELECT "home_team_score" FROM "round_11" WHERE "home_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was South Melbourne's home team score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 South Melbourne's home team score?`:
```sql
|
SELECT "date" FROM "round_11" WHERE "venue"='glenferrie oval'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the venue of Glenferrie Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 the venue of Glenferrie Oval?`:
```sql
|
SELECT "away_team_score" FROM "round_12" WHERE "home_team_score"='10.11 (71)'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the away team when the home team scored 10.11 (71)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"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 the away team when the home team scored 10.11 (71)?`:
```sql
|
SELECT "away_team_score" FROM "round_12" WHERE "home_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the away team when they played collingwood?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"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 the away team when they played collingwood?`:
```sql
|
SELECT "home_team_score" FROM "round_12" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when essendon was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"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 when essendon was the home team?`:
```sql
|
SELECT "date" FROM "round_7" WHERE "away_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game where Richmond was the away team?`
### 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 date of the game where Richmond was the away team?`:
```sql
|
SELECT "home_team" FROM "round_7" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team when Carlton was the away team?`
### 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 `Who was the home team when Carlton was the away team?`:
```sql
|
SELECT "home_team_score" FROM "round_18" WHERE "away_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`Which home team played against Hawthorn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team played against Hawthorn?`:
```sql
|
SELECT "date" FROM "round_18" WHERE "home_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`What date did the Geelong team play on as a home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Geelong team play on as a home team?`:
```sql
|
SELECT "school_club_team" FROM "nfl_draft" WHERE "round">13 AND "overall"=384; |
## Task
Generate a SQL query to answer the following question:
`What school/club team did the player who was drafted after round 13 with an overall rank of 384 play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school/club team did the player who was drafted after round 13 with an overall rank of 384 play for?`:
```sql
|
SELECT MAX("overall") FROM "nfl_draft" WHERE "position"='center' AND "round"<10; |
## Task
Generate a SQL query to answer the following question:
`What is the largest overall rank for a center drafted before round 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest overall rank for a center drafted before round 10?`:
```sql
|
SELECT "position" FROM "nfl_draft" WHERE "overall"<306 AND "round"<11 AND "school_club_team"='texas state'; |
## Task
Generate a SQL query to answer the following question:
`What position does the player from Texas State who was drafted before round 11 with an overall rank lower than 306 play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player from Texas State who was drafted before round 11 with an overall rank lower than 306 play?`:
```sql
|
SELECT AVG("overall") FROM "nfl_draft" WHERE "school_club_team"='duke' AND "round">9; |
## Task
Generate a SQL query to answer the following question:
`What is the average overall rank of all players drafted from Duke after round 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" 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 overall rank of all players drafted from Duke after round 9?`:
```sql
|
SELECT COUNT("round") FROM "nfl_draft" WHERE "school_club_team"='tennessee state' AND "overall"<261; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of all rounds where a Tennessee State player with an overall rank less than 261 was drafted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all rounds where a Tennessee State player with an overall rank less than 261 was drafted?`:
```sql
|
SELECT MIN("overall") FROM "nfl_draft" WHERE "school_club_team"='tennessee state' AND "round"<10; |
## Task
Generate a SQL query to answer the following question:
`What is the highest overall rank of any Tennessee State player drafted before round 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest overall rank of any Tennessee State player drafted before round 10?`:
```sql
|
SELECT COUNT("round") FROM "nfl_draft" WHERE "position"='linebacker' AND "player"='blane smith'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did Blane Smith play linebacker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did Blane Smith play linebacker?`:
```sql
|
SELECT COUNT("overall") FROM "nfl_draft" WHERE "school_club_team"='arizona' AND "round">11; |
## Task
Generate a SQL query to answer the following question:
`How many times was Arizona the team and the round was bigger than 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was Arizona the team and the round was bigger than 11?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "week">5 AND "opponent"='st. louis rams'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the game after week 5 against the st. louis rams?`
### 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,
"kickoff_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the game after week 5 against the st. louis rams?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"=4; |
## Task
Generate a SQL query to answer the following question:
`What day did they play on week 4?`
### 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,
"kickoff_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did they play on week 4?`:
```sql
|
SELECT MAX("crowd") FROM "round_2" WHERE "venue"='princes park'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd 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 is the largest crowd at princes park?`:
```sql
|
SELECT "date" FROM "round_2" WHERE "away_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What day is north melbourne the away side?`
### 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 day is north melbourne the away side?`:
```sql
|
SELECT "date" FROM "round_2" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What day is essendon the home 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 day is essendon the home team?`:
```sql
|
SELECT "away_team" FROM "round_2" WHERE "away_team_score"='11.10 (76)'; |
## Task
Generate a SQL query to answer the following question:
`What away side scores 11.10 (76)?`
### 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 side scores 11.10 (76)?`:
```sql
|
SELECT SUM("games") FROM "assists" WHERE "assist">54; |
## Task
Generate a SQL query to answer the following question:
`How many games had an assist number greater than 54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"player" text,
"nation" text,
"assist" real,
"games" real,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games had an assist number greater than 54?`:
```sql
|
SELECT "years" FROM "assists" WHERE "assist"<26 AND "rank"<6 AND "nation"='usa'; |
## Task
Generate a SQL query to answer the following question:
`Which years did the USA have a rank lower than 6 and an assist number less than 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"player" text,
"nation" text,
"assist" real,
"games" real,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years did the USA have a rank lower than 6 and an assist number less than 26?`:
```sql
|
SELECT "years" FROM "assists" WHERE "assist"<17 AND "games"=174; |
## Task
Generate a SQL query to answer the following question:
`Which year or years did a team win 174 games and had an assist number less than 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"player" text,
"nation" text,
"assist" real,
"games" real,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year or years did a team win 174 games and had an assist number less than 17?`:
```sql
|
SELECT "party" FROM "senators_at_the_beginning_of_the_39th_pa" WHERE "name"='claudette tardif'; |
## Task
Generate a SQL query to answer the following question:
`Which party does Claudette Tardif belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senators_at_the_beginning_of_the_39th_pa" (
"name" text,
"party" text,
"province_division" text,
"date_appointed" text,
"appointed_by" text,
"left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party does Claudette Tardif belong to?`:
```sql
|
SELECT "appointed_by" FROM "senators_at_the_beginning_of_the_39th_pa" WHERE "party"='conservative' AND "province_division"='ontario' AND "date_appointed"='june 18, 1993'; |
## Task
Generate a SQL query to answer the following question:
`Who appointed the conservative from Ontario on June 18, 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senators_at_the_beginning_of_the_39th_pa" (
"name" text,
"party" text,
"province_division" text,
"date_appointed" text,
"appointed_by" text,
"left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who appointed the conservative from Ontario on June 18, 1993?`:
```sql
|
SELECT "competition_federation_or_league" FROM "list_of_winners" WHERE "team"='tennessee titans'; |
## Task
Generate a SQL query to answer the following question:
`What competition, federation, or league are the Tennessee Titans a member of?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_winners" (
"year" real,
"sportsperson" text,
"nationality" text,
"team" text,
"competition_federation_or_league" text,
"sport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition, federation, or league are the Tennessee Titans a member of?`:
```sql
|
SELECT AVG("year") FROM "list_of_winners" WHERE "competition_federation_or_league"='national football league'; |
## Task
Generate a SQL query to answer the following question:
`How many years has the winner been a member of the National Football League?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_winners" (
"year" real,
"sportsperson" text,
"nationality" text,
"team" text,
"competition_federation_or_league" text,
"sport" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years has the winner been a member of the National Football League?`:
```sql
|
SELECT "sportsperson" FROM "list_of_winners" WHERE "year">1994 AND "competition_federation_or_league"='national basketball association'; |
## Task
Generate a SQL query to answer the following question:
`Post 1994, who are the winners of Sportsperson from the National Basketball Association?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_winners" (
"year" real,
"sportsperson" text,
"nationality" text,
"team" text,
"competition_federation_or_league" text,
"sport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Post 1994, who are the winners of Sportsperson from the National Basketball Association?`:
```sql
|
SELECT "date" FROM "round_15" WHERE "home_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What day is south melbourne at home?`
### 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 day is south melbourne at home?`:
```sql
|
SELECT MIN("crowd") FROM "round_15" WHERE "venue"='corio oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest crowd at corio 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 is the lowest crowd at corio oval?`:
```sql
|
SELECT "venue" FROM "round_15" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What venue features carlton as an away 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 venue features carlton as an away team?`:
```sql
|
SELECT "away_team_score" FROM "round_16" WHERE "home_team_score"='7.8 (50)'; |
## Task
Generate a SQL query to answer the following question:
`What is the away team's score when the home team scores 7.8 (50)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team's score when the home team scores 7.8 (50)?`:
```sql
|
SELECT "date" FROM "round_16" WHERE "venue"='western oval'; |
## Task
Generate a SQL query to answer the following question:
`What day does the team play at western oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day does the team play at western oval?`:
```sql
|
SELECT "venue" FROM "round_16" WHERE "home_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What venue features collingwood as the home side?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue features collingwood as the home side?`:
```sql
|
SELECT "away_team" FROM "round_16" WHERE "home_team_score"='12.13 (85)'; |
## Task
Generate a SQL query to answer the following question:
`What is the away team's score when the home side scores 12.13 (85)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team's score when the home side scores 12.13 (85)?`:
```sql
|
SELECT "attendance" FROM "exhibition_schedule" WHERE "week"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance of week 1`
### 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 attendance of week 1`:
```sql
|
SELECT "result" FROM "week_5" WHERE "couple"='kelly & alec' AND "score"='22 (8, 7, 7)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Result for Couple Kelly & Alec when they have a Score of 22 (8, 7, 7)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_5" (
"couple" text,
"score" text,
"dance" text,
"music" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result for Couple Kelly & Alec when they have a Score of 22 (8, 7, 7)?`:
```sql
|
SELECT "music" FROM "week_5" WHERE "score"='25 (9, 8, 8)' AND "result"='bottom 2'; |
## Task
Generate a SQL query to answer the following question:
`What is the Music for the Dance that Scored 25 (9, 8, 8) and a Result of bottom 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_5" (
"couple" text,
"score" text,
"dance" text,
"music" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Music for the Dance that Scored 25 (9, 8, 8) and a Result of bottom 2?`:
```sql
|
SELECT COUNT("total") FROM "season" WHERE "average"<8 AND "matches"<4; |
## Task
Generate a SQL query to answer the following question:
`How many totals are there for players with an average under 8 and less than 4 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many totals are there for players with an average under 8 and less than 4 matches?`:
```sql
|
SELECT MAX("rank") FROM "season" WHERE "player"='christy heffernan' AND "matches">4; |
## Task
Generate a SQL query to answer the following question:
`What is the highest rank for championships with christy heffernan with over 4 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank for championships with christy heffernan with over 4 matches?`:
```sql
|
SELECT "date" FROM "round_12" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game at Junction Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game at Junction Oval?`:
```sql
|
SELECT "away_team_score" FROM "round_12" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team score at Windy Hill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team score at Windy Hill?`:
```sql
|
SELECT "venue" FROM "round_17" WHERE "away_team"='st kilda'; |
## Task
Generate a SQL query to answer the following question:
`Where did St Kilda play as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_17" (
"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 St Kilda play as the away team?`:
```sql
|
SELECT "away_team" FROM "round_17" WHERE "venue"='glenferrie oval'; |
## Task
Generate a SQL query to answer the following question:
`What away team played at Glenferrie Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_17" (
"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 played at Glenferrie Oval?`:
```sql
|
SELECT "crowd" FROM "round_17" WHERE "venue"='lake oval'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game at Lake Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game at Lake Oval?`:
```sql
|
SELECT "home_team" FROM "round_17" WHERE "venue"='lake oval'; |
## Task
Generate a SQL query to answer the following question:
`What home team played at Lake Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_17" (
"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 played at Lake Oval?`:
```sql
|
SELECT "terrain" FROM "stage_results" WHERE "stage"='10'; |
## Task
Generate a SQL query to answer the following question:
`What was the terrain for stage 10 of the tour?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the terrain for stage 10 of the tour?`:
```sql
|
SELECT "stage" FROM "stage_results" WHERE "route"='boulogne-billancourt'; |
## Task
Generate a SQL query to answer the following question:
`Which stage took the tour through Boulogne-Billancourt?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage took the tour through Boulogne-Billancourt?`:
```sql
|
SELECT "winner" FROM "stage_results" WHERE "stage"='22'; |
## Task
Generate a SQL query to answer the following question:
`Who won at stage 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won at stage 22?`:
```sql
|
SELECT "winner" FROM "stage_results" WHERE "stage"='12'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner of stage 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of stage 12?`:
```sql
|
SELECT "first_elected" FROM "see_also" WHERE "member"='hon ian causley'; |
## Task
Generate a SQL query to answer the following question:
`When was the Hon Ian Causley first elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the Hon Ian Causley first elected?`:
```sql
|
SELECT "first_elected" FROM "see_also" WHERE "party"='labor' AND "member"='jill hall'; |
## Task
Generate a SQL query to answer the following question:
`When was Jill Hall of the Labor Party first elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Jill Hall of the Labor Party first elected?`:
```sql
|
SELECT "state" FROM "see_also" WHERE "member"='tanya plibersek'; |
## Task
Generate a SQL query to answer the following question:
`What state is Tanya Plibersek from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state is Tanya Plibersek from?`:
```sql
|
SELECT MIN("goals") FROM "players_with_100_appearances_or_more" WHERE "years"='2008-present' AND "player"='tony beltran' AND "rank">7; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of goals for the player from 2008-present named tony beltran, ranked lower than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_with_100_appearances_or_more" (
"rank" real,
"player" text,
"nation" text,
"games" real,
"goals" real,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of goals for the player from 2008-present named tony beltran, ranked lower than 7?`:
```sql
|
SELECT MIN("goals") FROM "players_with_100_appearances_or_more" WHERE "player"='andy williams'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of goals for andy williams?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_with_100_appearances_or_more" (
"rank" real,
"player" text,
"nation" text,
"games" real,
"goals" real,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of goals for andy williams?`:
```sql
|
SELECT MAX("goals") FROM "players_with_100_appearances_or_more" WHERE "player"='robbie findley' AND "rank"<10; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of goals for robbie findley ranked above 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_with_100_appearances_or_more" (
"rank" real,
"player" text,
"nation" text,
"games" real,
"goals" real,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of goals for robbie findley ranked above 10?`:
```sql
|
SELECT "ntfs" FROM "windows_nt" WHERE "fat32"='yes' AND "re_fs"='no'; |
## Task
Generate a SQL query to answer the following question:
`Which NTFS has a yes for FAT32 and a no for ReFS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "windows_nt" (
"fat16" text,
"fat32" text,
"hpfs" text,
"iso_9660" text,
"ntfs" text,
"re_fs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NTFS has a yes for FAT32 and a no for ReFS?`:
```sql
|
SELECT "hpfs" FROM "windows_nt" WHERE "re_fs"='no'; |
## Task
Generate a SQL query to answer the following question:
`Which HPFS has a no for ReFS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "windows_nt" (
"fat16" text,
"fat32" text,
"hpfs" text,
"iso_9660" text,
"ntfs" text,
"re_fs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which HPFS has a no for ReFS?`:
```sql
|
SELECT "fat32" FROM "windows_nt" WHERE "ntfs"='yes v1.0/v1.1'; |
## Task
Generate a SQL query to answer the following question:
`Which FAT32 has yes v1.0/v1.1 for NTFS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "windows_nt" (
"fat16" text,
"fat32" text,
"hpfs" text,
"iso_9660" text,
"ntfs" text,
"re_fs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FAT32 has yes v1.0/v1.1 for NTFS?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.