select tag,count(1) tag_cnt from (select ei.exam_id,ei.tag,er.uid,er.start_time,er.submit_time,er.score from exam_record er left join examination_info ei using(exam_id) where uid in (select distinct uid from (select tag,uid,start_time,submit_time,score,count(1) o...