query-345daf1e14e585174f6f23b85ada0a49
Genus of plants depicted in the Flora Graeca
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?genus ?genusname (COUNT(?art) as ?count) WHERE {
?art wdt:P1433 wd:Q5460305. # Artwork published in FG
?art wdt:P180 ?species. # Artwork depicts species
?species wdt:P171 ?genus. # parent taxon of species
?genus wdt:P225 ?genusname. # taxon name of genus
} GROUP BY ?genus ?genusname
ORDER BY ?genusname
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?art"):::projected
v5("?count")
v4("?genus"):::projected
v1("?genusname"):::projected
v3("?species")
c2(["wd:Q5460305"]):::iri
v2 --"wdt:P1433"--> c2
v2 --"wdt:P180"--> v3
v3 --"wdt:P171"--> v4
v4 --"wdt:P225"--> v1
bind1[/"count(?art)"/]
v2 --o bind1
bind1 --as--o v5