select 
IF(age >= 25 ,'25岁及以上','25岁以下') as age_cut, count(device_id)
from user_profile
group by age_cut