instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_43099 (
"Stage" text,
"Shooter" text,
"Time" real,
"Avg. Run" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which shooter's time is more than 8.97 and has a year prior to 2013?
### Response:
| SELECT "Shooter" FROM table_43099 WHERE "Time" > '8.97' AND "Year" < '2013' |
### Instruction:
CREATE TABLE table_26288 (
"Episode #" real,
"Prod #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Originalairdate" text,
"Filmed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What month and year was 'storm ... | SELECT "Filmed" FROM table_26288 WHERE "Title" = 'Storm Warning (part one)' |
### Instruction:
CREATE TABLE table_67574 (
"Status" text,
"Name" text,
"First Performance" text,
"Last Performance" text,
"Style" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the first performance for the ballet with peter mazurowski in ... | SELECT "First Performance" FROM table_67574 WHERE "Style" = 'ballet' AND "Status" = 'final cast' AND "Name" = 'peter mazurowski' |
### Instruction:
CREATE TABLE table_26905 (
"Team" text,
"Slogan" text,
"Match1" real,
"Match2" real,
"Match3" real,
"Match4" real,
"Match5" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for match 1 for t... | SELECT "Match1" FROM table_26905 WHERE "Team" = 'Eastern Tigers' |
### Instruction:
CREATE TABLE table_203_860 (
id number,
"rank" number,
"city" text,
"population (2011)" number,
"population (2001)" number,
"state/territory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the last city for population i... | SELECT "city" FROM table_203_860 ORDER BY "population (2001)" LIMIT 1 |
### Instruction:
CREATE TABLE table_name_17 (
laps INTEGER,
year VARCHAR,
co_drivers VARCHAR,
class VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of Laps for co-drivers of oliver gavin jan magnussen and class of gts with year less than ... | SELECT SUM(laps) FROM table_name_17 WHERE co_drivers = "oliver gavin jan magnussen" AND class = "gts" AND year < 2004 |
### Instruction:
CREATE TABLE table_17870 (
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Viewers(millions)" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total number of directors whose episodes... | SELECT COUNT("Director") FROM table_17870 WHERE "Viewers(millions)" = '9.14' |
### Instruction:
CREATE TABLE table_52214 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" text,
"Issue Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What artist had a mintage of 41,828 before year 2002?
### Response:
| SELECT "Artist" FROM table_52214 WHERE "Year" < '2002' AND "Mintage" = '41,828' |
### Instruction:
CREATE TABLE table_203_875 (
id number,
"#" number,
"name" text,
"birth and death" text,
"office started" text,
"office ended" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for how many years did hallgrimur sveinsson serve as t... | SELECT "office ended" - "office started" FROM table_203_875 WHERE "name" = 'hallgrimur sveinsson' |
### Instruction:
CREATE TABLE table_47667 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has magomedkhan gamzatkhanov as the opponent, and submission as the method?
... | SELECT "Record" FROM table_47667 WHERE "Opponent" = 'magomedkhan gamzatkhanov' AND "Method" = 'submission' |
### Instruction:
CREATE TABLE table_47590 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest point total when the grid is larger than 5 and th... | SELECT MIN("Points") FROM table_47590 WHERE "Grid" > '5' AND "Time/Retired" = 'fire' |
### Instruction:
CREATE TABLE table_43519 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- S bastien Bourdais of the team Newman/Haas Racing has what qual 1?
### Response:
| SELECT "Qual 1" FROM table_43519 WHERE "Team" = 'newman/haas racing' AND "Name" = 'sébastien bourdais' |
### Instruction:
CREATE TABLE table_37531 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Week that has a Date of december 5, 1959 had w... | SELECT "Week" FROM table_37531 WHERE "Date" = 'december 5, 1959' |
### Instruction:
CREATE TABLE table_14968 (
"Name" text,
"Tenure" text,
"Courtesy title" text,
"Court Rank" text,
"Revenues" text,
"Lineage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lineage of oka tadatomo ( )?
### Response:
| SELECT "Lineage" FROM table_14968 WHERE "Name" = 'ōoka tadatomo (大岡忠與)' |
### Instruction:
CREATE TABLE table_45601 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Result, when Date is 11 August 1992?
#... | SELECT "Result" FROM table_45601 WHERE "Date" = '11 august 1992' |
### Instruction:
CREATE TABLE table_name_88 (
mcintosh VARCHAR,
paul_mccartney VARCHAR,
whitten VARCHAR,
stuart VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which McIntosh has a Whitten of drums, and a Stuart of bass, and a Paul McCartney of electr... | SELECT mcintosh FROM table_name_88 WHERE whitten = "drums" AND stuart = "bass" AND paul_mccartney = "electric guitar" |
### Instruction:
CREATE TABLE table_204_287 (
id number,
"outcome" text,
"no." number,
"date" number,
"championship" text,
"surface" text,
"opponent in the final" text,
"score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT MIN("date") FROM table_204_287 WHERE "outcome" = 'winner' |
### Instruction:
CREATE TABLE table_41385 (
"Publication" text,
"Country" text,
"Accolade" text,
"Year" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years have an accolade of 50 best albums of the year, with #3 as the rank?
... | SELECT SUM("Year") FROM table_41385 WHERE "Accolade" = '50 best albums of the year' AND "Rank" = '#3' |
### Instruction:
CREATE TABLE table_48221 (
"Season" real,
"Team 1" text,
"Score" text,
"Team 2" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the 2004 season with a 0-2 score what was the name of the venue?
### Response:
| SELECT "Venue" FROM table_48221 WHERE "Score" = '0-2' AND "Season" = '2004' |
### Instruction:
CREATE TABLE table_67294 (
"Name" text,
"Country" text,
"Status" text,
"Moving to" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Country, when the Transfer fee is 'loan',... | SELECT "Country" FROM table_67294 WHERE "Transfer fee" = 'loan' AND "Name" = 'lynch' |
### Instruction:
CREATE TABLE table_52585 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average crowd size ... | SELECT AVG("Crowd") FROM table_52585 WHERE "Home team" = 'essendon' |
### Instruction:
CREATE TABLE table_26703 (
"Major version" text,
"Minor version" text,
"WebKit version" text,
"Operating System" text,
"Release date" text,
"Features" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the major version whe... | SELECT "Major version" FROM table_26703 WHERE "WebKit version" = '528.17' |
### Instruction:
CREATE TABLE table_60135 (
"Name" text,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Height of the Sophomore Guard weighing 185?
### Respons... | SELECT "Height" FROM table_60135 WHERE "Year" = 'sophomore' AND "Position" = 'guard' AND "Weight" = '185' |
### Instruction:
CREATE TABLE table_47977 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Location... | SELECT "Location Attendance" FROM table_47977 WHERE "Record" = '11–34' |
### Instruction:
CREATE TABLE table_20658 (
"Title" text,
"Series" text,
"Release" text,
"Featuring" text,
"Writer" text,
"Director" text,
"Length" text,
"Timeline" text,
"Release Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Length" FROM table_20658 WHERE "Release" = '3.5' |
### Instruction:
CREATE TABLE table_20790 (
"product" text,
"dimensions (mm)" text,
"dpi" real,
"pages per minute (color)" real,
"max page size" text,
"interface" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the mm dimensions of the P... | SELECT "dimensions (mm)" FROM table_20790 WHERE "product" = 'Plustek MobileOffice D28 Corporate' |
### Instruction:
CREATE TABLE table_10584 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Hawthorn played as an Away team... | SELECT "Venue" FROM table_10584 WHERE "Away team" = 'hawthorn' |
### Instruction:
CREATE TABLE table_33530 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the home team score wh... | SELECT "Home team score" FROM table_33530 WHERE "Away team" = 'essendon' |
### Instruction:
CREATE TABLE endowment (
donator_name VARCHAR,
school_id VARCHAR
)
CREATE TABLE school (
school_id VARCHAR,
school_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many donors have endowment for school named 'Glenn'?
### Re... | SELECT COUNT(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = "Glenn" |
### Instruction:
CREATE TABLE table_66705 (
"Year" text,
"Births (000s)" real,
"Deaths" real,
"Natural Growth" real,
"Total Fertility Rate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average births that had a death rate of 0.4
### ... | SELECT AVG("Births (000s)") FROM table_66705 WHERE "Deaths" = '0.4' |
### Instruction:
CREATE TABLE table_44764 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Position, when Overallis less than 314, and when Pick is less t... | SELECT "Position" FROM table_44764 WHERE "Overall" < '314' AND "Pick" < '8' |
### Instruction:
CREATE TABLE table_1519 (
"Engine" text,
"Exhaust Ports" text,
"Bypass Ports" real,
"Bypass Boosters" text,
"SPI" text,
"Tapered Grind" text,
"Number on cyl." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Are there SPI on t... | SELECT "SPI" FROM table_1519 WHERE "Number on cyl." = '7' |
### Instruction:
CREATE TABLE table_7453 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Position of forward, and a School/Club Team ... | SELECT "Player" FROM table_7453 WHERE "Position" = 'forward' AND "School/Club Team" = 'georgia tech' |
### Instruction:
CREATE TABLE table_4201 (
"Institution" text,
"Location - City" text,
"Location - State" text,
"Nickname" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Primary Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Enrollment" FROM table_4201 WHERE "Affiliation" = 'Private' |
### Instruction:
CREATE TABLE table_33505 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest crowd when ... | SELECT MAX("Crowd") FROM table_33505 WHERE "Home team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_2118 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Left" real,
"Current Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Current Conference" FROM table_2118 WHERE "Nickname" = 'Lions' |
### Instruction:
CREATE TABLE table_name_86 (
number_of_electorates__2009_ INTEGER,
district VARCHAR,
constituency_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest number of 2009 electorates for Raisen when the consituency numbe... | SELECT MAX(number_of_electorates__2009_) FROM table_name_86 WHERE district = "raisen" AND constituency_number = "142" |
### Instruction:
CREATE TABLE table_28944 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party was re-elected to Virginia 12?
### Respons... | SELECT "Party" FROM table_28944 WHERE "Result" = 'Re-elected' AND "District" = 'Virginia 12' |
### Instruction:
CREATE TABLE table_203_655 (
id number,
"goal" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last opponent bill... | SELECT "opponent" FROM table_203_655 ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_52936 (
"Peak" text,
"Height (m)" real,
"Prom. (m)" real,
"Class" text,
"Parent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want to know the peak which is prom less than 147 and height less than 619
### Re... | SELECT "Peak" FROM table_52936 WHERE "Prom. (m)" < '147' AND "Height (m)" < '619' |
### Instruction:
CREATE TABLE table_55907 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the smallest crowd at ... | SELECT MIN("Crowd") FROM table_55907 WHERE "Home team" = 'carlton' |
### Instruction:
CREATE TABLE table_name_31 (
second_party VARCHAR,
first_member VARCHAR,
second_member VARCHAR,
first_party VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the second parties has second member Charles Robert Colvile, a conser... | SELECT second_party FROM table_name_31 WHERE second_member = "charles robert colvile" AND first_party = "conservative" AND first_member = "william mundy" |
### Instruction:
CREATE TABLE table_59053 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date for catolog 88697185162 when the region is canada?
### Response:
| SELECT "Date" FROM table_59053 WHERE "Catalog" = '88697185162' AND "Region" = 'canada' |
### Instruction:
CREATE TABLE table_56923 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest rank when the bronze is less than 1 and the total is le... | SELECT MAX("Rank") FROM table_56923 WHERE "Bronze" < '1' AND "Total" < '1' |
### Instruction:
CREATE TABLE table_25078 (
"Year" real,
"Network" text,
"Race caller" text,
"s Host" text,
"s Analyst" text,
"Reporters" text,
"Trophy presentation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many trophy presentation... | SELECT COUNT("Trophy presentation") FROM table_25078 WHERE "Year" = '1987' |
### Instruction:
CREATE TABLE table_12365 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Place that has the Score of 68, and the Player of christy o'connor jnr... | SELECT "Place" FROM table_12365 WHERE "Score" = '68' AND "Player" = 'christy o''connor jnr' |
### Instruction:
CREATE TABLE table_64754 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank of flori lang when his time was less than 22.27
### Res... | SELECT SUM("Rank") FROM table_64754 WHERE "Name" = 'flori lang' AND "Time" < '22.27' |
### Instruction:
CREATE TABLE table_15862 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school did the player that played 2004-0... | SELECT "School/Club Team" FROM table_15862 WHERE "Years in Toronto" = '2004-05' |
### Instruction:
CREATE TABLE table_name_4 (
overall_record VARCHAR,
last_10_meetings VARCHAR,
at_norman VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Overall Record when the Last 10 Meetings is ou, 7-3, and Norman is ou, 18-3?
### Respons... | SELECT overall_record FROM table_name_4 WHERE last_10_meetings = "ou, 7-3" AND at_norman = "ou, 18-3" |
### Instruction:
CREATE TABLE table_57474 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the loss from the coyot... | SELECT "Loss" FROM table_57474 WHERE "Opponent" = 'coyotes' |
### Instruction:
CREATE TABLE table_name_91 (
calendar VARCHAR,
image_attachment VARCHAR,
wysiwyg_editor VARCHAR,
unread_message_tracking VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Calendar has a WYSIWYG Editor of no, and an Unread message ... | SELECT calendar FROM table_name_91 WHERE wysiwyg_editor = "no" AND unread_message_tracking = "session" AND image_attachment = "no" |
### Instruction:
CREATE TABLE table_203_496 (
id number,
"pos" number,
"country" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of boxing metals earned... | SELECT SUM("total") FROM table_203_496 WHERE "pos" <= 4 |
### Instruction:
CREATE TABLE table_42690 (
"Spoofed Title" text,
"Writer" text,
"Artist" text,
"Issue" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest issue Arnie Kogen wrote for in December 1964?
### Response:
| SELECT MIN("Issue") FROM table_42690 WHERE "Writer" = 'arnie kogen' AND "Date" = 'december 1964' |
### Instruction:
CREATE TABLE table_15145 (
"Player" text,
"Years" text,
"Goals against" real,
"Saves" real,
"Save %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many saves did the player with a 92.3% save rate and 217 goals have?
### Respo... | SELECT SUM("Saves") FROM table_15145 WHERE "Save %" = '92.3%' AND "Goals against" > '217' |
### Instruction:
CREATE TABLE table_25865 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Team" FROM table_25865 WHERE "Date" = 'December 19' |
### Instruction:
CREATE TABLE table_75937 (
"Draw" real,
"Song" text,
"Performer" text,
"Points" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which song has more than 66 points, a draw greater than 3, and is ranked 3rd?
### Response... | SELECT "Song" FROM table_75937 WHERE "Points" > '66' AND "Draw" > '3' AND "Rank" = '3rd' |
### Instruction:
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY COUNT(*) |
### Instruction:
CREATE TABLE table_7640 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date was the Winning Score 72-66-67-71=276?
### Response:
| SELECT "Date" FROM table_7640 WHERE "Winning score" = '72-66-67-71=276' |
### Instruction:
CREATE TABLE table_22300 (
"Player" text,
"FCSL Team" text,
"Years Played" text,
"Year Drafted" real,
"Round" text,
"MLB Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 2005 is the year played what is the lowest year d... | SELECT MIN("Year Drafted") FROM table_22300 WHERE "Years Played" = '2005' |
### Instruction:
CREATE TABLE table_77657 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team's score ... | SELECT "Away team score" FROM table_77657 WHERE "Venue" = 'princes park' |
### Instruction:
CREATE TABLE table_4741 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance when the... | SELECT COUNT("Crowd") FROM table_4741 WHERE "Venue" = 'junction oval' |
### Instruction:
CREATE TABLE table_36333 (
"ISSN" text,
"Language" text,
"Country" text,
"Frequency" text,
"Publication range" text,
"Status" text,
"Document Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What language has a publicati... | SELECT "Language" FROM table_36333 WHERE "Publication range" = '1955–1999' |
### Instruction:
CREATE TABLE table_204_981 (
id number,
"ep#" number,
"title" text,
"broadcast date" text,
"written by" text,
"directed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many episodes aired in july 1995 ?
### Response:
| SELECT COUNT("ep#") FROM table_204_981 WHERE "broadcast date" = 7 AND "broadcast date" = 1995 |
### Instruction:
CREATE TABLE table_72320 (
"Episode title" text,
"Air date" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the episode in whi... | SELECT "Episode title" FROM table_72320 WHERE "Eliminated" = 'Jenn' |
### Instruction:
CREATE TABLE table_42450 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Rank" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of points for the KV Racing Technology team when t... | SELECT COUNT("Points") FROM table_42450 WHERE "Engine" = 'chevrolet' AND "Team" = 'kv racing technology' |
### Instruction:
CREATE TABLE table_39416 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average frequency in MHz for stations w... | SELECT AVG("Frequency MHz") FROM table_39416 WHERE "ERP W" = '170' |
### Instruction:
CREATE TABLE table_55934 (
"Rank" real,
"Name" text,
"Nation" text,
"Placings" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank number for a placing of 28.5 and a total less than 92.7?
### Response:
| SELECT COUNT("Rank") FROM table_55934 WHERE "Placings" = '28.5' AND "Total" < '92.7' |
### Instruction:
CREATE TABLE table_24734 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Slovak title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did jaroslav vojtek category:articles w... | SELECT "Year (Ceremony)" FROM table_24734 WHERE "Director" = 'Jaroslav Vojtek Category:Articles with hCards' |
### Instruction:
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many p... | SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender ORDER BY gender |
### Instruction:
CREATE TABLE table_51750 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the away ... | SELECT "Away team score" FROM table_51750 WHERE "Away team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_name_13 (
league_cup_apps VARCHAR,
total_apps VARCHAR,
position VARCHAR,
league_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the league cup apps when the league goals are greater than 3, there are 3... | SELECT league_cup_apps FROM table_name_13 WHERE position = "mf" AND league_goals > 3 AND total_apps = "30 (2)" |
### Instruction:
CREATE TABLE table_40574 (
"Name" text,
"Rank" real,
"Out of" real,
"Source" text,
"Year" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Rank for the Name, 'area of permanent crops', Out of a number smaller than 1... | SELECT MIN("Rank") FROM table_40574 WHERE "Name" = 'area of permanent crops' AND "Out of" < '181' |
### Instruction:
CREATE TABLE table_31702 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bronzes were held by those with a total of 4 and less than 3 silve... | SELECT SUM("Bronze") FROM table_31702 WHERE "Total" = '4' AND "Silver" < '3' |
### Instruction:
CREATE TABLE table_51075 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Competition" text,
"Man of the Match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did they play when there were... | SELECT "Opponent" FROM table_51075 WHERE "Attendance" < '751' |
### Instruction:
CREATE TABLE table_204_547 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"time" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the fastest , iceland or finland ?
### Re... | SELECT "nationality" FROM table_204_547 WHERE "nationality" IN ('iceland', 'finland') ORDER BY "time" LIMIT 1 |
### Instruction:
CREATE TABLE table_69477 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tournament for may 18, 1997
### R... | SELECT "Tournament" FROM table_69477 WHERE "Date" = 'may 18, 1997' |
### Instruction:
CREATE TABLE table_4498 (
"Name" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Kraco Twin 125 (R2)'s Winning Driver?
... | SELECT "Winning driver" FROM table_4498 WHERE "Name" = 'kraco twin 125 (r2)' |
### Instruction:
CREATE TABLE table_74201 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Date" FROM table_74201 WHERE "Game" = '35' |
### Instruction:
CREATE TABLE table_65286 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Silver has a Rank of 4, and a Bronze smaller than 12?
### Respon... | SELECT COUNT("Silver") FROM table_65286 WHERE "Rank" = '4' AND "Bronze" < '12' |
### Instruction:
CREATE TABLE table_62796 (
"Number" text,
"Previous Number(s)" real,
"Previous Class" text,
"Converted" real,
"Withdrawn" real,
"Disposal" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a previous number of 68165, what is t... | SELECT MAX("Converted") FROM table_62796 WHERE "Previous Number(s)" = '68165' |
### Instruction:
CREATE TABLE table_63088 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue No." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the catalogue no when the format is cd (limited edition steel-box) and the c... | SELECT "Catalogue No." FROM table_63088 WHERE "Format" = 'cd (limited edition steel-box)' AND "Country" = 'germany' |
### Instruction:
CREATE TABLE table_19247 (
"Year" real,
"Boys singles" text,
"Girls singles" text,
"Boys doubles" text,
"Girls doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the girls singles is lindaweni fan... | SELECT "Mixed doubles" FROM table_19247 WHERE "Girls singles" = 'Lindaweni Fanetri' |
### Instruction:
CREATE TABLE table_74457 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High points" FROM table_74457 WHERE "Game" = '1' |
### Instruction:
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return a b... | SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job DESC |
### Instruction:
CREATE TABLE table_8495 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the num... | SELECT "Lost" FROM table_8495 WHERE "Points difference" = '-25' |
### Instruction:
CREATE TABLE table_40488 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2007 that has a grand slam tournaments in 2006.
### Response:
| SELECT "2007" FROM table_40488 WHERE "2006" = 'grand slam tournaments' |
### Instruction:
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank |
### Instruction:
CREATE TABLE table_237757_3 (
winning_coach VARCHAR,
top_team_in_regular_season__points_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the winning coach total number if the top team in regular season (points) is the Kansas City Spur... | SELECT COUNT(winning_coach) FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "Kansas City Spurs (110 points)" |
### Instruction:
CREATE TABLE table_33284 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team's score ... | SELECT "Away team score" FROM table_33284 WHERE "Away team" = 'hawthorn' |
### Instruction:
CREATE TABLE table_58980 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Surface has a Date of 15 februar... | SELECT "Surface" FROM table_58980 WHERE "Date" = '15 february 1988' |
### Instruction:
CREATE TABLE table_26846 (
"Seed" real,
"Rank" real,
"Player" text,
"Points" real,
"Points defending" text,
"Points won" real,
"New points" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players n... | SELECT COUNT("Points won") FROM table_26846 WHERE "Player" = 'Victor Hănescu' |
### Instruction:
CREATE TABLE table_70031 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total rounds were there a... | SELECT COUNT("Round") FROM table_70031 WHERE "Event" = 'ufc 114' |
### Instruction:
CREATE TABLE table_24552 (
"District" text,
"Headquarters" text,
"Area (km\u00b2)" real,
"Population (2011)" real,
"Division" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2011 population if the headquarters is Chittorg... | SELECT "Population (2011)" FROM table_24552 WHERE "Headquarters" = 'Chittorgarh' |
### Instruction:
CREATE TABLE table_76628 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wears the jersey number 20 and has the position of S... | SELECT "Player" FROM table_76628 WHERE "Position" = 'sg' AND "Jersey Number(s)" = '20' |
### Instruction:
CREATE TABLE table_8558 (
"Episode Number" real,
"Air Date" text,
"Event 1" text,
"Event 2" text,
"Event 3" text,
"Event 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 2nd event aired on 8 June 2008?
### Respon... | SELECT "Event 2" FROM table_8558 WHERE "Air Date" = '8 june 2008' |
### Instruction:
CREATE TABLE table_10297 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year with a mp4-17d chassis and less than 142 points.
### Response:
| SELECT MIN("Year") FROM table_10297 WHERE "Chassis" = 'mp4-17d' AND "Points" < '142' |
### Instruction:
CREATE TABLE table_37896 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Frequency MHz is the highest one that has a C... | SELECT MAX("Frequency MHz") FROM table_37896 WHERE "City of license" = 'byron, ga' |
### Instruction:
CREATE TABLE table_51264 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When st kilda was playing at ho... | SELECT "Away team score" FROM table_51264 WHERE "Home team" = 'st kilda' |
### Instruction:
CREATE TABLE table_204_179 (
id number,
"season" number,
"division" number,
"tms." number,
"pos." number,
"fa cup" text,
"afc cl" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first year in which daegu fc fin... | SELECT MIN("season") FROM table_204_179 WHERE "pos." <= 10 |
### Instruction:
CREATE TABLE table_51601 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want to know the away team sc... | SELECT "Away team score" FROM table_51601 WHERE "Venue" = 'vfl park' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.