Query editor
--NAODA # of POP holders by Datewith first_date as (selectto,min(evt_block_time) as first_datefrom erc1155_polygon.evt_TransferSinglewhere 1=1and contract_address = 0xA9AfA77d0D960735BBac48782947F8E86f24C87Agroup by 1),new_holder as (selectdate_trunc('day', first_date) as dt,count(*) as newfrom first_dategroup by 1),total_stat as (selectdate_trunc('day', evt_block_time) as dt,count(distinct 'from') as unique_address_from,count(distinct to) as unique_address_to,count(*) as txsfrom erc1155_polygon.evt_TransferSinglewhere 1=1and contract_address = 0xA9AfA77d0D960735BBac48782947F8E86f24C87Agroup by 1)selectdt,t.*,t.unique_address_to - new as old,new,sum(new) over(order by dt asc) as cum_sum,(casewhen dt <= date('2023-04-12') then 'before POP'when dt <= date('2023-04-14') then 'before NFTNYC'when dt <= date('2023-04-19') then 'before Polygon PR'when dt <= date('2023-04-25') then 'before Beta Master Twit'when dt <= date('2023-05-02') then 'before Polygon Scan PR'when dt <= date('2023-05-16') then 'before Connext AMA'else 'Undefined'end) as Marketingeventsfrom total_stat tleft join new_holder n using(dt)order by dt desc