Question: How many unitary states belong are the narrative ocation of Hanniba Rising, or lie in Asian continent (the continent where Soviet Union was located)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" .  { ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "Hannibal Rising" .  } UNION { ?e <continent> ?e_1 . ?e_1 <pred:name> "Asia" . ?e_2 <continent> ?e_1 . ?e_2 <pred:name> "Soviet Union" .  } }
Program:
function: Find
inputs: Hannibal Rising
function: Relate
dependencies: 0
inputs: narrative location
forward
function: FilterConcept
dependencies: 1
inputs: unitary state
function: Find
inputs: Soviet Union
function: Relate
dependencies: 3
inputs: continent
forward
function: Find
inputs: Asia
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: continent
backward
function: FilterConcept
dependencies: 7
inputs: unitary state
function: Or
dependencies: 2
8
function: Count
dependencies: 9