Query editor
withiaps as (selectblock_time,"from" as wallet_address,amount_raw,amount,price_usd,price_usdfrom tokens.transferswhereblockchain = 'base'and contract_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 -- token addrand "to" = 0xE9e61fc15cB7407745b26AE3303446185998275b -- payment sc addr),iap_totals as (selectwallet_address,sum(amount) as spent_usdfrom iapsgroup by wallet_address)select * from iap_totalswhere spent_usd >= {{min_usd_spent}}order by spent_usd desc