select t1.device_id, t1.university, t1.gpa from user_profile t1 join( select university, min(gpa) as gpa from user_profile group by university ) t2 on t1.university = t2.university and t1.gpa = t2.gpa order by t1.university
select t1.device_id, t1.university, t1.gpa from user_profile t1 join( select university, min(gpa) as gpa from user_profile group by university ) t2 on t1.university = t2.university and t1.gpa = t2.gpa order by t1.university