CREATE TABLE phone (Company_name TEXT, Hardware_Model_name TEXT, Accreditation_type TEXT, Accreditation_level TEXT, Date TEXT, chip_model TEXT, screen_mode TEXT)
CREATE TABLE screen_mode (Graphics_mode FLOAT, Char_cells TEXT, Pixels TEXT, Hardware_colours FLOAT, used_kb FLOAT, map TEXT, Type TEXT)
CREATE TABLE chip_model (Model_name TEXT, Launch_year FLOAT, RAM_MiB FLOAT, ROM_MiB FLOAT, Slots TEXT, WiFi TEXT, Bluetooth TEXT)

Compute the total number of chips of different company names for all the phones that were launched in year 2002 or have RAM size greater than 32, list y-axis in desc order.
SELECT Company_name, COUNT(Company_name) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32 GROUP BY Company_name ORDER BY COUNT(Company_name) DESC
SELECT "Company_name", COUNT("Company_name") FROM "chip_model" AS "T1" JOIN "phone" AS "T2" ON "T1"."Model_name" = "T2"."chip_model" WHERE "T1"."Launch_year" = 2002 OR "T1"."RAM_MiB" > 32 GROUP BY "Company_name" ORDER BY COUNT("Company_name") DESC NULLS LAST