CREATE TABLE participates_in (stuid NUMBER, actid NUMBER)
CREATE TABLE student (stuid NUMBER, lname CLOB, fname CLOB, age NUMBER, sex CLOB, major NUMBER, advisor NUMBER, city_code CLOB)
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)

In which buildings are there at least ten 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