CREATE TABLE Faculty_Participates_in (FacID INT, actid INT)
CREATE TABLE Participates_in (stuid INT, actid INT)
CREATE TABLE Faculty (FacID INT, Lname VARCHAR, Fname VARCHAR, Rank VARCHAR, Sex VARCHAR, Phone INT, Room VARCHAR, Building VARCHAR)
CREATE TABLE Student (StuID INT, LName VARCHAR, Fname VARCHAR, Age INT, Sex VARCHAR, Major INT, Advisor INT, city_code VARCHAR)
CREATE TABLE Activity (actid INT, activity_name VARCHAR)

Show how many rank from each rank, and show x axis in descending order.
SELECT Rank, COUNT(Rank) FROM Faculty GROUP BY Rank ORDER BY Rank DESC
SELECT "Rank", COUNT("Rank") FROM "Faculty" GROUP BY "Rank" ORDER BY "Rank" DESC NULLS LAST