Question: Does Lynn (whose establishment date is 1629) or Natchez have the higher elevation above sea level?
Choices:
Columbus
Boulder
New Haven
Lynn
Waukegan
Oakland
Natchez
Franklin
Lansing
Compton
Answer: Natchez
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lynn" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1629 . } UNION { ?e <pred:name> "Natchez" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lynn
function: FilterYear
dependencies: 0
inputs: inception
1629
=
function: Find
inputs: Natchez
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater