human
Schema:
phone (Name, Phone_ID, Memory_in_G, Carrier, Price)
market (Market_ID, District, Num_of_employees, Num_of_shops, Ranking)
phone_market (Market_ID, Phone_ID, Num_of_stock)
Please answer with SQL.
assistant
Sure, I understand.
human
Can you show me the carriers that have phones with memories smaller than 32?
assistant
SELECT Carrier FROM phone WHERE Memory_in_G < 32;
human
Can you show me the carriers that have phones with memories bigger than 64?
assistant
SELECT Carrier FROM phone WHERE Memory_in_G > 64;
human
Can you show me the carriers that have phones with memories smaller than 32 and bigger than 64?
assistant
SELECT Carrier FROM phone WHERE Memory_in_G < 32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G > 64 ;