Query editor
with pair_created as (select pair, token0, token1from uniswap_v2_base.UniswapV2Factory_evt_PairCreated), aiagent_token as (selectcontract_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.AgentMigrator_evt_AgentMigratedunionselect 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, virtualId from virtuals_base.AgentFactoryV2_evt_NewPersonaunionselect 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, virtualId from virtuals_base.AgentFactoryV3_evt_NewPersona), aigent_info as (selectat.lp as liquidity_pool,at.token as token_address,at.virtualId,tk.symbolfrom aiagent_token atleft join (select contract_address, symbol from tokens.erc20 where blockchain = 'base') tkon at.token = tk.contract_address