query-5125b8b045cb4bde70beb774eaaa51eb
TODO
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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?P953
WHERE
{
?item wdt:P31 wd:Q5707594.
?item p:P953 ?stat.
?stat ps:P953 ?P953.
filter not exists {?stat prov:wasDerivedFrom/pr:P1065 ?thing .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?P953"):::projected
v3("?item"):::projected
v1("?stat")
v2("?thing")
a1((" "))
c8(["bd:serviceParam"]):::iri
c4(["wd:Q5707594"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"prov:wasDerivedFrom"--> e0a1
e0a1 --"p:reference/P1065"--> e0v2
e0v1("?stat"):::projected
e0v2("?thing"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> v2
v1 --"prov:wasDerivedFrom"--> a1
a1 --"p:reference/P1065"--> v2
v3 --"p:direct/P31"--> c4
v3 --"p:P953"--> v1
v1 --"p:statement/P953"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end