Query editor
-- Clean business view: Tycho User Volume, gross/unresolved diagnostics,-- immediate callers, canonical business users, and transactions by dashboard-- router release. Full history is fixed internally. Chain and timeframe remain-- the business controls; scope_mode is a collector-only compatibility switch.WITH canonical_physical AS (SELECTCAST(data_chain AS VARCHAR) AS data_chain,period_start,metric_family,metric_name,metric_value,observed_row_count,priced_row_count,router_abi_family,router_generation,release_statusFROM "query_7970737(chain='{{chain}}',timeframe='{{timeframe}}',end_date_mode='through_current_day',start_date='2025-01-01 00:00:00',end_date='2100-01-01 00:00:00')"WHERE (metric_family = 'router_deployment'AND metric_name = 'execution_volume_usd_best_available')OR (metric_family = 'router'AND metric_name IN ('execution_volume_usd_best_available','gross_router_input_usd','tycho_unresolved_volume_usd','router_transaction_count','unique_immediate_caller_count'))),-- selected_only preserves the historical one-scope result for every chain-- parameter, including chain=all. collector_fanout is active only with-- chain=all and adds each physical scope beside the independently grouped all-- scope; no second q7970737 execution is required.canonical AS (SELECTscope.output_chain,physical.period_start,physical.metric_family,physical.metric_name,physical.metric_value,physical.observed_row_count,physical.priced_row_count,physical.router_abi_family,physical.router_generation,physical.release_statusFROM canonical_physical physicalCROSS JOIN UNNEST(CASEWHEN '{{chain}}' = 'all'AND '{{scope_mode}}' = 'collector_fanout'THEN ARRAY[physical.data_chain, 'all']WHEN '{{chain}}' = 'all' THEN ARRAY['all']ELSE ARRAY[physical.data_chain]END) AS scope(output_chain)