Query editor
--NAODA Number of POPs in clustered holder groupswith to_cnt as (select to, count(*) as cntfrom erc1155_polygon.evt_TransferSinglewhere contract_address = 0xA9AfA77d0D960735BBac48782947F8E86f24C87Agroup by 1order by 2 desc),cnt_grouping as (Select to,CASEWHEN cnt = 1 then '(a) holder of 1 POP'WHEN cnt > 1 and cnt <=5 then '(b) holder of 2-5 POPs'WHEN cnt > 5 and cnt <=10 then '(b) holder of 6-10 POPs'WHEN cnt > 10 and cnt <=15 then '(b) holder of 11-15 POPs'WHEN cnt > 15 then '(c) holder of more than 15 POPs'END as countsfrom to_cnt)Select count(to) as group_count , counts from cnt_groupinggroup by counts