query-d0bdc6270f573718d750be6a249ca303
or
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item
{
?item wdt:P171 ?pItem . # parent taxon
?item wdt:P105 wd:Q227936 . # child rank
?pItem wdt:P105 wd:Q34740 . # parent rank
}
limit 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?pItem")
c4(["wd:Q34740"]):::iri
c3(["wd:Q227936"]):::iri
v1 --"wdt:P171"--> v2
v1 --"wdt:P105"--> c3
v2 --"wdt:P105"--> c4