Query editor
with combined as (selectblock_date, unique_id, tx_hash, from_address, txn_fee_usd, codes_array, start_log_index, end_log_indexfrom dune.coinbase_shared.uo_builder_codeswhere block_date BETWEEN current_date - interval '28' day AND current_date - interval '1' dayunion allselectblock_date, unique_id, tx_hash, from_address, txn_fee_usd, codes_array, start_log_index, end_log_indexfrom dune.coinbase_shared.tx_builder_codeswhere block_date BETWEEN current_date - interval '28' day AND current_date - interval '1' day), expanded as (selectc.block_date, c.unique_id, c.tx_hash, c.from_address, c.txn_fee_usd, trim(code) as builder_code, c.start_log_index, c.end_log_indexfrom combined as ccross join unnest(c.codes_array) as t(code)), trade_vol as (selecte.unique_id,sum(t.amount_usd) as volumefrom expanded einner join dex.trades ton e.tx_hash = t.tx_hashand t.evt_index >= e.start_log_indexand t.evt_index <= e.end_log_indexand t.blockchain = 'base'and t.block_date BETWEEN current_date - interval '28' day AND current_date - interval '1' daygroup by 1)selectCOALESCE(concat('<a href="https://', l.website, '" target = "blank">', l.name