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