Q37, run 2026-11-04-2013-sonnet

← 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 rows, but E03 duplicates E02 and E17 duplicates E10 by LEI.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 2 graded by code

17. There are 19 rows, but E03 duplicates E02 and E17 duplicates E10 (same LEIs).

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 3 graded by code

17. There are 19 rows, and E03 and E17 are duplicates by LEI.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 4 graded by code

17. There are 19 rows, but E03 duplicates E02 and E17 duplicates E10, going by shared LEIs.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 5 graded by code

17. The file has 19 rows, 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, minus the duplicates E03 and E17 and the QA record E16.

JSON: {"count": 16}

✅ R5 csv+ontology run 2 graded by code

16. There are 19 records, but E03 duplicates E02, E17 duplicates E10, and E16 is QA, so it describes no real entity.

JSON: {"count": 16}

✅ R5 csv+ontology run 3 graded by code

16. The 19 records minus QA record E16, minus the duplicates E03 (same LEI as E02) and E17 (same LEI as E10). The two sovereigns, VD and CV, are counted.

JSON: {"count": 16}

✅ R5 csv+ontology run 4 graded by code

16. There are 19 records, but E03 duplicates E02 and E17 duplicates E10. E16 is a QA test record and describes no real entity.

JSON: {"count": 16}

✅ R5 csv+ontology run 5 graded by code

16. There are 19 records, minus the duplicates E03 and E17 and the QA record E16.

JSON: {"count": 16}

✅ R4 csv+markdown run 1 graded by code

16. There are 19 records. E03 duplicates E02 and E17 duplicates E10, and E16 is QA test data.

JSON: {"count": 16}

✅ R4 csv+markdown run 2 graded by code

16. There are 19 records. Removing the duplicates E03 and E17 leaves 17, and removing the QA record E16 leaves 16.

JSON: {"count": 16}

✅ R4 csv+markdown run 3 graded by code

16. There are 19 records, but E03 duplicates E02 and E17 duplicates E10, and E16 is QA test data that describes no real entity.

JSON: {"count": 16}

✅ R4 csv+markdown run 4 graded by code

16. There are 19 records. E03 and E17 are duplicates of E02 and E10, and E16 is QA.

JSON: {"count": 16}

✅ R4 csv+markdown run 5 graded by code

16. There are 19 records. E03 and E17 duplicate E02 and E10 by LEI, and E16 is QA data.

JSON: {"count": 16}

✅ R8 csv+axioms run 1 graded by code

16. There are 19 records, less two duplicates (E03, E17) and the QA test record E16.

JSON: {"count": 16}

✅ R8 csv+axioms run 2 graded by code

16. There are 19 records. E03 duplicates E02 and E17 duplicates E10, which leaves 17. E16 is a test record and is excluded.

JSON: {"count": 16}

✅ R8 csv+axioms run 3 graded by code

16. There are 19 records. E03 and E17 are duplicates by LEI, which leaves 17, and E16 is a QA test record and not a legal entity.

JSON: {"count": 16}

✅ R8 csv+axioms run 4 graded by code

16. The 19 records collapse to 17 after merging E03 into E02 and E17 into E10, and E16 is a test record, so it is not a legal entity.

JSON: {"count": 16}

✅ R8 csv+axioms run 5 graded by code

16. There are 19 records. Excluding the QA test record E16 leaves 18, and merging the duplicates E03 and E17 leaves 16.

JSON: {"count": 16}