同上题类似,需要把and给成or

select device_id, gender, age, university, gpa from user_profile where university = '北京大学' or gpa > 3.7;