Did {Jammu_and_Kashmir} {shares border with} {Punjab} and {Himachal Pradesh} ?
Does {Jammu_and_Kashmir} {shares border with} {Punjab} and {Himachal Pradesh} ?
ASK WHERE { wd:Q1180 wdt:P47 wd:Q22424 . wd:Q1180 wdt:P47 wd:Q1177 }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1180> . ?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/Q22424>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1180> . ?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/Q1177>. } 
Do Jammu and Kashmir share borders with Punjab and Himachal Pradesh?