Question: What is the number of boarding schools that have Egypt as a country (the one that stated Hezbolla as a terrorist)
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "boarding school" . ?e <country> ?e_1 . ?e_1 <pred:name> "Egypt" . ?e_2 <designated_as_terrorist_by> ?e_1 . ?e_2 <pred:name> "Hezbollah" .   }
Program:
function: Find
inputs: Hezbollah
function: Relate
dependencies: 0
inputs: designated as terrorist by
forward
function: Find
inputs: Egypt
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: boarding school
function: Count
dependencies: 5