Question: Which movie is longer, Cinema Paradiso or The Da Vinci Code (the one that has Ian McKellen as a cast member)?
Choices: The Towering Inferno
The Fifth Element
Cinema Paradiso
Talk to Her
A Prairie Home Companion
Rebecca
Training Day
The Hunchback of Notre Dame
Curse of the Golden Flower
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cinema Paradiso" .  } UNION { ?e <pred:name> "The Da Vinci Code" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ian McKellen" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cinema Paradiso
function: Find
inputs: Ian McKellen
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Da Vinci Code
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: Cinema Paradiso