query-0277006cefcaeafbf16e46ae082d5bbf

rq turtle/ttl

Species and the number of Bauer works that depict them

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?name ?taxon (COUNT(?item) as ?count) WHERE {
?item wdt:P170 wd:Q79012. # work by Bauer
?item wdt:P180 ?taxon.  # depicting a species
?taxon wdt:P225 ?name   # taxon name of species
} GROUP BY ?name ?taxon
ORDER by DESC(?count) ?name

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count") v3("?item"):::projected v2("?name"):::projected v4("?taxon"):::projected c2(["wd:Q79012"]):::iri v3 --"wdt:P170"--> c2 v3 --"wdt:P180"--> v4 v4 --"wdt:P225"--> v2 bind1[/"count(?item)"/] v3 --o bind1 bind1 --as--o v5