Question: Which movie is longer, Juno (the one that has Ellen Page as a cast member) or The Jackal?
Choices:
The Hunchback of Notre Dame
Pleasantville
The Jackal
A Prairie Home Companion
Rebecca
The Towering Inferno
Curse of the Golden Flower
The Fifth Element
Talk to Her
Juno
Program:
function: Find
inputs: Ellen Page
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Juno
function: And
dependencies: 1
2
function: Find
inputs: The Jackal
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Juno" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ellen Page" .   } UNION { ?e <pred:name> "The Jackal" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Jackal