Question: Which movie is cheaper, Planet of the Apes of the movie Rear Window that was nominated for Acadamy Award for Best Director?
Choices: The Towering Inferno
Rebecca
A Prairie Home Companion
The Hunchback of Notre Dame
Curse of the Golden Flower
Rear Window
The Fifth Element
Training Day
Rise of the Planet of the Apes
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rise of the Planet of the Apes" .  } UNION { ?e <pred:name> "Rear Window" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Director" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Rise of the Planet of the Apes
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Rear Window
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
less
Answer: Rear Window