output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MIN("goals_for") FROM "final_table" WHERE "team"='goole town' AND "position"<9; |
## Task
Generate a SQL query to answer the following question:
`W hat was the lowest Goals For when they played Team Goole Town and had a position lower than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `W hat was the lowest Goals For when they played Team Goole Town and had a position lower than 9?`:
```sql
|
SELECT "team" FROM "final_table" WHERE "drawn"<12 AND "position">3 AND "goals_against">85; |
## Task
Generate a SQL query to answer the following question:
`Which team has a position higher than 3, a Drawn lower than 12, and a Goals Against higher than 85?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a position higher than 3, a Drawn lower than 12, and a Goals Against higher than 85?`:
```sql
|
SELECT COUNT("goals_against") FROM "final_table" WHERE "points_1"=44 AND "goals_for">65; |
## Task
Generate a SQL query to answer the following question:
`When the Points 1 were 44 and the Goals For were larger than 65, what was the total number of Goals Against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the Points 1 were 44 and the Goals For were larger than 65, what was the total number of Goals Against?`:
```sql
|
SELECT "year_named" FROM "rupes" WHERE "diameter_km"=729; |
## Task
Generate a SQL query to answer the following question:
`What was the year when the diameter was 729 km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rupes" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"year_named" real,
"name_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year when the diameter was 729 km?`:
```sql
|
SELECT MAX("diameter_km") FROM "rupes" WHERE "latitude"='43.5s'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest diameter when the latitude is 43.5s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rupes" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"year_named" real,
"name_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest diameter when the latitude is 43.5s?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "attendance"='75,891'; |
## Task
Generate a SQL query to answer the following question:
`On what Date was the Attendance 75,891?`
### 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 `On what Date was the Attendance 75,891?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "date"='september 5, 1993'; |
## Task
Generate a SQL query to answer the following question:
`What was the Week on September 5, 1993?`
### 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 Week on September 5, 1993?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='october 31, 1993'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Opponent on October 31, 1993?`
### 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 `Who was the Opponent on October 31, 1993?`:
```sql
|
SELECT "date_from" FROM "list_of_street_railways_in_canada" WHERE "traction_type"='electric' AND "location"='calgary'; |
## Task
Generate a SQL query to answer the following question:
`what is the date for traction type electric with calgary location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_street_railways_in_canada" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date for traction type electric with calgary location?`:
```sql
|
SELECT "date_to" FROM "list_of_street_railways_in_canada" WHERE "date_from"='30 sep 1913'; |
## Task
Generate a SQL query to answer the following question:
`Which date has date started from 30 Sep 1913?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_street_railways_in_canada" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has date started from 30 Sep 1913?`:
```sql
|
SELECT "1st_leg" FROM "dnepr_mogilev_in_europe" WHERE "round"='2q'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg of 2q round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dnepr_mogilev_in_europe" (
"season" text,
"competition" text,
"round" text,
"club" text,
"1st_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st leg of 2q round?`:
```sql
|
SELECT "competition" FROM "dnepr_mogilev_in_europe" WHERE "club"='villareal'; |
## Task
Generate a SQL query to answer the following question:
`What competition has the club villareal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dnepr_mogilev_in_europe" (
"season" text,
"competition" text,
"round" text,
"club" text,
"1st_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition has the club villareal?`:
```sql
|
SELECT "competition" FROM "dnepr_mogilev_in_europe" WHERE "club"='aik'; |
## Task
Generate a SQL query to answer the following question:
`Which competition has aik club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dnepr_mogilev_in_europe" (
"season" text,
"competition" text,
"round" text,
"club" text,
"1st_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition has aik club?`:
```sql
|
SELECT "round" FROM "dnepr_mogilev_in_europe" WHERE "club"='bečej'; |
## Task
Generate a SQL query to answer the following question:
`What is the round of club bečej?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dnepr_mogilev_in_europe" (
"season" text,
"competition" text,
"round" text,
"club" text,
"1st_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round of club bečej?`:
```sql
|
SELECT "1st_leg" FROM "dnepr_mogilev_in_europe" WHERE "competition"='uefa intertoto cup' AND "club"='silkeborg'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg of the uefa intertoto cup competition with club silkeborg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dnepr_mogilev_in_europe" (
"season" text,
"competition" text,
"round" text,
"club" text,
"1st_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st leg of the uefa intertoto cup competition with club silkeborg?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='jason kidd (8)' AND "score"='w 105–95 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high rebounds when the score was w 105–95 (ot) and Jason Kidd (8) had the high assists?`
### 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 `Who had the high rebounds when the score was w 105–95 (ot) and Jason Kidd (8) had the high assists?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "score"='l 87–115 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`Which team scored l 87–115 (ot)?`
### 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 `Which team scored l 87–115 (ot)?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "game"=56; |
## Task
Generate a SQL query to answer the following question:
`What's the record of Game 56?`
### 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 `What's the record of Game 56?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "location_attendance"='energysolutions arena 19,911'; |
## Task
Generate a SQL query to answer the following question:
`Who was the team that played at Energysolutions Arena 19,911?`
### 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 `Who was the team that played at Energysolutions Arena 19,911?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "location_attendance"='american airlines center 20,223'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high assists when the game was at American Airlines Center 20,223?`
### 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 `Who had the high assists when the game was at American Airlines Center 20,223?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "record"='50–28'; |
## Task
Generate a SQL query to answer the following question:
`What team has a Record of 50–28?`
### 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 `What team has a Record of 50–28?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "game"=75; |
## Task
Generate a SQL query to answer the following question:
`What was the date of game 75?`
### 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 `What was the date of game 75?`:
```sql
|
SELECT "manufacturer" FROM "daytona_500_results" WHERE "year">1969 AND "finish"=34; |
## Task
Generate a SQL query to answer the following question:
`Which manufacturer was used after 1969 with a finish position of 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer was used after 1969 with a finish position of 34?`:
```sql
|
SELECT COUNT("attendance") FROM "playoffs" WHERE "date"='april 25'; |
## Task
Generate a SQL query to answer the following question:
`What is the total attendance on April 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total attendance on April 25?`:
```sql
|
SELECT "decision" FROM "playoffs" WHERE "attendance">'19,883'; |
## Task
Generate a SQL query to answer the following question:
`What is the decision of the game with an attendance greater than 19,883?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the decision of the game with an attendance greater than 19,883?`:
```sql
|
SELECT "to_par" FROM "final_leaderboard" WHERE "score"='76-73-67-69=285'; |
## Task
Generate a SQL query to answer the following question:
`When the score was 76-73-67-69=285 what was the To par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the score was 76-73-67-69=285 what was the To par?`:
```sql
|
SELECT "player" FROM "final_leaderboard" WHERE "to_par"='–6'; |
## Task
Generate a SQL query to answer the following question:
`Which player has a To par of –6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a To par of –6?`:
```sql
|
SELECT "memory_ram" FROM "models" WHERE "operating_system_version"='maemo 5'; |
## Task
Generate a SQL query to answer the following question:
`How much memory (RAM) does the Maemo 5 operating system have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"model" text,
"memory_ram" text,
"storage_flash" text,
"operating_system_version" text,
"memory_card" text,
"weight_dimensions" text,
"retail_availability" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much memory (RAM) does the Maemo 5 operating system have?`:
```sql
|
SELECT "operating_system_version" FROM "models" WHERE "storage_flash"='128mb'; |
## Task
Generate a SQL query to answer the following question:
`Which operating system has a storage (flash) of 128MB?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"model" text,
"memory_ram" text,
"storage_flash" text,
"operating_system_version" text,
"memory_card" text,
"weight_dimensions" text,
"retail_availability" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which operating system has a storage (flash) of 128MB?`:
```sql
|
SELECT "weight_dimensions" FROM "models" WHERE "model"='n800'; |
## Task
Generate a SQL query to answer the following question:
`What is the weight and dimensions of an N800?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"model" text,
"memory_ram" text,
"storage_flash" text,
"operating_system_version" text,
"memory_card" text,
"weight_dimensions" text,
"retail_availability" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight and dimensions of an N800?`:
```sql
|
SELECT "operating_system_version" FROM "models" WHERE "memory_ram"='1gb (mobile ddr)'; |
## Task
Generate a SQL query to answer the following question:
`Which operating system has 1GB (mobile ddr) memory (RAM)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"model" text,
"memory_ram" text,
"storage_flash" text,
"operating_system_version" text,
"memory_card" text,
"weight_dimensions" text,
"retail_availability" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which operating system has 1GB (mobile ddr) memory (RAM)?`:
```sql
|
SELECT COUNT("pick") FROM "draft_picks" WHERE "round">1 AND "player"='jim stack'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Pick, when Round is greater than 1, and when Player is "Jim Stack"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Pick, when Round is greater than 1, and when Player is "Jim Stack"?`:
```sql
|
SELECT MIN("round") FROM "draft_picks" WHERE "college"='washington state' AND "pick"<48; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Round, when College is "Washington State", and when Pick is less than 48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Round, when College is "Washington State", and when Pick is less than 48?`:
```sql
|
SELECT "college" FROM "draft_picks" WHERE "round">1 AND "pick">163; |
## Task
Generate a SQL query to answer the following question:
`What is College, when Round is greater than 1, and when Pick is greater than 163?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is College, when Round is greater than 1, and when Pick is greater than 163?`:
```sql
|
SELECT "location_numsites_global_local" FROM "root_server_addresses" WHERE "software"='bind' AND "i_pv6_address"='2001:503:c27::2:30'; |
## Task
Generate a SQL query to answer the following question:
`What is the location for the software of BIND and an IPv6 address of 2001:503:c27::2:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "root_server_addresses" (
"letter" text,
"i_pv6_address" text,
"as_number" text,
"operator" text,
"location_numsites_global_local" text,
"software" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location for the software of BIND and an IPv6 address of 2001:503:c27::2:30?`:
```sql
|
SELECT "i_pv6_address" FROM "root_server_addresses" WHERE "location_numsites_global_local"='distributed using anycast 8/0' AND "letter"='a'; |
## Task
Generate a SQL query to answer the following question:
`Which IPv6 address had a location of distributed using anycast 8/0 and a letter of A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "root_server_addresses" (
"letter" text,
"i_pv6_address" text,
"as_number" text,
"operator" text,
"location_numsites_global_local" text,
"software" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IPv6 address had a location of distributed using anycast 8/0 and a letter of A?`:
```sql
|
SELECT "i_pv6_address" FROM "root_server_addresses" WHERE "operator"='wide project'; |
## Task
Generate a SQL query to answer the following question:
`Which IPv6 address has an operator of Wide project?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "root_server_addresses" (
"letter" text,
"i_pv6_address" text,
"as_number" text,
"operator" text,
"location_numsites_global_local" text,
"software" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IPv6 address has an operator of Wide project?`:
```sql
|
SELECT "letter" FROM "root_server_addresses" WHERE "operator"='verisign' AND "as_number"='as26415'; |
## Task
Generate a SQL query to answer the following question:
`Which letter has an operator of VeriSign and an AS-number of AS26415?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "root_server_addresses" (
"letter" text,
"i_pv6_address" text,
"as_number" text,
"operator" text,
"location_numsites_global_local" text,
"software" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which letter has an operator of VeriSign and an AS-number of AS26415?`:
```sql
|
SELECT "location_numsites_global_local" FROM "root_server_addresses" WHERE "as_number"='n/a'; |
## Task
Generate a SQL query to answer the following question:
`Which location has an AS-number of N/A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "root_server_addresses" (
"letter" text,
"i_pv6_address" text,
"as_number" text,
"operator" text,
"location_numsites_global_local" text,
"software" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has an AS-number of N/A?`:
```sql
|
SELECT "letter" FROM "root_server_addresses" WHERE "operator"='defense information systems agency'; |
## Task
Generate a SQL query to answer the following question:
`Which letter has an operator of the Defense Information Systems Agency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "root_server_addresses" (
"letter" text,
"i_pv6_address" text,
"as_number" text,
"operator" text,
"location_numsites_global_local" text,
"software" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which letter has an operator of the Defense Information Systems Agency?`:
```sql
|
SELECT SUM("all_time") FROM "champions_by_country" WHERE "amateur_era"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of All-Time, when Amateur Era is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "champions_by_country" (
"country" text,
"amateur_era" real,
"open_era" real,
"all_time" real,
"first_title" real,
"last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of All-Time, when Amateur Era is less than 0?`:
```sql
|
SELECT MIN("all_time") FROM "champions_by_country" WHERE "first_title"<1974 AND "last_title"=1933 AND "amateur_era">2; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest All-Time, when First Title is before 1974, when Last Title is "1933", and when Amateur Era is greater than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "champions_by_country" (
"country" text,
"amateur_era" real,
"open_era" real,
"all_time" real,
"first_title" real,
"last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest All-Time, when First Title is before 1974, when Last Title is "1933", and when Amateur Era is greater than 2?`:
```sql
|
SELECT MIN("all_time") FROM "champions_by_country" WHERE "first_title"=2007 AND "amateur_era">0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest All-Time, when First Title is "2007, and when Amateur Era is greater than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "champions_by_country" (
"country" text,
"amateur_era" real,
"open_era" real,
"all_time" real,
"first_title" real,
"last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest All-Time, when First Title is "2007, and when Amateur Era is greater than 0?`:
```sql
|
SELECT MIN("first_title") FROM "champions_by_country" WHERE "all_time">1 AND "country"='united states (usa)' AND "amateur_era">17; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest First Title, when All-Time is greater than 1, when Country is "United States (USA)", and when Amateur Era is greater than 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "champions_by_country" (
"country" text,
"amateur_era" real,
"open_era" real,
"all_time" real,
"first_title" real,
"last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest First Title, when All-Time is greater than 1, when Country is "United States (USA)", and when Amateur Era is greater than 17?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "to_par"='+2' AND "score"='70-72-73=215'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a To par of +2 and a Score of 70-72-73=215?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place of the Player with a To par of +2 and a Score of 70-72-73=215?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "place"='t6' AND "player"='robert karlsson'; |
## Task
Generate a SQL query to answer the following question:
`From what Country is T6 Place Player Robert Karlsson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `From what Country is T6 Place Player Robert Karlsson?`:
```sql
|
SELECT "to_par" FROM "third_round" WHERE "place"='t4' AND "score"='72-69-73=214'; |
## Task
Generate a SQL query to answer the following question:
`What is the To par of the T4 Place Player with a Score of 72-69-73=214?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par of the T4 Place Player with a Score of 72-69-73=214?`:
```sql
|
SELECT "to_par" FROM "third_round" WHERE "score"='70-72-73=215'; |
## Task
Generate a SQL query to answer the following question:
`What is the To par of the Player with a Score of 70-72-73=215?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par of the Player with a Score of 70-72-73=215?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "player"='rocco mediate'; |
## Task
Generate a SQL query to answer the following question:
`What Country is Rocco Mediate from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Country is Rocco Mediate from?`:
```sql
|
SELECT "to_par" FROM "first_round" WHERE "player"='mike smith'; |
## Task
Generate a SQL query to answer the following question:
`What is Mike Smith's To par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mike Smith's To par?`:
```sql
|
SELECT "country" FROM "first_round" WHERE "score"=66 AND "player"='scott hoch'; |
## Task
Generate a SQL query to answer the following question:
`What is Scott Hoch with a Score of 66 Country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Scott Hoch with a Score of 66 Country?`:
```sql
|
SELECT "player" FROM "first_round" WHERE "score">66 AND "place"='t4'; |
## Task
Generate a SQL query to answer the following question:
`What is the T4 Place Player with a Score of more than 66?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the T4 Place Player with a Score of more than 66?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='mutual consent' AND "date_of_appointment"='2 november 2009'; |
## Task
Generate a SQL query to answer the following question:
`What is the vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent?`:
```sql
|
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_vacancy"='20 september 2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure for the vacancy date of 20 September 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of departure for the vacancy date of 20 September 2009?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "date_of_appointment"='11 march 2010'; |
## Task
Generate a SQL query to answer the following question:
`What was the vacancy date of the manager appointed on 11 March 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the vacancy date of the manager appointed on 11 March 2010?`:
```sql
|
SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "overall"=38; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick number where the overall pick number was 38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick number where the overall pick number was 38?`:
```sql
|
SELECT "position" FROM "washington_redskins_draft_history" WHERE "round"=22; |
## Task
Generate a SQL query to answer the following question:
`What was the position of the player who was picked in round 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the player who was picked in round 22?`:
```sql
|
SELECT "call_sign" FROM "translators" WHERE "erp_w"=99; |
## Task
Generate a SQL query to answer the following question:
`What was the call sign for ERP W of 99?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the call sign for ERP W of 99?`:
```sql
|
SELECT "team_1" FROM "third_qualifying_round" WHERE "team_2"='karabakh'; |
## Task
Generate a SQL query to answer the following question:
`What is the team 1 in the match with a team 2 of Karabakh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_qualifying_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team 1 in the match with a team 2 of Karabakh?`:
```sql
|
SELECT "round" FROM "nfl_draft" WHERE "pick"=63; |
## Task
Generate a SQL query to answer the following question:
`What is the round of pick 63?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round of pick 63?`:
```sql
|
SELECT MIN("round") FROM "nfl_draft" WHERE "player"='chris burkett'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest round of player chris burkett?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round of player chris burkett?`:
```sql
|
SELECT AVG("pick") FROM "nfl_draft" WHERE "round"=4 AND "school_club_team"='kutztown state'; |
## Task
Generate a SQL query to answer the following question:
`What is the average pick of school/club team kutztown state with a round 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pick of school/club team kutztown state with a round 4?`:
```sql
|
SELECT "draw_pct" FROM "statistics" WHERE "matches">110 AND "draw">59 AND "lose_pct"='18.5792%'; |
## Task
Generate a SQL query to answer the following question:
`What is the draw % with more than 110 matches, more than 59 draws, and a losing % of 18.5792%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"name" text,
"seasons" real,
"matches" real,
"win_pct" text,
"draw" real,
"draw_pct" text,
"lose" real,
"lose_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the draw % with more than 110 matches, more than 59 draws, and a losing % of 18.5792%?`:
```sql
|
SELECT AVG("matches") FROM "statistics" WHERE "name"='leonardo' AND "seasons">1; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of matches of leonardo in seasons after 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"name" text,
"seasons" real,
"matches" real,
"win_pct" text,
"draw" real,
"draw_pct" text,
"lose" real,
"lose_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of matches of leonardo in seasons after 1?`:
```sql
|
SELECT AVG("membership") FROM "table" WHERE "pct_lds"='3.33%' AND "branches"<47; |
## Task
Generate a SQL query to answer the following question:
`What is the average membership with 3.33% LDS and less than 47 branches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"state" text,
"membership" real,
"population" real,
"pct_lds" text,
"wards" real,
"branches" real,
"total_congregations" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average membership with 3.33% LDS and less than 47 branches?`:
```sql
|
SELECT "2005" FROM "performance_timeline" WHERE "2003"='a' AND "2007"='2r' AND "2012"='3r'; |
## Task
Generate a SQL query to answer the following question:
`what is 2005 when 2003 is A, 2007 is 2r and 2012 is 3r?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2005 when 2003 is A, 2007 is 2r and 2012 is 3r?`:
```sql
|
SELECT "2004" FROM "performance_timeline" WHERE "tournament"='paris masters'; |
## Task
Generate a SQL query to answer the following question:
`what is 2004 when the tournament is paris masters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2004 when the tournament is paris masters?`:
```sql
|
SELECT "2009" FROM "performance_timeline" WHERE "2004"='107'; |
## Task
Generate a SQL query to answer the following question:
`what is 2009 when 2004 is 107?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2009 when 2004 is 107?`:
```sql
|
SELECT "2003" FROM "performance_timeline" WHERE "2005"='did not qualify'; |
## Task
Generate a SQL query to answer the following question:
`what is 2003 when 2005 is did not qualify?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2003 when 2005 is did not qualify?`:
```sql
|
SELECT "2012" FROM "performance_timeline" WHERE "tournament"='win %'; |
## Task
Generate a SQL query to answer the following question:
`what is 2012 when the tournament is win %?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2012 when the tournament is win %?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='february 2'; |
## Task
Generate a SQL query to answer the following question:
`What was the record on February 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on February 2?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "date"='february 2'; |
## Task
Generate a SQL query to answer the following question:
`What was the location of the game on February 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the game on February 2?`:
```sql
|
SELECT COUNT("year") FROM "accolades" WHERE "title"='black swan' AND "award"='gotham awards'; |
## Task
Generate a SQL query to answer the following question:
`What year was Black Swan up for the Gotham Awards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accolades" (
"year" real,
"award" text,
"category" text,
"title" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Black Swan up for the Gotham Awards?`:
```sql
|
SELECT MIN("year") FROM "accolades" WHERE "title"='requiem for a dream' AND "category"='best director'; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest year in which Requiem for a Dream was in the running for Best Director?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accolades" (
"year" real,
"award" text,
"category" text,
"title" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year in which Requiem for a Dream was in the running for Best Director?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "location"='fleetcenter' AND "date"='fri. apr. 5'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Location of fleetcenter, and the Date of fri. apr. 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Location of fleetcenter, and the Date of fri. apr. 5?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "game"<76; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Game smaller than 76?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Game smaller than 76?`:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "opponent"='atlanta hawks'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the highest Game that has the Opponent of atlanta hawks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the highest Game that has the Opponent of atlanta hawks?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "opponent"='miami heat'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Game that has the Opponent of miami heat?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Game that has the Opponent of miami heat?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "score"='100-105'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Score of 100-105?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Score of 100-105?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "location_attendance"='delta center/19,911' AND "date"='dec 6'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Location/Attendance of delta center/19,911 on dec 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Location/Attendance of delta center/19,911 on dec 6?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "game"='17'; |
## Task
Generate a SQL query to answer the following question:
`What is the Record for Game 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record for Game 17?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "date"='dec 14'; |
## Task
Generate a SQL query to answer the following question:
`What is the Location/Attendance on Dec 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location/Attendance on Dec 14?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='dec 10'; |
## Task
Generate a SQL query to answer the following question:
`Which Record is dated Dec 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record is dated Dec 10?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "date"='dec 2'; |
## Task
Generate a SQL query to answer the following question:
`What was the Location/Attendance on Dec 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Location/Attendance on Dec 2?`:
```sql
|
SELECT "rider" FROM "superbike_race_1_classification" WHERE "bike"='honda cbr1000rr' AND "laps"<22 AND "time"='+2 laps'; |
## Task
Generate a SQL query to answer the following question:
`Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?`:
```sql
|
SELECT MAX("grid") FROM "superbike_race_1_classification" WHERE "time"='+45.162'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest grid when the time is +45.162?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest grid when the time is +45.162?`:
```sql
|
SELECT AVG("grid") FROM "superbike_race_1_classification" WHERE "bike"='suzuki gsx-r1000' AND "rider"='fonsi nieto'; |
## Task
Generate a SQL query to answer the following question:
`What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000?`:
```sql
|
SELECT SUM("grid") FROM "superbike_race_1_classification" WHERE "rider"='shinichi nakatomi'; |
## Task
Generate a SQL query to answer the following question:
`How many grids did Shinichi Nakatomi ride in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many grids did Shinichi Nakatomi ride in?`:
```sql
|
SELECT "tries_against" FROM "2009_10_table" WHERE "losing_bonus"='9'; |
## Task
Generate a SQL query to answer the following question:
`How many tries against have a losing bonus of 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_10_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries against have a losing bonus of 9?`:
```sql
|
SELECT "points_for" FROM "2009_10_table" WHERE "lost"='15'; |
## Task
Generate a SQL query to answer the following question:
`How many points were there for 15 losses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_10_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were there for 15 losses?`:
```sql
|
SELECT "played" FROM "2009_10_table" WHERE "points_against"='271'; |
## Task
Generate a SQL query to answer the following question:
`For which play was the points 271?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_10_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which play was the points 271?`:
```sql
|
SELECT "points" FROM "2009_10_table" WHERE "try_bonus"='2'; |
## Task
Generate a SQL query to answer the following question:
`How many points were there when the try bonus was 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_10_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were there when the try bonus was 2?`:
```sql
|
SELECT "2007_08_season" FROM "teams" WHERE "club"='genoa c.f.c.'; |
## Task
Generate a SQL query to answer the following question:
`Which 2007–08 season has a Club of genoa c.f.c.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007–08 season has a Club of genoa c.f.c.?`:
```sql
|
SELECT "city" FROM "teams" WHERE "stadium"='stadio artemio franchi, florence'; |
## Task
Generate a SQL query to answer the following question:
`Which City has a Stadium of stadio artemio franchi, florence?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Stadium of stadio artemio franchi, florence?`:
```sql
|
SELECT "description" FROM "list_of_natural_monuments" WHERE "reserve"='half moon caye'; |
## Task
Generate a SQL query to answer the following question:
`What is the description when the reserve is Half Moon Caye?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_natural_monuments" (
"reserve" text,
"district" text,
"iucn" text,
"co_management" text,
"est" real,
"description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the description when the reserve is Half Moon Caye?`:
```sql
|
SELECT "district" FROM "list_of_natural_monuments" WHERE "iucn"='iii' AND "est"=1998; |
## Task
Generate a SQL query to answer the following question:
`Which district has an IUCN of iii and was established in 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_natural_monuments" (
"reserve" text,
"district" text,
"iucn" text,
"co_management" text,
"est" real,
"description" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which district has an IUCN of iii and was established in 1998?`:
```sql
|
SELECT "iucn" FROM "list_of_natural_monuments" WHERE "district"='cayo' AND "reserve"='actun tunichil muknal'; |
## Task
Generate a SQL query to answer the following question:
`What is the IUNC of district of Cayo and reserve of Actun Tunichil Muknal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_natural_monuments" (
"reserve" text,
"district" text,
"iucn" text,
"co_management" text,
"est" real,
"description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IUNC of district of Cayo and reserve of Actun Tunichil Muknal?`:
```sql
|
SELECT SUM("avg_finish") FROM "nascar_nationwide_series" WHERE "poles"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of value for average finish with poles less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of value for average finish with poles less than 0?`:
```sql
|
SELECT AVG("starts") FROM "nascar_nationwide_series" WHERE "wins">0 AND "position"='32nd'; |
## Task
Generate a SQL query to answer the following question:
`What is the average start with wins larger than 0 and 32nd position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average start with wins larger than 0 and 32nd position?`:
```sql
|
SELECT AVG("sfc_in_lb_lbf_h") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "effective_exhaust_velocity_m_s">'29,553' AND "sfc_in_g_k_n_s"=17.1; |
## Task
Generate a SQL query to answer the following question:
`What is the average SFC in lb/(lbf·h) for engines with an Effective exhaust velocity (m/s) larger than 29,553, and a SFC in g/(kN·s) of 17.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" real,
"sfc_in_g_k_n_s" real,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average SFC in lb/(lbf·h) for engines with an Effective exhaust velocity (m/s) larger than 29,553, and a SFC in g/(kN·s) of 17.1?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.