Question: How many symptoms does chemotherapy affect, or are cardiovascular-disease symptoms?
Choices: 6
7
8
9
10
11
12
13
14
15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "symptom" .  { ?e_1 <has_effect> ?e . ?e_1 <pred:name> "chemotherapy" .  } UNION { ?e <symptom_of> ?e_1 . ?e_1 <pred:name> "cardiovascular disease" .  } }
Program:
function: Find
inputs: chemotherapy
function: Relate
dependencies: 0
inputs: has effect
forward
function: FilterConcept
dependencies: 1
inputs: symptom
function: Find
inputs: cardiovascular disease
function: Relate
dependencies: 3
inputs: symptom of
backward
function: FilterConcept
dependencies: 4
inputs: symptom
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 6