Query editor
with tmp as (selectdate_trunc('day', block_time) as dt,count(distinct "from") as dau,count(*) as txs,sum(value/1e18) as amountfrom mantle.transactionswhere to = 0xfdde8c82f23000093d768146fa7ef7ad9690ac71group by 1),new_user_stats as (selectdt,count(*) as new_userfrom (select"from" as addr,min(date_trunc('day', block_time)) as dtfrom mantle.transactionswhere to = 0xfdde8c82f23000093d768146fa7ef7ad9690ac71group by 1)group by 1)select*,dau-coalesce(new_user,0) as revisit_user,sum(txs) over(order by dt asc) as total_txs,sum(amount) over(order by dt asc) as total_amount,sum(coalesce(new_user,0)) over(order by dt asc) as total_userfrom tmpleft join new_user_stats using(dt)order by dt desc