Question: What is the number of symptoms due to chemo or meningitis?
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: Find
inputs: meningitis
function: Relate
dependencies: 0
inputs: symptoms
forward
function: FilterConcept
dependencies: 1
inputs: symptom
function: Find
inputs: chemotherapy
function: Relate
dependencies: 3
inputs: has cause
backward
function: FilterConcept
dependencies: 4
inputs: symptom
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> "symptom" .  { ?e_1 <symptoms> ?e . ?e_1 <pred:name> "meningitis" .  } UNION { ?e <has_cause> ?e_1 . ?e_1 <pred:name> "chemotherapy" .  } }
Answer: 4