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

Show the number of names of phones in a bar chart, list by the Name in ascending.
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 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 "Name"