query-714b8a360395087c25bf67ab1fe8b2f6
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item (SAMPLE(?identifier) AS ?id) WHERE {
?item p:P4223/ps:P4223 ?identifier .
FILTER(CONTAINS(?identifier, '_res-')) .
} GROUP BY ?item HAVING(COUNT(?identifier) = 1)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?_anon_42b5416610844a34809f33a099ae9de150927")
v4("?id")
v1("?identifier"):::projected
v2("?item"):::projected
a2((" "))
a1((" "))
f0[[" = '1^^xsd:integer'"]]
f0 --> a1
f1[["contains(?identifier,'_res-')"]]
f1 --> v1
v2 --"p:P4223"--> a2
a2 --"p:statement/P4223"--> v1
bind4[/"count(?identifier)"/]
v1 --o bind4
bind4 --as--o v3
bind5[/"sample(?identifier)"/]
v1 --o bind5
bind5 --as--o v4