output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "opponent" FROM "schedule" WHERE "week"<8 AND "attendance"='12,508'; |
## Task
Generate a SQL query to answer the following question:
`What opponent had an attendance of 12,508 during weeks 1 through 8?`
### 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,
"game_site" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent had an attendance of 12,508 during weeks 1 through 8?`:
```sql
|
SELECT AVG("week") FROM "schedule" WHERE "attendance"='14,381'; |
## Task
Generate a SQL query to answer the following question:
`What week had an attendance of 14,381?`
### 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,
"game_site" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week had an attendance of 14,381?`:
```sql
|
SELECT MIN("round") FROM "2003_new_york_jets_season" WHERE "player"='dave yovanovits'; |
## Task
Generate a SQL query to answer the following question:
`Which round was Dave Yovanovits picked?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_new_york_jets_season" (
"round" real,
"pick" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round was Dave Yovanovits picked?`:
```sql
|
SELECT "college" FROM "2003_new_york_jets_season" WHERE "position"='linebacker'; |
## Task
Generate a SQL query to answer the following question:
`Where did the player picked for the linebacker position play in college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_new_york_jets_season" (
"round" real,
"pick" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the player picked for the linebacker position play in college?`:
```sql
|
SELECT "country_name" FROM "five_year_average" WHERE "1966_70"='-100' AND "1991_95"='-7.36%'; |
## Task
Generate a SQL query to answer the following question:
`What country had a 1966-70 rate of -100 and a 1991-95 rate of -7.36%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country had a 1966-70 rate of -100 and a 1991-95 rate of -7.36%?`:
```sql
|
SELECT "1971_75" FROM "five_year_average" WHERE "1986_90"='-5.28%'; |
## Task
Generate a SQL query to answer the following question:
`What was the 1971-75 rate for the country that has a 1986-90 rate of -5.28%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1971-75 rate for the country that has a 1986-90 rate of -5.28%?`:
```sql
|
SELECT "2001_05" FROM "five_year_average" WHERE "1981_85"='-3.48%'; |
## Task
Generate a SQL query to answer the following question:
`What was the 2001-05 rate for the country that had 1981-85 rate of -3.48%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2001-05 rate for the country that had 1981-85 rate of -3.48%?`:
```sql
|
SELECT "1976_80" FROM "five_year_average" WHERE "1991_95"='-0.43%'; |
## Task
Generate a SQL query to answer the following question:
`What was the 1976-80 rate for the country that had 1991-95 rate of -0.43%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1976-80 rate for the country that had 1991-95 rate of -0.43%`:
```sql
|
SELECT "2001_05" FROM "five_year_average" WHERE "1981_85"='0.38%'; |
## Task
Generate a SQL query to answer the following question:
`What was the 2001-05 rate for the country that had the 1981-85 rate of 0.38%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2001-05 rate for the country that had the 1981-85 rate of 0.38%?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"=12; |
## Task
Generate a SQL query to answer the following question:
`Who did the Browns play week 12?`
### 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 `Who did the Browns play week 12?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "opponent"='detroit lions'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance in the game against the Detroit Lions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance in the game against the Detroit Lions?`:
```sql
|
SELECT "away_team" FROM "round_15" WHERE "venue"='brunswick street oval'; |
## Task
Generate a SQL query to answer the following question:
`Who played as the away team when they played at Brunswick Street 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 `Who played as the away team when they played at Brunswick Street Oval?`:
```sql
|
SELECT "home_team" FROM "round_15" WHERE "venue"='arden street oval'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the VFL played Arden Street 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 `Who was the home team when the VFL played Arden Street Oval?`:
```sql
|
SELECT "away_team" FROM "round_9" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`Who is the away side at junction oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away side at junction oval?`:
```sql
|
SELECT "winning_driver" FROM "race_results" WHERE "name"='kraco car stereo 150'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver of the Kraco Car Stereo 150?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver of the Kraco Car Stereo 150?`:
```sql
|
SELECT "fastest_lap" FROM "race_results" WHERE "name"='stoh''s 200'; |
## Task
Generate a SQL query to answer the following question:
`What time was the fastest lap during Stoh's 200 in 1982?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was the fastest lap during Stoh's 200 in 1982?`:
```sql
|
SELECT "date" FROM "retirees" WHERE "d_but">1972 AND "opposition"='limerick'; |
## Task
Generate a SQL query to answer the following question:
`What is the date for the player who debuted later than 1972 against Limerick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "retirees" (
"player" text,
"team" text,
"last_game" text,
"date" text,
"opposition" text,
"d_but" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the player who debuted later than 1972 against Limerick?`:
```sql
|
SELECT "player" FROM "retirees" WHERE "opposition"='limerick' AND "last_game"='munster semi-final' AND "d_but"=1973; |
## Task
Generate a SQL query to answer the following question:
`Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "retirees" (
"player" text,
"team" text,
"last_game" text,
"date" text,
"opposition" text,
"d_but" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week">7 AND "result"='l 23β17'; |
## Task
Generate a SQL query to answer the following question:
`What date had a Result of l 23β17 in a week later than 7?`
### 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 date had a Result of l 23β17 in a week later than 7?`:
```sql
|
SELECT COUNT("attendance") FROM "schedule" WHERE "opponent"='cincinnati bengals'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game against the cincinnati bengals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game against the cincinnati bengals?`:
```sql
|
SELECT "attendance" FROM "new_york_yankees_vs_boston_red_sox" WHERE "time"='3:31'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game played at 3:31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_york_yankees_vs_boston_red_sox" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game played at 3:31?`:
```sql
|
SELECT "time" FROM "new_york_yankees_vs_boston_red_sox" WHERE "game"=4; |
## Task
Generate a SQL query to answer the following question:
`What was the time for game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_york_yankees_vs_boston_red_sox" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for game 4?`:
```sql
|
SELECT "venue" FROM "round_13" WHERE "home_team_score"='8.9 (57)'; |
## Task
Generate a SQL query to answer the following question:
`What venue featured a home score of 8.9 (57)?`
### 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 venue featured a home score of 8.9 (57)?`:
```sql
|
SELECT "away_team_score" FROM "round_13" WHERE "venue"='western oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team's score at western oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team's score at western oval?`:
```sql
|
SELECT COUNT("crowd") FROM "round_13" WHERE "home_team_score"='12.18 (90)'; |
## Task
Generate a SQL query to answer the following question:
`How many games featured a home team scoring 12.18 (90)?`
### 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 `How many games featured a home team scoring 12.18 (90)?`:
```sql
|
SELECT SUM("wins") FROM "porsche_supercup" WHERE "points"='48' AND "year"<2007; |
## Task
Generate a SQL query to answer the following question:
`Before 2007, how many wins were there when the point total was 48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "porsche_supercup" (
"year" real,
"drivers" text,
"wins" real,
"points" text,
"d_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `Before 2007, how many wins were there when the point total was 48?`:
```sql
|
SELECT SUM("wins") FROM "porsche_supercup" WHERE "year"=2011 AND "drivers"='michael meadows'; |
## Task
Generate a SQL query to answer the following question:
`In 2011, how many wins did Michael Meadows have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "porsche_supercup" (
"year" real,
"drivers" text,
"wins" real,
"points" text,
"d_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 2011, how many wins did Michael Meadows have?`:
```sql
|
SELECT "service" FROM "singapore" WHERE "origin_of_programming"='india' AND "network"='set max'; |
## Task
Generate a SQL query to answer the following question:
`What is the service of the network Set Max from India?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singapore" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the service of the network Set Max from India?`:
```sql
|
SELECT "network" FROM "singapore" WHERE "genre"='music'; |
## Task
Generate a SQL query to answer the following question:
`Which network's genre is music?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singapore" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which network's genre is music?`:
```sql
|
SELECT "genre" FROM "singapore" WHERE "origin_of_programming"='india' AND "network"='star plus'; |
## Task
Generate a SQL query to answer the following question:
`What genre is Star Plus from India?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singapore" (
"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 genre is Star Plus from India?`:
```sql
|
SELECT "origin_of_programming" FROM "singapore" WHERE "genre"='cricket' AND "network"='star cricket'; |
## Task
Generate a SQL query to answer the following question:
`Where does the network Star Cricket originate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singapore" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where does the network Star Cricket originate?`:
```sql
|
SELECT "genre" FROM "singapore" WHERE "language"='hindi' AND "network"='set max'; |
## Task
Generate a SQL query to answer the following question:
`What genre is Set Max's Hindi programming?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singapore" (
"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 genre is Set Max's Hindi programming?`:
```sql
|
SELECT "home_team_score" FROM "round_14" WHERE "home_team"='fitzroy'; |
## Task
Generate a SQL query to answer the following question:
`What is fitzroy'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_14" (
"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 fitzroy's score as the home team?`:
```sql
|
SELECT "crowd" FROM "round_14" WHERE "home_team_score"='9.7 (61)'; |
## Task
Generate a SQL query to answer the following question:
`What is the listed crowd when the home team's score is 9.7 (61)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_14" (
"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 listed crowd when the home team's score is 9.7 (61)?`:
```sql
|
SELECT "home_team_score" FROM "round_14" WHERE "home_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`What is richmond'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_14" (
"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 richmond's score as the home team?`:
```sql
|
SELECT "date" FROM "round_4" WHERE "away_team_score"='5.14 (44)'; |
## Task
Generate a SQL query to answer the following question:
`When was the game where the away team had a score of 5.14 (44)?`
### 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 was the game where the away team had a score of 5.14 (44)?`:
```sql
|
SELECT "color_commentator_s" FROM "2000s" WHERE "sideline_reporter_s"='eric dickerson and melissa stark' AND "year"=2001; |
## Task
Generate a SQL query to answer the following question:
`Who was the color commentator for Eric Dickerson and Melissa Stark in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the color commentator for Eric Dickerson and Melissa Stark in 2001?`:
```sql
|
SELECT "network" FROM "2000s" WHERE "play_by_play"='al michaels' AND "color_commentator_s"='dan fouts and dennis miller' AND "year"<2002; |
## Task
Generate a SQL query to answer the following question:
`What network hosted Al Michaels, Dan Fouts and Dennis Miller in 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network hosted Al Michaels, Dan Fouts and Dennis Miller in 2002?`:
```sql
|
SELECT "color_commentator_s" FROM "2000s" WHERE "year"=2004; |
## Task
Generate a SQL query to answer the following question:
`Who was the 2004 color commentator?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 2004 color commentator?`:
```sql
|
SELECT "color_commentator_s" FROM "2000s" WHERE "sideline_reporter_s"='andrea kremer and tiki barber'; |
## Task
Generate a SQL query to answer the following question:
`Who was the color commentator for Andrea Kremer and Tiki Barber?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the color commentator for Andrea Kremer and Tiki Barber?`:
```sql
|
SELECT "color_commentator_s" FROM "2000s" WHERE "play_by_play"='al michaels' AND "year">2003; |
## Task
Generate a SQL query to answer the following question:
`Who was Al Michaels' color commentator in 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Al Michaels' color commentator in 2003?`:
```sql
|
SELECT "home_team" FROM "round_12" WHERE "away_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team when Geelong was the away 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 `Who was the home team when Geelong was the away team?`:
```sql
|
SELECT "venue" FROM "round_12" WHERE "home_team_score"='25.17 (167)'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game when the home team scored 25.17 (167)?`
### 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 `Where was the game when the home team scored 25.17 (167)?`:
```sql
|
SELECT "away_team_score" FROM "round_12" WHERE "home_team_score"='15.16 (106)' AND "home_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team's score when home team Carlton scored 15.16 (106)?`
### 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's score when home team Carlton scored 15.16 (106)?`:
```sql
|
SELECT MAX("overall") FROM "nfl_draft" WHERE "college"='southern mississippi' AND "round"<6; |
## Task
Generate a SQL query to answer the following question:
`What is the highest overall pick from the College of Southern Mississippi that was selected before round 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"player" text,
"position" text,
"round" real,
"overall" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest overall pick from the College of Southern Mississippi that was selected before round 6?`:
```sql
|
SELECT "coach" FROM "vacated_and_forfeited_games" WHERE "actual_adjusted_record"='0β19'; |
## Task
Generate a SQL query to answer the following question:
`Who, was the coach with an actual adjusted record of 0β19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who, was the coach with an actual adjusted record of 0β19?`:
```sql
|
SELECT AVG("season") FROM "vacated_and_forfeited_games" WHERE "coach"='fisher' AND "actual_adjusted_record"='0β11'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Season for coach Fisher, and an actual adjusted record of 0β11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Season for coach Fisher, and an actual adjusted record of 0β11?`:
```sql
|
SELECT "regular_season_vacated" FROM "vacated_and_forfeited_games" WHERE "record_as_played"='12β19'; |
## Task
Generate a SQL query to answer the following question:
`What is the regular season vacated for the Record as played of 12β19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the regular season vacated for the Record as played of 12β19?`:
```sql
|
SELECT COUNT("season") FROM "vacated_and_forfeited_games" WHERE "coach"='steve fisher'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons did coach steve fisher have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did coach steve fisher have?`:
```sql
|
SELECT "record_as_played" FROM "vacated_and_forfeited_games" WHERE "regular_season_vacated"='24β0' AND "season">1997; |
## Task
Generate a SQL query to answer the following question:
`What is shown for Record as played with a Regular season Vacated of 24β0 later than 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is shown for Record as played with a Regular season Vacated of 24β0 later than 1997?`:
```sql
|
SELECT COUNT("season") FROM "vacated_and_forfeited_games" WHERE "actual_adjusted_record"='0β19'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons have an Actual adjusted record of 0β19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons have an Actual adjusted record of 0β19?`:
```sql
|
SELECT SUM("gold") FROM "medal_table" WHERE "total"=14 AND "bronze">6; |
## Task
Generate a SQL query to answer the following question:
`How many gold(s) for teams with a total of 14, and over 6 bronze medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gold(s) for teams with a total of 14, and over 6 bronze medals?`:
```sql
|
SELECT MAX("gold") FROM "medal_table" WHERE "rank"='7' AND "bronze"<3; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of gold medals for the team ranked 7 with less than 3 bronze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of gold medals for the team ranked 7 with less than 3 bronze?`:
```sql
|
SELECT AVG("gold") FROM "medal_table" WHERE "silver"<2 AND "nation"='uzbekistan' AND "bronze"<4; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze?`:
```sql
|
SELECT "away_team" FROM "round_7" WHERE "venue"='punt road oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team for the match at Punt Road Oval?`
### 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 away team for the match at Punt Road Oval?`:
```sql
|
SELECT "home_team" FROM "round_7" WHERE "home_team_score"='5.7 (37)'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team that scored 5.7 (37)?`
### 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 home team that scored 5.7 (37)?`:
```sql
|
SELECT MIN("crowd") FROM "round_7" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd size for the match played at Junction Oval?`
### 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 smallest crowd size for the match played at Junction Oval?`:
```sql
|
SELECT "home_team" FROM "round_7" WHERE "home_team_score"='12.21 (93)'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team that scored 12.21 (93)?`
### 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 home team that scored 12.21 (93)?`:
```sql
|
SELECT "home_team" FROM "round_7" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team that played Collingwood?`
### 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 home team that played Collingwood?`:
```sql
|
SELECT SUM("crowd") FROM "round_7" WHERE "home_team_score"='9.17 (71)'; |
## Task
Generate a SQL query to answer the following question:
`What was the sum of the crowd sizes when the home team scored 9.17 (71)?`
### 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 sum of the crowd sizes when the home team scored 9.17 (71)?`:
```sql
|
SELECT "province" FROM "left_senate_during_the_39th_parliament" WHERE "name"='michael kirby'; |
## Task
Generate a SQL query to answer the following question:
`Which province has Michael Kirby?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province has Michael Kirby?`:
```sql
|
SELECT "party" FROM "left_senate_during_the_39th_parliament" WHERE "name"='madeleine plamondon'; |
## Task
Generate a SQL query to answer the following question:
`Which party is Madeleine Plamondon a member of?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party is Madeleine Plamondon a member of?`:
```sql
|
SELECT "details" FROM "left_senate_during_the_39th_parliament" WHERE "name"='marisa ferretti barth'; |
## Task
Generate a SQL query to answer the following question:
`What are the details for Marisa Ferretti Barth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the details for Marisa Ferretti Barth?`:
```sql
|
SELECT "party" FROM "left_senate_during_the_39th_parliament" WHERE "date"='august 26, 2008'; |
## Task
Generate a SQL query to answer the following question:
`Which party had a member on August 26, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party had a member on August 26, 2008?`:
```sql
|
SELECT "details" FROM "left_senate_during_the_39th_parliament" WHERE "name"='john buchanan'; |
## Task
Generate a SQL query to answer the following question:
`What are the details for John Buchanan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the details for John Buchanan?`:
```sql
|
SELECT "province" FROM "left_senate_during_the_39th_parliament" WHERE "party"='liberal' AND "date"='december 31, 2006'; |
## Task
Generate a SQL query to answer the following question:
`Which province had a liberal party member on December 31, 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province had a liberal party member on December 31, 2006?`:
```sql
|
SELECT "dance_styles" FROM "participants" WHERE "draw"<15 AND "points"=18; |
## Task
Generate a SQL query to answer the following question:
`Which dance style had a draw smaller than 15 and 18 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "participants" (
"draw" real,
"dancers" text,
"dance_styles" text,
"place" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which dance style had a draw smaller than 15 and 18 points?`:
```sql
|
SELECT "away_team" FROM "round_5" WHERE "home_team_score"='16.19 (115)'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team when the home team scored 16.19 (115)?`
### 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 away team when the home team scored 16.19 (115)?`:
```sql
|
SELECT "away_team_score" FROM "round_5" WHERE "venue"='victoria park'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team's score for the match played at Victoria 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 away team's score for the match played at Victoria Park?`:
```sql
|
SELECT "venue" FROM "round_5" WHERE "home_team_score"='10.15 (75)'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue where the home team scored 10.15 (75)?`
### 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 venue where the home team scored 10.15 (75)?`:
```sql
|
SELECT "venue" FROM "round_5" WHERE "home_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What is Collingwood's home venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Collingwood's home venue?`:
```sql
|
SELECT "away_team_score" FROM "round_5" WHERE "home_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What was the away teams score when they played Carlton?`
### 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 away teams score when they played Carlton?`:
```sql
|
SELECT MAX("year") FROM "list_of_winners" WHERE "player"='candace parker'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest year featuring candace parker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_winners" (
"year" real,
"player" text,
"nationality" text,
"position_played" text,
"team_represented" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year featuring candace parker?`:
```sql
|
SELECT MAX("crowd") FROM "round_3" WHERE "home_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd when north melbourne is the home side?`
### 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 largest crowd when north melbourne is the home side?`:
```sql
|
SELECT "away_team" FROM "round_3" WHERE "home_team_score"='10.17 (77)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the away team when the home team scores 10.17 (77)?`
### 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 `Who is the away team when the home team scores 10.17 (77)?`:
```sql
|
SELECT "venue" FROM "round_3" WHERE "home_team_score"='12.12 (84)'; |
## Task
Generate a SQL query to answer the following question:
`What venue features a home team scoring 12.12 (84)?`
### 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 features a home team scoring 12.12 (84)?`:
```sql
|
SELECT "home_team" FROM "round_3" WHERE "home_team_score"='12.12 (84)'; |
## Task
Generate a SQL query to answer the following question:
`What home team scores 12.12 (84)?`
### 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 home team scores 12.12 (84)?`:
```sql
|
SELECT MIN("crowd") FROM "round_7" WHERE "venue"='victoria park'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd at victoria park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest crowd at victoria park?`:
```sql
|
SELECT "date" FROM "round_7" WHERE "away_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`What day was geelong the away side?`
### 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 day was geelong the away side?`:
```sql
|
SELECT "away_team" FROM "round_7" WHERE "away_team_score"='14.5 (89)'; |
## Task
Generate a SQL query to answer the following question:
`What away team scored 14.5 (89)?`
### 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 away team scored 14.5 (89)?`:
```sql
|
SELECT "stadium" FROM "round_2" WHERE "city"='brisbane'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the stadium in Brisbane?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the stadium in Brisbane?`:
```sql
|
SELECT "result" FROM "round_2" WHERE "score"='58-6'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the match that had a score of 58-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the match that had a score of 58-6?`:
```sql
|
SELECT "score" FROM "round_2" WHERE "result"='hunter mariners def. castleford tigers'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the match that had the result of Hunter Mariners def. Castleford Tigers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the match that had the result of Hunter Mariners def. Castleford Tigers?`:
```sql
|
SELECT "stadium" FROM "round_2" WHERE "score"='66-20'; |
## Task
Generate a SQL query to answer the following question:
`For the match ending in a score of 66-20, what was the stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the match ending in a score of 66-20, what was the stadium?`:
```sql
|
SELECT "city" FROM "round_2" WHERE "stadium"='don valley stadium'; |
## Task
Generate a SQL query to answer the following question:
`In what city is the Don Valley Stadium located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what city is the Don Valley Stadium located?`:
```sql
|
SELECT "meet" FROM "men" WHERE "event"='100m backstroke'; |
## Task
Generate a SQL query to answer the following question:
`Which championship was the 100m backstroke performed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"event" text,
"time" text,
"nationality" text,
"date" text,
"meet" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship was the 100m backstroke performed?`:
```sql
|
SELECT "event" FROM "men" WHERE "time"='7:45.67'; |
## Task
Generate a SQL query to answer the following question:
`What event has a time of 7:45.67?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"event" text,
"time" text,
"nationality" text,
"date" text,
"meet" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event has a time of 7:45.67?`:
```sql
|
SELECT "nationality" FROM "winners" WHERE "year">2009 AND "position"='power forward'; |
## Task
Generate a SQL query to answer the following question:
`What nationality has a year larger than 2009 with a position of power forward?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"player" text,
"nationality" text,
"position" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality has a year larger than 2009 with a position of power forward?`:
```sql
|
SELECT "player" FROM "winners" WHERE "team"='chicago bulls'; |
## Task
Generate a SQL query to answer the following question:
`Who plays for the chicago bulls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"player" text,
"nationality" text,
"position" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who plays for the chicago bulls?`:
```sql
|
SELECT "main_places" FROM "population_by_island" WHERE "regions"='streymoy' AND "area">6.1; |
## Task
Generate a SQL query to answer the following question:
`What are the main places for the streymoy region with an area of larger than 6.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_by_island" (
"name" text,
"area" real,
"inhabitants" real,
"people_per_km" real,
"main_places" text,
"regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the main places for the streymoy region with an area of larger than 6.1?`:
```sql
|
SELECT SUM("people_per_km") FROM "population_by_island" WHERE "regions"='sandoy' AND "area"=112.1; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of people per km2 for the sandoy region with an area of 112.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_by_island" (
"name" text,
"area" real,
"inhabitants" real,
"people_per_km" real,
"main_places" text,
"regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of people per km2 for the sandoy region with an area of 112.1?`:
```sql
|
SELECT AVG("week") FROM "exhibition_schedule" WHERE "attendance"='41,604'; |
## Task
Generate a SQL query to answer the following question:
`what is the week there were 41,604 people in attendance?`
### 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 week there were 41,604 people in attendance?`:
```sql
|
SELECT AVG("crowd") FROM "round_17" WHERE "home_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`What is the average crowd size for games with hawthorn as the home side?`
### 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 is the average crowd size for games with hawthorn as the home side?`:
```sql
|
SELECT "home_team_score" FROM "round_17" WHERE "venue"='glenferrie oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the home team's score 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 is the home team's score at glenferrie oval?`:
```sql
|
SELECT MIN("best") FROM "qualifying_results" WHERE "qual_2"='49.887'; |
## Task
Generate a SQL query to answer the following question:
`Who had the lowest Best time that also had a Qual 2 of 49.887?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the lowest Best time that also had a Qual 2 of 49.887?`:
```sql
|
SELECT "best" FROM "qualifying_results" WHERE "team"='cte racing-hvm' AND "qual_2"='50.312'; |
## Task
Generate a SQL query to answer the following question:
`What was CTE Racing-hvm's Best with a Qual 2 of 50.312?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was CTE Racing-hvm's Best with a Qual 2 of 50.312?`:
```sql
|
SELECT AVG("crowd") FROM "round_5" WHERE "away_team_score"='10.11 (71)'; |
## Task
Generate a SQL query to answer the following question:
`What was the average crowd size for the game where the away team scored 10.11 (71)?`
### 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 average crowd size for the game where the away team scored 10.11 (71)?`:
```sql
|
SELECT "away_team" FROM "round_5" WHERE "away_team_score"='18.8 (116)'; |
## Task
Generate a SQL query to answer the following question:
`Which Away team had a score of 18.8 (116)?`
### 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 `Which Away team had a score of 18.8 (116)?`:
```sql
|
SELECT "home_team_score" FROM "round_5" WHERE "away_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team score when essendon was the away team?`
### 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 when essendon was the away team?`:
```sql
|
SELECT "home_team_score" FROM "round_5" WHERE "away_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`When richmond was the Away team what was the score of the home team?`
### 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 `When richmond was the Away team what was the score of the home team?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.