select u.university, d.difficult_level, round(count(q.question_id)/count(distinct(q.device_id)) ,4) as avg_answer_cntfrom user_profile as u,question_practice_detail as q,question_detail as dwhere u.device_id=q.device_id and q.question_id=d.question_idgroup by u.university,d.difficult_level