SELECT
university,
avg(question_cnt) AS avg_question_cnt,
avg(answer_cnt) as avg_answer_cnt
from user_profile
GROUP by university
HAVING avg_question_cnt < 5 or avg_answer_cnt < 20;

having过滤条件