Question: How many wars took place in which Kingdom of Bulgaria was a participant or ended before 2011?
Choices:
38
39
40
41
42
43
44
45
46
47
Program:
function: Find
inputs: Kingdom of Bulgaria
function: Relate
dependencies: 0
inputs: participant of
forward
function: FilterConcept
dependencies: 1
inputs: war
function: FindAll
function: FilterYear
dependencies: 3
inputs: end time
2011
<
function: FilterConcept
dependencies: 4
inputs: war
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "war" .  { ?e_1 <participant_of> ?e . ?e_1 <pred:name> "Kingdom of Bulgaria" .  } UNION { ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2011 ) .  } }
Answer: 40