Question: How many diseases have adolescence as one risk factor or have the DiseasesDB identifier of 1142?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" .  { ?e_1 <risk_factor> ?e . ?e_1 <pred:name> "adolescence" .  } UNION { ?e <DiseasesDB> ?pv . ?pv <pred:value> "1142" .  } }
Program:
function: Find
inputs: adolescence
function: Relate
dependencies: 0
inputs: risk factor
forward
function: FilterConcept
dependencies: 1
inputs: disease
function: FindAll
function: FilterStr
dependencies: 3
inputs: DiseasesDB
1142
function: FilterConcept
dependencies: 4
inputs: disease
function: Or
dependencies: 2
5
function: Count
dependencies: 6