```select
    substring_index(substring_index(profile, ',', -2), ',', 1) as age,
    count(device_id) as number
from user_submit
group by age


substring_index(参数str,参数delim,参数count)
str :要处理的字符串
delim:分隔符
count:计数
如果count是正数,那么就是从左往右数,第N个分隔符的左边的全部内容!
substring_index(profile, ',', 2)
 相反,如果是负数,那么就是从右边开始数,第N个分隔符右边的所有内容,如:
substring_index(profile, ',', -2)