Query editor
withstable as (select stablecoin,address,denomination from query_1879804where chain='ethereum'and address <> 0xa693b19d2931d498c5b318df961919bb4aee87a5and denomination = 'USD'),price as (select date_trunc('day',minute) as day, contract_address, symbol, avg(price) as pricefrom prices.usdwhere minute >= date('2020-01-01')and contract_address in (select distinct address from stable)and blockchain = 'ethereum'group by 1,2,3union allselect day, contract_address, symbol, pricefrom dune."21co".result_stablecoin_missing_price)select day, symbol, (price-1) as price_deviationfrom pricewhere day not in (date('2023-07-14'), date('2023-07-22'),date('2023-05-28') )