query-48bdbfe5fdbd209274bc82c4fc8ca613

rq turtle/ttl

: It's a wiki template, so you have to escape vertical bars. TrySuccu@ Incorrect family name

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?taxonName WHERE {
  ?item wdt:P225 ?taxonName .
  ?item wdt:P105 wd:Q35409 . # family
  FILTER(!(STRENDS(?taxonName, "idae") || STRENDS(?taxonName, "aceae")))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?taxonName"):::projected c5(["wd:Q35409"]):::iri f0[["not (ends-with(?taxonName,'idae') || ends-with(?taxonName,'aceae'))"]] f0 --> v1 v2 --"wdt:P225"--> v1 v2 --"wdt:P105"--> c5