CREATE TABLE participates_in (stuid DECIMAL, actid DECIMAL)
CREATE TABLE activity (actid DECIMAL, activity_name TEXT)
CREATE TABLE faculty (facid DECIMAL, lname TEXT, fname TEXT, rank TEXT, sex TEXT, phone DECIMAL, room TEXT, building TEXT)
CREATE TABLE faculty_participates_in (facid DECIMAL, actid DECIMAL)
CREATE TABLE student (stuid DECIMAL, lname TEXT, fname TEXT, age DECIMAL, sex TEXT, major DECIMAL, advisor DECIMAL, city_code TEXT)

Show all the buildings that have at least 10 professors.
SELECT building FROM faculty WHERE rank = "Professor" GROUP BY building HAVING COUNT(*) >= 10
SELECT "building" FROM "faculty" WHERE "Professor" = "rank" GROUP BY "building" HAVING COUNT(*) >= 10