select qd.difficult_level, sum(if(qpd.result = 'right', 1, 0)) / count(qpd.question_id) as correct_ratefrom user_profile as u inner join question_practice_detail as qpd on u.de...