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

Compare the number of the names of phones by a bar chart, I want to rank Y-axis in desc order.
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) DESC
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") DESC NULLS LAST