Did {Soviet_Union} {shares border with} {Socialist Republic of Romania}?
Did the Soviet Union and Socialist Republic of Romania share a border?
Did Soviet Union share a border with Socialist Republic of Romania?
ASK WHERE { resource:Soviet_Union property:shares_border_with resource:Socialist_Republic_of_Romania }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q15180> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q842794>. } 
ASK WHERE { wd:Q15180 wdt:P47 wd:Q842794 }