-- Database schema
| Allergy_Type : Allergy [ TEXT ] primary_key , AllergyType [ TEXT ] | Has_Allergy : StuID [ INT ] Has_Allergy.StuID = Student.StuID , Allergy [ TEXT ] Has_Allergy.Allergy = Allergy_Type.Allergy | Student : StuID [ INT ] primary_key , LName [ TEXT ] , Fname [ TEXT ] , Age [ INT ] , Sex [ TEXT ] , Major [ INT ] , Advisor [ INT ] , city_code [ TEXT ] |
-- -- What are the average ages for male and female students?

SELECT avg(age) ,  sex FROM Student GROUP BY sex;