query:  SELECT ?item { { ?item wdt:P957 ?value } UNION { ?statement pq:P957 ?value . ?item ?p ?statement . ?prop wikibase:claim ?p } UNION { ?ref pr:P957 ?value . ?statement prov:wasDerivedFrom ?ref . ?item ?p ?statement . ?prop wikibase:claim ?p } . BIND(REPLACE(STR(?value), "-", "") AS ?nohyphen) . FILTER(STRLEN(?nohyphen) = 10) . BIND(REPLACE(SUBSTR(?nohyphen, 10, 1), "X", "10") AS ?last) . BIND(xsd:integer(SUBSTR(?nohyphen, 1, 1)) * 10 + xsd:integer(SUBSTR(?nohyphen, 2, 1)) * 9 + xsd:integer(SUBSTR(?nohyphen, 3, 1)) * 8 + xsd:integer(SUBSTR(?nohyphen, 4, 1)) * 7 + xsd:integer(SUBSTR(?nohyphen, 5, 1)) * 6 + xsd:integer(SUBSTR(?nohyphen, 6, 1)) * 5 + xsd:integer(SUBSTR(?nohyphen, 7, 1)) * 4 + xsd:integer(SUBSTR(?nohyphen, 8, 1)) * 3 + xsd:integer(SUBSTR(?nohyphen, 9, 1)) * 2 + xsd:integer(?last) AS ?checksum) . FILTER(FLOOR(?checksum / 11) != (?checksum / 11)) }