Question: Which movie is shorter, Providence (the one that has John Gielgud as a cast member) or Chronicle?
Choices:
The Hunchback of Notre Dame
Chronicle
The Towering Inferno
Rebecca
The Fifth Element
Providence
Curse of the Golden Flower
Training Day
Talk to Her
Pleasantville
Answer: Chronicle
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Providence" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Gielgud" .   } UNION { ?e <pred:name> "Chronicle" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: John Gielgud
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Providence
function: And
dependencies: 1
2
function: Find
inputs: Chronicle
function: SelectBetween
dependencies: 3
4
inputs: duration
less