Q37, run 2026-11-04-1643-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. The 19 rows include two duplicates, E03 (= E02) and E17 (= E10), by shared LEI.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv 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

❌ R1 csv run 3 graded by code

17. There are 19 rows, but E03 duplicates E02 and E17 duplicates E10, since each pair shares an LEI.

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R1 csv run 4 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 5 graded by code

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

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R2 rdf run 1 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 2 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 3 graded by code

17. There are 19 entity records, but E03 duplicates E02 and E17 duplicates E10, both by LEI.

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

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R2 rdf run 5 graded by code

17. There are 19 records, but E03 duplicates E02 and E17 duplicates E10 by LEI.

JSON: {"count": 17}

Why: count: expected 16, got 17

✅ R6 rdf+ontology run 1 graded by code

16. The 19 non-instrument records collapse to 16 entities: E17 duplicates E10, E03 duplicates E02, and E16 is QA and excluded.

JSON: {"count": 16}

✅ R6 rdf+ontology run 2 graded by code

16. The 19 entity records include two duplicates (E17 = E10, E03 = E02) and one QA record (E16).

JSON: {"count": 16}

✅ R6 rdf+ontology run 3 graded by code

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

JSON: {"count": 16}

✅ R6 rdf+ontology run 4 graded by code

16. There are 19 records, of which E17=E10 and E03=E02 are duplicates, and E16 is QA. That leaves 16, counting the two sovereigns.

JSON: {"count": 16}

✅ R6 rdf+ontology run 5 graded by code

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

JSON: {"count": 16}

✅ R5 csv+ontology run 1 graded by code

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

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 and describes no real entity.

JSON: {"count": 16}

✅ R5 csv+ontology 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}

✅ R5 csv+ontology run 4 graded by code

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

JSON: {"count": 16}

✅ R5 csv+ontology run 5 graded by code

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

JSON: {"count": 16}

✅ R4 csv+markdown run 1 graded by code

16. The 19 records minus two duplicates (E03, 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 duplicate E02 and E10 by LEI, and E16 is QA data.

JSON: {"count": 16}

✅ R4 csv+markdown run 3 graded by code

16. The file has 19 records. E03 and E17 are duplicates by LEI, and E16 is QA, so I excluded all three. The two sovereigns count as entities.

JSON: {"count": 16}

✅ R4 csv+markdown run 4 graded by code

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

JSON: {"count": 16}

✅ R4 csv+markdown run 5 graded by code

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

JSON: {"count": 16}

❌ R3 csv+padding run 1 graded by code

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

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 (same LEIs).

JSON: {"count": 17}

Why: count: expected 16, got 17

❌ R3 csv+padding run 3 graded by code

17. The 19 records contain two duplicates by LEI: E03 = E02 and E17 = E10.

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). The two sovereigns are counted.

JSON: {"count": 17}

Why: count: expected 16, got 17

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