Query editor
with token_detail as (select minute, pricefrom prices.usdwhere blockchain = 'ethereum'and contract_address = 0x594DaaD7D77592a2b97b725A7AD59D7E188b5bFa),btc_detail as (select minute, pricefrom prices.usdwhere blockchain = 'ethereum'and contract_address = 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599 --WBTC),eth_detail as (select minute, pricefrom prices.usdwhere blockchain = 'ethereum'and contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 --WETH),correlation as (select t.minute, t.price as token_price, btc.price as btc_price, eth.price as eth_pricefrom token_detail tleft join btc_detail btc on t.minute = btc.minuteleft join eth_detail eth on t.minute = eth.minutewhere t.minute >= now() - interval '365' day)select corr(token_price, btc_price) as btc_corr, corr(token_price, eth_price) as eth_corrfrom correlation