Question: What is the number of states in India that share a boundary with Andhra Pradesh (whose ISNI is 0000 0000 9677 334X)?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Andhra Pradesh" . ?e_1 <ISNI> ?pv . ?pv <pred:value> "0000 0000 9677 334X" .   }
Program:
function: Find
inputs: Andhra Pradesh
function: FilterStr
dependencies: 0
inputs: ISNI
0000 0000 9677 334X
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: state of India
function: Count
dependencies: 3
Answer: 4