query-9a81da3d2271b1d6af9b8fde2c74cb74
= order (Q36602) =
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item ?taxonName WHERE {
?item wdt:P225 ?taxonName .
?item wdt:P105 wd:Q36602 .
?item (wdt:P171)* ?higherParent .
?higherParent wdt:P944 wd:Q743780 .
FILTER(!(STRENDS(?taxonName, "ales")))
}
ORDER BY ASC(?taxonName)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?higherParent")
v2("?item"):::projected
v1("?taxonName"):::projected
c7(["wd:Q743780"]):::iri
c4(["wd:Q36602"]):::iri
f0[["not ends-with(?taxonName,'ales')"]]
f0 --> v1
v2 --"wdt:P225"--> v1
v2 --"wdt:P105"--> c4
v2 --"wdt:P171"--> v3
v3 --"wdt:P944"--> c7