{
  "question_as_asked": "Which of the three segments—SME, LAM and KAM—has the biggest and lowest percentage increases in consumption paid in EUR between 2012 and 2013?",
  "question": {
    "question_id": "1482",
    "question_set": "mini_dev_pg-00000-of-00001 from https://huggingface.co/datasets/birdsql/bird_mini_dev/resolve/f65faf4ae3b638c1fa6df1d3370c8d92c8366301/data/mini_dev_pg-00000-of-00001.json (commit f65faf4a, downloaded 2026-09-14)",
    "question_text": "Which of the three segments—SME, LAM and KAM—has the biggest and lowest percentage increases in consumption paid in EUR between 2012 and 2013?",
    "evidence_text": "Increase or Decrease = consumption for 2013 - consumption for 2012; Percentage of Increase = (Increase or Decrease / consumption for 2013) * 100%; The first 4 strings of the Date values in the yearmonth table can represent year"
  },
  "question_set_version": "sha256:7fa740ef9225389cff6c34432120e8325d0ca3008d73db1ae38731234bc10da7",
  "statement_source": {
    "path": "data/questions/mini_dev_pg-00000-of-00001.json",
    "digest": "sha256:7fa740ef9225389cff6c34432120e8325d0ca3008d73db1ae38731234bc10da7",
    "origin": "https://huggingface.co/datasets/birdsql/bird_mini_dev/resolve/f65faf4ae3b638c1fa6df1d3370c8d92c8366301/data/mini_dev_pg-00000-of-00001.json (commit f65faf4a, downloaded 2026-09-14)",
    "date": "2026-01-18T08:44:25Z"
  },
  "executed_sql": "SELECT CAST((SUM(CASE WHEN T1.Segment = 'SME' AND T2.Date LIKE '2013%' THEN T2.Consumption ELSE 0 END) - SUM(CASE WHEN T1.Segment = 'SME' AND T2.Date LIKE '2012%' THEN T2.Consumption ELSE 0 END)) AS REAL) * 100 / NULLIF(SUM(CASE WHEN T1.Segment = 'SME' AND T2.Date LIKE '2012%' THEN T2.Consumption ELSE 0 END), 0), CAST(SUM(CASE WHEN T1.Segment = 'LAM' AND T2.Date LIKE '2013%' THEN T2.Consumption ELSE 0 END) - SUM(CASE WHEN T1.Segment = 'LAM' AND T2.Date LIKE '2012%' THEN T2.Consumption ELSE 0 END) AS REAL) * 100 / NULLIF(SUM(CASE WHEN T1.Segment = 'LAM' AND T2.Date LIKE '2012%' THEN T2.Consumption ELSE 0 END), 0), CAST(SUM(CASE WHEN T1.Segment = 'KAM' AND T2.Date LIKE '2013%' THEN T2.Consumption ELSE 0 END) - SUM(CASE WHEN T1.Segment = 'KAM' AND T2.Date LIKE '2012%' THEN T2.Consumption ELSE 0 END) AS REAL) * 100 / NULLIF(SUM(CASE WHEN T1.Segment = 'KAM' AND T2.Date LIKE '2012%' THEN T2.Consumption ELSE 0 END), 0) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID",
  "bound_parameters": [],
  "validation_outcome": {
    "checks_run": [
      "parses_as_exactly_one_statement",
      "the_one_statement_is_a_select",
      "no_placeholder_without_a_bound_parameter"
    ],
    "all_passed": true
  },
  "validator_version": "audit:libpg_query-parse",
  "effective_database_role": "auditor",
  "backend_identity_at_checkout": "PostgreSQL 16.15 (Debian 16.15-1.pgdg13+2) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit | server=172.17.0.2/32:5432 | database=bird",
  "session_settings_in_force": {
    "engine": "postgresql",
    "time_zone": "Etc/UTC",
    "date_style": "ISO, MDY",
    "interval_style": "postgres",
    "extra_float_digits": "1",
    "database_collation": "en_US.utf8",
    "work_mem": "4096",
    "hash_mem_multiplier": "2",
    "recorded": {
      "statement_timeout": "0",
      "server_version": "16.15 (Debian 16.15-1.pgdg13+2)",
      "server_version_num": "160015",
      "transaction_read_only": "on",
      "max_parallel_workers_per_gather": "2",
      "server_encoding": "UTF8",
      "search_path": "public",
      "datlocprovider": "c",
      "daticulocale": "",
      "datcollversion": "2.41"
    }
  },
  "result": {
    "columns": [
      {
        "name": "?column?",
        "declared_type": "float8"
      },
      {
        "name": "?column?",
        "declared_type": "float8"
      },
      {
        "name": "?column?",
        "declared_type": "float8"
      }
    ],
    "row_count": 1,
    "truncated": false,
    "rows": [
      [
        {
          "type": "dec",
          "value": "545.397464234613"
        },
        {
          "type": "dec",
          "value": "681.5838032367947"
        },
        {
          "type": "dec",
          "value": "708.1116371784611"
        }
      ]
    ],
    "backend_identity": "PostgreSQL 16.15 (Debian 16.15-1.pgdg13+2) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit | server=172.17.0.2/32:5432 | database=bird",
    "statement_timeout_ms": 30000
  },
  "row_count": 1,
  "canonical_ordering": [],
  "serialization": {
    "version": "attestql/audit/4",
    "numeric_scale": 6,
    "timestamp_format": "%Y-%m-%dT%H:%M:%S.%fZ",
    "timezone": "UTC",
    "null_rendering": "NULL",
    "encoding": "utf-8"
  },
  "replay_rule": "R-SET",
  "fixture": {
    "schema_digest": "sha256:808947361d5e98fdfcaf192086e97e103446adf3e974573c0f50c4f2e5242320",
    "row_counts": {
      "public.customers": 32461,
      "public.yearmonth": 383282
    },
    "content_digests": {},
    "source_file_sha256": "sha256:31b1da211849d24a57c9af7636da46a5b82fc8a3ca1542bb3ebd8775e9a31cec"
  },
  "data_as_of": "2026-09-14T12:51:05.775721+00:00",
  "executed_at": "2026-09-14T12:51:14.666264+00:00",
  "run_id": "audit-2e8f77d1-fb99-4c4c-8a42-65a40c5d382c",
  "rerun_instruction": "re-run this statement read-only against PostgreSQL 16.15 (Debian 16.15-1.pgdg13+2) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit | server=172.17.0.2/32:5432 | database=bird under the session settings and over the data this record's fixture digest names, and compare the two results under R-SET",
  "result_hash": "sha256:6954ce039c20be170f7c1fbc3ccf90d5848078406bcd0aa2be3a437673a926eb",
  "record_hash": "sha256:1f21baa0d89f8838f875b67a829407f6f5e8772abe74e5704dc21e1d7e0b313d"
}
