Query editor
with raw_table as (select"from" as from_address, contract_address, CAST(amount_raw as decimal(38, 0)) / 1e18 as transfer_amountfrom tokens.transferswhere blockchain = 'arbitrum'and contract_address in (0xAF67341456151Ab8c270E0962966092181c2Eb80, 0x11456849c38Ea4AF212Ab8d4324b39983716516A)and "to" = 0x72974D1735642c49aA0195BC51F08968083190A2)selectfrom_address, coalesce(sum(transfer_amount) filter(where contract_address = 0x11456849c38Ea4AF212Ab8d4324b39983716516A), 0) as yt_susdai, coalesce(sum(transfer_amount) filter(where contract_address = 0xAF67341456151Ab8c270E0962966092181c2Eb80), 0) as yt_usdai, coalesce(sum(transfer_amount) filter(where contract_address = 0x11456849c38Ea4AF212Ab8d4324b39983716516A), 0) / 0.36 + coalesce(sum(transfer_amount) filter(where contract_address = 0xAF67341456151Ab8c270E0962966092181c2Eb80), 0) / 0.18 as chipsfrom raw_tablegroup by from_addressorder by chips desc