Question: Which is longer, All the King's Men starring Sean Penn or The Nightmare Before Christmas?
Choices:
Rebecca
Curse of the Golden Flower
All the King's Men
Training Day
A Prairie Home Companion
The Nightmare Before Christmas
The Towering Inferno
The Fifth Element
Talk to Her
Pleasantville
Program:
function: Find
inputs: Sean Penn
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: All the King's Men
function: And
dependencies: 1
2
function: Find
inputs: The Nightmare Before Christmas
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "All the King's Men" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sean Penn" .   } UNION { ?e <pred:name> "The Nightmare Before Christmas" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: All the King's Men