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/-- SELECT t1.evt_block_time, COUNT(DISTINCT t2.account) as num_unique_earners-- FROM telcoin_staking_polygon.SimplePlugin_evt_ClaimableIncreased t1-- JOIN telcoin_staking_polygon.SimplePlugin_evt_ClaimableIncreased t2-- ON t1.evt_block_time >= t2.evt_block_time-- GROUP BY t1.evt_block_time-- ORDER BY t1.evt_block_time ASCSELECT t1.evt_block_time, COUNT(DISTINCT t2.account) as num_unique_earnersFROM telcoin_staking_polygon.SimplePlugin_evt_ClaimableIncreased t1JOIN telcoin_staking_polygon.SimplePlugin_evt_ClaimableIncreased t2ON t1.evt_block_time >= t2.evt_block_timeWHERE t1.evt_block_time >= CAST('{{start_date}}' AS TIMESTAMP) AND t1.evt_block_time <= CAST('{{end_date}}' AS TIMESTAMP)GROUP BY t1.evt_block_timeORDER BY t1.evt_block_time ASC