Question: Which is longer, San Antonio starring Errol Flynn or Before the Devil Knows You're Dead?
Choices:
San Antonio
The Hunchback of Notre Dame
The Fifth Element
A Prairie Home Companion
Rebecca
Training Day
Before the Devil Knows You're Dead
The Towering Inferno
Curse of the Golden Flower
Pleasantville
Program:
function: Find
inputs: Errol Flynn
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: San Antonio
function: And
dependencies: 1
2
function: Find
inputs: Before the Devil Knows You're Dead
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Antonio" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Errol Flynn" .   } UNION { ?e <pred:name> "Before the Devil Knows You're Dead" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Before the Devil Knows You're Dead