Question: Find the first name and major of the students who are not allegry to soy.
Schema: create table has_allergy (fname varchar, major varchar, stuid varchar, allergy varchar, PRIMARY KEY (fname)); create table student (fname varchar, major varchar, stuid varchar, allergy varchar, PRIMARY KEY (fname))
SQL: select fname, major from student where not stuid in (select stuid from has_allergy where allergy = "soy")