Question: Does the lower elevation belong to Carson City, population 55263, or to Portsmouth, which borders Chesapeake?
Choices:
Roanoke
Winchester
Suffolk
Portsmouth
Carson City
Danville
Charlottesville
Hampton
Fairfax
Lynchburg
Answer: Portsmouth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carson City" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "55263"^^xsd:double . } UNION { ?e <pred:name> "Portsmouth" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Chesapeake" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Carson City
function: FilterNum
dependencies: 0
inputs: population
55263
=
function: Find
inputs: Chesapeake
function: Relate
dependencies: 2
inputs: shares border with
forward
function: Find
inputs: Portsmouth
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
less