Question: Does Yes Man or Alexander (that is filmed in Malta) have the higher cost?
Choices: Talk to Her
The Fifth Element
The Hunchback of Notre Dame
Curse of the Golden Flower
The Towering Inferno
Alexander
Pleasantville
A Prairie Home Companion
Yes Man
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Yes Man" .  } UNION { ?e <pred:name> "Alexander" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Malta" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Yes Man
function: Find
inputs: Malta
function: Relate
dependencies: 1
inputs: filming location
backward
function: Find
inputs: Alexander
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
greater
Answer: Alexander