Question: Does Hamlet, with Robin Williams as a cast member, or Unstoppable, produced by Avi Lerner, have the longer running time?
Choices:
The Towering Inferno
Rebecca
Unstoppable
A Prairie Home Companion
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
The Fifth Element
Hamlet
Pleasantville
Program:
function: Find
inputs: Robin Williams
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: Avi Lerner
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Unstoppable
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamlet" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Robin Williams" .   } UNION { ?e <pred:name> "Unstoppable" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Avi Lerner" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hamlet