Query editor
with days AS (select day from unnest(sequence(cast('2024-08-10' as timestamp(3)), cast(current_timestamp as timestamp(3)), interval '1' day)) as days(day)),job_days as (selectday,jobKey as jobfrom daysleft join (select jobKey from powerpool_arbitrum.PPAgentV2VRF_evt_Executewhere contract_address = 0x9fDB1462Edb170aEf47f052bA69a7fa64130D149group by 1) a on 1=1),jobs as (selectDATE_TRUNC('day', evt_block_time) as day,jobKey as job,count(*) as jobs_executedfrom powerpool_arbitrum.PPAgentV2VRF_evt_Executewhere contract_address = 0x9fDB1462Edb170aEf47f052bA69a7fa64130D149group by 1, 2order by 1 desc),main as (selecta.day,a.job,coalesce(j.jobs_executed, 0) as jobs_executed,sum(j.jobs_executed) over (partition by a.day order by a.day) as execsfrom job_days aleft join jobs j on a.day = j.day and a.job = j.job)select * from mainwhere jobs_executed > 0and day >= cast('2025-03-10' as timestamp) --current_timestamp - interval '14' dayand day < cast('2025-03-24' as timestamp)