Question: Which causes more deaths, cholera or typhoid fever?
Choices:
Crohn's disease
bubonic plague
attention deficit hyperactivity disorder
peritonitis
epilepsy
typhoid fever
cholera
prostate cancer
gastroesophageal reflux disease
amyotrophic lateral sclerosis
Program:
function: Find
inputs: cholera
function: Find
inputs: typhoid fever
function: SelectBetween
dependencies: 0
1
inputs: number of deaths
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "cholera" .  } UNION { ?e <pred:name> "typhoid fever" .  } ?e <number_of_deaths> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: typhoid fever