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)
CREATE TABLE people (People_ID NUMBER, Sex CLOB, Name CLOB, Date_of_Birth CLOB, Height FLOAT, Weight FLOAT)

A bar chart shows the distribution of Sex and the average of Weight , and group by attribute Sex, show by the bar in desc.
SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY Sex DESC
SELECT "Sex", AVG("Weight") FROM "people" GROUP BY "Sex" ORDER BY "Sex" DESC