Task: Text to Code
Input (English): Step 1: find the AllergyType of Allergy_Type table.
Step 2: find the average Age in Student table whose Sex one of the results of step 1
Output (English): SELECT Avg ( T1.Age ) FROM Student AS T1 WHERE T1.Sex IN ( SELECT T2.AllergyType FROM Allergy_Type AS T2 )