Question: How many states of India are located on the continent of Asia (that is a part of Eurasia) or are situated in India (that is the country of First War of Indian Independence of 1857)?
Choices:
20
21
22
23
24
25
26
27
28
29
Program:
function: Find
inputs: Eurasia
function: Relate
dependencies: 0
inputs: has part
forward
function: Find
inputs: Asia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: continent
backward
function: FilterConcept
dependencies: 4
inputs: state of India
function: Find
inputs: First War of Indian Independence of 1857
function: Relate
dependencies: 6
inputs: country
forward
function: Find
inputs: India
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 10
inputs: state of India
function: Or
dependencies: 5
11
function: Count
dependencies: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" .  { ?e <continent> ?e_1 . ?e_1 <pred:name> "Asia" . ?e_2 <has_part> ?e_1 . ?e_2 <pred:name> "Eurasia" .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "India" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "First War of Indian Independence of 1857" .  } }
Answer: 23