select min(e.score) min_score_over_avg from exam_record e
join examination_info e1
on e.exam_id = e1.exam_id
where e1.tag='SQL'
and e.score >= (select avg(e.score) from exam_record e
join examination_info e1
on e.exam_id = e1.exam_id
where e1.tag='SQL')
join examination_info e1
on e.exam_id = e1.exam_id
where e1.tag='SQL'
and e.score >= (select avg(e.score) from exam_record e
join examination_info e1
on e.exam_id = e1.exam_id
where e1.tag='SQL')