Question: Which has fewer cases, yellow fever or AIDS?
Choices:
sepsis
epilepsy
cholera
acute cystitis
poliomyelitis
yellow fever
prostate cancer
pneumonia
gastroesophageal reflux disease
AIDS
Program:
function: Find
inputs: yellow fever
function: Find
inputs: AIDS
function: SelectBetween
dependencies: 0
1
inputs: number of cases
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "yellow fever" .  } UNION { ?e <pred:name> "AIDS" .  } ?e <number_of_cases> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: yellow fever