Question: Does Palm Beach or Huntington, founded in 1653, have the higher elevation?
Choices:
West Hartford
Bedford
Kensington
Chapel Hill
Brookline
Amherst
Huntington
Greenwich
Palm Beach
Uxbridge
Program:
function: Find
inputs: Palm Beach
function: Find
inputs: Huntington
function: FilterYear
dependencies: 1
inputs: inception
1653
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palm Beach" . } UNION { ?e <pred:name> "Huntington" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1653 . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Huntington