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