Query editor
WITH base AS (SELECTnamespaceFROM apechain.logs_decodedWHEREnamespace IN ('camelot', 'saru', 'gains_network')GROUP BY1), base_2 AS (SELECT*FROM apechain.logs_decodedWHEREnamespace IN (SELECT*FROM base)AND block_date >= TRY_CAST('2025-01-01' AS TIMESTAMP)),counts AS (SELECTCOUNT(*) FILTER(WHEREnamespace = 'camelot') AS camelot_txs,COUNT(*) FILTER(WHEREnamespace = 'gains_network') AS gains_network_txs,COUNT(*) FILTER(WHEREnamespace = 'saru') AS saru_txsFROM base_2)SELECT 'camelot_txs' AS tx_type, camelot_txs AS txsFROM countsUNION ALLSELECT 'gains_network_txs', gains_network_txsFROM countsUNION ALLSELECT 'saru_txs', saru_txsFROM counts