Question: Which countries have more than ten volcanoes?
SPARQL query:
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri WHERE { ?x a onto:Volcano . ?x onto:locatedInArea ?uri . ?uri a onto:Country . } GROUP BY ?uri HAVING (COUNT(?x) > 10)