Query editor
withcurrent_price as (selectdate_trunc('day', minute) as day,avg(price) as pricefromprices.usdwheresymbol = 'ETH'and date_trunc('day', minute) = timestamp '2023-12-01'group by1),supplies as (selectdate_trunc('day', block_time) as day,amount_usd as usd,token_bought_amount as amount,amount_usd / token_bought_amount as usd_per_token,tx_hash as hash_tx,tx_from as senderfromdex.trades as dwheredate_trunc('day', block_time) = timestamp '2022-01-01'and token_bought_symbol = 'ETH'),fusion as (select*,(selectpricefromcurrent_pricelimit1) as current_pricefromsupplies as s)select*fromfusionwhereusd_per_token < current_price