What is the {second-level administrative country subdivision} for {shares border with} of {Hamburg}
Hamburg shares a border with which second-level administrative country subdivision?
Which second-level administrative country subdivision shares a border with Hamburg?
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:second-level_administrative_country_subdivision . resource:Hamburg property:shares_border_with ?x }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1055> . ?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> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q13220204> } 
 select distinct ?obj where { wd:Q1055 wdt:P47 ?obj . ?obj wdt:P31 wd:Q13220204 } 