output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "home_team_score" FROM "round_9" WHERE "home_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`What did the home team footscray score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the home team footscray score?`:
```sql
|
SELECT COUNT("crowd") FROM "round_9" WHERE "home_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`What was the total crowd size for the him team footscray?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total crowd size for the him team footscray?`:
```sql
|
SELECT "home_team" FROM "round_10" WHERE "venue"='corio oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home team at corio oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team at corio oval?`:
```sql
|
SELECT "away_team_score" FROM "round_10" WHERE "crowd">'22,000' AND "home_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team score when the crowd is larger than 22,000 and hawthorn is the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team score when the crowd is larger than 22,000 and hawthorn is the home team?`:
```sql
|
SELECT "livery" FROM "list_of_great_central_railway_locomotive" WHERE "date"<1936 AND "description"='gresley rf'; |
## Task
Generate a SQL query to answer the following question:
`What livery was worn on the date before 1936, with the description of Gresley RF?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_great_central_railway_locomotive" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What livery was worn on the date before 1936, with the description of Gresley RF?`:
```sql
|
SELECT "number_name" FROM "list_of_great_central_railway_locomotive" WHERE "description"='gresley rb' AND "date"<1937; |
## Task
Generate a SQL query to answer the following question:
`Which number and name has the description Gresley RB and a date before 1937?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_great_central_railway_locomotive" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which number and name has the description Gresley RB and a date before 1937?`:
```sql
|
SELECT "owner_s" FROM "list_of_great_central_railway_locomotive" WHERE "date"<1940 AND "number_name"='no. 1222'; |
## Task
Generate a SQL query to answer the following question:
`Who is the owner before 1940, who had a number and name of no. 1222?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_great_central_railway_locomotive" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the owner before 1940, who had a number and name of no. 1222?`:
```sql
|
SELECT "type" FROM "stichting_academisch_rekencentrum_amster" WHERE "scratch"='750 gb'; |
## Task
Generate a SQL query to answer the following question:
`What type has a scratch of 750 GB?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stichting_academisch_rekencentrum_amster" (
"number" real,
"type" text,
"clock" text,
"scratch" text,
"memory" text,
"cache" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type has a scratch of 750 GB?`:
```sql
|
SELECT "cache" FROM "stichting_academisch_rekencentrum_amster" WHERE "memory"='24 gb qpi 5.86 gt/s' AND "number"=64; |
## Task
Generate a SQL query to answer the following question:
`What is the Cache for a Number 64 with a Memory of 24 gb qpi 5.86 gt/s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stichting_academisch_rekencentrum_amster" (
"number" real,
"type" text,
"clock" text,
"scratch" text,
"memory" text,
"cache" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Cache for a Number 64 with a Memory of 24 gb qpi 5.86 gt/s?`:
```sql
|
SELECT "memory" FROM "stichting_academisch_rekencentrum_amster" WHERE "clock"='2.26ghz' AND "number"=32; |
## Task
Generate a SQL query to answer the following question:
`What is the Memory for a Number 32 with a Clock of 2.26ghz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stichting_academisch_rekencentrum_amster" (
"number" real,
"type" text,
"clock" text,
"scratch" text,
"memory" text,
"cache" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Memory for a Number 32 with a Clock of 2.26ghz?`:
```sql
|
SELECT "place_of_birth" FROM "forwards" WHERE "acquired"=2008; |
## Task
Generate a SQL query to answer the following question:
`Of those acquired in 2008, where were they born?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "forwards" (
"player" text,
"shoots" text,
"position" text,
"acquired" real,
"place_of_birth" text,
"joined_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Of those acquired in 2008, where were they born?`:
```sql
|
SELECT "shoots" FROM "forwards" WHERE "acquired"=2010 AND "player"='matthew myers'; |
## Task
Generate a SQL query to answer the following question:
`What is the shooting preference of Matthew Myers, acquired in 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "forwards" (
"player" text,
"shoots" text,
"position" text,
"acquired" real,
"place_of_birth" text,
"joined_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the shooting preference of Matthew Myers, acquired in 2010?`:
```sql
|
SELECT "acquired" FROM "forwards" WHERE "player"='bruce graham'; |
## Task
Generate a SQL query to answer the following question:
`In what year was player Bruce Graham acquired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "forwards" (
"player" text,
"shoots" text,
"position" text,
"acquired" real,
"place_of_birth" text,
"joined_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was player Bruce Graham acquired?`:
```sql
|
SELECT "d_43" FROM "as_a_result_of_the_elections" WHERE "r_51"='r 30'; |
## Task
Generate a SQL query to answer the following question:
`Name th D 43 √ when R 51 + is r 30`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "as_a_result_of_the_elections" (
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45_o" text,
"d_46_o" text,
"r_53" text,
"r_52" text,
"r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name th D 43 √ when R 51 + is r 30`:
```sql
|
SELECT "r_53" FROM "as_a_result_of_the_elections" WHERE "d_42"='d 17'; |
## Task
Generate a SQL query to answer the following question:
`Name the R 53 + which has a D 42 √ of d 17`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "as_a_result_of_the_elections" (
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45_o" text,
"d_46_o" text,
"r_53" text,
"r_52" text,
"r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the R 53 + which has a D 42 √ of d 17`:
```sql
|
SELECT "d_45_o" FROM "as_a_result_of_the_elections" WHERE "r_51"='d 30'; |
## Task
Generate a SQL query to answer the following question:
`Name the D 45 O which has R 51 + of d 30`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "as_a_result_of_the_elections" (
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45_o" text,
"d_46_o" text,
"r_53" text,
"r_52" text,
"r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 45 O which has R 51 + of d 30`:
```sql
|
SELECT "d_42" FROM "as_a_result_of_the_elections" WHERE "d_44"='r 36 √'; |
## Task
Generate a SQL query to answer the following question:
`Name the D 42 √ when it has D 44 √ of r 36 √`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "as_a_result_of_the_elections" (
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45_o" text,
"d_46_o" text,
"r_53" text,
"r_52" text,
"r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 42 √ when it has D 44 √ of r 36 √`:
```sql
|
SELECT "d_45_o" FROM "as_a_result_of_the_elections" WHERE "d_46_o"='d 26'; |
## Task
Generate a SQL query to answer the following question:
`Name the D 45 O that has D 46 O of d 26`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "as_a_result_of_the_elections" (
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45_o" text,
"d_46_o" text,
"r_53" text,
"r_52" text,
"r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 45 O that has D 46 O of d 26`:
```sql
|
SELECT MIN("goals_against") FROM "final_table" WHERE "goal_difference"=7 AND "losses">13; |
## Task
Generate a SQL query to answer the following question:
`Name the least goals for goal difference of 7 and losses more than 13`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least goals for goal difference of 7 and losses more than 13`:
```sql
|
SELECT COUNT("position") FROM "final_table" WHERE "goal_difference">-17 AND "played"<38; |
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of positions with goal difference more than -17 and played less than 38`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the total number of positions with goal difference more than -17 and played less than 38`:
```sql
|
SELECT "venue" FROM "round_13" WHERE "away_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Where did Melbourne play as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Melbourne play as the away team?`:
```sql
|
SELECT MIN("crowd") FROM "round_13" WHERE "home_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance when South Melbourne played as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when South Melbourne played as the home team?`:
```sql
|
SELECT COUNT("crowd") FROM "round_13" WHERE "away_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance when Footscray played as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when Footscray played as the away team?`:
```sql
|
SELECT MIN("quantity") FROM "powlesland_and_mason" WHERE "manufacturer"='peckett and sons' AND "gwr_nos"='696, 779, 93 5'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "powlesland_and_mason" (
"manufacturer" text,
"type" text,
"quantity" real,
"p_m_nos" text,
"gwr_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons?`:
```sql
|
SELECT MIN("capacity") FROM "under_construction_stadium_s" WHERE "opening">2015 AND "city"='trabzon'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest capacity with an opening larger than 2015 in Trabzon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_construction_stadium_s" (
"stadium" text,
"capacity" real,
"city" text,
"club" text,
"opening" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest capacity with an opening larger than 2015 in Trabzon?`:
```sql
|
SELECT AVG("opening") FROM "under_construction_stadium_s" WHERE "stadium"='stadyum samsun' AND "capacity"<'34,658'; |
## Task
Generate a SQL query to answer the following question:
`What is the average opening at Stadyum Samsun with a capacity smaller than 34,658?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_construction_stadium_s" (
"stadium" text,
"capacity" real,
"city" text,
"club" text,
"opening" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average opening at Stadyum Samsun with a capacity smaller than 34,658?`:
```sql
|
SELECT "years_for_jazz" FROM "o" WHERE "school_club_team"='oregon state'; |
## Task
Generate a SQL query to answer the following question:
`What is the Years for Jazz Club at Oregon State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Years for Jazz Club at Oregon State?`:
```sql
|
SELECT "years_for_jazz" FROM "o" WHERE "player"='andre owens'; |
## Task
Generate a SQL query to answer the following question:
`Which player is Andre Owens in Year for Jazz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is Andre Owens in Year for Jazz?`:
```sql
|
SELECT "years_for_jazz" FROM "o" WHERE "school_club_team"='houston'; |
## Task
Generate a SQL query to answer the following question:
`What is the Year for Jazz club of Houston?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year for Jazz club of Houston?`:
```sql
|
SELECT "position" FROM "o" WHERE "player"='dan o''sullivan'; |
## Task
Generate a SQL query to answer the following question:
`What is position does Dan O'Sullivan play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is position does Dan O'Sullivan play?`:
```sql
|
SELECT "position" FROM "o" WHERE "school_club_team"='kansas'; |
## Task
Generate a SQL query to answer the following question:
`What position in the club team of Kansas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position in the club team of Kansas?`:
```sql
|
SELECT "years_for_jazz" FROM "o" WHERE "position"='center' AND "player"='greg ostertag'; |
## Task
Generate a SQL query to answer the following question:
`Who is the center position of Years for Jazz, Greg Ostertag?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the center position of Years for Jazz, Greg Ostertag?`:
```sql
|
SELECT "date" FROM "round_4" WHERE "away_team"='university'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date for the Away team University?`
### 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,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date for the Away team University?`:
```sql
|
SELECT "home_team" FROM "round_4" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home team score at junction oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team score at junction oval?`:
```sql
|
SELECT "away_team_score" FROM "round_4" WHERE "home_team_score"='5.10 (40)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Away team score when Home team score is at 5.10 (40)?`
### 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,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away team score when Home team score is at 5.10 (40)?`:
```sql
|
SELECT "date" FROM "round_4" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What Date did the Home team play in essendon?`
### 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,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date did the Home team play in essendon?`:
```sql
|
SELECT "country" FROM "other_officers" WHERE "of_1"='locotenent'; |
## Task
Generate a SQL query to answer the following question:
`What country has OF-1 Locotenent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_officers" (
"country" text,
"of_5" text,
"of_4" text,
"of_2" text,
"of_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has OF-1 Locotenent?`:
```sql
|
SELECT "country" FROM "other_officers" WHERE "of_1"='locotenent'; |
## Task
Generate a SQL query to answer the following question:
`What country has OF-1 Locotenent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_officers" (
"country" text,
"of_5" text,
"of_4" text,
"of_2" text,
"of_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has OF-1 Locotenent?`:
```sql
|
SELECT "of_5" FROM "other_officers" WHERE "country"='ghana'; |
## Task
Generate a SQL query to answer the following question:
`Which OF-5 is in Ghana?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_officers" (
"country" text,
"of_5" text,
"of_4" text,
"of_2" text,
"of_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which OF-5 is in Ghana?`:
```sql
|
SELECT "of_4" FROM "other_officers" WHERE "country"='albania'; |
## Task
Generate a SQL query to answer the following question:
`What is the OF-4 of Albania?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_officers" (
"country" text,
"of_5" text,
"of_4" text,
"of_2" text,
"of_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the OF-4 of Albania?`:
```sql
|
SELECT SUM("pick_num") FROM "round_five" WHERE "cfl_team"='edmonton eskimos'; |
## Task
Generate a SQL query to answer the following question:
`What is the total pick numbers for the CFL team Edmonton Eskimos?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total pick numbers for the CFL team Edmonton Eskimos?`:
```sql
|
SELECT "player" FROM "round_five" WHERE "college"='concordia'; |
## Task
Generate a SQL query to answer the following question:
`What p;layer attended Concordia College?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What p;layer attended Concordia College?`:
```sql
|
SELECT SUM("pick_num") FROM "round_five" WHERE "position"='ol'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of picks for the position of OL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of picks for the position of OL?`:
```sql
|
SELECT MAX("week") FROM "schedule" WHERE "result"='w 38-13'; |
## Task
Generate a SQL query to answer the following question:
`Name the highest week for result of w 38-13`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest week for result of w 38-13`:
```sql
|
SELECT "date" FROM "schedule" WHERE "attendance"='35,763'; |
## Task
Generate a SQL query to answer the following question:
`I want to know the date with attendance of 35,763`
### 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 `I want to know the date with attendance of 35,763`:
```sql
|
SELECT "series" FROM "bibliography" WHERE "editor"='dargaud' AND "albums"='27'; |
## Task
Generate a SQL query to answer the following question:
`Which series with a total of 27 albums did Dargaud edit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bibliography" (
"series" text,
"years" text,
"magazine" text,
"albums" text,
"editor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series with a total of 27 albums did Dargaud edit?`:
```sql
|
SELECT "years" FROM "bibliography" WHERE "magazine"='vaillant and pif'; |
## Task
Generate a SQL query to answer the following question:
`What years did the magazine Vaillant and Pif run?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bibliography" (
"series" text,
"years" text,
"magazine" text,
"albums" text,
"editor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did the magazine Vaillant and Pif run?`:
```sql
|
SELECT "state" FROM "list_of_current_republican_governors" WHERE "current_governor"='susana martinez'; |
## Task
Generate a SQL query to answer the following question:
`What state is susana martinez from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_current_republican_governors" (
"current_governor" text,
"state" text,
"past" text,
"took_office" real,
"current_term" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state is susana martinez from?`:
```sql
|
SELECT "away_team" FROM "round_4" WHERE "home_team_score"='15.14 (104)'; |
## Task
Generate a SQL query to answer the following question:
`Which away team has a Home team score of 15.14 (104)?`
### 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 `Which away team has a Home team score of 15.14 (104)?`:
```sql
|
SELECT "home_team_score" FROM "round_4" WHERE "away_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home team score when away team is hawthorn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team score when away team is hawthorn?`:
```sql
|
SELECT "league" FROM "club_career_stats" WHERE "team"='ordabasy-2'; |
## Task
Generate a SQL query to answer the following question:
`What league is ordabasy-2 in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_career_stats" (
"season" text,
"team" text,
"country" text,
"league" text,
"level" real
);
### SQL
Given the database schema, here is the SQL query that answers `What league is ordabasy-2 in?`:
```sql
|
SELECT AVG("crowd") FROM "round_15" WHERE "home_team_score"='10.13 (73)'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game where the home team scored 10.13 (73)?`
### 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 `How many people attended the game where the home team scored 10.13 (73)?`:
```sql
|
SELECT MIN("crowd") FROM "round_15" WHERE "home_team_score"='10.13 (73)'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of people that attended a game where the home team scored 10.13 (73)?`
### 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 amount of people that attended a game where the home team scored 10.13 (73)?`:
```sql
|
SELECT "date" FROM "round_15" WHERE "away_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`On what date was Richmond hosted as the 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 `On what date was Richmond hosted as the away team?`:
```sql
|
SELECT "hindu" FROM "religions_by_ethnic_group_uk_census_2001" WHERE "jewish"='source: uk 2001 census'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the Hindu with Jewish of source: uk 2001 census`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religions_by_ethnic_group_uk_census_2001" (
"ethnic_group" text,
"christian" text,
"buddhist" text,
"hindu" text,
"jewish" text,
"muslim" text,
"sikh" text,
"other" text,
"no_religion" text,
"not_stated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the Hindu with Jewish of source: uk 2001 census`:
```sql
|
SELECT "ethnic_group" FROM "religions_by_ethnic_group_uk_census_2001" WHERE "jewish"='0.47%'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the ethnic group for jewish of 0.47%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religions_by_ethnic_group_uk_census_2001" (
"ethnic_group" text,
"christian" text,
"buddhist" text,
"hindu" text,
"jewish" text,
"muslim" text,
"sikh" text,
"other" text,
"no_religion" text,
"not_stated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the ethnic group for jewish of 0.47%`:
```sql
|
SELECT "hindu" FROM "religions_by_ethnic_group_uk_census_2001" WHERE "ethnic_group"='white irish'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the Hindu for ethnic group for white irish`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religions_by_ethnic_group_uk_census_2001" (
"ethnic_group" text,
"christian" text,
"buddhist" text,
"hindu" text,
"jewish" text,
"muslim" text,
"sikh" text,
"other" text,
"no_religion" text,
"not_stated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the Hindu for ethnic group for white irish`:
```sql
|
SELECT "ethnic_group" FROM "religions_by_ethnic_group_uk_census_2001" WHERE "buddhist"='0.19%'; |
## Task
Generate a SQL query to answer the following question:
`Name the ethnic group with a buddhist of 0.19%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religions_by_ethnic_group_uk_census_2001" (
"ethnic_group" text,
"christian" text,
"buddhist" text,
"hindu" text,
"jewish" text,
"muslim" text,
"sikh" text,
"other" text,
"no_religion" text,
"not_stated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ethnic group with a buddhist of 0.19%`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "week"=8; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance of week 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,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of week 8?`:
```sql
|
SELECT "home_team_score" FROM "round_5" WHERE "away_team_score"='12.16 (88)'; |
## Task
Generate a SQL query to answer the following question:
`How many points did the home score at a game that had their opponents scoring 12.16 (88)?`
### 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 `How many points did the home score at a game that had their opponents scoring 12.16 (88)?`:
```sql
|
SELECT "home_team" FROM "round_5" WHERE "home_team_score"='13.14 (92)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team that had a score of 13.14 (92)?`
### 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 `Who was the home team that had a score of 13.14 (92)?`:
```sql
|
SELECT "away_team" FROM "round_5" WHERE "home_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent of carlton at their home game?`
### 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 `Who was the opponent of carlton at their home game?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "goal"=3; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for 3 goals`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for 3 goals`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='november 16'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for november 16`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for november 16`:
```sql
|
SELECT "date" FROM "round_13" WHERE "away_team_score"='22.17 (149)'; |
## Task
Generate a SQL query to answer the following question:
`On what date did an away team score 22.17 (149)?`
### 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 `On what date did an away team score 22.17 (149)?`:
```sql
|
SELECT "venue" FROM "round_13" WHERE "away_team_score"='19.13 (127)'; |
## Task
Generate a SQL query to answer the following question:
`In what Venue was the Away Team Score 19.13 (127)?`
### 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 `In what Venue was the Away Team Score 19.13 (127)?`:
```sql
|
SELECT "away_team_score" FROM "round_13" WHERE "home_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`What is the Away Team Score of the Hawthorn Home Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away Team Score of the Hawthorn Home Team?`:
```sql
|
SELECT "away_team_score" FROM "round_13" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What is the Away Team Score of the Collingwood Home Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away Team Score of the Collingwood Home Team?`:
```sql
|
SELECT "away_team" FROM "round_13" WHERE "venue"='arden street oval'; |
## Task
Generate a SQL query to answer the following question:
`What Away Team's venue is Arden Street 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 Away Team's venue is Arden Street Oval?`:
```sql
|
SELECT MIN("laps") FROM "classification" WHERE "time_retired"='accident' AND "grid">13; |
## Task
Generate a SQL query to answer the following question:
`Name the least Laps for accident and gird more than 13`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least Laps for accident and gird more than 13`:
```sql
|
SELECT MIN("grid") FROM "classification" WHERE "time_retired"='engine' AND "driver"='emerson fittipaldi' AND "laps">70; |
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest Grid for engine and driver of emerson fittipaldi with more laps than 70`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest Grid for engine and driver of emerson fittipaldi with more laps than 70`:
```sql
|
SELECT "home_team_score" FROM "round_16" WHERE "crowd">'15,184' AND "home_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`What the score when Richmond played at home and the crowd was larger than 15,184?`
### 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 the score when Richmond played at home and the crowd was larger than 15,184?`:
```sql
|
SELECT "venue" FROM "round_16" WHERE "away_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`In what venue was the away team South Melbourne?`
### 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 `In what venue was the away team South Melbourne?`:
```sql
|
SELECT "venue" FROM "round_12" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`Where did the away team Carlton play?`
### 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 did the away team Carlton play?`:
```sql
|
SELECT "home_team" FROM "round_12" WHERE "away_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`What home team played against Richmond?`
### 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 home team played against Richmond?`:
```sql
|
SELECT MIN("crowd") FROM "round_12" WHERE "venue"='punt road oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd size for punt road 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 smallest crowd size for punt road oval?`:
```sql
|
SELECT "venue" FROM "round_22" WHERE "home_team_score"='23.20 (158)'; |
## Task
Generate a SQL query to answer the following question:
`Where did a home team score 23.20 (158)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"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 a home team score 23.20 (158)?`:
```sql
|
SELECT "away_team" FROM "round_22" WHERE "away_team_score"='11.17 (83)'; |
## Task
Generate a SQL query to answer the following question:
`Which team scored 11.17 (83) while away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team scored 11.17 (83) while away?`:
```sql
|
SELECT MAX("number_of_people_1991") FROM "references" WHERE "percent_of_slovenes_1991"='14.4%'; |
## Task
Generate a SQL query to answer the following question:
`Which Number of people 1991 has a Percent of Slovenes 1991 of 14.4%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"village_german" text,
"village_slovenian" text,
"number_of_people_1991" real,
"percent_of_slovenes_1991" text,
"percent_of_slovenes_1951" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Number of people 1991 has a Percent of Slovenes 1991 of 14.4%?`:
```sql
|
SELECT "percent_of_slovenes_1951" FROM "references" WHERE "number_of_people_1991">8 AND "village_german"='plöschenberg'; |
## Task
Generate a SQL query to answer the following question:
`Which Percent of Slovenes 1951 has a Number of people 1991 larger than 8, and a Village (German) of plöschenberg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"village_german" text,
"village_slovenian" text,
"number_of_people_1991" real,
"percent_of_slovenes_1991" text,
"percent_of_slovenes_1951" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Percent of Slovenes 1951 has a Number of people 1991 larger than 8, and a Village (German) of plöschenberg?`:
```sql
|
SELECT "venue" FROM "round_14" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`Where was Collingwood's away game played?`
### 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 `Where was Collingwood's away game played?`:
```sql
|
SELECT "home_team_score" FROM "round_14" WHERE "away_team_score"='10.17 (77)'; |
## Task
Generate a SQL query to answer the following question:
`What did the home team score in the game that the away team scored 10.17 (77)?`
### 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 did the home team score in the game that the away team scored 10.17 (77)?`:
```sql
|
SELECT "away_team_score" FROM "round_14" 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_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 was the away team's score at Western Oval?`:
```sql
|
SELECT "date" FROM "round_14" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`When did Collingwood play an away game?`
### 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 `When did Collingwood play an away game?`:
```sql
|
SELECT COUNT("crowd") FROM "round_14" WHERE "away_team_score"='10.17 (77)'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game that the Away team scored 10.17 (77) points in?`
### 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 `How many people attended the game that the Away team scored 10.17 (77) points in?`:
```sql
|
SELECT "venue" FROM "round_14" WHERE "home_team_score"='11.9 (75)'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the home team score was 11.9 (75)?`
### 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 `Where was the game played when the home team score was 11.9 (75)?`:
```sql
|
SELECT "home_team" FROM "round_3" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`What team is based at junction oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is based at junction oval?`:
```sql
|
SELECT "home_team" FROM "round_3" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the team set at junction oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team set at junction oval?`:
```sql
|
SELECT "home_team" FROM "round_3" WHERE "home_team_score"='20.21 (141)'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team that scored 20.21 (141)?`
### 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 home team that scored 20.21 (141)?`:
```sql
|
SELECT COUNT("crowd") FROM "round_3" WHERE "home_team_score"='18.19 (127)'; |
## Task
Generate a SQL query to answer the following question:
`How big was the crowd in a game that had the home team score 18.19 (127)?`
### 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 `How big was the crowd in a game that had the home team score 18.19 (127)?`:
```sql
|
SELECT "venue" FROM "round_3" WHERE "home_team_score"='16.19 (115)'; |
## Task
Generate a SQL query to answer the following question:
`What was the place that had the home team score 16.19 (115)?`
### 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 place that had the home team score 16.19 (115)?`:
```sql
|
SELECT "driver" FROM "race" WHERE "grid"<12 AND "time_retired"='+ 3 laps'; |
## Task
Generate a SQL query to answer the following question:
`What driver has a grid under 12 with a Time/Retired of + 3 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What driver has a grid under 12 with a Time/Retired of + 3 laps?`:
```sql
|
SELECT MAX("grid") FROM "race" WHERE "constructor"='osella - alfa romeo' AND "laps">61; |
## Task
Generate a SQL query to answer the following question:
`What is the high grid for osella - alfa romeo, and a Laps larger than 61?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high grid for osella - alfa romeo, and a Laps larger than 61?`:
```sql
|
SELECT COUNT("pick") FROM "1985_nfl_draft" WHERE "name"='matt moran' AND "round">6; |
## Task
Generate a SQL query to answer the following question:
`How many picks does Matt Moran have altogether after round 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1985_nfl_draft" (
"round" real,
"pick" real,
"name" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many picks does Matt Moran have altogether after round 6?`:
```sql
|
SELECT "position" FROM "1985_nfl_draft" WHERE "round">8 AND "pick"<270; |
## Task
Generate a SQL query to answer the following question:
`What position after round 8 has a pick less than 270?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1985_nfl_draft" (
"round" real,
"pick" real,
"name" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position after round 8 has a pick less than 270?`:
```sql
|
SELECT COUNT("round") FROM "1985_nfl_draft" WHERE "school"='ucla'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of rounds that UCLA has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1985_nfl_draft" (
"round" real,
"pick" real,
"name" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of rounds that UCLA has?`:
```sql
|
SELECT MIN("round") FROM "1985_nfl_draft" WHERE "school"='georgia tech'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest round for Georgia Tech?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1985_nfl_draft" (
"round" real,
"pick" real,
"name" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round for Georgia Tech?`:
```sql
|
SELECT AVG("round") FROM "1985_nfl_draft" WHERE "school"='georgia tech' AND "pick">103; |
## Task
Generate a SQL query to answer the following question:
`What is the average round for Georgia Tech with a pick greater than 103?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1985_nfl_draft" (
"round" real,
"pick" real,
"name" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round for Georgia Tech with a pick greater than 103?`:
```sql
|
SELECT "player" FROM "girls_basketball_players_and_coaches_of_" WHERE "year"='2001-2002'; |
## Task
Generate a SQL query to answer the following question:
`Which player is featured for 2001-2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girls_basketball_players_and_coaches_of_" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is featured for 2001-2002?`:
```sql
|
SELECT "player" FROM "girls_basketball_players_and_coaches_of_" WHERE "hometown"='queens, ny'; |
## Task
Generate a SQL query to answer the following question:
`Which player is from Queens, NY?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girls_basketball_players_and_coaches_of_" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is from Queens, NY?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.