{
  "software": "gnumeric",
  "function": "DCOUNT",
  "review_date": "2026-10-12",
  "validation_method": "Independent Python numeric and limited database-criteria models; not a native application or a general spreadsheet parser. Error tokens model documented rules only.",
  "native_application_execution": false,
  "hugo_compiled": false,
  "passed": 5,
  "total": 5,
  "scope": "Explicit examples only, not every input or application version. Expected error tokens are documented rules, not observed native error outputs.",
  "official_references": [
    "https://gnome.pages.gitlab.gnome.org/gnumeric/manual/CATEGORY_Database.html#gnumeric-function-DCOUNT",
    "https://github.com/apache/openoffice/blob/trunk/main/helpcontent2/source/text/scalc/01/04060101.xhp"
  ],
  "examples": [
    {
      "case_id": 5,
      "software": "gnumeric",
      "function": "DCOUNT",
      "source_path": "content/gnumeric/functions/dcount.md",
      "formula": "=DCOUNT($A$1:$F$7,\"Score\",H1:H2)",
      "field": "Score",
      "criteria": [
        [
          [
            "Team",
            1
          ]
        ]
      ],
      "expected": 4,
      "kind": "database",
      "native_executed": false,
      "expected_ids": [
        101,
        102,
        104,
        106
      ],
      "model_result": 4,
      "passed": true
    },
    {
      "case_id": 6,
      "software": "gnumeric",
      "function": "DCOUNT",
      "source_path": "content/gnumeric/functions/dcount.md",
      "formula": "=DCOUNT($A$1:$F$7,\"Score\",H5:I6)",
      "field": "Score",
      "criteria": [
        [
          [
            "Team",
            1
          ],
          [
            "Class",
            1
          ]
        ]
      ],
      "expected": 2,
      "kind": "database",
      "native_executed": false,
      "expected_ids": [
        101,
        104
      ],
      "model_result": 2,
      "passed": true
    },
    {
      "case_id": 7,
      "software": "gnumeric",
      "function": "DCOUNT",
      "source_path": "content/gnumeric/functions/dcount.md",
      "formula": "=DCOUNT($A$1:$F$7,\"Score\",H9:I11)",
      "field": "Score",
      "criteria": [
        [
          [
            "Team",
            2
          ]
        ],
        [
          [
            "Score",
            ">=40"
          ]
        ]
      ],
      "expected": 3,
      "kind": "database",
      "native_executed": false,
      "expected_ids": [
        103,
        104,
        105
      ],
      "model_result": 3,
      "passed": true
    },
    {
      "case_id": 8,
      "software": "gnumeric",
      "function": "DCOUNT",
      "source_path": "content/gnumeric/functions/dcount.md",
      "formula": "=DCOUNT($A$1:$F$7,\"Score\",H14:I15)",
      "field": "Score",
      "criteria": [
        [
          [
            "Score",
            ">=20"
          ],
          [
            "Score",
            "<=40"
          ]
        ]
      ],
      "expected": 3,
      "kind": "database",
      "native_executed": false,
      "expected_ids": [
        102,
        103,
        104
      ],
      "model_result": 3,
      "passed": true
    },
    {
      "case_id": 9,
      "software": "gnumeric",
      "function": "DCOUNT",
      "source_path": "content/gnumeric/functions/dcount.md",
      "formula": "=DCOUNTA($A$1:$F$7,\"Note\",H1:H2)",
      "field": "Note",
      "criteria": [
        [
          [
            "Team",
            1
          ]
        ]
      ],
      "expected": 3,
      "kind": "database",
      "native_executed": false,
      "expected_ids": [
        101,
        102,
        104,
        106
      ],
      "model_result": 3,
      "passed": true
    }
  ],
  "input_dataset": [
    [
      "ID",
      "Team",
      "Class",
      "Score",
      "Factor",
      "Note"
    ],
    [
      101,
      1,
      1,
      10,
      2,
      "Ready"
    ],
    [
      102,
      1,
      2,
      20,
      3,
      null
    ],
    [
      103,
      2,
      1,
      30,
      4,
      "Hold"
    ],
    [
      104,
      1,
      1,
      40,
      5,
      "Ready"
    ],
    [
      105,
      2,
      2,
      50,
      6,
      "Ready"
    ],
    [
      106,
      1,
      2,
      0,
      1,
      "Hold"
    ]
  ]
}
