Query editor
-- Q1 (jan–mar) de cada ano.-- Formato largo (uma coluna por ano) para colunas agrupadas por rede; ordenado pelo último ano.-- Gerado por build_dashboard_sql.py a partir de dune.y5systems.result_latam_evm_monthly.WITH by_chain AS (SELECT chain,sum(tx_count) FILTER (WHERE year(month) = 2023) AS q1_2023,sum(tx_count) FILTER (WHERE year(month) = 2024) AS q1_2024,sum(tx_count) FILTER (WHERE year(month) = 2025) AS q1_2025,sum(tx_count) FILTER (WHERE year(month) = 2026) AS q1_2026FROM dune.y5systems.result_latam_evm_monthlyWHERE month(month) <= 3 AND year(month) BETWEEN 2023 AND 2026 AND chain IN ('arbitrum', 'avalanche_c', 'base', 'ethereum', 'optimism', 'polygon')GROUP BY 1)SELECT chain, q1_2023, q1_2024, q1_2025, q1_2026,round(100.0 * (q1_2024 - q1_2023) / nullif(q1_2023, 0), 2) AS var_24_23_pct,round(100.0 * (q1_2025 - q1_2024) / nullif(q1_2024, 0), 2) AS var_25_24_pct,round(100.0 * (q1_2026 - q1_2025) / nullif(q1_2025, 0), 2) AS var_26_25_pctFROM by_chainORDER BY q1_2026 DESC NULLS LAST