Question: Is the population of Sunnyvale or Naperville the higher of the two?
Choices:
Waukegan
Columbus
Oakland
Compton
New Haven
Franklin
Naperville
Lansing
Boulder
Sunnyvale
Program:
function: Find
inputs: Sunnyvale
function: Find
inputs: Naperville
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sunnyvale" .  } UNION { ?e <pred:name> "Naperville" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Naperville