Did {Manhattan} {shares border with} {Brooklyn} and {The Bronx} ?
Does Manhattan border Brooklyn and the Bronx?
Did Manhattan share a border with Brooklyn and the Bronx?
ASK WHERE { resource:Manhattan property:shares_border_with resource:The_Bronx . resource:Manhattan property:shares_border_with resource:Brooklyn }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11299> . ?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/Q18419>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11299> . ?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> <http://wikidata.dbpedia.org/resource/Q18426>. } 
ASK WHERE { wd:Q11299 wdt:P47 wd:Q18419 . wd:Q11299 wdt:P47 wd:Q18426 }