Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/with ts as (select * fromunnest(sequence(cast(('2022-12-12 00:00:00')as timestamp), cast(now() as timestamp), interval '1' hour)) as s(timestamp)),mints as (Selectdate_trunc('hour', A.call_block_time) timestamp,count(distinct A.call_tx_hash) deeds_mintedFrom foreverland_ethereum.ethernal_love_bridge_call_safeMintDeed AWhereA.call_success = trueGroup by 1Union allSelectnow(),cast('0' as bigint) as sales),final as (SelectA.timestamp,B.deeds_mintedfrom ts Aleft join mints B on A.timestamp = B.timestamp)Selecttimestamp,deeds_minted,sum(deeds_minted) over (order by timestamp asc) cumulative_deeds_mintedfrom finalGroup by 1,2