Q37, run 2026-11-05-1819-sonnet-query-graphdb

← 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 = 497

❌ D4 sparql run 1 graded by code · query session

511. The data has 540 entity records, 509 distinct LEIs and 2 records with no LEI.

JSON: {"count": 511}

Why: count: expected 497, got 511

❌ D4 sparql run 2 graded by code · query session

511. This is the number of distinct LEIs among the 540 entity records.

JSON: {"count": 511}

Why: count: expected 497, got 511

❌ D4 sparql run 3 graded by code · query session

511, by inference. There are 509 distinct LEIs across 540 entity records, plus the two sovereigns (CV, VD), which have no LEI. I did not confirm that those are the only entities without one.

JSON: {"count": 511}

Why: count: expected 497, got 511

❌ D4 sparql run 4 graded by code · query session

511. There are 540 entity records, and I merged 29 records that share an LEI with another record. Two records have no LEI and were kept as separate entities.

JSON: {"count": 511}

Why: count: expected 497, got 511

❌ D4 sparql run 5 graded by code · query session

511. There are 540 records, but 509 distinct LEIs plus CV and VD, which have no LEI, give 511.

JSON: {"count": 511}

Why: count: expected 497, got 511

✅ D5 sparql+ontology run 1 graded by code · query session

497. There are 495 distinct LEIs among non-QA records, plus the two sovereigns (CV, VD) that have none.

JSON: {"count": 497}

❌ D5 sparql+ontology run 2 graded by code · query session

495 distinct entities, grouping by LEI and excluding QA records.

JSON: {"count": 495}

Why: count: expected 497, got 495

❌ D5 sparql+ontology run 3 graded by code · query session

(no answer found)

JSON: {"count": null}

Why: count: expected 497, got None

✅ D5 sparql+ontology run 4 graded by code · query session

497 distinct LEIs, counting each sovereign once and excluding QA.

JSON: {"count": 497}

✅ D5 sparql+ontology run 5 graded by code · query session

497 distinct legal entities, counting by LEI and excluding QA records.

JSON: {"count": 497}

❌ D6 sparql+axioms run 1 graded by code · query session

511.

JSON: {"count": 511}

Why: count: expected 497, got 511

❌ D6 sparql+axioms run 2 graded by code · query session

511. This counts the 540 records after merging the sameEntityAs links.

JSON: {"count": 511}

Why: count: expected 497, got 511

❌ D6 sparql+axioms run 3 graded by code · query session

511. There are 540 records, 29 of which are the second record of an entity already counted.

JSON: {"count": 511}

Why: count: expected 497, got 511

❌ D6 sparql+axioms run 4 graded by code · query session

511 distinct entities, with sameEntityAs duplicates merged.

JSON: {"count": 511}

Why: count: expected 497, got 511

❌ D6 sparql+axioms run 5 graded by code · query session

511 distinct entities. There are 540 records, and the duplicates are linked by sameEntityAs.

JSON: {"count": 511}

Why: count: expected 497, got 511