Question: Tell me which one has the smaller populatoin, Marrakesh or Mogadishu.
Choices:
Chihuahua
Dundee
Kingston
Bergen
Santo Domingo
Trieste
Marrakesh
Mogadishu
Kilkenny
Cork
Program:
function: Find
inputs: Mogadishu
function: Find
inputs: Marrakesh
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mogadishu" .  } UNION { ?e <pred:name> "Marrakesh" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Marrakesh