Question: Which has a lower population, Pomona or Ames?
Choices:
Lansing
Waukegan
Oakland
New Haven
Franklin
Compton
Ames
Pomona
Boulder
Columbus
Program:
function: Find
inputs: Pomona
function: Find
inputs: Ames
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pomona" .  } UNION { ?e <pred:name> "Ames" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Ames