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

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, rank in ascending by the y-axis.
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)
SELECT "Company_name", COUNT("Company_name") FROM "chip_model" "T1" JOIN "phone" "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")