Question: Which has lower elevation above sea level, Frederick whose postal code is 21702 or Medford  whose population is 56173?
Choices:
Medford
Boulder
Greenville
Waukegan
Oakland
Lansing
Compton
Franklin
Frederick
Columbus
Answer: Medford
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Frederick" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "21702" . } UNION { ?e <pred:name> "Medford" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "56173"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Frederick
function: FilterStr
dependencies: 0
inputs: postal code
21702
function: Find
inputs: Medford
function: FilterNum
dependencies: 2
inputs: population
56173
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less