Question: Which has a greater population, Utica or White Plains?
Choices:
Yonkers
Ithaca
Utica
Syracuse
Glens Falls
Auburn
Elmira
Troy
White Plains
Glen Cove
Program:
function: Find
inputs: Utica
function: Find
inputs: White Plains
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Utica" .  } UNION { ?e <pred:name> "White Plains" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Utica