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

How many faculty members do we have for each rank and gender?
SELECT rank, sex, COUNT(*) FROM faculty GROUP BY rank, sex
SELECT "rank", "sex", COUNT(*) FROM "faculty" GROUP BY "rank", "sex"