Question: Out of Winchester (with a 22604 postal code) or Danville (with a population of 43055), which one is located at a lower elevation above sea level?
Choices:
Falls Church
Danville
Hampton
Suffolk
Charlottesville
Lynchburg
Winchester
Williamsburg
Lexington
Roanoke
Answer: Danville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Winchester" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "22604" . } UNION { ?e <pred:name> "Danville" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "43055"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Winchester
function: FilterStr
dependencies: 0
inputs: postal code
22604
function: Find
inputs: Danville
function: FilterNum
dependencies: 2
inputs: population
43055
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less