Question: Is Hayward or Elgin less populous?
Choices:
Lansing
Oakland
New Haven
Elgin
Hayward
Boulder
Greenville
Compton
Waukegan
Franklin
Program:
function: Find
inputs: Hayward
function: Find
inputs: Elgin
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hayward" .  } UNION { ?e <pred:name> "Elgin" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Elgin