Question: Which costed less  Kingdom of Heaven or Nine (the one that has Daniel Day-Lewis as a cast member)?
Choices:
The Towering Inferno
Nine
Rebecca
The Fifth Element
The Hunchback of Notre Dame
Training Day
Pleasantville
Curse of the Golden Flower
Talk to Her
Kingdom of Heaven
Program:
function: Find
inputs: Kingdom of Heaven
function: Find
inputs: Daniel Day-Lewis
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Nine
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kingdom of Heaven" .  } UNION { ?e <pred:name> "Nine" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Daniel Day-Lewis" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Nine