Query editor
with price_peg as (selecthr,token_price_eth_6hr_ma,token_peg_eth,token_trade_amount_eth,token_price_peg_ratio_6hr_ma,token_name,rank() over (partition by token_name order by hr desc) as rankfromquery_3480245where token_peg_eth > 0and token_trade_amount_eth > 0)selecttoken_name,token_price_eth_6hr_ma,token_peg_eth,token_trade_amount_eth,token_price_peg_ratio_6hr_ma,hrfromprice_pegwhererank = 1order bytoken_name