Query editor
WITH DailyUniqueAddresses AS (SELECTDATE(t.block_date) AS date,t."from"FROMbase.traces tWHEREt.to = 0x8250f4aF4B972684F7b336503E2D6dFeDeB1487aAND 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