select min(score) as min_score_over_avg from ( select tag, score, avg(score) over ( partition by tag ) as avg_score from exam_record join examination_info using (exam_id) where tag = 'SQL' ) as tmp where score >= avg_score