CREATE TABLE people (People_ID NUMBER, Sex CLOB, Name CLOB, Date_of_Birth CLOB, Height FLOAT, Weight FLOAT)
CREATE TABLE candidate (Candidate_ID NUMBER, People_ID NUMBER, Poll_Source CLOB, Date CLOB, Support_rate FLOAT, Consider_rate FLOAT, Oppose_rate FLOAT, Unsure_rate FLOAT)

A bar chart shows the distribution of Sex and the amount of Sex , and group by attribute Sex, I want to rank X from high to low order.
SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex ORDER BY Sex DESC
SELECT "Sex", COUNT("Sex") FROM "people" GROUP BY "Sex" ORDER BY "Sex" DESC