CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR)
CREATE TABLE phone_market (Phone_ID VARCHAR, Num_of_stock INT)

Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.
SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING SUM(T1.Num_of_stock) >= 2000 ORDER BY SUM(T1.Num_of_stock) DESC
SELECT "T2"."Name" FROM "phone_market" AS "T1" JOIN "phone" AS "T2" ON "T1"."Phone_ID" = "T2"."Phone_ID" GROUP BY "T2"."Name" HAVING SUM("T1"."Num_of_stock") >= 2000 ORDER BY SUM("T1"."Num_of_stock") DESC NULLS LAST