Question: How many India states share a border with the Indian state whose Indian census area code (2001) is 06?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state of India" . ?e_1 <Indian_census_area_code_(2001)> ?pv . ?pv <pred:value> "06" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Indian census area code (2001)
06
function: FilterConcept
dependencies: 1
inputs: state of India
function: Relate
dependencies: 2
inputs: shares border with
forward
function: FilterConcept
dependencies: 3
inputs: state of India
function: Count
dependencies: 4