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