Question: How many civil wars are located in Lebanon (that is the release region of The Tourist) or are symbolic of Mao Zedong?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "civil war" .  { ?e <location> ?e_1 . ?e_1 <pred:name> "Lebanon" . ?e_2 <film_release_region> ?e_1 . ?e_2 <pred:name> "The Tourist" .  } UNION { ?e_1 <conflict> ?e . ?e_1 <pred:name> "Mao Zedong" .  } }
Program:
function: Find
inputs: The Tourist
function: Relate
dependencies: 0
inputs: film release region
forward
function: Find
inputs: Lebanon
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: location
backward
function: FilterConcept
dependencies: 4
inputs: civil war
function: Find
inputs: Mao Zedong
function: Relate
dependencies: 6
inputs: conflict
forward
function: FilterConcept
dependencies: 7
inputs: civil war
function: Or
dependencies: 5
8
function: Count
dependencies: 9