select tt.name, count(1) (select REGEXP_SUBSTR('t.name','1+', 1,1, 'i') name from user tunion select REGEXP_SUBSTR('t.name','1+', 1,2, 'i') name from user t)tt, ↩
select tt.name, count(1) (
select REGEXP_SUBSTR('t.name','1+', 1,1, 'i') name from user t
union
select REGEXP_SUBSTR('t.name','1+', 1,2, 'i') name from user t)
tt