Query editor
with daily_redemptions as (selectdate_trunc('day', block_time) as dt,blockchain,sum(amount_raw / 1e18) as total_redeemedfrom tokens.transferswhere((blockchain = 'ethereum' and contract_address = 0x8238884ec9668ef77b90c6dff4d1a9f4f4823bfe)or (blockchain = 'base' and contract_address = 0xad55aebc9b8c03fc43cd9f62260391c13c23e7c0))and to = 0x0000000000000000000000000000000000000000group by 1, 2),time_series as (selectdt,sum(case when blockchain = 'ethereum' then total_redeemed else 0 end) over (order by dt asc) as eth_total_redeemed,sum(case when blockchain = 'base' then total_redeemed else 0 end) over (order by dt asc) as base_total_redeemedfrom daily_redemptions)select *from time_seriesorder by dt desc;