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

I want to compare the number of the names of phones by a bar chart, and display from low to high by the total number.
SELECT Name, COUNT(Name) FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID GROUP BY Name ORDER BY COUNT(Name)
SELECT "Name", COUNT("Name") FROM "phone_market" "T1" JOIN "market" "T2" ON "T1"."Market_ID" = "T2"."Market_ID" JOIN "phone" "T3" ON "T1"."Phone_ID" = "T3"."Phone_ID" GROUP BY "Name" ORDER BY COUNT("Name")