Question: Does The Three Musketeers, with cast member John Carradine, or Sunday, Bloody Sunday boast the longer run-time?
Choices:
The Towering Inferno
Training Day
The Three Musketeers
Sunday, Bloody Sunday
Curse of the Golden Flower
Pleasantville
Talk to Her
The Hunchback of Notre Dame
A Prairie Home Companion
The Fifth Element
Program:
function: Find
inputs: John Carradine
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 1
2
function: Find
inputs: Sunday, Bloody Sunday
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Carradine" .   } UNION { ?e <pred:name> "Sunday, Bloody Sunday" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Sunday, Bloody Sunday