Question: Which has higher elevation above sea level, Amherst or Concord (the one whose area is 67400000 square metre)?
Choices:
Amherst
Kensington
Concord
West Hartford
Greenwich
Brookline
Bedford
Litchfield
Westport
Chapel Hill
Program:
function: Find
inputs: Amherst
function: Find
inputs: Concord
function: FilterNum
dependencies: 1
inputs: area
67400000 square metre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Amherst" . } UNION { ?e <pred:name> "Concord" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square metre" . ?pv_1 <pred:value> "67400000"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Amherst