Question: Does Hamlet (that has Stephen Dillane as a cast member) or Father of the Bride Part II have the longer runtime?
Choices:
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
Father of the Bride Part II
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Hamlet
Rebecca
Talk to Her
Program:
function: Find
inputs: Stephen Dillane
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: Father of the Bride Part II
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamlet" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Stephen Dillane" .   } UNION { ?e <pred:name> "Father of the Bride Part II" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hamlet