Question: What is the disease whose symptoms are stroke and headache?
Choices:
brain tumor
AIDS
peritonitis
Crohn's disease
epilepsy
prostate cancer
gastroesophageal reflux disease
hepatitis
anemia
attention deficit hyperactivity disorder
Answer: Crohn's disease
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" . ?e_1 <symptom_of> ?e . ?e_1 <pred:name> "stroke" .  ?e_2 <symptom_of> ?e . ?e_2 <pred:name> "headache" .  }
Program:
function: Find
inputs: stroke
function: Relate
dependencies: 0
inputs: symptom of
forward
function: FilterConcept
dependencies: 1
inputs: disease
function: Find
inputs: headache
function: Relate
dependencies: 3
inputs: symptom of
forward
function: FilterConcept
dependencies: 4
inputs: disease
function: And
dependencies: 2
5
function: What
dependencies: 6