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