{
  "kind": "csv",
  "sample": "/agents/tableau-filter-order-of-operations-sql/sample.csv",
  "question": "Does filtering to West change the company-wide denominator?",
  "title": "West share of all Revenue",
  "prompt": "Show West’s share while keeping all regions in the denominator.",
  "flowLabel": "Worked example · authored synthetic data",
  "dimension": "Region",
  "measure": "Sales",
  "definition": "{ FIXED [Region] : SUM([Revenue]) }",
  "expected": [
    [
      "West",
      0.6
    ]
  ],
  "format": "percent",
  "sql": "SELECT Region, SUM(Sales) * 1.0 / (SELECT SUM(Sales) FROM input) AS Share FROM input WHERE Region = 'West' GROUP BY Region",
  "requiredColumns": [
    "Region",
    "Sales"
  ],
  "provenance": "Authored synthetic public sample; not customer data or host-integration proof"
}
