select device_id,gender,age,university from user_profile having age>24;

where和having都可以