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