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