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