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