Question: Which movie cost more to make, All Quiet on the Western Front (the one that has Fred Zinnemann as a cast member) or Salt?
Choices:
The Fifth Element
Salt
Talk to Her
All Quiet on the Western Front
Pleasantville
Rebecca
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
Training Day
Answer: Salt
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "All Quiet on the Western Front" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Fred Zinnemann" .   } UNION { ?e <pred:name> "Salt" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Fred Zinnemann
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: All Quiet on the Western Front
function: And
dependencies: 1
2
function: Find
inputs: Salt
function: SelectBetween
dependencies: 3
4
inputs: cost
greater