Question: How many wars started after 1857 and ended after 1922?
Choices:
14
15
16
17
18
19
20
21
22
23
Answer: 18
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 > 1922 ) . ?e <start_time> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 > 1857 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
1922
>
function: FilterConcept
dependencies: 1
inputs: war
function: FindAll
function: FilterYear
dependencies: 3
inputs: start time
1857
>
function: FilterConcept
dependencies: 4
inputs: war
function: And
dependencies: 2
5
function: Count
dependencies: 6