Question: Which area is smaller, Valencia (the one whose elevation (above sea level) is 520 metre) or Athens (the one that is the twinned administrative body of Ljubljana)?
Choices:
Trieste
Kilkenny
Chihuahua
Santo Domingo
Kingston
Cork
Bergen
Valencia
Abidjan
Athens
Program:
function: Find
inputs: Valencia
function: FilterNum
dependencies: 0
inputs: elevation above sea level
520 metre
=
function: Find
inputs: Ljubljana
function: Relate
dependencies: 2
inputs: twinned administrative body
forward
function: Find
inputs: Athens
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Valencia" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "520"^^xsd:double . } UNION { ?e <pred:name> "Athens" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Ljubljana" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Athens