Question: What is the population of the state of India that shares a border with Manipur (whose FIPS 10-4 (countries and regions) is IN17)?
Choices:
2006063
31205576
386765
10031
8002100
1933719
222327
147299
19475204
18876
Answer: 31205576
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Manipur" . ?e_1 <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "IN17" . ?e <population> ?pv .  }
Program:
function: Find
inputs: Manipur
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
IN17
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: state of India
function: QueryAttr
dependencies: 3
inputs: population