Query editor
-- No GROUP BY on purpose: the aggregates return a single row even with no-- matches, so an inactive or testnet-only gate reads as 0 rather than as an-- empty result you cannot distinguish from a broken query.SELECT'{{gate_script_hash}}' AS gate_script_hash,count(*) AS gate_checks,count(DISTINCT tx_hash) AS gated_transactions,min(block_time) AS first_seen,max(block_time) AS last_seen,coalesce(approx_percentile(execution_mem_units, 0.5), 0) AS median_mem_unitsFROM cardano.transaction_scriptsWHERE purpose = 'Reward'AND script_hash = '{{gate_script_hash}}'AND block_time >= now() - INTERVAL '365' DAY