Question: Count the nearest city to the historic palce whose one of the nearest city is Wisconsin ?
SPARQL query:
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT COUNT(?uri) WHERE { ?x onto:nearestCity <http://dbpedia.org/resource/Wisconsin> . ?x prop:nearestCity ?uri }