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