human
Schema:
buildings (id, name, City, Height, Stories, Status)
Companies (id, name, Headquarters, Industry, Sales_billion, Profits_billion, Assets_billion, Market_Value_billion)
Office_locations (building_id, company_id, move_in_year)
Please answer with SQL.
assistant
Sure, I understand.
human
Show the names of the buildings
assistant
SELECT name FROM buildings;
human
Now show the names of building whose status is on-hold
assistant
SELECT name FROM buildings WHERE Status = 'on-hold';
human
names of buildings whose status is on-hold in ascending order | In what ascending order? | In ascending order of stories
assistant
SELECT name FROM buildings WHERE Status = "on-hold" ORDER BY Stories ASC ;