Question: Between Whittier or the Norwalk bordering Downey, which has fewer inhabitants?
Choices:
Columbus
Waukegan
Whittier
Lansing
Oakland
Greenville
Compton
Franklin
Boulder
New Haven
Program:
function: Find
inputs: Whittier
function: Find
inputs: Downey
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Norwalk
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Whittier" .  } UNION { ?e <pred:name> "Norwalk" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Downey" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Whittier