query-9ec5cdfbf4c085d6ecdd8125d2d885bd
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 ?instance WHERE {
?item wdt:P31 wd:Q486972 .
?item wdt:P31 ?instance .
?instance wdt:P279* wd:Q486972 .
?item wdt:P31 ?instance .
FILTER(?instance != wd:Q486972) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?instance"):::projected
v2("?item"):::projected
c1(["wd:Q486972"]):::iri
f0[["?instance != 'wd:Q486972'"]]
f0 --> v1
v2 --"wdt:P31"--> c1
v2 --"wdt:P31"--> v1
v1 --"wdt:P279"--> c1
v2 --"wdt:P31"--> v1