select min(a.score) from exam_record a,examination_info b where a.exam_id=b.exam_id and b.tag='SQL' and a.score is not null and a.score>=(select sum(a.score)/count(a.score) from exam_record a,examination_info b where a.exam_id=b.exam_id and tag='SQL' and a.score is not null)