Question: Which has higher elevation above sea level, Dresden (the one whose RIA Novosti reference is 54680658) or Hamilton (the one whose local dialing code is 07)?
Choices:
Dresden
Trieste
Santo Domingo
Bergen
Abidjan
Dundee
Hamilton
Kilkenny
Cork
Chihuahua
Answer: Dresden
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dresden" . ?e <RIA_Novosti_reference> ?pv_1 . ?pv_1 <pred:value> "54680658" . } UNION { ?e <pred:name> "Hamilton" . ?e <local_dialing_code> ?pv_2 . ?pv_2 <pred:value> "07" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dresden
function: FilterStr
dependencies: 0
inputs: RIA Novosti reference
54680658
function: Find
inputs: Hamilton
function: FilterStr
dependencies: 2
inputs: local dialing code
07
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater