SELECT university,COUNT(question_id)/COUNT(DISTINCT u.device_id) AS avg_answer_cnt
FROM user_profile u
INNER JOIN question_practice_detail qpd
ON u.device_id = qpd.device_id
GROUP BY university;