Query editor
select concat('<a href="https://debank.com/profile/', cast(tx_from as varchar), '/', '" target = "blank">', cast(tx_from as varchar), '</a>') as address, sum(amount_usd) as amount_bought_sold, count(distinct(tx_hash)) as transactionsfrom (select tx_from, tx_hash, amount_usdfrom dex.tradeswhere token_bought_address = {{token_address}}and block_time > now() - interval '{{timeframe_in_hours}}' hourunion allselect tx_from, tx_hash, -amount_usdfrom dex.tradeswhere token_sold_address = {{token_address}}and block_time > now() - interval '{{timeframe_in_hours}}' hour)group by tx_fromorder by amount_bought_sold asclimit 50