select min(score) min_score_over_avg from (select*from exam_record where score is not null) p join examination_info f using(exam_id) where tag='SQL' and score>=( select avg(score) from (select*from exam_record where score is not null) n join examination_info t using(exam_id) where tag='SQL' ); ...