CREATE TABLE farm (Farm_ID INT, Year INT, Total_Horses FLOAT, Working_Horses FLOAT, Total_Cattle FLOAT, Oxen FLOAT, Bulls FLOAT, Cows FLOAT, Pigs FLOAT, Sheep_and_Goats FLOAT)
CREATE TABLE city (City_ID INT, Official_Name TEXT, Status TEXT, Area_km_2 FLOAT, Population FLOAT, Census_Ranking TEXT)
CREATE TABLE competition_record (Competition_ID INT, Farm_ID INT, Rank INT)
CREATE TABLE farm_competition (Competition_ID INT, Year INT, Theme TEXT, Host_city_ID INT, Hosts TEXT)

A bar chart about what are the statuses and average populations of each city?, I want to sort by the the average of population in ascending.
SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY AVG(Population)
SELECT "Status", AVG("Population") FROM "city" GROUP BY "Status" ORDER BY AVG("Population") NULLS FIRST