CREATE TABLE phone_market (market_id DECIMAL, phone_id TEXT, num_of_stock DECIMAL)
CREATE TABLE market (market_id DECIMAL, district TEXT, num_of_employees DECIMAL, num_of_shops DECIMAL, ranking DECIMAL)
CREATE TABLE phone (name TEXT, phone_id DECIMAL, memory_in_g DECIMAL, carrier TEXT, price DECIMAL)

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