Question: Does the higher elevation belong to Charleston, founded in 1670, or Salt Lake City?
Choices:
Compton
Greenville
New Haven
Lansing
Oakland
Charleston
Franklin
Waukegan
Salt Lake City
Columbus
Program:
function: Find
inputs: Charleston
function: FilterYear
dependencies: 0
inputs: inception
1670
=
function: Find
inputs: Salt Lake City
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charleston" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1670 . } UNION { ?e <pred:name> "Salt Lake City" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Salt Lake City