Question: Does Heart (the one whose producer is Vittorio De Sica) or The Robe have greater duration ?
Choices:
A Prairie Home Companion
Talk to Her
Pleasantville
The Robe
The Towering Inferno
Rebecca
Curse of the Golden Flower
The Hunchback of Notre Dame
Training Day
The Fifth Element
Program:
function: Find
inputs: Vittorio De Sica
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Heart
function: And
dependencies: 1
2
function: Find
inputs: The Robe
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Heart" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Vittorio De Sica" .   } UNION { ?e <pred:name> "The Robe" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Robe