Did {Los_Angeles} {shares border with} {Santa Monica}?
Is a border shared by LA and Santa Monica?
Do LA and Santa Monica share a border?
ASK WHERE { resource:Los_Angeles property:shares_border_with resource:Santa_Monica }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q65> . ?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/Q47164>. } 
ASK WHERE { wd:Q65 wdt:P47 wd:Q47164 }