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

A bar chart shows the distribution of Sex and the amount of Sex , and group by attribute Sex, and sort Y-axis in descending order.
SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex ORDER BY COUNT(Sex) DESC
SELECT "Sex", COUNT("Sex") FROM "people" GROUP BY "Sex" ORDER BY COUNT("Sex") DESC NULLS LAST