Question: Does Lakewood or Greenwood have the smaller populace?
Choices:
New Haven
Lansing
Boulder
Greenwood
Compton
Oakland
Lakewood
Greenville
Waukegan
Columbus
Program:
function: Find
inputs: Lakewood
function: Find
inputs: Greenwood
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lakewood" .  } UNION { ?e <pred:name> "Greenwood" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Greenwood