Question: Which movie is shorter, Loving (the one whose director of photography is Gordon Willis) or Lantana?
Choices:
Training Day
Pleasantville
Lantana
Loving
Talk to Her
The Fifth Element
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
The Towering Inferno
Answer: Loving
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Loving" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "Gordon Willis" .   } UNION { ?e <pred:name> "Lantana" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Gordon Willis
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: Loving
function: And
dependencies: 1
2
function: Find
inputs: Lantana
function: SelectBetween
dependencies: 3
4
inputs: duration
less