Question: Which one,  Addams Family Values or The Last of the Mohicans (the one whose production company is Morgan Creek Productions), has greater duration?
Choices:
The Last of the Mohicans
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
The Fifth Element
Talk to Her
Rebecca
Pleasantville
Addams Family Values
The Hunchback of Notre Dame
Answer: The Last of the Mohicans
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Addams Family Values" .  } UNION { ?e <pred:name> "The Last of the Mohicans" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Morgan Creek Productions" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Addams Family Values
function: Find
inputs: Morgan Creek Productions
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: The Last of the Mohicans
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater