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