Question: How many symptoms indicate lung cancer or have obesity as a risk factor?
Choices: 1
2
3
4
5
6
7
8
9
10
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> "lung cancer" .  } UNION { ?e_1 <risk_factor> ?e . ?e_1 <pred:name> "obesity" .  } }
Program:
function: Find
inputs: lung cancer
function: Relate
dependencies: 0
inputs: symptoms
forward
function: FilterConcept
dependencies: 1
inputs: symptom
function: Find
inputs: obesity
function: Relate
dependencies: 3
inputs: risk factor
forward
function: FilterConcept
dependencies: 4
inputs: symptom
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 4