Question: List the first and last name of the students who do not have any food type allergy.
Schema: create table student (fname varchar, lname varchar, stuid varchar, PRIMARY KEY (fname)); create table allergy_type (allergy varchar, allergytype varchar, PRIMARY KEY (allergy)); create table has_allergy (stuid varchar, allergy varchar, PRIMARY KEY (stuid))
SQL: select fname, lname from student where not stuid in (select t1.stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = "food")