query-48c537ddafe289a50e5f4888904af94c
title:Statements referenced only from Wikimedia projects [NOT REALLY WORKING] SELECT ?item (COUNT(?ref2) AS ?n) WHERE { ?item wdt:P1986 ?dbi; wdt:P396 ?sbn ; p:P19 ?st . ?st prov:wasDerivedFrom ?ref, ?ref2 . ?ref2 pr:P143 [] . } GROUP BY ?item HAVING(?n = 1)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
#title:Statements referenced only from Wikimedia projects [NOT REALLY WORKING]
SELECT ?item (COUNT(?ref2) AS ?n)
WHERE {
?item wdt:P1986 ?dbi; wdt:P396 ?sbn ; p:P19 ?st .
?st prov:wasDerivedFrom ?ref, ?ref2 . ?ref2 pr:P143 [] .
}
GROUP BY ?item
HAVING(?n = 1)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?dbi")
v2("?item"):::projected
v8("?n")
v6("?ref")
v7("?ref2"):::projected
v4("?sbn")
v5("?st")
a1((" "))
f0[["?n = '1^^xsd:integer'"]]
f0 --> v8
v2 --"p:direct/P1986"--> v3
v2 --"p:direct/P396"--> v4
v2 --"p:P19"--> v5
v5 --"prov:wasDerivedFrom"--> v6
v5 --"prov:wasDerivedFrom"--> v7
v7 --"p:reference/P143"--> a1
bind2[/"count(?ref2)"/]
v7 --o bind2
bind2 --as--o v8