Question: Does Death on the Nile (the one that has Bette Davis as a cast member) or Die Hard (the one whose producer is Joel Silver) have the greater duration?
Choices:
Rebecca
Die Hard
Training Day
The Fifth Element
Talk to Her
Death on the Nile
Curse of the Golden Flower
Pleasantville
The Hunchback of Notre Dame
A Prairie Home Companion
Program:
function: Find
inputs: Bette Davis
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Death on the Nile
function: And
dependencies: 1
2
function: Find
inputs: Joel Silver
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Die Hard
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Death on the Nile" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Bette Davis" .   } UNION { ?e <pred:name> "Die Hard" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Joel Silver" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Death on the Nile