Question: Which earned higher ticket revenue: Cast Away, or the Romeo and Juliet distributed by Icon Productions?
Choices:
Curse of the Golden Flower
Training Day
The Towering Inferno
Talk to Her
Pleasantville
Cast Away
A Prairie Home Companion
The Hunchback of Notre Dame
Romeo and Juliet
Rebecca
Answer: Cast Away
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cast Away" .  } UNION { ?e <pred:name> "Romeo and Juliet" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Icon Productions" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cast Away
function: Find
inputs: Icon Productions
function: Relate
dependencies: 1
inputs: distributor
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater