query-714b8a360395087c25bf67ab1fe8b2f6

rq turtle/ttl

TODO

Use at

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_d00291b7e9a143df8ec0be8c8ebd714c50908") 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