Question: Which has lesser population between Kathmandu & Colombo?
Choices:
Abidjan
Chihuahua
Colombo
Kingston
Kathmandu
Dundee
Trieste
Cork
Bergen
Santo Domingo
Program:
function: Find
inputs: Kathmandu
function: Find
inputs: Colombo
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kathmandu" .  } UNION { ?e <pred:name> "Colombo" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Colombo