Question: Does Mount Vernon (that shares a border with Yonkers) or Moline have the lower population?
Choices:
Greenville
Mount Vernon
Franklin
New Haven
Boulder
Oakland
Columbus
Compton
Moline
Waukegan
Program:
function: Find
inputs: Yonkers
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Mount Vernon
function: And
dependencies: 1
2
function: Find
inputs: Moline
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mount Vernon" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Yonkers" .   } UNION { ?e <pred:name> "Moline" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Moline