{
  "note": "Hand labels for every incorrect analytical answer, assigned after the outcomes were seen (founder ruling D12). enum_value_guess and occurred_at_period must agree with flags computed from the stored SQL, and sql_error with the outcome status; grain and semantics are judgement labels.",
  "labels": [
    {
      "question_id": "B06",
      "arm": "bare",
      "causes": [
        "occurred_at_period"
      ],
      "reason": "Counted purchase events by the month of occurred_at instead of the posted spend date."
    },
    {
      "question_id": "B19",
      "arm": "bare",
      "causes": [
        "occurred_at_period",
        "semantics"
      ],
      "reason": "Treated purchases as credits and refunds as debits, so the join matched nothing, and filtered refunds by occurred_at."
    },
    {
      "question_id": "B20",
      "arm": "bare",
      "causes": [
        "enum_value_guess",
        "occurred_at_period"
      ],
      "reason": "Filtered direction = 'inbound', a value that does not exist, and used occurred_at for the period."
    },
    {
      "question_id": "B21",
      "arm": "bare",
      "causes": [
        "enum_value_guess",
        "occurred_at_period"
      ],
      "reason": "Filtered direction = 'inbound', a value that does not exist, and used occurred_at for the period."
    },
    {
      "question_id": "B22",
      "arm": "bare",
      "causes": [
        "enum_value_guess",
        "occurred_at_period"
      ],
      "reason": "Filtered direction = 'outbound', a value that does not exist, and used occurred_at for the period."
    },
    {
      "question_id": "B23",
      "arm": "bare",
      "causes": [
        "enum_value_guess",
        "occurred_at_period"
      ],
      "reason": "Used direction 'inbound' and event_kind 'external', neither of which exists, and used occurred_at for the period."
    },
    {
      "question_id": "B24",
      "arm": "bare",
      "causes": [
        "enum_value_guess",
        "occurred_at_period"
      ],
      "reason": "Used direction 'inbound' and event_kind 'external', neither of which exists, and used occurred_at for the period."
    },
    {
      "question_id": "B26",
      "arm": "bare",
      "causes": [
        "enum_value_guess"
      ],
      "reason": "Filtered status = 'completed'; the posted value is 'posted', so no rows matched."
    },
    {
      "question_id": "B36",
      "arm": "bare",
      "causes": [
        "grain"
      ],
      "reason": "Summed opening and closing balances over all 31 days of July instead of taking July 1 and July 31."
    },
    {
      "question_id": "B06",
      "arm": "values",
      "causes": [
        "occurred_at_period"
      ],
      "reason": "Counted purchase events by the month of occurred_at instead of the posted spend date."
    },
    {
      "question_id": "B17",
      "arm": "values",
      "causes": [
        "sql_error"
      ],
      "reason": "Used UNION ALL, which the prompt does not allow; the validator denied the query."
    },
    {
      "question_id": "B23",
      "arm": "values",
      "causes": [
        "occurred_at_period",
        "semantics"
      ],
      "reason": "Counted deposits, withdrawals and transfers as external cash flow, left out purchases and refunds, and used occurred_at for the period."
    },
    {
      "question_id": "B24",
      "arm": "values",
      "causes": [
        "occurred_at_period",
        "semantics"
      ],
      "reason": "Counted only deposits and withdrawals as external cash flow, left out purchases and refunds, and used occurred_at for the period."
    },
    {
      "question_id": "B36",
      "arm": "values",
      "causes": [
        "grain"
      ],
      "reason": "Took the minimum opening and maximum closing daily balance across accounts instead of summing July 1 opening and July 31 closing."
    },
    {
      "question_id": "B23",
      "arm": "documented",
      "causes": [
        "sql_error"
      ],
      "reason": "Joined accounts with USING, then filtered an ambiguous currency column; the query failed."
    },
    {
      "question_id": "B25",
      "arm": "documented",
      "causes": [
        "sql_error"
      ],
      "reason": "Referenced a column through an alias that was not defined in that scope; the query failed."
    },
    {
      "question_id": "B35",
      "arm": "documented",
      "causes": [
        "grain"
      ],
      "reason": "Joined cards before card spend, so an account with two cards and no July purchases was listed twice."
    }
  ]
}
