Question: Which one, Death on the Nile (the one that has Bette Davis as a cast member) or The Bodyguard (the one that is shot in Los Angeles), has greater duration?
Choices:
Rebecca
Death on the Nile
Training Day
The Bodyguard
Curse of the Golden Flower
The Fifth Element
Talk to Her
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Answer: Death on the Nile
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> "The Bodyguard" . ?e <filming_location> ?e_2 . ?e_2 <pred:name> "Los Angeles" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
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: Los Angeles
function: Relate
dependencies: 4
inputs: filming location
backward
function: Find
inputs: The Bodyguard
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater