Query editor
with top_transactions as (select DATE_FORMAT(block_time, '%Y-%m-%d %H:00:00') AS hour_interval, token_bought_address, token_sold_address, amount_usd, taker, CASEWHEN token_bought_symbol = 'HIGHER' THEN 'buy'WHEN token_sold_symbol = 'HIGHER' THEN 'sell'ELSE 'other'END AS tx_type, row_number() over (partition by DATE_FORMAT(block_time, '%Y-%m-%d %H:00:00') order by amount_usd desc) as top_txfrom uniswap.tradeswhere block_time >= now() - interval '7' dayand (token_bought_symbol = 'HIGHER' or token_sold_symbol = 'HIGHER'))selecttop_tx, hour_interval, casewhen tx_type = 'sell' then -1*amount_usd-- when tx_type = 'buy' then amount_usdelse amount_usdend as tx_amount, tx_type, taker, ens.namefrom top_transactions txleft join labels.ens ens on tx.taker = ens.addresswhere top_tx <= 10order by hour_interval desc, amount_usd desc