Question: Which city has a higher elevation above sea level, Salt Lake City or Mansfield with the postal code 44900-44999?
Choices:
New Haven
Compton
Boulder
Greenville
Salt Lake City
Columbus
Oakland
Mansfield
Lansing
Waukegan
Program:
function: Find
inputs: Salt Lake City
function: Find
inputs: Mansfield
function: FilterStr
dependencies: 1
inputs: postal code
44900–44999
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salt Lake City" . } UNION { ?e <pred:name> "Mansfield" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "44900–44999" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Salt Lake City