Query editor
WITHDailyUniqueAddresses AS (SELECTDATE(tc.block_date) AS date,tx."from" as tx_fromFROMbase.traces tcJOIN base.transactions tx ON tc.tx_hash = tx.hashWHEREtc.to = 0x8250f4aF4B972684F7b336503E2D6dFeDeB1487aAND tx.block_date <= (now() - interval '1' day)AND tx.successGROUP BYDATE(tc.block_date),tx."from"),CumulativeAddresses AS (SELECTa.date,COUNT(DISTINCT b.tx_from) AS cumulative_unique_addressesFROMDailyUniqueAddresses aJOIN DailyUniqueAddresses b ON a.date >= b.dateGROUP BYa.dateORDER BYa.date)SELECTa.date,COUNT(DISTINCT a.tx_from) AS daily_unique_addresses,b.cumulative_unique_addressesFROMDailyUniqueAddresses aJOIN CumulativeAddresses b ON a.date = b.dateGROUP BYa.date,b.cumulative_unique_addressesORDER BYa.date