Question: Which has more people, Whittier or Bloomfield Hills?
Choices:
Compton
Bloomfield Hills
Lansing
Boulder
Columbus
New Haven
Franklin
Oakland
Whittier
Greenville
Program:
function: Find
inputs: Whittier
function: Find
inputs: Bloomfield Hills
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Whittier" .  } UNION { ?e <pred:name> "Bloomfield Hills" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Whittier