Query editor
select age, count(*) as "count" from (select address,casewhen difference <=0 then 'New Wallet'when difference >0 and difference<=7 then '1D-7D'when difference >7 and difference<=30 then '1W-1M'when difference >30 and difference<=365 then '1M-1Y'when difference >365 and difference<=365*2 then '1Y-2Y'when difference >365*2 and difference<=365*3 then '2Y-3Y 'when difference > 365*3 then '>3Y'end as agefrom (select distinct "from" as address,date_diff('day',date(min(block_time)),date('2023-03-24')) as differencefrom ethereum.transactionswhere "from" in (select * from query_2318205)group by 1)a)bwhere age is not nullgroup by 1