Question: What is the India state that borders Sindh and whose FIPS 10-4 (countries and regions) is IN09?
Choices:
Kerala
Himachal Pradesh
Haryana
West Bengal
Maharashtra
Punjab
Karnataka
Andhra Pradesh
Gujarat
Odisha
Program:
function: Find
inputs: Sindh
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: state of India
function: FindAll
function: FilterStr
dependencies: 3
inputs: FIPS 10-4 (countries and regions)
IN09
function: FilterConcept
dependencies: 4
inputs: state of India
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Sindh" .  ?e <FIPS_10-4_(countries_and_regions)> ?pv . ?pv <pred:value> "IN09" .  }
Answer: Gujarat