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

Show me a bar chart comparing the total number of captains in each rank, sort by the Rank in descending please.
SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank ORDER BY Rank DESC
SELECT "Rank", COUNT("Rank") FROM "captain" GROUP BY "Rank" ORDER BY "Rank" DESC NULLS LAST