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