human
Schema:
roller_coaster (Roller_Coaster_ID, Name, Park, Country_ID, Length, Height, Speed, Opened, Status)
country (Country_ID, Name, Population, Area, Languages)
Please answer with SQL.
assistant
Sure, I understand.
human
Show the statuses of roller coasters longer than 3300 or higher than 100.
assistant
SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100
human
What is the average speed of roller coasters?
assistant
SELECT avg(Speed) FROM roller_coaster
human
List the names of roller coasters by ascending order of length.
assistant
SELECT Name FROM roller_coaster ORDER BY LENGTH ASC
human
How many roller coasters are there?
assistant
SELECT count(*) FROM roller_coaster
human
What are the speeds of the longest roller coaster?
assistant
SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1
human
What are the lengths and heights of roller coasters?
assistant
SELECT LENGTH , Height FROM roller_coaster ;