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