Question: How many countries surround the seas on the banks of which is the city of Cancun?
SPARQL query:
PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT COUNT(?uri) WHERE { ?x prop:cities <http://dbpedia.org/resource/CancÃºn> . ?x onto:country ?uri . }