Query editor
WITH ore_transactions AS (SELECTid AS tx_id,signer,block_time,feeFROM solana.transactionsWHEREblock_time >= TIMESTAMP '2024-08-06 00:00:00 UTC'AND CONTAINS(account_keys, 'oreV2ZymfyeXgNgBdqMkumTqqAprVqgBWQfoYkrtKWQ')),hourly_stats AS (SELECTDATE_TRUNC('hour', block_time) AS hour,COUNT(DISTINCT signer) AS unique_miners,SUM(fee) / 1e9 AS total_fees_spent_solFROM ore_transactionsGROUP BY DATE_TRUNC('hour', block_time)),cumulative_stats AS (SELECThour,unique_miners,total_fees_spent_sol,SUM(unique_miners) OVER (ORDER BY hour) AS cumulative_unique_miners,SUM(total_fees_spent_sol) OVER (ORDER BY hour) AS cumulative_fees_spent_solFROM hourly_stats)SELECThour,unique_miners,total_fees_spent_sol,cumulative_unique_miners,cumulative_fees_spent_solFROM cumulative_statsORDER BY hour