Query editor
with csw as (SELECToutput_account as wallet,MIN(call_block_time) as first_registered,chainFROM coinbase_smart_wallet_multichain.coinbasesmartwalletfactory_call_createaccountwhere chain = 'base'GROUP BY output_account, chain)select*,sum(amt_usdc) over (order by month) as total_amt_usdc,sum(amt_usd) over (order by month) as total_amt_usdfrom (selectdate_trunc('month', evt_block_date) as month,sum(amount/1e6) as amt_usdc,sum(amount/1e6 * price) as amt_usdfrom base_magic_spend_base.magicspend_evt_magicspendwithdrawal wjoin csw con c.wallet = w.accountleft join (select date_trunc('hour',minute) as hour,avg(price) as pricefrom prices.usdwhere blockchain = 'base'and contract_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913and minute >= date '2025-01-01'group by 1) pon p.hour = date_trunc('hour', evt_block_time)where w.asset = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913and evt_block_date >= date '2025-01-01'group by 1)order by 1 desc