不需要count内部group_concat-只需将其选择为具有相同group by表达式的其他项即可:
count
group_concat
group by
SELECT GROUP_CONCAT(id), COUNT(*) FROM g0 GROUP BY age, sex ORDER BY 1 DESC