CREATE TABLE market (Market_ID INT, District TEXT, Num_of_employees INT, Num_of_shops FLOAT, Ranking INT)
CREATE TABLE phone (Name TEXT, Phone_ID INT, Memory_in_G INT, Carrier TEXT, Price FLOAT)
CREATE TABLE phone_market (Market_ID INT, Phone_ID TEXT, Num_of_stock INT)

A bar chart about what are the memories and carriers of phones?, rank total number in ascending order.
SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY AVG(Memory_in_G)
SELECT "Carrier", AVG("Memory_in_G") FROM "phone" GROUP BY "Carrier" ORDER BY AVG("Memory_in_G") NULLS FIRST