Question: What is the capital whose official name is चण्डीगढ़ / चंडीगढ़ and that borders Punjab that borders Jammu and Kashmir?
Choices: New Delhi
Tallinn
Sarajevo
Manila
Paris
Moscow
Doha
Lausanne
Chandigarh
Riga
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e <official_name> ?pv . ?pv <pred:value> "चण्डीगढ़ / चंडीगढ़" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Punjab" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Jammu and Kashmir" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official name
चण्डीगढ़ / चंडीगढ़
function: FilterConcept
dependencies: 1
inputs: capital
function: Find
inputs: Jammu and Kashmir
function: Relate
dependencies: 3
inputs: shares border with
forward
function: Find
inputs: Punjab
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: shares border with
forward
function: FilterConcept
dependencies: 7
inputs: capital
function: And
dependencies: 2
8
function: What
dependencies: 9
Answer: Chandigarh