Question: Count the number of cities on the Mediterranean Sea?
SPARQL:
SELECT DISTINCT COUNT(?uri) WHERE { <http://dbpedia.org/resource/Mediterranean_Sea> <http://dbpedia.org/property/cities> ?uri  . }