Question: What state of India has the ISO 3166-2 code IN-HR and shares a border with Himachal Pradesh whose capital is Shimla?
Choices: Kerala
Maharashtra
Punjab
Jharkhand
Himachal Pradesh
Odisha
Andhra Pradesh
Haryana
Jammu and Kashmir
Uttarakhand
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <ISO_3166-2_code> ?pv . ?pv <pred:value> "IN-HR" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Himachal Pradesh" . ?e_1 <capital> ?e_2 . ?e_2 <pred:name> "Shimla" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
IN-HR
function: FilterConcept
dependencies: 1
inputs: state of India
function: Find
inputs: Shimla
function: Relate
dependencies: 3
inputs: capital
backward
function: Find
inputs: Himachal Pradesh
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: shares border with
backward
function: FilterConcept
dependencies: 7
inputs: state of India
function: And
dependencies: 2
8
function: What
dependencies: 9
Answer: Haryana