Question: Which has lower elevation above sea level, Stanford or Independence (the one whose local dialing code is 760)?
Choices:
Stanford
Silver Spring
Dom DeLuise
Towson
McLean
Independence
Charlie and the Chocolate Factory
Vienna
Bethesda
Yakima
Program:
function: Find
inputs: Stanford
function: Find
inputs: Independence
function: FilterStr
dependencies: 1
inputs: local dialing code
760
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stanford" . } UNION { ?e <pred:name> "Independence" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "760" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Stanford