instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_21411 (
"Season" real,
"TV season" text,
"Regular Timeslot (EDT)" text,
"Episode count" real,
"Season premiere" text,
"Season finale" text,
"Rank" text,
"Rating" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT COUNT("TV season") FROM table_21411 WHERE "Season finale" = 'May 23, 1995' |
### Instruction:
CREATE TABLE table_1543 (
"Rank" real,
"Company" text,
"Headquarters" text,
"Industry" text,
"Sales (billion $)" text,
"Profits (billion $)" text,
"Assets (billion $)" text,
"Market Value (billion $)" text
)
-- Using valid SQLite, answer the following questions for the... | SELECT "Company" FROM table_1543 WHERE "Profits (billion $)" = '26.9' |
### Instruction:
CREATE TABLE table_25764 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT COUNT("No. in series") FROM table_25764 WHERE "U.S. viewers (millions)" = '7.84' |
### Instruction:
CREATE TABLE table_204_954 (
id number,
"no." number,
"country" text,
"2009 winter\nuniversiade" number,
"2007 wjcc" number,
"2007 wwcc" number,
"2008 wjcc" number,
"2008 wwcc" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "points" FROM table_204_954 WHERE "country" = 'germany' |
### Instruction:
CREATE TABLE table_204_25 (
id number,
"rank" number,
"mountain peak" text,
"mountain range" text,
"elevation" text,
"prominence" text,
"isolation" text,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is... | SELECT "mountain peak" FROM table_204_25 WHERE "mountain peak" IN ('mount humphreys', 'mount kaweah') ORDER BY "elevation" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_36328 (
"Rank" text,
"Runs" text,
"Opponent" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent that played at Launceston Cricket Club Ground, launceston during the se... | SELECT "Opponent" FROM table_36328 WHERE "Venue" = 'launceston cricket club ground, launceston' AND "Season" = '1853/54' |
### Instruction:
CREATE TABLE table_56838 (
"CERCLIS ID" text,
"Name" text,
"County" text,
"Proposed" text,
"Listed" text,
"Construction completed" text,
"Partially deleted" text,
"Deleted" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Construction completed" FROM table_56838 WHERE "CERCLIS ID" = 'ard092916188' |
### Instruction:
CREATE TABLE table_23141 (
"County" text,
"Starky #" real,
"Starky %" text,
"Hancock #" real,
"Hancock %" text,
"McCain #" real,
"McCain %" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was ... | SELECT COUNT("Hancock %") FROM table_23141 WHERE "Starky %" = '20.96%' |
### Instruction:
CREATE TABLE table_74150 (
"Institution" text,
"Team" text,
"City" text,
"Province" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Endowment" text,
"Football stadium" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions f... | SELECT "Institution" FROM table_74150 WHERE "Endowment" = '$25.9M' |
### Instruction:
CREATE TABLE table_name_63 (
population_density INTEGER,
population__2011_ VARCHAR,
change___percentage_ VARCHAR,
county VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Population density that has a Change (%) higher than ... | SELECT AVG(population_density) FROM table_name_63 WHERE change___percentage_ > 10.4 AND county = "queens" AND population__2011_ < 8574 |
### Instruction:
CREATE TABLE table_6873 (
"Name" text,
"Date of Birth" text,
"Height" real,
"Weight" real,
"Spike" real,
"Block" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Weight of the player with a Block larger than 328, Spike... | SELECT COUNT("Weight") FROM table_6873 WHERE "Block" > '328' AND "Height" > '207' AND "Spike" > '375' |
### Instruction:
CREATE TABLE table_12744 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Player that has the Place of t5, and the Score... | SELECT "Player" FROM table_12744 WHERE "Place" = 't5' AND "Score" = '73-72-71-75=291' |
### Instruction:
CREATE TABLE table_name_86 (
liberal_leader VARCHAR,
_percentage_of_popular_vote VARCHAR,
seats_won VARCHAR,
seats_in_house VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Liberal leader has Seats won smaller than 100, and Seats... | SELECT liberal_leader FROM table_name_86 WHERE seats_won < 100 AND seats_in_house = 215 AND _percentage_of_popular_vote = "43.1%" |
### Instruction:
CREATE TABLE table_65763 (
"Ship name" text,
"Year built" real,
"Length" text,
"Crew" real,
"Guests" real,
"Staterooms" real,
"Comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of staterooms in with a ... | SELECT SUM("Staterooms") FROM table_65763 WHERE "Year built" = '2008' AND "Crew" < '28' |
### Instruction:
CREATE TABLE table_65853 (
"Season" real,
"Level" text,
"Division" text,
"Section" text,
"Administration" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the administration when the division was Ykk nen (... | SELECT "Administration" FROM table_65853 WHERE "Division" = 'ykkönen (first division)' AND "Position" = '1st' AND "Season" = '1996' |
### Instruction:
CREATE TABLE table_25556 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Rank (week)" real,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Original air date" FROM table_25556 WHERE "Written by" = 'Russel Friend & Garrett Lerner' |
### Instruction:
CREATE TABLE table_59240 (
"Name" text,
"Total" real,
"Outstanding Performance" real,
"Fighting Spirit" real,
"Technique" real,
"Years" text,
"Highest rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Fighting Spiri... | SELECT AVG("Fighting Spirit") FROM table_59240 WHERE "Name" = 'tsurugamine' AND "Technique" < '10' |
### Instruction:
CREATE TABLE table_203_201 (
id number,
"class" text,
"type" text,
"ships" text,
"displacement" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in tonnes between the malabar class and the ut507... | SELECT ABS((SELECT "displacement" FROM table_203_201 WHERE "class" = 'malabar class') - (SELECT "displacement" FROM table_203_201 WHERE "class" = 'ut507 class')) |
### Instruction:
CREATE TABLE table_11641 (
"Route Name" text,
"Direction" text,
"Termini" text,
"Junctions" text,
"Length" text,
"Population Area" text,
"Remarks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the length of the high... | SELECT "Length" FROM table_11641 WHERE "Junctions" = 'i-35 us 83' AND "Route Name" = 'us 83 bus.' |
### Instruction:
CREATE TABLE table_49985 (
"Draw" real,
"Song" text,
"Artist" text,
"Televotes" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Draw(s), when Televotes is greater than 1761, when Song is 'Ils... | SELECT COUNT("Draw") FROM table_49985 WHERE "Televotes" > '1761' AND "Song" = 'ils sont là' AND "Place" < '2' |
### Instruction:
CREATE TABLE table_31133 (
"Country" text,
"Remittances 2008" text,
"Remittances 2009" text,
"Remittances 2010" text,
"Remittances 2011" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many remittances in 2010 where the remittanc... | SELECT COUNT("Remittances 2010") FROM table_31133 WHERE "Remittances 2009" = '19.73' |
### Instruction:
CREATE TABLE table_15361 (
"D 48" text,
"D 47" text,
"D 46" text,
"D 45" text,
"D 44" text,
"D 43" text,
"D 42" text,
"D 41" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the D 45 which has D 44 of d 53
### Respo... | SELECT "D 45" FROM table_15361 WHERE "D 44" = 'd 53' |
### Instruction:
CREATE TABLE table_58638 (
"2 twee" text,
"3 dree" text,
"4 vea" text,
"5 fiew" text,
"6 sas" text,
"7 s\u00e4wen" text,
"8 acht" text,
"9 n\u00e4ajen" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 3 dree if 8 a... | SELECT "3 dree" FROM table_58638 WHERE "8 acht" = '8th achta' |
### Instruction:
CREATE TABLE table_73252 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Tournament Venue (City)" FROM table_73252 WHERE "Conference Tournament" = '2000 MWC Men''s Basketball Tournament' |
### Instruction:
CREATE TABLE table_55152 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine \u2020" text,
"Tyre" text,
"Driver" text,
"Rounds" text,
"Free Practice driver(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wha... | SELECT "Rounds" FROM table_55152 WHERE "Entrant" = 'scuderia ferrari marlboro' |
### Instruction:
CREATE TABLE table_38260 (
"Elementary Schools" text,
"Mascot" text,
"Address" text,
"Principal (2013-2014)" text,
"Assistant Principal (2013-2014)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the mascot for the 2013-201... | SELECT "Mascot" FROM table_38260 WHERE "Principal (2013-2014)" = 'frank hendricsen' |
### Instruction:
CREATE TABLE table_9109 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MIN("Position") FROM table_9109 WHERE "Goal Difference" = '-22' AND "Points" > '5' |
### Instruction:
CREATE TABLE table_28095 (
"Round" real,
"Circuit" text,
"Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where ... | SELECT "Location" FROM table_28095 WHERE "Pole position" = 'Daniel Erickson' AND "Fastest lap" = 'Cole Morgan' |
### Instruction:
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT stars, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY director |
### Instruction:
CREATE TABLE table_48758 (
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant Governor" text,
"Comptroller" text,
"Attorney General" text,
"U.S. Senate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the U.S. se... | SELECT "U.S. Senate" FROM table_48758 WHERE "Year" > '2002' AND "Party" = 'working families' |
### Instruction:
CREATE TABLE table_9900 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Game, when ... | SELECT MIN("Game") FROM table_9900 WHERE "Location" = 'philips arena' AND "Attendance" < '15,619' |
### Instruction:
CREATE TABLE table_7334 (
"Census Year" real,
"Number of Muslims '000" real,
"Population of England and Wales '000" real,
"Muslim (% of Total population)" real,
"Registered Mosques" real,
"Muslims per mosque" real
)
-- Using valid SQLite, answer the following questions for the... | SELECT MIN("Muslim (% of Total population)") FROM table_7334 WHERE "Census Year" > '2011' |
### Instruction:
CREATE TABLE table_35280 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Lost" FROM table_35280 WHERE "Played" = '22' AND "Tries against" = '88' |
### Instruction:
CREATE TABLE table_name_45 (
playoff_result VARCHAR,
year VARCHAR,
points VARCHAR,
winner VARCHAR,
win__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Playoff Result, when Winner is 'Alaska Aces', when Win # is gre... | SELECT playoff_result FROM table_name_45 WHERE winner = "alaska aces" AND win__number > 1 AND points < 106 AND year = "2011-12" |
### Instruction:
CREATE TABLE table_38243 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the outcome for jordan ... | SELECT "Outcome" FROM table_38243 WHERE "Partnering" = 'jordan kerr' AND "Date" = 'july 19, 2004' |
### Instruction:
CREATE TABLE table_29162 (
"Chambering" text,
"P1 diameter (mm)" text,
"A external (cm 2 )" text,
"P max ( bar )" real,
"F bolt ( kgf )" real,
"F bolt" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many external (cm 2 ) are... | SELECT COUNT("A external (cm 2 )") FROM table_29162 WHERE "Chambering" = '.338 Lapua Magnum' |
### Instruction:
CREATE TABLE table_57760 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2006 value with 3r in 2007?
... | SELECT "2006" FROM table_57760 WHERE "2007" = '3r' |
### Instruction:
CREATE TABLE table_41810 (
"Year" real,
"Income" real,
"Expenditure" real,
"Surplus(Deficit)" text,
"% GDP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year has an Expenditure smaller than 41.3, and a % GDP of x, and an Inc... | SELECT SUM("Year") FROM table_41810 WHERE "Expenditure" < '41.3' AND "% GDP" = 'x' AND "Income" > '34.4' |
### Instruction:
CREATE TABLE table_28968 (
"Species" text,
"Common Name" text,
"Protein Name" text,
"Accession Number" text,
"NT Length" text,
"NT Identity" text,
"AA Length" text,
"AA Identity" text,
"E-Value" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "NT Identity" FROM table_28968 WHERE "Species" = 'Drosophilia melanogaster' |
### Instruction:
CREATE TABLE table_38490 (
"Gloss" text,
"Cholim" text,
"Lungchang" text,
"Rera" text,
"Tikhak" text,
"Yonguk" text,
"Muklom" text,
"Hakhun" text,
"Halang" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Muklom ... | SELECT "Muklom" FROM table_38490 WHERE "Halang" = 'wɯ¹cʰi¹' |
### Instruction:
CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
baseprice number,
decor text
)
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname... | SELECT decor FROM rooms WHERE roomname = "Recluse and defiance" |
### Instruction:
CREATE TABLE table_32332 (
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "City/Location" FROM table_32332 WHERE "Race Name" = 'budweiser/g. i. joe''s 200' |
### Instruction:
CREATE TABLE table_6451 (
"Birth" text,
"Marriage" text,
"Became Duchess" text,
"Ceased to be Duchess" text,
"Death" text,
"Spouse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is The Spouse of the Duchess that has a Becam... | SELECT "Spouse" FROM table_6451 WHERE "Became Duchess" = '31 october 1733 husband''s accession' |
### Instruction:
CREATE TABLE table_65614 (
"Wimmera FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Byes have an Against larger than 1018, and a Wimmera FL of horsh... | SELECT MIN("Byes") FROM table_65614 WHERE "Against" > '1018' AND "Wimmera FL" = 'horsham diggers' |
### Instruction:
CREATE TABLE table_69049 (
"Stage" text,
"Time (EEST)" text,
"Name" text,
"Length" text,
"Winner" text,
"Rally leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the stage for m. gr nholm and winner of s.loeb with time ... | SELECT "Stage" FROM table_69049 WHERE "Rally leader" = 'm. grönholm' AND "Winner" = 's.loeb' AND "Time (EEST)" = '17:57' |
### Instruction:
CREATE TABLE table_23765 (
"Year ended" real,
"Revenue (\u20acmillion)" real,
"Earnings before interest and taxes (\u20acm)" text,
"Net profit (\u20acm)" text,
"Earnings per share (\u20ac)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Net profit (\u20acm)" FROM table_23765 WHERE "Earnings per share (\u20ac)" = '1.19' |
### Instruction:
CREATE TABLE table_29251 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many incumbents were the result of sanford bishop (d) 57% jos... | SELECT COUNT("Incumbent") FROM table_29251 WHERE "Result" = 'Sanford Bishop (D) 57% Joseph McCormick (R) 43%' |
### Instruction:
CREATE TABLE table_46252 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Box Score which has... | SELECT "Box Score" FROM table_46252 WHERE "Away team" = 'new zealand breakers' AND "Date" = '7 february' |
### Instruction:
CREATE TABLE table_66939 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the driver who started 9 with a qualifing speed of 152.672 and finish... | SELECT "Finish" FROM table_66939 WHERE "Laps" < '197' AND "Start" = '9' AND "Qual" = '152.672' |
### Instruction:
CREATE TABLE table_22547 (
"Fuel gas" text,
"Upper index Kcal/ Nm 3" real,
"Lower index Kcal/ Nm 3" real,
"Upper index MJ/ Nm 3" text,
"Lower index MJ/ Nm 3" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lower index kcal/ ... | SELECT "Lower index Kcal/ Nm 3" FROM table_22547 WHERE "Upper index MJ/ Nm 3" = '61.32' |
### Instruction:
CREATE TABLE table_name_27 (
buechel_ VARCHAR,
_manhart_spelling__pronunciation_ VARCHAR,
dakota_mission VARCHAR,
deloria_ VARCHAR,
_boas VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Deloria & Boas of , and a Dakota Mission of ... | SELECT buechel_ & _manhart_spelling__pronunciation_ FROM table_name_27 WHERE deloria_ & _boas = "ų" AND dakota_mission = "un" |
### Instruction:
CREATE TABLE party (
Location VARCHAR,
Party_ID VARCHAR
)
CREATE TABLE party_host (
Host_ID VARCHAR,
Party_ID VARCHAR
)
CREATE TABLE HOST (
Host_ID VARCHAR,
Age INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the locati... | SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50 |
### Instruction:
CREATE TABLE table_16484 (
"Trim" text,
"Engine" text,
"Turbo" text,
"Fuel Delivery" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Performance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the transmi... | SELECT "Transmission" FROM table_16484 WHERE "Turbo" = 'Yes (Mitsubishi TD04-16t )' |
### Instruction:
CREATE TABLE table_25320 (
"Game" text,
"Date" text,
"Champion" text,
"Score" text,
"Runner Up" text,
"Stadium" text,
"City" text,
"Ted Morris Memorial Trophy (Game MVP)" text,
"Bruce Coulter Award" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT COUNT("Bruce Coulter Award") FROM table_25320 WHERE "Game" = '9th' |
### Instruction:
CREATE TABLE table_204_490 (
id number,
"position" text,
"name" text,
"height" text,
"weight" text,
"birthdate" text,
"birthplace" text,
"2009-10 team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the only prov... | SELECT "name" FROM table_204_490 WHERE "2009-10 team" = 'providence friars' |
### Instruction:
CREATE TABLE table_43087 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Giants' points" text,
"Opponents' Points" text,
"Record" text,
"TV Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Giants' points" FROM table_43087 WHERE "Attendance" = '78,673' |
### Instruction:
CREATE TABLE table_37186 (
"Ship" text,
"Hull No." text,
"Builder" text,
"Home Port" text,
"Commissioned\u2013 Decommissioned" text,
"NVR page" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the hull number of Commissioned ... | SELECT "Hull No." FROM table_37186 WHERE "Commissioned\u2013 Decommissioned" = '1973–1996' |
### Instruction:
CREATE TABLE table_75699 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Losses have a Ballarat FL of melton south, and an Against la... | SELECT COUNT("Losses") FROM table_75699 WHERE "Ballarat FL" = 'melton south' AND "Against" > '1468' |
### Instruction:
CREATE TABLE table_61508 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Opponent has a Site of razorback stadium fayetteville, ar, and a Date of october 7... | SELECT "Opponent" FROM table_61508 WHERE "Site" = 'razorback stadium • fayetteville, ar' AND "Date" = 'october 7, 1967' |
### Instruction:
CREATE TABLE table_204_587 (
id number,
"drop(s)" text,
"multiplayer map(s)" text,
"spec ops mission(s)" text,
"face off map(s)" text,
"xbox 360 release date" text,
"playstation 3 release date" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "xbox 360 release date" FROM table_204_587 ORDER BY "xbox 360 release date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_1117 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "Locale" FROM table_1117 WHERE "Skip" = 'Colleen Jones' |
### Instruction:
CREATE TABLE table_64475 (
"Date" real,
"Doubles, I Class" real,
"Doubles, II Class" real,
"Greater Doubles" real,
"Doubles" real,
"Semidoubles" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Total has a ... | SELECT MAX("Total") FROM table_64475 WHERE "Date" = '1602' AND "Greater Doubles" < '16' |
### Instruction:
CREATE TABLE table_25872 (
"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 "High points" FROM table_25872 WHERE "High assists" = 'Chauncey Billups (4)' |
### Instruction:
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height re... | SELECT Height, Weight FROM people GROUP BY Sex |
### Instruction:
CREATE TABLE table_45338 (
"Year" real,
"Domestic freight" real,
"Domestic mail" real,
"International freight" real,
"International mail" real,
"Total freight and mail" real,
"Change" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT MAX("International mail") FROM table_45338 WHERE "Change" = '+0,2%' AND "Domestic mail" < '0' |
### Instruction:
CREATE TABLE HOST (
Name VARCHAR,
Host_ID VARCHAR
)
CREATE TABLE party_host (
Host_ID VARCHAR,
Party_ID VARCHAR
)
CREATE TABLE party (
Party_Theme VARCHAR,
Party_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the th... | SELECT T3.Party_Theme, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID |
### Instruction:
CREATE TABLE table_50159 (
"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.
-- On what Surface was the match with a Score o... | SELECT "Surface" FROM table_50159 WHERE "Outcome" = 'runner-up' AND "Score" = '6–4, 6–3' |
### Instruction:
CREATE TABLE table_27138 (
"Round" real,
"Circuit" text,
"Date" text,
"Class A Winner" text,
"Class B Winner" text,
"Class C Winner" text,
"Class D Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which round did Ro... | SELECT "Round" FROM table_27138 WHERE "Class D Winner" = 'Roy Salvadori' AND "Class B Winner" = 'Alan Hutcheson' |
### Instruction:
CREATE TABLE table_name_92 (
west_indies INTEGER,
season VARCHAR,
holder_at_the_end_of_the_series VARCHAR,
england VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When west indes was a holder at the end of the series for the 1991 seas... | SELECT MIN(west_indies) FROM table_name_92 WHERE holder_at_the_end_of_the_series = "west indies" AND england > 1 AND season = "1991" |
### Instruction:
CREATE TABLE table_12089 (
"Driver" text,
"Constructor" text,
"Q1 order" real,
"Q1 time" text,
"Q1 pos" real,
"Q1+Q2 time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the constructor of the car that had a Q1 pos of le... | SELECT "Constructor" FROM table_12089 WHERE "Q1 pos" < '8' AND "Q1 time" = '1:15.038' |
### Instruction:
CREATE TABLE table_5663 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Surname has Throws of r, and a Position of p, and a DOB of 26 apr... | SELECT "Surname" FROM table_5663 WHERE "Throws" = 'r' AND "Position" = 'p' AND "D.O.B." = '26 april 1989' |
### Instruction:
CREATE TABLE table_name_77 (
position VARCHAR,
year_born__age_ VARCHAR,
current_club VARCHAR,
height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position for the player from the Alba Berlin club who is taller than 1.96... | SELECT position FROM table_name_77 WHERE current_club = "alba berlin" AND height > 1.96 AND year_born__age_ = "july 23, 1985 (age28)" |
### Instruction:
CREATE TABLE table_203_871 (
id number,
"#" number,
"player" text,
"pos" text,
"pts" number,
"tries" number,
"conv" number,
"pens" number,
"drop" number,
"opposition" text,
"venue" text,
"date" text
)
-- Using valid SQLite, answer the following question... | SELECT COUNT(DISTINCT "player") FROM table_203_871 WHERE "pts" >= 25 |
### Instruction:
CREATE TABLE table_203_800 (
id number,
"#" number,
"president" text,
"president's party" text,
"senate with" number,
"senate opposed" number,
"house with" number,
"house opposed" number,
"years served" number,
"elections won" number
)
-- Using valid SQLite, an... | SELECT "elections won" FROM table_203_800 WHERE "president" = 'william mckinley' |
### Instruction:
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE reviewer (
rid number,
name text
)
-- Using valid SQLite, answer the following questions for t... | SELECT T1.director, T1.title FROM movie AS T1 JOIN rating AS T2 ON T1.mid = T2.mid WHERE T2.stars = 5 |
### Instruction:
CREATE TABLE table_15277 (
"Japanese Title" text,
"Developer" text,
"Publisher" text,
"Genre" text,
"Console(s)" text,
"Initial Release Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Ranma : netsuretsu kakutouhen ... | SELECT "Initial Release Date" FROM table_15277 WHERE "Publisher" = 'banpresto' AND "Japanese Title" = 'ranma ½: netsuretsu kakutouhen' |
### Instruction:
CREATE TABLE table_45927 (
"Outcome" text,
"Year" real,
"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.
-- Which Surface has an Opponent in the ... | SELECT "Surface" FROM table_45927 WHERE "Opponent in the final" = 'don mcneill' AND "Year" = '1940' |
### Instruction:
CREATE TABLE table_21043 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Vivian Davis Figures" text,
"Republican: Jeff Sessions" text,
"Lead Margin" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On July 31, 2008, what a... | SELECT "Democrat: Vivian Davis Figures" FROM table_21043 WHERE "Dates administered" = 'July 31, 2008' |
### Instruction:
CREATE TABLE table_7612 (
"Kansas State vs." text,
"Games played" text,
"Overall Record" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"Last Meeting" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Last 10 Meetings" FROM table_7612 WHERE "Overall Record" = 'slu, 9-8' |
### Instruction:
CREATE TABLE table_31007 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... | SELECT COUNT("Written by") FROM table_31007 WHERE "Directed by" = 'Ernest Dickerson' AND "No. in season" = '9' |
### Instruction:
CREATE TABLE table_54072 (
"Model" text,
"Engine make/Capacity" text,
"Power kW@rpm" text,
"Torque Nm@rpm" text,
"GVM (kg) Technical Capacity" text,
"GCM (kg) Technical Capacity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Model" FROM table_54072 WHERE "GCM (kg) Technical Capacity" = '42000' |
### Instruction:
CREATE TABLE table_54611 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?
### ... | SELECT COUNT("Wins") FROM table_54611 WHERE "Points" < '54' AND "Team" = 'yamaha' AND "Class" = '250cc' AND "Year" < '1977' |
### Instruction:
CREATE TABLE Ref_document_types (
document_type_name VARCHAR,
document_type_description VARCHAR,
document_type_code VARCHAR
)
CREATE TABLE Documents (
Document_date VARCHAR,
document_type_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT T1.document_type_name, T1.document_type_description, T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code |
### Instruction:
CREATE TABLE table_2641 (
"Party Name" text,
"States contested" real,
"Seats contested" real,
"Seats won" real,
"No. of Votes" real,
"% of Votes" text,
"% in Seats contested" text,
"Forfeited in seats" real
)
-- Using valid SQLite, answer the following questions for th... | SELECT MIN("Forfeited in seats") FROM table_2641 WHERE "Seats won" = '19' |
### Instruction:
CREATE TABLE table_29873 (
"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 "High rebounds" FROM table_29873 WHERE "Location Attendance" = 'Honda Center 15,625' |
### Instruction:
CREATE TABLE table_15261_1 (
voltage_range__v_ VARCHAR,
clock_multiplier VARCHAR,
part_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the voltage range (v) if the clock multiplier is 3x or 2x mode and part number is a80486... | SELECT COUNT(voltage_range__v_) FROM table_15261_1 WHERE clock_multiplier = "3X or 2X mode" AND part_number = "A80486DX4WB-100" |
### Instruction:
CREATE TABLE table_204_419 (
id number,
"year" text,
"tournament" text,
"venue" text,
"played" number,
"won" number,
"lost" number,
"tied" number,
"n/r" number,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "tournament" FROM table_204_419 WHERE "venue" = 'sharjah' ORDER BY "year" DESC LIMIT 1 |
### Instruction:
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT T2.title, AVG(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title |
### Instruction:
CREATE TABLE table_18053 (
"Competition" text,
"Round" text,
"Opponent" text,
"Result" text,
"Score" text,
"Home/Away" text,
"Venue" text,
"Attendance" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Round" FROM table_18053 WHERE "Venue" = 'Knowsley Road' AND "Result" = 'Lose' |
### Instruction:
CREATE TABLE browser (
id number,
name text,
market_share number
)
CREATE TABLE web_client_accelerator (
id number,
name text,
operating_system text,
client text,
connection text
)
CREATE TABLE accelerator_compatible_browser (
accelerator_id number,
browser_id ... | SELECT MAX(market_share), MIN(market_share), AVG(market_share) FROM browser |
### Instruction:
CREATE TABLE table_204_664 (
id number,
"rank" number,
"bib" number,
"name" text,
"nationality" text,
"start" text,
"penalties (p+p+s+s)" text,
"time" text,
"deficit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ho... | SELECT SUM("penalties (p+p+s+s)") FROM table_204_664 WHERE "nationality" = 'germany' |
### Instruction:
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
... | SELECT Country, COUNT(Country) FROM artist GROUP BY Country ORDER BY Country DESC |
### Instruction:
CREATE TABLE table_36516 (
"Result" text,
"Opponent" text,
"Method" text,
"Event" text,
"Date" text,
"Round" text,
"Time" text,
"Location" text,
"Rules" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent h... | SELECT "Opponent" FROM table_36516 WHERE "Round" = '4' AND "Rules" = 'thai boxing' |
### Instruction:
CREATE TABLE table_24948 (
"Rank" real,
"Athlete" text,
"Nation" text,
"Olympics" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total(min. 2 medals)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the silver for... | SELECT MAX("Silver") FROM table_24948 WHERE "Athlete" = 'Ronald Weigel Category:Articles with hCards' |
### Instruction:
CREATE TABLE table_204_30 (
id number,
"year built" text,
"works number" number,
"wheel arr." text,
"gauge" text,
"original owner" text,
"name" text,
"current location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT "name" FROM table_204_30 WHERE "current location" = 'bressingham steam museum' ORDER BY "year built" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_10431 (
"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 score for the home... | SELECT "Home team score" FROM table_10431 WHERE "Away team score" = '6.6 (42)' AND "Away team" = 'melbourne' |
### Instruction:
CREATE TABLE region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE affected_region (
region_id number,
storm_id number,
number_city_affected number
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
... | SELECT region_name FROM region WHERE region_name <> 'Denmark' |
### Instruction:
CREATE TABLE table_65162 (
"HR no." text,
"HR name" text,
"CR no." real,
"LMS no." real,
"Built" text,
"Works" text,
"Withdrawn" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the built date when the CR number is more... | SELECT "Built" FROM table_65162 WHERE "CR no." > '940' AND "LMS no." = '14760' |
### Instruction:
CREATE TABLE table_203_489 (
id number,
"year" number,
"title" text,
"system" text,
"developer" text,
"publisher" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when ghostbusters was released for the nes in 1988 what systems had... | SELECT "system" FROM table_203_489 WHERE id = (SELECT id FROM table_203_489 WHERE "title" = 'ghostbusters' AND "year" = 1988) - 1 |
### Instruction:
CREATE TABLE table_5866 (
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nationality for the university o... | SELECT "Nationality" FROM table_5866 WHERE "College/junior/club team" = 'university of wisconsin (wcha)' AND "Player" = 'bob lundeen' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.