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

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