Question: Which area has lower elevation above sea level, London (the one that is the narrative location of My Fair Lady) or Bergamo?
Choices:
London
Abidjan
Kingston
Bergen
Chihuahua
Santo Domingo
Cork
Bergamo
Dundee
Kilkenny
Program:
function: Find
inputs: My Fair Lady
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: London
function: And
dependencies: 1
2
function: Find
inputs: Bergamo
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "London" . ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "My Fair Lady" .   } UNION { ?e <pred:name> "Bergamo" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bergamo