Question: Which movie is shorter, Hawaii (the one that has Max von Sydow as a cast member) or Final Destination (the one whose production company is Warner Home Video)?
Choices:
The Fifth Element
The Towering Inferno
Hawaii
Final Destination
Rebecca
Curse of the Golden Flower
Talk to Her
Pleasantville
A Prairie Home Companion
Training Day
Answer: Final Destination
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hawaii" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Max von Sydow" .   } UNION { ?e <pred:name> "Final Destination" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "Warner Home Video" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Max von Sydow
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hawaii
function: And
dependencies: 1
2
function: Find
inputs: Warner Home Video
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: Final Destination
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less