Query editor
with table1 as (select symbol as dex_symbol, decimals as dex_decimals, avg(token_price_usd) as dex_pricefrom dex.prices_latest,tokens.erc20where token_address = 0xad55aebc9b8c03fc43cd9f62260391c13c23e7c0and contract_address = 0xad55aebc9b8c03fc43cd9f62260391c13c23e7c0and blockchain = 'ethereum'group by 1,2),table2 as (select symbol as dex_symbol, decimals as dex_decimals, avg(token_price_usd) as dex_price2from dex.prices_latest,tokens.erc20where token_address = 0x8238884Ec9668Ef77B90C6dfF4D1a9F4F4823BFeand contract_address = 0x8238884Ec9668Ef77B90C6dfF4D1a9F4F4823BFeand blockchain = 'ethereum'group by 1,2)SELECTdex_price,dex_price2,dex_price2/dex_price as ratioFROM table1, table2