Question: Which is longer, Rules of Engagement starring Samuel L. Jackson or Raiders of the Lost Ark?
Choices:
Pleasantville
The Fifth Element
The Towering Inferno
The Hunchback of Notre Dame
Rules of Engagement
Training Day
Talk to Her
Raiders of the Lost Ark
Curse of the Golden Flower
A Prairie Home Companion
Program:
function: Find
inputs: Samuel L. Jackson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Rules of Engagement
function: And
dependencies: 1
2
function: Find
inputs: Raiders of the Lost Ark
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rules of Engagement" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Samuel L. Jackson" .   } UNION { ?e <pred:name> "Raiders of the Lost Ark" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rules of Engagement