Question: How many wars have a start time after 1812 or are followed by French and Indian War?
Choices:
22
23
24
25
26
27
28
29
30
31
Answer: 27
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "war" .  { ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1812 ) .  } UNION { ?e <followed_by> ?e_1 . ?e_1 <pred:name> "French and Indian War" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: start time
1812
>
function: FilterConcept
dependencies: 1
inputs: war
function: Find
inputs: French and Indian War
function: Relate
dependencies: 3
inputs: followed by
backward
function: FilterConcept
dependencies: 4
inputs: war
function: Or
dependencies: 2
5
function: Count
dependencies: 6