Query editor
WITH excluded_symbols (symbol) AS (VALUES('ARIA')),dex_trades AS (SELECT DISTINCT tx_hashFROM dex.tradesWHERE (token_bought_address = 0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1bOR token_sold_address = 0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b)AND blockchain = 'base'-- Add time filter to leverage partition pruningAND block_time >= TIMESTAMP '2024-09-24'),aiagent_token AS (SELECT contract_address,evt_tx_hash,evt_tx_from,evt_tx_to,evt_index,evt_block_time,evt_block_number,dao,lp,NULL AS tba,token,veToken,virtualIdFROM virtuals_base.AgentFactoryV2_evt_NewPersonaWHERE evt_block_time >= TIMESTAMP '2024-09-24' -- Add time filterUNION ALLSELECT contract_address,evt_tx_hash,evt_tx_from,evt_tx_to,evt_index,evt_block_time,evt_block_number,dao,lp,NULL AS tba,token,veToken,virtualIdFROM virtuals_base.AgentFactoryV3_evt_NewPersonaWHERE evt_block_time >= TIMESTAMP '2024-09-24' -- Add time filterUNION ALLSELECT contract_address,evt_tx_hash,evt_tx_from,evt_tx_to,evt_index,evt_block_time,evt_block_number,dao