Q37, run 2026-11-05-1227-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 records, but E03 duplicates E02 and E17 duplicates E10 (same LEIs).

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 2 graded by code

17. The file has 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, but E03 duplicates E02 and E17 duplicates E10 (same LEIs).

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 (same 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, going by their shared LEIs.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R2 rdf run 1 graded by code

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

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R2 rdf run 2 graded by code

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

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R2 rdf run 3 graded by code

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

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R2 rdf run 4 graded by code

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

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R2 rdf run 5 graded by code

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

JSON: {"count": 17}

Why: count: expected 16, got 17

✅ R6 rdf+ontology run 1 graded by code

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

JSON: {"count": 16}

✅ R6 rdf+ontology run 2 graded by code

16. The data has 19 records. E03 duplicates E02 and E17 duplicates E10 (same LEIs), and E16 is QA, so the 3 are excluded.

JSON: {"count": 16}

✅ R6 rdf+ontology run 3 graded by code

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

JSON: {"count": 16}

✅ R6 rdf+ontology run 4 graded by code

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

JSON: {"count": 16}

✅ R6 rdf+ontology run 5 graded by code

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

JSON: {"count": 16}

✅ R5 csv+ontology run 1 graded by code

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

JSON: {"count": 16}

✅ R5 csv+ontology run 2 graded by code

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

JSON: {"count": 16}

✅ R5 csv+ontology run 3 graded by code

16. There are 19 records. E03 and E17 duplicate E02 and E10, and E16 is QA, which leaves 16 including the two sovereigns.

JSON: {"count": 16}

✅ R5 csv+ontology run 4 graded by code

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

JSON: {"count": 16}

✅ R5 csv+ontology run 5 graded by code

16. Of the 19 records, E03 and E17 duplicate E02 and E10 by LEI, and E16 is a QA record.

JSON: {"count": 16}

✅ R4 csv+markdown run 1 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 2 graded by code

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

JSON: {"count": 16}

✅ R4 csv+markdown run 3 graded by code

16. The 19 records include two duplicates (E03 = E02 and E17 = E10), and E16 is QA test data describing no real entity.

JSON: {"count": 16}

✅ R4 csv+markdown run 4 graded by code

16. There are 19 records. E03 and E17 are duplicates, and E16 is a QA record, which leaves 16.

JSON: {"count": 16}

✅ R4 csv+markdown run 5 graded by code

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

JSON: {"count": 16}

❌ R3 csv+padding run 1 graded by code

17. There are 19 rows, minus the duplicates E03 and E17.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R3 csv+padding run 2 graded by code

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

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R3 csv+padding run 3 graded by code

17. The file has 19 rows, but E03 duplicates E02 and E17 duplicates E10 (same LEIs).

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R3 csv+padding run 4 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

❌ R3 csv+padding run 5 graded by code

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

JSON: {"count": 17}

Why: count: expected 16, got 17

✅ R10 executed run 1 graded by code

16. The 16 entity rows cover all distinct entities, because duplicates (E03 into E02, E17 into E10) are already merged.

JSON: {"count": 16}

✅ R10 executed run 2 graded by code

16. There are 16 entity rows, and the duplicate records are already merged (E03 into E02, E17 into E10).

JSON: {"count": 16}

✅ R10 executed run 3 graded by code

16. That is 14 corporate entities plus the two sovereigns, after the duplicate records were merged.

JSON: {"count": 16}

✅ R10 executed run 4 graded by code

16. That is the number of rows in entities.csv, with duplicates already merged.

JSON: {"count": 16}

✅ R10 executed run 5 graded by code

16. The 16 entities are CV, VD, E01, E02, E04 and E05 through E15.

JSON: {"count": 16}

✅ R7 csv+neutral run 1 graded by code

16. There are 19 records. E03 duplicates E02 and E17 duplicates E10 (same LEIs), and E16 is QA.

JSON: {"count": 16}

✅ R7 csv+neutral run 2 graded by code

16. There are 19 records, less the duplicates E03 and E17 and the QA record E16. I counted the two sovereigns as entities.

JSON: {"count": 16}

✅ R7 csv+neutral run 3 graded by code

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

JSON: {"count": 16}

✅ R7 csv+neutral run 4 graded by code

16. There are 19 records. Excluding the QA record E16 leaves 18, and merging E03 into E02 and E17 into E10 leaves 16, counting the two sovereigns.

JSON: {"count": 16}

✅ R7 csv+neutral run 5 graded by code

16. The 19 records include two duplicates (E03 and E17) and one QA record (E16).

JSON: {"count": 16}

✅ R8 csv+axioms run 1 graded by code

16. The 19 entity records merge to 17 distinct entities (E02=E03 and E10=E17 by LEI), and I excluded E16 as a QA test record.

JSON: {"count": 16}

✅ R8 csv+axioms run 2 graded by code

16. There are 19 records, E02/E03 and E10/E17 are duplicates by LEI, and E16 is a test record.

JSON: {"count": 16}

✅ R8 csv+axioms run 3 graded by code

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

JSON: {"count": 16}

✅ R8 csv+axioms run 4 graded by code

16. There are 19 records. Remove the duplicates E03 and E17, and exclude the QA test record E16.

JSON: {"count": 16}

✅ R8 csv+axioms run 5 graded by code

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

JSON: {"count": 16}

✅ R9 csv+axioms+markdown run 1 graded by code

16. There are 19 records. E03 duplicates E02 and E17 duplicates E10, which leaves 17, and the QA record E16 is not a real entity.

JSON: {"count": 16}

✅ R9 csv+axioms+markdown run 2 graded by code

16. There are 19 records, less 2 duplicates by LEI (E03 and E17) and 1 QA record (E16).

JSON: {"count": 16}

✅ R9 csv+axioms+markdown run 3 graded by code

16. There are 19 records; E03 and E17 duplicate other entities, and E16 is a QA record.

JSON: {"count": 16}

✅ R9 csv+axioms+markdown run 4 graded by code

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

JSON: {"count": 16}

✅ R9 csv+axioms+markdown run 5 graded by code

16. There are 19 records; merging E03 into E02 and E17 into E10 leaves 17, and excluding the QA record E16 leaves 16.

JSON: {"count": 16}