Question: Does Salt Lake City or Durham (the one whose postal code is 27701–27713) have lesser elevation (above sea level) ?
Choices:
Boulder
Columbus
New Haven
Durham
Waukegan
Greenville
Salt Lake City
Lansing
Franklin
Compton
Program:
function: Find
inputs: Salt Lake City
function: Find
inputs: Durham
function: FilterStr
dependencies: 1
inputs: postal code
27701–27713
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salt Lake City" . } UNION { ?e <pred:name> "Durham" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "27701–27713" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Durham