Question: How many wars have an end time after 1856 or are significant events that happened in the Russian Empire?
Choices:
24
25
26
27
28
29
30
31
32
33
Answer: 27
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "war" .  { ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1856 ) .  } UNION { ?e_1 <significant_event> ?e . ?e_1 <pred:name> "Russian Empire" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
1856
>
function: FilterConcept
dependencies: 1
inputs: war
function: Find
inputs: Russian Empire
function: Relate
dependencies: 3
inputs: significant event
forward
function: FilterConcept
dependencies: 4
inputs: war
function: Or
dependencies: 2
5
function: Count
dependencies: 6