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