Query editor
--Error: Query is too long for wand tools.--Try shortening query to try again.--Error: Query is too long for wand tools.--Try shortening query to try again.withbase_table as (selecta.address,sum(amount) as holding_amountfrom(selectto as address,sum(cast(value as double) / 1e18) as amountfrombase.traceswhere(LOWER(call_type) NOT IN ('delegatecall', 'callcode', 'staticcall')or call_type is null)AND success = trueAND cast(value as double) > 0group by1UNION ALLselect"from" as address,sum(-1 * cast(value as double) / 1e18) as amountfrombase.traceswhere(LOWER(call_type) NOT IN ('delegatecall', 'callcode', 'staticcall')or call_type is null)AND success = trueAND cast(value as double) > 0group by1UNION ALLSELECT"from" as address,sum((-1) * cast(gas_price as double) * cast(gas_used as double) / 1e18) as amountFROMbase.transactionsgroup by1) awherea.address is not nullgroup by1),user_summary as (select"from" as user_address,count(distinct "to") as dest_address_count,