SELECT ?muni (COUNT(?t) AS ?trees) (COUNT(DISTINCT ?tx) A… ?t a tci:Tree ; tci:inMunicipality ?m ; tci:taxon ?tx . ?m rdfs:label ?muni } GROUP BY ?muni ORDER BY DESC(?species) LIMIT 20
rete playground · documentation · github.com/caviri/rete