Query editor
WITH get_cb_dex_trades AS (SELECT * FROM "query_5680127(show_today='{{Show Current Date}}')")SELECTt.block_date,t.blockchain,COUNT(DISTINCT COALESCE(cb.token_bought_symbol, cast(cb.token_bought_address AS varchar))) AS total_unique_token_bought_symbolsFROM dex.trades tINNER JOIN get_cb_dex_trades cbON t.blockchain = cb.blockchainAND t.block_date = cb.block_dateAND t.block_number = cb.block_numberAND t.tx_hash = cb.tx_hashWHERE t.blockchain = 'base'AND t.block_date >= date '2025-07-03'AND t.block_month >= date '2025-07-01'GROUP BY 1, 2