Question: Which area is larger, Ithaca (the one whose population is 30014) or Elmira?
Choices:
Elmira
Utica
Ithaca
Glens Falls
Syracuse
Long Beach
Troy
Yonkers
White Plains
Glen Cove
Program:
function: Find
inputs: Ithaca
function: FilterNum
dependencies: 0
inputs: population
30014
=
function: Find
inputs: Elmira
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ithaca" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "30014"^^xsd:double . } UNION { ?e <pred:name> "Elmira" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Elmira