Query editor
with profile_created as (select distinct p.handle,p.profileId as profile_id,p.evt_tx_hash,p.evt_block_time,first_value(t."to") over (partition by t.tokenId order by t.evt_block_time desc) as owner -- last transfer to is ownerfrom lens_polygon.LensHub_evt_ProfileCreated pinner join lens_polygon.LensHub_evt_Transfer t on p.profileId = t.tokenId),profile_created_summary as (select date_trunc('month', evt_block_time) as block_date,count(*) as profile_countfrom profile_createdgroup by 1)select block_date,profile_count,(profile_count - lag(profile_count, 1, 0) over (order by block_date)) as profile_diff_count,sum(profile_count) over (order by block_date) as accumulate_profile_countfrom profile_created_summaryorder by block_date