query-c88265f1c3cdc458473dfb008aa82fab
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 pq: <http://www.wikidata.org/prop/qualifier/>
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 .} && not exists {?stat pq:P1065 ?thing2 } )
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;
v5("?P953"):::projected
v4("?item"):::projected
v1("?stat")
v2("?thing")
v3("?thing2")
a1((" "))
c9(["bd:serviceParam"]):::iri
c5(["wd:Q5707594"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not 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
subgraph f0e1["Exists Clause"]
e1v1 --"p:qualifier/P1065"--> e1v2
e1v1("?stat"):::projected
e1v2("?thing2"):::projected
end
f0--EXISTS--> f0e1
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> v2
f0 --> c3
f0 --> v3
v1 --"prov:wasDerivedFrom"--> a1
a1 --"p:reference/P1065"--> v2
v1 --"p:qualifier/P1065"--> v3
v4 --"p:direct/P31"--> c5
v4 --"p:P953"--> v1
v1 --"p:statement/P953"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end