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