query-799a4a3b37a027d6e377c686faa27508
Non-single identifiers
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?identifier (COUNT(?value) AS ?cnt) (GROUP_CONCAT(?value; separator=', ') AS ?values) WHERE {
{
SELECT DISTINCT ?item WHERE {
?item p:P106/ps:P106/wdt:P279* wd:Q26270618 .
}
}
?identifier wikibase:propertyType wikibase:ExternalId; wikibase:claim ?identifierClaim; wikibase:statementProperty ?identifierStatementProperty; wikibase:reference ?ref .
?item ?identifierClaim [ ?identifierStatementProperty ?value ] .
} GROUP BY ?item ?identifier HAVING(?cnt > 1) ORDER BY DESC(?cnt)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?cnt")
v3("?identifier"):::projected
v4("?identifierClaim")
v5("?identifierStatementProperty")
v2("?item"):::projected
v6("?ref")
v7("?value"):::projected
v8("?values")
a1((" "))
a2((" "))
a3((" "))
c5(["wd:Q26270618"]):::iri
c7(["wikibase:ExternalId"]):::iri
f0[["?cnt > '1^^xsd:integer'"]]
f0 --> v8
v2 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c5
v3 --"wikibase:propertyType"--> c7
v3 --"wikibase:claim"--> v4
v3 --"wikibase:statementProperty"--> v5
v3 --"wikibase:reference"--> v6
a3 -->v5--> v7
v2 -->v4--> a3
bind3[/"count(?value)"/]
v7 --o bind3
bind3 --as--o v8
bind4[/"?value"/]
v7 --o bind4
bind4 --as--o v8