Question: Which has more people, Varanasi or Lagos?
Choices:
Chihuahua
Bergen
Santo Domingo
Abidjan
Trieste
Kingston
Varanasi
Lagos
Cork
Kilkenny
Answer: Lagos
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Varanasi" .  } UNION { ?e <pred:name> "Lagos" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Varanasi
function: Find
inputs: Lagos
function: SelectBetween
dependencies: 0
1
inputs: population
greater