select gender,university,count(*) AS user_num,avg(active_days_within_30) AS avg_active_day,avg(question_cnt) AS avg_question_cnt from user_profile group by gender,university order by gender,university;