Query editor
with prices AS (select date_trunc('day', minute) as day,casewhen symbol = 'WETH' then 'ETH'when symbol = 'FIL' then 'axlFIL'else symbol end as symbol,contract_address,blockchain,decimals,avg(price) AS pricefrom prices.usd pwhere((blockchain = 'ethereum' AND (symbol = 'WETH' OR symbol = 'WBTC' OR symbol = 'USDC'))OR symbol = 'FIL')and date(minute) >= date('2023-12-14')group by 1,2,3,4,5order by 1 desc),prices2 as (selectday as "Date",symbol as Asset,price as Pricefrom pricesorder by 1 desc, 2 asc)SELECT"Date",MAX(CASE WHEN Asset = 'axlFIL' THEN Price ELSE NULL END) AS axlFIL,MAX(CASE WHEN Asset = 'ETH' THEN Price ELSE NULL END) AS ETH,MAX(CASE WHEN Asset = 'USDC' THEN Price ELSE NULL END) AS USDC,MAX(CASE WHEN Asset = 'WBTC' THEN Price ELSE NULL END) AS WBTCFROMprices2GROUP BY"Date"ORDER BY"Date" desc