Question: Which one has the lower elevation above sea level, Fairfax or Carson City (the one whose population is 54616) ?
Choices:
Carson City
Hampton
Charlottesville
Roanoke
Danville
Winchester
Suffolk
Falls Church
Lynchburg
Fairfax
Program:
function: Find
inputs: Fairfax
function: Find
inputs: Carson City
function: FilterNum
dependencies: 1
inputs: population
54616
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fairfax" . } UNION { ?e <pred:name> "Carson City" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "54616"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fairfax