Question: Which location has the lower elevation above sea level, Tyler or Portsmouth, which has a time of inception of 1803?
Choices:
Boulder
New Haven
Lansing
Compton
Franklin
Portsmouth
Greenville
Tyler
Waukegan
Columbus
Program:
function: Find
inputs: Portsmouth
function: FilterYear
dependencies: 0
inputs: inception
1803
=
function: Find
inputs: Tyler
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Portsmouth" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1803 . } UNION { ?e <pred:name> "Tyler" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Portsmouth