Question: Which disease has myocardial infarction as one risk factor?
Choices:
epilepsy
gastroesophageal reflux disease
attention deficit hyperactivity disorder
peritonitis
prostate cancer
smallpox
stomach cancer
esophageal cancer
Parkinson disease
major depressive disorder
Program:
function: Find
inputs: myocardial infarction
function: Relate
dependencies: 0
inputs: risk factor
forward
function: FilterConcept
dependencies: 1
inputs: disease
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" . ?e_1 <risk_factor> ?e . ?e_1 <pred:name> "myocardial infarction" .   }
Answer: major depressive disorder