{
  "format": "attestql/audit/counterexample/2",
  "question": {
    "question_id": "879",
    "question_set": "questions",
    "question_text": "For the driver who set the fastest lap speed, what is his nationality?",
    "evidence_text": "the fastest lap speed refers to (MAX) fastestLapSpeed;"
  },
  "question_set_version": "sha256:7ad58addc070b425cabfc9d67bbd9c95840253160cf3b73d672e9aeb4897f5ff",
  "sources": {
    "gold": {
      "path": "demo/questions.json",
      "digest": "sha256:7ad58addc070b425cabfc9d67bbd9c95840253160cf3b73d672e9aeb4897f5ff",
      "origin": null,
      "date": null
    },
    "second": {
      "path": "demo/predictions.json",
      "digest": "sha256:497ab56b10daa81359a51f3be419fe16e5b796b0cc33cb1aff6c24c9aa853780",
      "origin": null,
      "date": null
    }
  },
  "replay_rule": "R-ORD",
  "verdict": {
    "result": "not_equal",
    "mismatched": [],
    "reading": "NOT_EQUAL states that these two statements disagree on this data under this rule. It does not state which of them is wrong."
  },
  "bird_ex": {
    "value": 0,
    "equal": false,
    "method": "set(second_rows) == set(gold_rows), REAL cells as Python float as sqlite3 returns them, so Python equality holds 1 == 1.0 == True as the benchmark's own scorer does",
    "source": "https://github.com/bird-bench/mini_dev/blob/main/evaluation/evaluation_ex.py",
    "gold_rows": 1,
    "second_rows": 1,
    "gold_distinct_rows": 1,
    "second_distinct_rows": 1
  },
  "test_suite_ex": {
    "value": 0,
    "equal": false,
    "method": "result_eq: equal row counts and equal column counts, each row unordered as a quick rejection, then the two equal as a list when the gold text holds ORDER BY and as a multiset otherwise, under some permutation of the columns; DISTINCT is not stripped and re-executed, and the cells are SQLite's as sqlite3 returns them",
    "source": "ruiqi-zhong/test-suite-sql-eval, exec_eval.py, result_eq, at commit 48cb78ec: https://github.com/ruiqi-zhong/test-suite-sql-eval/blob/48cb78ecf7f610620206283846c76751b18a1326/exec_eval.py",
    "order_matters": true,
    "gold_rows": 1,
    "second_rows": 1,
    "gold_columns": 1,
    "second_columns": 1
  },
  "mechanism": {
    "class": "other",
    "gold_types": [
      "TEXT"
    ],
    "second_types": [
      "TEXT"
    ],
    "multiset_equal": false,
    "set_equal": false,
    "order_equal": false,
    "shorter_result_is_a_prefix": false,
    "reading": "The class states what makes these two results unequal under this rule, read off the two results and nothing else. It does not state which of the two statements is wrong."
  },
  "gold": {
    "executed_sql": "SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId ORDER BY T2.fastestLapSpeed DESC LIMIT 1",
    "own_ordering": [
      {
        "expression": "T2.fastestLapSpeed",
        "descending": true,
        "nulls": "last"
      }
    ],
    "result": {
      "columns": [
        {
          "name": "nationality",
          "declared_type": "TEXT"
        }
      ],
      "row_count": 1,
      "truncated": false,
      "rows_shown": 1,
      "rows": [
        [
          {
            "type": "str",
            "value": "Norwegian"
          }
        ]
      ],
      "result_hash": "sha256:305ac6bb3143bd1e7623e255e56e39e8fd5f6d78abeef74efeb919785a30c3dd"
    },
    "record": "evidence-gold.json"
  },
  "second": {
    "executed_sql": "SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId ORDER BY CAST(T2.fastestLapSpeed AS REAL) DESC LIMIT 1",
    "own_ordering": [
      {
        "expression": "CAST(T2.fastestLapSpeed AS REAL)",
        "descending": true,
        "nulls": "last"
      }
    ],
    "result": {
      "columns": [
        {
          "name": "nationality",
          "declared_type": "TEXT"
        }
      ],
      "row_count": 1,
      "truncated": false,
      "rows_shown": 1,
      "rows": [
        [
          {
            "type": "str",
            "value": "Peruvian"
          }
        ]
      ],
      "result_hash": "sha256:087054155a08b8125a54fb7239dacc2736758805fd0d93bef261dc0e8fd5c9e2"
    },
    "record": "evidence-second.json"
  },
  "canonical_ordering": [
    {
      "column": "T2.fastestLapSpeed",
      "descending": true
    }
  ],
  "differing_rows": {
    "in_gold_not_in_second": [
      {
        "row": [
          {
            "type": "str",
            "value": "Norwegian"
          }
        ],
        "count": 1
      }
    ],
    "in_gold_not_in_second_total": 1,
    "in_second_not_in_gold": [
      {
        "row": [
          {
            "type": "str",
            "value": "Peruvian"
          }
        ],
        "count": 1
      }
    ],
    "in_second_not_in_gold_total": 1,
    "rows_shown_per_side": 25
  },
  "result_hashes": {
    "gold": "sha256:305ac6bb3143bd1e7623e255e56e39e8fd5f6d78abeef74efeb919785a30c3dd",
    "second": "sha256:087054155a08b8125a54fb7239dacc2736758805fd0d93bef261dc0e8fd5c9e2"
  },
  "backend_identity": "SQLite 3.53.4 | file=/private/tmp/attestql-site-sandbox/demo/fixture.sqlite | size=69632",
  "fixture": {
    "schema_digest": "sha256:085edf565758a574b3d3b1ca4ec041a55808be4833b19b4834bfea6cef00d2d0",
    "row_counts": {
      "main.drivers": 4,
      "main.results": 7
    },
    "content_digests": {},
    "source_file_sha256": ""
  },
  "run_id": "audit-5ac1b5ac-ceba-418a-841e-577381666b11"
}
