Q37, run 2026-11-04-2028-haiku

← back to the run

How many distinct legal entities does the data describe?

Tests: Identity: records with the same LEI are one entity.

Expected: count = 16

❌ R1 csv run 1 graded by code

17. There are 19 records, and E03 and E17 duplicate E02 and E10 by LEI. This includes the two sovereigns (VD, CV), which have no LEI; excluding them gives 15.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 2 graded by code

17. There are 19 records, and E03 and E17 duplicate E02 and E10 by LEI. Excluding the two sovereigns (VD, CV), which have no LEI, gives 15.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 3 graded by code

17. There are 19 records. E03 duplicates E02 and E17 duplicates E10 (same LEIs), leaving 17 distinct legal entities.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 4 graded by code

17. The data has 19 rows, but E03 duplicates E02 and E17 duplicates E10, leaving 17 distinct entities. The two sovereigns (VD, CV) are counted as entities.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 5 graded by code

17. The data has 19 records, but E03 duplicates E02 and E17 duplicates E10 by LEI.

JSON: {"count": 17}

Why: count: expected 16, got 17

✅ R5 csv+ontology run 1 graded by code

16
There are 19 records, but E03 and E17 duplicate E02 and E10 by LEI, and E16 is QA and so is excluded. That leaves 16, including the sovereigns VD and CV.

JSON: {"count": 16}

✅ R5 csv+ontology run 2 graded by code

16. Real legal entities are E01, E02, E04–E15 and VD/CV (the sovereigns). E02 and E03 are the same entity, E10 and E17 are the same entity, and QA record E16 is ignored.

JSON: {"count": 16}

✅ R5 csv+ontology run 3 graded by code

16. There are 17 entity IDs, but E03 duplicates E02 and E17 duplicates E10 (same LEIs), and E16 is QA data to be ignored. The sovereigns VD and CV count as entities.

JSON: {"count": 16}

✅ R5 csv+ontology run 4 graded by code

16. The data describes 16 distinct entities: E01, E02, E04–E15 (sovereigns VD and CV included), with E03 = E02 and E17 = E10, and E16 excluded as QA data.

JSON: {"count": 16}

✅ R5 csv+ontology run 5 graded by code

16. The distinct entities are E01, E02, E04, E05, E06, E07, E08, VD, E09, E10, E11, E12, E13, E14, CV and E15, with E16 excluded as QA. This counts the sovereigns, which the ontology treats as entities.

JSON: {"count": 16}

✅ R4 csv+markdown run 1 graded by code

16. The data has 19 records. I excluded the QA record E16, and E03 and E17 duplicate E02 and E10, which leaves 16 entities including the two sovereigns.

JSON: {"count": 16}

✅ R4 csv+markdown run 2 graded by code

16. The 17 records reduce to 16 distinct entities once E03 is merged with E02 and E17 with E10. QA record E16 is excluded.

JSON: {"count": 16}

✅ R4 csv+markdown run 3 graded by code

16. The data describes 16 distinct entities. E03 is E02 and E17 is E10 (same LEIs), and E16 is a QA record that describes no real entity.

JSON: {"count": 16}

✅ R4 csv+markdown run 4 graded by code

16. The data describes 17 non-QA records, which collapse to 16 distinct entities once E03 is merged into E02 and E17 into E10. E16 is excluded as a QA record.

JSON: {"count": 16}

✅ R4 csv+markdown run 5 graded by code

16. Excluding E16 (QA), the distinct entities are E01, E02, E04–E15 (E03 and E17 are duplicates) and the two sovereigns VD and CV, which makes 16.

JSON: {"count": 16}

✅ R8 csv+axioms run 1 graded by code

16. Of the 19 entity records, E16 is a QA record, E03 duplicates E02, and E17 duplicates E10.

JSON: {"count": 16}

✅ R8 csv+axioms run 2 graded by code

16. The data has 19 records, minus the QA record E16, minus the duplicates E03 (= E02) and E17 (= E10).

JSON: {"count": 16}

✅ R8 csv+axioms run 3 graded by code

16. The data has 19 entity records. Removing the QA record E16 and the duplicates E03 and E17 leaves 16. The sovereigns are included, although they lack LEIs.

JSON: {"count": 16}

✅ R8 csv+axioms run 4 graded by code

16. The data has 19 records; excluding the QA record E16 leaves 18, and removing the duplicates E03 (= E02) and E17 (= E10) leaves 16. The two sovereigns (VD, CV) are included because they have no LEI and so are not merged.

JSON: {"count": 16}

✅ R8 csv+axioms run 5 graded by code

16. There are 19 records, minus the QA record E16, minus the duplicates E03 and E17. I count sovereigns as legal entities because the ontology defines LegalEntity as any Entity that is not a TestRecord.

JSON: {"count": 16}