Question: Which disease, with vomiting as a symptom, killed Friedrich Nietzsche?
Choices:
attention deficit hyperactivity disorder
brain tumor
peritonitis
epilepsy
AIDS
pancreatic cancer
meningitis
gastroesophageal reflux disease
prostate cancer
Crohn's disease
Program:
function: Find
inputs: vomiting
function: Relate
dependencies: 0
inputs: symptom of
forward
function: FilterConcept
dependencies: 1
inputs: disease
function: Find
inputs: Friedrich Nietzsche
function: Relate
dependencies: 3
inputs: cause of death
forward
function: FilterConcept
dependencies: 4
inputs: disease
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" . ?e_1 <symptom_of> ?e . ?e_1 <pred:name> "vomiting" .  ?e_2 <cause_of_death> ?e . ?e_2 <pred:name> "Friedrich Nietzsche" .  }
Answer: brain tumor