select gender,university, count(device_id) 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;