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

Give me a pie to show the total number from different rank.
SELECT Rank, COUNT(*) FROM captain GROUP BY Rank
SELECT "Rank", COUNT(*) FROM "captain" GROUP BY "Rank"