query-768acfbdf56d4abe283f8acae98969a3

rq turtle/ttl

Show all taxa that are also instances of (as opposed to subclasses of) some kind of organism SELECT ?item ?itemLabel WHERE { { SELECT DISTINCT ?item WHERE {
?item wdt:P31/wdt:P279 wd:Q16521 . hint:Prior hint:gearing "forward". ?item wdt:P31/wdt:P279 wd:Q7239 . hint:Prior hint:gearing "forward". } LIMIT 100 }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Show all taxa that are also instances of (as opposed to subclasses of) some kind of organism
SELECT ?item ?itemLabel WHERE {
  {
    SELECT DISTINCT ?item WHERE {   
      ?item wdt:P31/wdt:P279* wd:Q16521 .

      ?item wdt:P31/wdt:P279* wd:Q7239 .

    }
    LIMIT 100
  }   
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a1((" ")) a2((" ")) c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q16521"]):::iri c4(["wd:Q7239"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end