Query editor
WITHdep as (SELECTdeployer, contract_deployedFROM query_5668793),users as (SELECTtx."from" as account, tx.to as tx_to, tx.block_time, tx.hash as tx_hash, ((gas_limit*cast(gas_price as double))/1e18) as fee, cast(tx.value as double)/1e18 as mon_valueFROM monad_testnet.transactions txWHERE success),agg_stat as (SELECTaccount, count(distinct tx_to) as unique_address, sum(fee) as total_gas_used, sum(mon_value) as total_mon_volumeFROM usersGROUP BY 1), top_account as (SELECT *FROM agg_stat gWHERE unique_address > 10)selectrow_number() over(ORDER BY total_gas_used DESC, total_mon_volume DESC, contract_deployed DESC, unique_address DESC ) as position, t.account, case when dp.contract_deployed is null then 0 else dp.contract_deployed end as contract_deployed, t.unique_address, t.total_gas_used, t.total_mon_volumeFROM top_account tLEFT JOIN dep dp on dp.deployer = account