Database: phone_1

Question: Which model has the least amount of RAM? List the model name and the amount of RAM.
SQL: SELECT Model_name ,  RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;

Question: What is maximum and minimum RAM size of phone produced by company named "Nokia Corporation"?
SQL: SELECT max(T1.RAM_MiB) ,  min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = "Nokia Corporation";

Question: What is the average ROM size of phones produced by the company named "Nokia Corporation"?
SQL: SELECT avg(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = "Nokia Corporation";

Question: List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.
SQL: SELECT T2.Hardware_Model_name ,  T2.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;

Question: Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.
SQL: SELECT Hardware_Model_name ,  Company_name FROM phone WHERE Accreditation_type LIKE 'Full';

Question: Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is "LG-P760".
SQL: SELECT T1.Char_cells ,  T1.Pixels ,  T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = "LG-P760";

Question: List the hardware model name and company name for the phone whose screen mode type is "Graphics"
SQL: SELECT T2.Hardware_Model_name ,  T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  "Graphics";

Question: Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.
SQL: SELECT Company_name ,  count(*) FROM phone GROUP BY Company_name ORDER BY count(*) ASC LIMIT 1;

Question: List the name of the company that produced more than one phone model.
SQL: SELECT Company_name FROM phone GROUP BY Company_name HAVING count(*)  >  1;

Question: List the maximum, minimum and average number of used kb in screen mode.
SQL: SELECT max(used_kb) , min(used_kb) , avg(used_kb) FROM screen_mode;

Question: List the name of the phone model launched in year 2002 and with the highest RAM size.
SQL: SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1;

Question: What are the wifi and screen mode type of the hardware model named "LG-P760"?
SQL: SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = "LG-P760";