query-9cf0687d6f201f65b321c85d82f27758

rq turtle/ttl

Denny

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
select ?taxon
where {
   {
  select ?taxon where {
    ?taxon wdt:P171*/^pq:P642 [ps:P31 wd:Q55983715; ^p:P31 wd:Q152].
  }
} minus {  {
  select ?taxon where {
    ?taxon wdt:P171*/^pq:P1011 [ps:P31 wd:Q55983715; ^p:P31 wd:Q152].
  }
} }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?taxon"):::projected a2((" ")) a1((" ")) a4((" ")) a3((" ")) c2(["wd:Q55983715"]):::iri c3(["wd:Q152"]):::iri a1 --"p:statement/P31"--> c2 c3 --"p:P31"--> a1 v1 --"p:direct/P171"--> a2 a1 --"p:qualifier/P642"--> a2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; a3 --"p:statement/P31"--> c2 c3 --"p:P31"--> a3 v1 --"p:direct/P171"--> a4 a3 --"p:qualifier/P1011"--> a4 end