{
  "schemaVersion": 1,
  "kind": "constructed-counting-model",
  "scope": "Exact counts over synthetic rows; no SQL planner, timing, storage I/O or verification experiment.",
  "cases": [
    {
      "id": "correlated",
      "rows": [
        [
          "A",
          "X"
        ],
        [
          "A",
          "X"
        ],
        [
          "A",
          "X"
        ],
        [
          "A",
          "X"
        ],
        [
          "B",
          "Y"
        ],
        [
          "B",
          "Y"
        ],
        [
          null,
          null
        ],
        [
          null,
          null
        ]
      ],
      "input": 8,
      "nonnullA": 6,
      "distinctNonNullA": 2,
      "a": 4,
      "b": 4,
      "both": 4,
      "selectivityA": {
        "numerator": 1,
        "denominator": 2
      },
      "selectivityB": {
        "numerator": 1,
        "denominator": 2
      },
      "selectivityBoth": {
        "numerator": 1,
        "denominator": 2
      },
      "independenceRows": {
        "numerator": 2,
        "denominator": 1
      }
    },
    {
      "id": "independent",
      "rows": [
        [
          "A",
          "X"
        ],
        [
          "A",
          "X"
        ],
        [
          "A",
          "Y"
        ],
        [
          "A",
          "Y"
        ],
        [
          "B",
          "X"
        ],
        [
          "B",
          "X"
        ],
        [
          "B",
          "Y"
        ],
        [
          "B",
          "Y"
        ]
      ],
      "input": 8,
      "nonnullA": 8,
      "distinctNonNullA": 2,
      "a": 4,
      "b": 4,
      "both": 2,
      "selectivityA": {
        "numerator": 1,
        "denominator": 2
      },
      "selectivityB": {
        "numerator": 1,
        "denominator": 2
      },
      "selectivityBoth": {
        "numerator": 1,
        "denominator": 4
      },
      "independenceRows": {
        "numerator": 2,
        "denominator": 1
      }
    },
    {
      "id": "empty",
      "rows": [],
      "input": 0,
      "nonnullA": 0,
      "distinctNonNullA": 0,
      "a": 0,
      "b": 0,
      "both": 0,
      "selectivityA": null,
      "selectivityB": null,
      "selectivityBoth": null,
      "independenceRows": null
    },
    {
      "id": "disjoint",
      "rows": [
        [
          "A",
          "Y"
        ],
        [
          "A",
          "Y"
        ],
        [
          "A",
          null
        ],
        [
          "A",
          null
        ],
        [
          "B",
          "X"
        ],
        [
          "B",
          "X"
        ],
        [
          null,
          "X"
        ],
        [
          null,
          "X"
        ]
      ],
      "input": 8,
      "nonnullA": 6,
      "distinctNonNullA": 2,
      "a": 4,
      "b": 4,
      "both": 0,
      "selectivityA": {
        "numerator": 1,
        "denominator": 2
      },
      "selectivityB": {
        "numerator": 1,
        "denominator": 2
      },
      "selectivityBoth": {
        "numerator": 0,
        "denominator": 1
      },
      "independenceRows": {
        "numerator": 2,
        "denominator": 1
      }
    }
  ]
}
