select distinct uid,'activity1'as activity from exam_record where score>=85 and submit_time is not null and year(submit_time) = 2021 and uid not in (select distinct uid from exam_record where score<85) union all select distinct uid,'activity2'as activity...