Question: Which has lower elevation above sea level, Virginia Beach or Winchester (the one whose postal code is 22604)?
Choices:
Williamsburg
Roanoke
Falls Church
Lynchburg
Suffolk
Danville
Charlottesville
Virginia Beach
Hampton
Winchester
Program:
function: Find
inputs: Virginia Beach
function: Find
inputs: Winchester
function: FilterStr
dependencies: 1
inputs: postal code
22604
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Virginia Beach" . } UNION { ?e <pred:name> "Winchester" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "22604" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Virginia Beach