Question: Which movie cost more to make, The Devil Wears Prada (the one that was nominated for Academy Award for Best Actress) or The Bridge on the River Kwai?
Choices: The Devil Wears Prada
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
The Fifth Element
Rebecca
Training Day
The Bridge on the River Kwai
The Towering Inferno
A Prairie Home Companion
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Devil Wears Prada" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Actress" .   } UNION { ?e <pred:name> "The Bridge on the River Kwai" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Actress
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Devil Wears Prada
function: And
dependencies: 1
2
function: Find
inputs: The Bridge on the River Kwai
function: SelectBetween
dependencies: 3
4
inputs: cost
greater
Answer: The Devil Wears Prada