Question: How many wars were followed by a war taking place in Egypt (the country whose life expectancy is 69.444 years) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Egypt
function: FilterNum
dependencies: 0
inputs: life expectancy
69.444 year
=
function: Relate
dependencies: 1
inputs: location
backward
function: FilterConcept
dependencies: 2
inputs: war
function: Relate
dependencies: 3
inputs: follows
forward
function: FilterConcept
dependencies: 4
inputs: war
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "war" . ?e_1 <follows> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "war" . ?e_1 <location> ?e_2 . ?e_2 <pred:name> "Egypt" . ?e_2 <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> "69.444"^^xsd:double .   }
Answer: 1