SELECT device_id, gpa, age
FROM user_profile
ORDER BY gpa DESC, age DESC;