CREATE TABLE Ship (Ship_ID INT, Name TEXT, Type TEXT, Built_Year FLOAT, Class TEXT, Flag TEXT)
CREATE TABLE captain (Captain_ID INT, Name TEXT, Ship_ID INT, age TEXT, Class TEXT, Rank TEXT)

Compare the total number of captains with different classes using a bar graph, and order from high to low by the the number of class.
SELECT Class, COUNT(Class) FROM captain GROUP BY Class ORDER BY COUNT(Class) DESC
SELECT "Class", COUNT("Class") FROM "captain" GROUP BY "Class" ORDER BY COUNT("Class") DESC NULLS LAST