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