Question: Which has a larger population, Ypsilanti or Memphis?
Choices:
Oakland
Compton
Boulder
Greenville
Ypsilanti
Memphis
Waukegan
Lansing
Franklin
Columbus
Program:
function: Find
inputs: Ypsilanti
function: Find
inputs: Memphis
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ypsilanti" .  } UNION { ?e <pred:name> "Memphis" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Memphis