query-d154c2326ca71ec1e225e0a75262191f
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item WHERE {
?item wdt:P31 ?sub0 .
?sub0 (wdt:P279)* wd:Q17376908 .
FILTER NOT EXISTS {
?item wdt:P279 ?sub1 .
?sub1 (wdt:P279)* wd:Q20162172 .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?sub0")
v2("?sub1")
c4(["wd:Q17376908"]):::iri
c2(["wd:Q20162172"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P279"--> e0v2
e0v2 --"wdt:P279"--> e0c2
e0v1("?item"):::projected
e0v2("?sub1"):::projected
e0c2(["wd:Q20162172"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
v1 --"wdt:P279"--> v2
v2 --"wdt:P279"--> c2
v1 --"wdt:P31"--> v3
v3 --"wdt:P279"--> c4