Query editor
with holdswap_tx as (SELECTDATE_TRUNC('day', evt_block_time) AS time,COUNT(distinct evt_tx_hash) AS daily_txFROM holdstation_zksync.holdstation_router_evt_SwappedWHERE (date_trunc('day', evt_block_time) > CAST('2024-12-10' AS timestamp))GROUP BY 1),raw_tx as (SELECT evt_block_time, evt_tx_hashFROM aigentfi_zksync.aigentfi_ai_agent_prod_evt_BuyUNION ALLSELECT evt_block_time, evt_tx_hashFROM aigentfi_zksync.aigentfi_ai_agent_prod_evt_SellUNION ALLSELECT evt_block_time, evt_tx_hashFROM aigentfi_zksync.aigentfi_ai_agent_prod_evt_AiAgentRegisteredUNION ALLSELECT evt_block_time, evt_tx_hashFROM aigentfi_zksync.aigentfi_ai_agent_prod_evt_ListedDEXUNION ALLSELECT evt_block_time, evt_tx_hashFROM aigentfi_zksync.aigentfi_ai_agent_prod_evt_TokenCreated),aigentfi_tx as (SELECT date_trunc('day', evt_block_time) AS date_time,COUNT(distinct evt_tx_hash) as daily_txFROM raw_txGROUP BY 1)SELECTa.date_time as date_time,a.daily_tx as "aigentfi_tx",z.daily_tx as "holdswap_tx"FROM aigentfi_tx a LEFT JOIN holdswap_tx zON a.date_time = z.timeORDER BY 1 DESC