select university, difficult_level, count(up.device_id)/count(distinct up.device_id) as avg_answer_cnt from (select qpd.device_id, qpd.question_id, qpd.result, qd.difficult_level from question_practice_detail qpd left join question_detail qd on qpd.question_id=qd.question_id) qpdd left join user_pro...