Question: Does the higher elevation belong to Danville, founded in 1792, or Carson City, population 55263?
Choices:
Suffolk
Falls Church
Hampton
Roanoke
Winchester
Fairfax
Carson City
Danville
Williamsburg
Lynchburg
Answer: Carson City
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Danville" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1792 . } UNION { ?e <pred:name> "Carson City" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "55263"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Danville
function: FilterYear
dependencies: 0
inputs: inception
1792
=
function: Find
inputs: Carson City
function: FilterNum
dependencies: 2
inputs: population
55263
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater