Question: What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies.
Schema: create table has_allergy (allergy varchar, stuid varchar, PRIMARY KEY (allergy)); create table student (stuid varchar, fname varchar, PRIMARY KEY (stuid)); create table allergy_type (allergy varchar, allergytype varchar, PRIMARY KEY (allergy))
SQL: select t1.allergy, t1.allergytype from allergy_type as t1 join has_allergy as t2 on t1.allergy = t2.allergy join student as t3 on t3.stuid = t2.stuid where t3.fname = "lisa" order by t1.allergy