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