Question: Which one has more elevation above sea level between Englewood and Lynn (the one founded in 1629)?
Choices:
Greenville
Waukegan
Franklin
Compton
Oakland
Lynn
Englewood
New Haven
Lansing
Boulder
Program:
function: Find
inputs: Englewood
function: Find
inputs: Lynn
function: FilterYear
dependencies: 1
inputs: inception
1629
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Englewood" . } UNION { ?e <pred:name> "Lynn" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1629 . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Englewood