What is {bordered by} of {basin countries} of {Elbe} ?
Who gave the { bordered by } of { Elbe's basin lands }?
Who gave the {bordered by} of {basin countries} of {Elbe} ?
SELECT ?a WHERE { ?r property:shares_border_with ?a . resource:Elbe property:basin_country ?r }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1644> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P205>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q1644 wdt:P205 ?X . ?X wdt:P47 ?answer}
Lithuania Russia Germany Belarus Ukraine Czech Republic Slovakia Hungary Italy Switzerland Germany Czech Republic Slovakia Slovenia Liechtenstein Belgium Luxembourg Denmark Poland Switzerland Austria Netherlands France Czech Republic Poland Austria Germany Slovakia