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