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