Query editor
WITH daily_stats AS (SELECTDATE(tx.block_time) AS claim_date,COUNT(DISTINCT tx."from") AS daily_claimers,SUM(CAST(evt.value AS DOUBLE) / 1e18) AS daily_claimedFROM ethereum.transactions AS txJOIN erc20_ethereum.evt_Transfer AS evt ON tx.hash = evt.evt_tx_hashWHERE( tx."to" = 0x035bdAeaB85E47710C27EdA7FD754bA80aD4ad02 or tx."to" = 0xf532a5a35007804a9ca79e7fa15d8f648f6d7f28 or tx."to" = 0xa105C3AbeDBAf4295AC6149BF24D5311F629934c )-- claim smart contractAND CAST(tx.data AS VARCHAR) LIKE '0x9a15bf92%' -- claim methodGROUP BY DATE(tx.block_time)),cumulative_stats AS (SELECTclaim_date,daily_claimers,daily_claimed,SUM(daily_claimers) OVER (ORDER BY claim_date) AS cumulative_claimers,SUM(daily_claimed) OVER (ORDER BY claim_date) AS cumulative_claimedFROM daily_stats)SELECTclaim_date AS date,ROUND(cumulative_claimed, 2) AS total_claimed_cumulative,ROUND(daily_claimed, 2) AS total_claimed_daily,cumulative_claimers AS total_claimers_cumulative,daily_claimers AS total_claimers_dailyFROM cumulative_statsORDER BY claim_date