What is the {populated place in the Netherlands} for {shares border with} of {Rotterdam}
Which is the populated put within the Netherlands which offers border with Rotterdam?
Which is the populated place in the Netherlands which shares border with Rotterdam?
SELECT DISTINCT ?w WHERE { ?w property:shares_border_with resource:Rotterdam . ?w rdf:type ontology:populated_place_in_the_Netherlands }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q34370> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1852859> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q34370 . ?sbj wdt:P31 wd:Q1852859 } 
Spijkenisse