Query editor
with fusdc as (select evt_block_time, evt_tx_hash, cast(value as double) as quantity1from erc20_arbitrum.evt_Transferwhere contract_address = 0x4CFA50B7Ce747e2D61724fcAc57f24B748FF2b2Aand "from" = 0x0000000000000000000000000000000000000000UNION ALLselect evt_block_time, evt_tx_hash, -cast(value as double) as quantity1from erc20_arbitrum.evt_Transferwhere contract_address = 0x4CFA50B7Ce747e2D61724fcAc57f24B748FF2b2Aand "to" = 0x0000000000000000000000000000000000000000),ausdc as (select evt_block_time, evt_tx_hash, -cast(value as double) as quantity2from erc20_arbitrum.evt_Transferwhere contract_address = 0x724dc807b04555b71ed48a6896b6F41593b8C637and "from" = 0x91beb5c41df001175b588c9510327d53f278972aUNION ALLselect evt_block_time, evt_tx_hash, cast(value as double) as quantity2from erc20_arbitrum.evt_Transferwhere contract_address = 0x724dc807b04555b71ed48a6896b6F41593b8C637and "to" = 0x91beb5c41df001175b588c9510327d53f278972a)SELECT(SELECT SUM(quantity2) FROM ausdc) / (SELECT SUM(quantity1) FROM fusdc) AS ratio;