What is the {former municipality of the Netherlands} for {shares border with} of {Rotterdam}
Title a previous district of the Netherlands that offers a border with Rotterdam
Name a former municipality of the Netherlands that shares a border with Rotterdam
SELECT DISTINCT ?i WHERE { ?i property:shares_border_with resource:Rotterdam . ?i rdf:type ontology:former_municipality_of_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/Q7265977> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q34370 . ?sbj wdt:P31 wd:Q7265977 } 