select gender,university, count(gender) user_num, round(sum(active_days_within_30),1)/count(gender) avg_active_day, round(sum(question_cnt),1)/count(gender) avg_question_cnt from user_profile group by gender,university;