Question: Which movie cost more to make, Rear Window (the one whose composer is Franz Waxman) or An Ideal Husband?
Choices:
Pleasantville
Rear Window
Talk to Her
Rebecca
The Hunchback of Notre Dame
A Prairie Home Companion
The Towering Inferno
An Ideal Husband
Curse of the Golden Flower
Training Day
Answer: An Ideal Husband
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rear Window" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Franz Waxman" .   } UNION { ?e <pred:name> "An Ideal Husband" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Franz Waxman
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Rear Window
function: And
dependencies: 1
2
function: Find
inputs: An Ideal Husband
function: SelectBetween
dependencies: 3
4
inputs: cost
greater