Query editor
WITH DailyUniqueAddresses AS (SELECTDATE(t.block_date) AS date,t."from"FROMavalanche_c.traces tWHEREt.to = 0x4305FB66699C3B2702D4d05CF36551390A4c69C6AND t.successAND t.block_date <= (now() - interval '1' day)GROUP BYDATE(t.block_date), t."from"), CumulativeAddresses AS (SELECTa.date,COUNT(DISTINCT b."from") AS cumulative_unique_addressesFROMDailyUniqueAddresses aJOINDailyUniqueAddresses b ON a.date >= b.dateGROUP BYa.dateORDER BYa.date)SELECTa.date,COUNT(DISTINCT a."from") AS daily_unique_addresses,b.cumulative_unique_addressesFROMDailyUniqueAddresses aJOINCumulativeAddresses b ON a.date = b.dateGROUP BYa.date, b.cumulative_unique_addressesORDER BYa.date