select university ,count(device_id) total_cnt ,count(case when gender='male' then 1 else null end) male_cnt ,count(case when gender='female' then 1 else null end) female_cnt ,count(case when age<23 then device_id else null end) lt23_cnt from user_profile group by university having avg(gpa)>3....