Question: Which has fewer people, Plymouth (the one that is headed by mayor) or Lagos?
Choices: Plymouth
Lagos
Kingston
Kilkenny
Cork
Trieste
Santo Domingo
Dundee
Chihuahua
Abidjan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Plymouth" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "mayor" .   } UNION { ?e <pred:name> "Lagos" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: mayor
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Plymouth
function: And
dependencies: 1
2
function: Find
inputs: Lagos
function: SelectBetween
dependencies: 3
4
inputs: population
less
Answer: Plymouth