Query editor
with chain_supply as (selectblockchain, supply, _updated_atfrom tokens.supply_latestwhere (blockchain = 'ethereum'and token_address = 0x72dfb2e44f59c5ad2bafe84314e5b99a7cd5075e)or (blockchain = 'arc'and token_address = 0x171a4217b86a807a64eb94757db6849fb4bdbaa0)), supply as (selectMAX(casewhen blockchain = 'ethereum'then supplyend) as ethereum_supply_cirbtc, MAX(casewhen blockchain = 'arc'then supplyend) as arc_supply_cirbtc, MAX(casewhen blockchain = 'ethereum'then _updated_atend) as ethereum_updated_at, MAX(casewhen blockchain = 'arc'then _updated_atend) as arc_updated_atfrom chain_supply), btc_price as (selectprice as btc_pricefrom prices.latestwhere blockchain = 'ethereum'and contract_address = 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599)selects.ethereum_supply_cirbtc + s.arc_supply_cirbtc as total_supply_cirbtc, p.btc_price, (s.ethereum_supply_cirbtc + s.arc_supply_cirbtc) * p.btc_price as market_cap_usd, s.ethereum_supply_cirbtc, s.arc_supply_cirbtc, s.ethereum_updated_at, s.arc_updated_at, (s.ethereum_supply_cirbtc is not null