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