elect `level`, count(uid) as level_cnt from (select ui.uid, ui.level from user_info as ui ...