Question: How many wars ended before 2011 and included Middle Eastern theatre of World War I?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
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 < 2011 ) . ?e_1 <part_of> ?e . ?e_1 <pred:name> "Middle Eastern theatre of World War I" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
2011
<
function: FilterConcept
dependencies: 1
inputs: war
function: Find
inputs: Middle Eastern theatre of World War I
function: Relate
dependencies: 3
inputs: part of
forward
function: FilterConcept
dependencies: 4
inputs: war
function: And
dependencies: 2
5
function: Count
dependencies: 6