Query editor
select category, count(distinct wallet) as wallets from (selecttx_from as wallet,case when balance < amount and balance != 0 and sold_drop = 0 then 'transferred some tokens out'when balance = 0 and sold_drop = 0 then 'transferred all out'when balance != 0 and sold_drop = 0 and bought is null then 'hold all'when sold_drop > 50 and bought is not null then 'sold more then half and bougth more'when sold_drop <= 50 and sold is null and bought is not null then 'sold less then half and bougth more'when sold_drop = 100 and bought is not null then 'sold all and bougth more'when sold_drop = 100 then 'sold all'when sold_drop <= 50 and sold is not null then 'sold less then half'when sold_drop > 50 and sold is not null then 'sold more then half'else 'null'end as categoryfrom query_3701108)group by 1