Question: Which has fewer people, Patna or Belgrade?
Choices:
Bergen
Trieste
Dundee
Kilkenny
Santo Domingo
Abidjan
Belgrade
Kingston
Chihuahua
Cork
Program:
function: Find
inputs: Patna
function: Find
inputs: Belgrade
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Patna" .  } UNION { ?e <pred:name> "Belgrade" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Belgrade