instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_36947 (
"Season" text,
"Tropical Lows" real,
"Tropical Cyclones" real,
"Severe Tropical Cyclones" real,
"Strongest storm" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of severe tropical ... | SELECT MIN("Severe Tropical Cyclones") FROM table_36947 WHERE "Season" = '1992–93' AND "Tropical Lows" < '6' |
### Instruction:
CREATE TABLE table_17794 (
"Year" real,
"Road Opened" text,
"Road Closed" text,
"Freight Carried s Tonne" real,
"Super B Capacity Reached [ citation needed ]" text,
"Number of Truck Loads North" real
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT MIN("Freight Carried s Tonne") FROM table_17794 WHERE "Super B Capacity Reached [ citation needed ]" = 'February 26' |
### Instruction:
CREATE TABLE table_14774 (
"Gersdorf" text,
"Gershausen" text,
"Heddersdorf" text,
"Kemmerode" text,
"Kirchheim" text,
"Reckerode ****" text,
"Reimboldsh." text,
"Rotterterode" text,
"Willingshain" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Willingshain" FROM table_14774 WHERE "Reimboldsh." = '101' |
### Instruction:
CREATE TABLE table_69321 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g b... | SELECT COUNT("Long") FROM table_69321 WHERE "Loss" = '0' AND "Gain" < '17' AND "Avg/G" > '0' AND "Name" = 'dubose, e.' |
### Instruction:
CREATE TABLE table_21847 (
"Club" text,
"Played" text,
"Won" 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
)
-- Using valid SQLite,... | SELECT "Points for" FROM table_21847 WHERE "Tries against" = '63' |
### Instruction:
CREATE TABLE table_26328 (
"Sector" text,
"Establishments" real,
"Sales, receipts, or shipments ($1,000)" real,
"Annual payroll ($1,000)" real,
"Paid employees" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the establishment is ... | SELECT MAX("Sales, receipts, or shipments ($1,000)") FROM table_26328 WHERE "Establishments" = '49319' |
### Instruction:
CREATE TABLE table_31320 (
"Year" text,
"Conductor" text,
"Opera House or Orchestra" text,
"Label" text,
"Countess" text,
"Count" text,
"Flamand" text,
"Olivier" text,
"La Roche" text,
"Clairon" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "Olivier" FROM table_31320 WHERE "La Roche" = 'Karl Ridderbusch' |
### Instruction:
CREATE TABLE table_19148 (
"Season" real,
"Class" text,
"Team" text,
"Motorcycle" text,
"Type" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"Fastest Laps" real,
"Pts" text,
"Position" text
)
-- Using valid SQLite, answer the following ... | SELECT COUNT("Class") FROM table_19148 WHERE "Poles" > '1.0' |
### Instruction:
CREATE TABLE table_5672 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Performer 1's name who performed with Sandi... | SELECT "Performer 1" FROM table_5672 WHERE "Performer 3" = 'sandi toksvig' AND "Performer 4" = 'mike mcshane' |
### Instruction:
CREATE TABLE table_65806 (
"President" text,
"Date of birth" text,
"Date of inauguration" text,
"Age at inauguration" text,
"End of term" text,
"Length of retirement" text,
"Date of death" text,
"Lifespan" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT "Length of retirement" FROM table_65806 WHERE "President" = 'sharma, shankar shankar dayal sharma' |
### Instruction:
CREATE TABLE table_65626 (
"Club" text,
"Total points" text,
"Bonus points" text,
"Match points" text,
"Games" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Diff" text
)
-- Using valid SQLite, answer the following questions for the... | SELECT "Points for" FROM table_65626 WHERE "Games" = '30' AND "Total points" = '73' |
### Instruction:
CREATE TABLE table_3392 (
"January\u2013December 2012" text,
"Birth/2012" real,
"Birth/2011" real,
"Death/2012" real,
"Death/2011" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the total 2012 births when the 2012 deaths w... | SELECT MIN("Birth/2012") FROM table_3392 WHERE "Death/2012" = '163' |
### Instruction:
CREATE TABLE table_42196 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest Position f... | SELECT MIN("Position") FROM table_42196 WHERE "Lost" < '3' AND "Difference" = '1' AND "Played" > '7' |
### Instruction:
CREATE TABLE department (
department_id number,
name text,
creation text,
ranking number,
budget_in_billions number,
num_employees number
)
CREATE TABLE head (
head_id number,
name text,
born_state text,
age number
)
CREATE TABLE management (
department_id ... | SELECT MAX(budget_in_billions), MIN(budget_in_billions) FROM department |
### Instruction:
CREATE TABLE table_63395 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which district has more than 16... | SELECT "District" FROM table_63395 WHERE "Number of electorates (2009)" > '169,359' AND "Constituency number" = '84' |
### Instruction:
CREATE TABLE mill (
architect_id number,
id number,
location text,
name text,
type text,
built_year number,
notes text
)
CREATE TABLE bridge (
architect_id number,
id number,
name text,
location text,
length_meters number,
length_feet number
)
CREAT... | SELECT name FROM mill WHERE name LIKE '%Moulin%' |
### Instruction:
CREATE TABLE table_37109 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average Drawn has Points... | SELECT AVG("Drawn") FROM table_37109 WHERE "Points" < '14' AND "Lost" < '4' AND "Played" > '9' |
### Instruction:
CREATE TABLE table_6023 (
"Rank" real,
"Rider" text,
"Manufacturer" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wins of 0, and a Rank larger than 6, and a Manufacturer of kawasaki, and a Rider of massi... | SELECT MAX("Points") FROM table_6023 WHERE "Wins" = '0' AND "Rank" > '6' AND "Manufacturer" = 'kawasaki' AND "Rider" = 'massimo broccoli' |
### Instruction:
CREATE TABLE table_943 (
"Rnd" real,
"Circuit" text,
"LMP1 Winning Team" text,
"LMP2 Winning Team" text,
"GT1 Winning Team" text,
"GT2 Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The results ... | SELECT "Results" FROM table_943 WHERE "GT2 Winning Team" = 'Lars-Erik Nielsen Allan Simonsen Richard Westbrook' |
### Instruction:
CREATE TABLE table_3940 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT COUNT("Original air date") FROM table_3940 WHERE "U.S. viewers (millions)" = '12.68' |
### Instruction:
CREATE TABLE table_204_959 (
id number,
"club" text,
"founded" number,
"nickname" text,
"location" text,
"home ground" text,
"entered competition" number,
"most recent promotion" number
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "club" FROM table_204_959 WHERE "most recent promotion" = (SELECT "most recent promotion" FROM table_204_959 WHERE "club" = 'heidelberg football club') - 1 |
### Instruction:
CREATE TABLE table_52526 (
"Munsee Delaware" text,
"Unami Delaware" text,
"De Laet (1633)" text,
"Campanius (ca. 1645)" text,
"Interpreter (1684?)" text,
"Thomas (1698)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT "Munsee Delaware" FROM table_52526 WHERE "Interpreter (1684?)" = 'palenah' |
### Instruction:
CREATE TABLE table_60053 (
"Team" text,
"Wins" text,
"Losses" text,
"Points" text,
"WPct." text,
"G.F." text,
"G.A." text,
"Assists" text,
"Penalties" text,
"P.I.M." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Penalties" FROM table_60053 WHERE "P.I.M." = '34.5' |
### Instruction:
CREATE TABLE table_27509 (
"Song" text,
"Singer" text,
"Co-Singers" text,
"Music Director" text,
"Lyricist" text,
"Co-Stars" text,
"Movie/Album" text,
"Year" text,
"Additional Info" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT "Year" FROM table_27509 WHERE "Co-Stars" = 'Mala Sinha and Amitabh Bachchan' |
### Instruction:
CREATE TABLE table_46879 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Total, when Year(s) Won is '1948 , 1950 , 1951... | SELECT MIN("Total") FROM table_46879 WHERE "Year(s) won" = '1948 , 1950 , 1951 , 1953' |
### Instruction:
CREATE TABLE table_28341 (
"Dates" text,
"Tournament" text,
"Location" text,
"Prize fund ( \uffe5 )" real,
"Winner" text,
"OWGR pts" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the tournament at Hokkaid wi... | SELECT "Dates" FROM table_28341 WHERE "Location" = 'Hokkaidō' AND "Prize fund ( \uffe5 )" = '150000000' |
### Instruction:
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT T2.Name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID ORDER BY T2.Name |
### Instruction:
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Locati... | SELECT Party, COUNT(*) FROM driver GROUP BY Party ORDER BY COUNT(*) DESC |
### Instruction:
CREATE TABLE table_23346 (
"Rank" real,
"City" text,
"1890 census" text,
"1910 census" real,
"1920 census" real,
"1930 census" real,
"1940 census" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For cities with a census of 29... | SELECT "1920 census" FROM table_23346 WHERE "1940 census" = '296000' |
### Instruction:
CREATE TABLE table_33449 (
"Player" text,
"Team" text,
"Last Game" text,
"Date" text,
"Opposition" text,
"D\u00e9but" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player debuted in 1973 against Limerick and played his la... | SELECT "Player" FROM table_33449 WHERE "Opposition" = 'limerick' AND "Last Game" = 'munster semi-final' AND "D\u00e9but" = '1973' |
### Instruction:
CREATE TABLE table_25653 (
"Country" text,
"KEI" text,
"KI" text,
"Economic Incentive Regime" text,
"Innovation" text,
"Education" text,
"ICT" text,
"2008 Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ... | SELECT "ICT" FROM table_25653 WHERE "Education" = '1.73' AND "KI" = '1.99' |
### Instruction:
CREATE TABLE journal_committee (
editor_id number,
journal_id number,
work_type text
)
CREATE TABLE editor (
editor_id number,
name text,
age number
)
CREATE TABLE journal (
journal_id number,
date text,
theme text,
sales number
)
-- Using valid SQLite, answe... | SELECT T1.name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.editor_id = T2.editor_id GROUP BY T1.name HAVING COUNT(*) >= 2 |
### Instruction:
CREATE TABLE table_1966992_1 (
lga_name VARCHAR,
census_2006_population VARCHAR,
administrative_capital VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the LGA name where the 2006 census population is bigger than 425208.9417698913... | SELECT lga_name FROM table_1966992_1 WHERE census_2006_population > 425208.9417698913 AND administrative_capital = "Port Harcourt" |
### 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 roomname, decor FROM rooms WHERE bedtype = 'King' ORDER BY baseprice |
### Instruction:
CREATE TABLE table_203_137 (
id number,
"title" text,
"album details" text,
"peak chart positions\nus" number,
"peak chart positions\nus r&b" number,
"certifications" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what canibus a... | SELECT "title" FROM table_203_137 WHERE id = (SELECT id FROM table_203_137 WHERE "title" = '2000 b.c. (before can-i-bus)') - 1 |
### Instruction:
CREATE TABLE table_26714 (
"Legion no. and title" text,
"Main legionary base" text,
"Emblem" text,
"Date founded/ founder" text,
"Date disband" text,
"Castra legionaria (legion bases) * = main base. Start date 31BC if unspecified" text,
"Notes" text
)
-- Using valid SQLite... | SELECT "Date disband" FROM table_26714 WHERE "Main legionary base" = 'Svishtov , Bulgaria' |
### Instruction:
CREATE TABLE table_20925 (
"Country" text,
"Region" text,
"Joined OPEC" real,
"Population (July 2012)" real,
"Area (km\u00b2)" real,
"Production ( bbl /day)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country had a pro... | SELECT "Country" FROM table_20925 WHERE "Production ( bbl /day)" = '2,494,000 (10th)' |
### Instruction:
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
... | SELECT Date_of_Birth, Height FROM people ORDER BY Height |
### Instruction:
CREATE TABLE Ref_Budget_Codes (
Budget_Type_code VARCHAR,
budget_type_Description VARCHAR
)
CREATE TABLE Documents_with_expenses (
document_id VARCHAR,
Budget_Type_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show ids for all... | SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = "Government" |
### Instruction:
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
-- Using valid SQLite, answer the fol... | SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country ORDER BY COUNT(Country) DESC |
### Instruction:
CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
)
CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ar... | SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project WHERE T1.Hours > 300 GROUP BY T1.Name |
### Instruction:
CREATE TABLE table_40455 (
"Election" real,
"First member" text,
"First party" text,
"Second member" text,
"Second party" text,
"Third member" text,
"Third party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the sec... | SELECT "Second member" FROM table_40455 WHERE "Second party" = 'liberal' AND "Third party" = 'conservative' AND "Election" > '1841' |
### Instruction:
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
-- Using val... | SELECT Location, COUNT(Location) FROM wrestler GROUP BY Location ORDER BY Location DESC |
### Instruction:
CREATE TABLE table_67888 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Try BP" text,
"Losing BP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of games lost when 22 have been played, the los... | SELECT "Lost" FROM table_67888 WHERE "Played" = '22' AND "Losing BP" = '2' AND "Club" = 'merthyr rfc' |
### Instruction:
CREATE TABLE table_60361 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F\u2013A" text,
"Attendance" real,
"Group position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponents have Attendance larger than 10,34... | SELECT "Opponents" FROM table_60361 WHERE "Attendance" > '10,346' AND "Date" = '25 november 2008' |
### Instruction:
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE trai... | SELECT Location, COUNT(Location) FROM station GROUP BY Location |
### Instruction:
CREATE TABLE table_43081 (
"Usage" text,
"Sn/Sb (%)" text,
"Liquid at (\u00b0C)" text,
"Casting at (\u00b0C)" text,
"Remelting at (\u00b0C)" text,
"Hardness" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hardness fo... | SELECT "Hardness" FROM table_43081 WHERE "Liquid at (\u00b0C)" = '243' |
### Instruction:
CREATE TABLE table_203_161 (
id number,
"pos." text,
"div." number,
"no." number,
"team" text,
"drivers" text,
"car" text,
"laps" number,
"qual.\npos." number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the di... | SELECT (SELECT "laps" FROM table_203_161 WHERE "pos." = 1) - (SELECT "laps" FROM table_203_161 WHERE "pos." = 24) |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Name, Price FROM Products WHERE Price >= 180 ORDER BY Price DESC, Name |
### Instruction:
CREATE TABLE table_76793 (
"Year" real,
"Tournament" text,
"Surface" text,
"Round" text,
"Winner" text,
"Score" text,
"Length (H:MM)" text,
"Sets" text,
"Federer" real,
"Nadal" real
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "Tournament" FROM table_76793 WHERE "Winner" = 'nadal' AND "Nadal" = '16' |
### Instruction:
CREATE TABLE table_691 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the party with opponent being deborah pryce (r) 70.7... | SELECT "Party" FROM table_691 WHERE "Opponent" = 'Deborah Pryce (R) 70.7% Bill Buckel (D) 29.1%' |
### Instruction:
CREATE TABLE table_2508 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions for... | SELECT MIN("Poles") FROM table_2508 WHERE "Year" = '1996' |
### Instruction:
CREATE TABLE table_813 (
"Club" text,
"Played" text,
"Won" 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
)
-- Using valid SQLite, a... | SELECT "Points for" FROM table_813 WHERE "Club" = 'Tonyrefail RFC' |
### Instruction:
CREATE TABLE table_41155 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Played la... | SELECT MIN("Position") FROM table_41155 WHERE "Played" > '9' AND "Points" < '11' AND "Drawn" < '0' |
### Instruction:
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
-- Using valid SQLite, answer the fol... | SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country ORDER BY COUNT(Country) |
### Instruction:
CREATE TABLE table_48538 (
"Gatchaman" text,
"Eagle Riders" text,
"Rank" text,
"Bird Uniform" text,
"Weapon" text,
"Mecha" text,
"Japanese voice actor" text,
"Voice actor (Eagle Riders)" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT "Bird Uniform" FROM table_48538 WHERE "Voice actor (Eagle Riders)" = 'heidi noelle lenhart' |
### Instruction:
CREATE TABLE table_63351 (
"Season" real,
"Team" text,
"League" text,
"Games" text,
"Total Tackles" text,
"Solo" text,
"TFL\u00b9" text,
"Sacks" text,
"Int." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the... | SELECT "Total Tackles" FROM table_63351 WHERE "Games" = '16' AND "Solo" = '88' |
### Instruction:
CREATE TABLE table_1565 (
"Year" real,
"Tournaments played" real,
"Cuts made" real,
"Wins" real,
"2nds" real,
"3rds" real,
"Top tens" real,
"Best finish" text,
"Earnings ( $ )" real,
"Money list rank" real
)
-- Using valid SQLite, answer the following questions... | SELECT MAX("Earnings ( $ )") FROM table_1565 WHERE "Money list rank" = '143' |
### Instruction:
CREATE TABLE table_118 (
"Title" text,
"System" text,
"Publisher" text,
"Product No." text,
"Compatible with 20/60GB NTSC PS3 (CECHA/CECHB)" text,
"Compatible with 60GB PAL/80GB NTSC PS3 (CECHC/CECHE)" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT COUNT("Title") FROM table_118 WHERE "Product No." = 'SCUS-97330' |
### Instruction:
CREATE TABLE table_203_397 (
id number,
"series" text,
"launch date" text,
"finale date" text,
"days" number,
"housemates" number,
"winner" text,
"main presenter" text,
"grand prize" text,
"liveshow\naudience\nmillions" number
)
-- Using valid SQLite, answer th... | SELECT COUNT("series") FROM table_203_397 WHERE "main presenter" = 'alessia marcuzzi' |
### Instruction:
CREATE TABLE table_204_812 (
id number,
"#" number,
"prime minister" text,
"date of birth" text,
"start date\nof (first) term" text,
"age at beginning\nof (first) term" text,
"end date\nof (final) term" text,
"total time in\noffice" text,
"date of death" text,
"l... | SELECT "prime minister" FROM table_204_812 WHERE "#" = 1 |
### Instruction:
CREATE TABLE table_23685 (
"English party name" text,
"Norwegian party name" text,
"Associated ideology" text,
"Current leader" text,
"International affiliation" text,
"2013 Parliamentary election" text,
"County councils ( 2011 )" real
)
-- Using valid SQLite, answer the f... | SELECT MAX("County councils ( 2011 )") FROM table_23685 WHERE "English party name" = 'Communist Party of Norway' |
### Instruction:
CREATE TABLE table_41203 (
"Year" real,
"Competition" text,
"Club" text,
"Nation" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Club of mexico, Year of 2010, and a Competition of preseason, and a Result o... | SELECT "Club" FROM table_41203 WHERE "Nation" = 'mexico' AND "Year" = '2010' AND "Competition" = 'preseason' AND "Result" = 'w 0–1' |
### Instruction:
CREATE TABLE table_62976 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the listed average of Cuts made that has... | SELECT AVG("Cuts made") FROM table_62976 WHERE "Top-5" = '3' AND "Top-10" < '5' |
### Instruction:
CREATE TABLE table_23660 (
"Rank" real,
"Country/Territory" text,
"Mister International" real,
"1st runner-up" real,
"2nd runner-up" real,
"3rd runner-up" real,
"4th runner-up" real,
"Semifinalists" real,
"Total" real
)
-- Using valid SQLite, answer the following q... | SELECT MAX("3rd runner-up") FROM table_23660 |
### Instruction:
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr ... | SELECT state, enr FROM College ORDER BY enr |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 |
### Instruction:
CREATE TABLE table_68484 (
"Episode" text,
"First aired" text,
"Entrepreneur(s)" text,
"Company or product name" text,
"Money requested (\u00a3)" text,
"Investing Dragon(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How muc... | SELECT "Money requested (\u00a3)" FROM table_68484 WHERE "Investing Dragon(s)" = 'peter jones' AND "Episode" = 'episode 2' |
### Instruction:
CREATE TABLE table_204_794 (
id number,
"iec\nworld plugs\nType" text,
"standard" text,
"power\nrating" text,
"earthed" text,
"polarised" text,
"fused" text,
"insulated\npins" text,
"europlug\ncompatible" text
)
-- Using valid SQLite, answer the following questions... | SELECT COUNT(*) FROM table_204_794 WHERE "europlug\ncompatible" = 'yes' |
### Instruction:
CREATE TABLE table_40987 (
"Locale" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the lowest Ends Lost... | SELECT MIN("Ends Lost") FROM table_40987 WHERE "Locale" = 'norway' AND "Blank Ends" > '17' |
### Instruction:
CREATE TABLE wedding (
church_id number,
male_id number,
female_id number,
year number
)
CREATE TABLE church (
church_id number,
name text,
organized_by text,
open_date number,
continuation_of text
)
CREATE TABLE people (
people_id number,
name text,
co... | SELECT name, country FROM people WHERE age < (SELECT AVG(age) FROM people) |
### Instruction:
CREATE TABLE table_69199 (
"Venue" text,
"City" text,
"Tickets Sold / Available" text,
"Gross Revenue (1982)" text,
"Gross Revenue (2011)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tickets were sold / available for the... | SELECT "Tickets Sold / Available" FROM table_69199 WHERE "Gross Revenue (2011)" = '$333,100' |
### Instruction:
CREATE TABLE table_41860 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average cuts made at the top 25, le... | SELECT AVG("Cuts made") FROM table_41860 WHERE "Top-25" < '10' AND "Top-10" > '3' |
### Instruction:
CREATE TABLE table_1556 (
"Edition" text,
"Round" text,
"Date" text,
"Partnering" text,
"Against" text,
"Surface" text,
"Opponents" text,
"W\u2013L" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name ... | SELECT "Date" FROM table_1556 WHERE "Opponents" = 'Margalita Chakhnashvili Salome Devidze' |
### Instruction:
CREATE TABLE table_28716 (
"Monarch" text,
"Heir" text,
"Status" text,
"Relationship to Monarch" text,
"Became heir; reason" text,
"Ceased to be heir; reason" text,
"Next in succession" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Monarch" FROM table_28716 WHERE "Status" = 'Heir presumptive' AND "Relationship to Monarch" = 'son' |
### Instruction:
CREATE TABLE table_204_584 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how man... | SELECT (SELECT "laps" FROM table_204_584 WHERE "driver" = 'jochen mass') - (SELECT "laps" FROM table_204_584 WHERE "driver" = 'carlos pace') |
### Instruction:
CREATE TABLE table_46320 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Bonus Points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Drawn" FROM table_46320 WHERE "Lost" = '14' AND "Bonus Points" = '12' |
### Instruction:
CREATE TABLE election (
election_id number,
representative_id number,
date text,
votes number,
vote_percent number,
seats number,
place number
)
CREATE TABLE representative (
representative_id number,
name text,
state text,
party text,
lifespan text
)
... | SELECT T2.name FROM election AS T1 JOIN representative AS T2 ON T1.representative_id = T2.representative_id WHERE votes > 10000 |
### Instruction:
CREATE TABLE table_40453 (
"Constituency" text,
"Michael D. Higgins" text,
"Se\u00e1n Gallagher" text,
"Martin McGuinness" text,
"Gay Mitchell" text,
"David Norris" text,
"Dana Rosemary Scallon" text,
"Mary Davis" text
)
-- Using valid SQLite, answer the following ques... | SELECT "Mary Davis" FROM table_40453 WHERE "Gay Mitchell" = '4.6%' |
### Instruction:
CREATE TABLE table_58945 (
"Binary" real,
"Octal" real,
"Decimal" real,
"Hexadecimal" real,
"Glyph" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the glyph with a binary less than 111001, an octal less than 65, a... | SELECT SUM("Glyph") FROM table_58945 WHERE "Binary" < '111001' AND "Octal" < '65' AND "Hexadecimal" < '30' |
### 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 Class, COUNT(Class) FROM captain GROUP BY Rank, Class ORDER BY Class DESC |
### Instruction:
CREATE TABLE table_24207 (
"Order" real,
"Couple" text,
"Karen" text,
"Nicky" text,
"Jason" text,
"Ruthie" text,
"Robin" text,
"Total" text,
"Scoreboard" text,
"Song" text,
"Public Vote %" text,
"Result" text
)
-- Using valid SQLite, answer the followin... | SELECT "Scoreboard" FROM table_24207 WHERE "Total" = '23.5' |
### Instruction:
CREATE TABLE table_name_30 (
position VARCHAR,
college_junior_club_team__league_ VARCHAR,
round VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Position, when Round is less than 5, when Nationality is 'Can... | SELECT position FROM table_name_30 WHERE round < 5 AND nationality = "canada" AND college_junior_club_team__league_ = "saint john sea dogs ( qmjhl )" |
### Instruction:
CREATE TABLE table_203_276 (
id number,
"album#" text,
"english title" text,
"chinese (traditional)" text,
"chinese (simplified)" text,
"release date" text,
"label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was the albu... | SELECT (SELECT "release date" FROM table_203_276 WHERE "english title" = 'beautiful') < (SELECT "release date" FROM table_203_276 WHERE "english title" = 'love in heart') |
### Instruction:
CREATE TABLE table_28227 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT "Position" FROM table_28227 WHERE "Year" = '1992' |
### Instruction:
CREATE TABLE table_29793 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code(s)" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "Written by" FROM table_29793 WHERE "Production code(s)" = '225560' |
### Instruction:
CREATE TABLE table_39464 (
"Name" text,
"Status" text,
"Population" real,
"District" text,
"Former local authority" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the parish that has a population larger than 2,15... | SELECT "Name" FROM table_39464 WHERE "Status" = 'civil parish' AND "Population" > '2,156' AND "Former local authority" = 'dalton in furness urban district' |
### Instruction:
CREATE TABLE table_2427 (
"Order" real,
"Couple" text,
"Karen" text,
"Nicky" text,
"Jason" text,
"Ruthie" text,
"Robin" text,
"Total" text,
"Scoreboard" text,
"Song" text,
"Public Vote %" text,
"Result" text
)
-- Using valid SQLite, answer the following... | SELECT "Song" FROM table_2427 WHERE "Robin" = '4.0' |
### Instruction:
CREATE TABLE table_35214 (
"Year" real,
"Group" text,
"Award" text,
"Film" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Award has a Group of c sar awards, and a Result of nominated, and a Year larger than 2001... | SELECT "Award" FROM table_35214 WHERE "Group" = 'césar awards' AND "Result" = 'nominated' AND "Year" > '2001' AND "Film" = '8 women (8 femmes)' |
### Instruction:
CREATE TABLE table_70070 (
"Institution" text,
"Team" text,
"City" text,
"Province" text,
"First season" real,
"Head coach" text,
"Enrollment" real,
"Endowment" text,
"Football stadium" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questio... | SELECT MIN("Enrollment") FROM table_70070 WHERE "Capacity" > '35,650' |
### Instruction:
CREATE TABLE table_63246 (
"Sunrayia FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the total byes for the Red Cliffs with more than 4 losses an... | SELECT COUNT("Byes") FROM table_63246 WHERE "Losses" > '4' AND "Sunrayia FL" = 'red cliffs' AND "Against" > '2422' |
### Instruction:
CREATE TABLE table_20399 (
"Player" text,
"Matches" real,
"Overs" text,
"Maidens" real,
"Runs" real,
"Wickets" real,
"Average" text,
"Economy" text,
"5w" real,
"10w" real,
"Best Bowling" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Player" FROM table_20399 WHERE "Best Bowling" = '2/43' |
### Instruction:
CREATE TABLE table_70621 (
"Team" text,
"Truck(s)" text,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Owner(s)" text,
"Crew Chief" text,
"Rounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most number of rou... | SELECT MAX("Rounds") FROM table_70621 WHERE "Truck(s)" = 'chevrolet silverado' AND "Team" = 'rbr enterprises' |
### Instruction:
CREATE TABLE table_3328 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Population (2011)" FROM table_3328 WHERE "Cyrillic Name Other Names" = 'Бачки Моноштор (Croatian: Monoštor)' |
### Instruction:
CREATE TABLE table_50911 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the college/junior/club team (league) of lw posi... | SELECT "College/Junior/Club Team (League)" FROM table_50911 WHERE "Round" > '4' AND "Position" = 'lw' AND "Player" = 'mark miller' |
### Instruction:
CREATE TABLE party (
Party_ID VARCHAR,
Party VARCHAR
)
CREATE TABLE election (
Committee VARCHAR,
Party VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which committees have delegates from both democratic party and liberal party?
#... | SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Liberal" |
### Instruction:
CREATE TABLE table_203_356 (
id number,
"type" text,
"diagonal (mm)" text,
"width (mm)" text,
"height (mm)" text,
"area (mm2)" text,
"stops (area)" number,
"crop factor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- whi... | SELECT "type" FROM table_203_356 WHERE "type" IN ('super 8mm film frame', 'imax film frame') ORDER BY "diagonal (mm)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_68559 (
"Season" text,
"Competition" text,
"Round" text,
"Opponents" text,
"Home leg" text,
"Away leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the home leg for uefa europa lea... | SELECT "Home leg" FROM table_68559 WHERE "Competition" = 'uefa europa league' AND "Round" = 'q1' AND "Opponents" = 'motherwell' |
### Instruction:
CREATE TABLE table_57778 (
"Rocket launch" text,
"Launch Date" text,
"Mission" text,
"Institutional authority" text,
"Launch Site" text,
"Outcomes" text,
"Derivatives" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Der... | SELECT "Derivatives" FROM table_57778 WHERE "Launch Date" = 'july 15, 1970; 15:05 gmt' |
### Instruction:
CREATE TABLE table_1926 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT "Township" FROM table_1926 WHERE "Longitude" = '-99.287270' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.