Question: Between Lynchburg or Carson City, at telephone area code 775, which is lower in elevation?
Choices:
Roanoke
Charlottesville
Suffolk
Fairfax
Danville
Williamsburg
Winchester
Carson City
Lynchburg
Falls Church
Program:
function: Find
inputs: Lynchburg
function: Find
inputs: Carson City
function: FilterStr
dependencies: 1
inputs: local dialing code
775
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lynchburg" . } UNION { ?e <pred:name> "Carson City" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "775" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lynchburg