query-1aae540144d1b856d5fb797c9a124d80

rq turtle/ttl

Both instance and subclass of the same itemThis one is really simple :

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
select ?item where {
  ?item wdt:P31 ?class;
        wdt:P279 ?class .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?class") v1("?item"):::projected v1 --"wdt:P31"--> v2 v1 --"wdt:P279"--> v2