Question: Which has a lower population count, Monrovia or Victoria of Canada?
Choices:
Kingston
Abidjan
Kilkenny
Santo Domingo
Bergen
Monrovia
Trieste
Dundee
Chihuahua
Victoria
Program:
function: Find
inputs: Monrovia
function: Find
inputs: Canada
function: Relate
dependencies: 1
inputs: country
backward
function: Find
inputs: Victoria
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monrovia" .  } UNION { ?e <pred:name> "Victoria" . ?e <country> ?e_1 . ?e_1 <pred:name> "Canada" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Victoria