Question: Which has higher elevation above sea level, Belfast or Valencia (the one whose Dewey Decimal Classification is 2--46763)?
Choices:
Kingston
Valencia
Abidjan
Bergen
Chihuahua
Santo Domingo
Kilkenny
Belfast
Trieste
Dundee
Answer: Valencia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Belfast" . } UNION { ?e <pred:name> "Valencia" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--46763" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Belfast
function: Find
inputs: Valencia
function: FilterStr
dependencies: 1
inputs: Dewey Decimal Classification
2--46763
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater