Question: Does the lower elevation belong to Petersburg or to Carson City, population 54,746?
Choices: Danville
Hampton
Roanoke
Petersburg
Suffolk
Williamsburg
Carson City
Charlottesville
Lynchburg
Winchester
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Petersburg" . } UNION { ?e <pred:name> "Carson City" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "54746"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Petersburg
function: Find
inputs: Carson City
function: FilterNum
dependencies: 1
inputs: population
54746
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
Answer: Petersburg