Question: Which is shorter, Closer or The Three Musketeers produced by William Hanna?
Choices:
A Christmas Carol
Anastasia
Wonder Woman
Code Geass
Ponyo on the Cliff by the Sea
My-HiME
The Three Musketeers
Superman
Closer
Magic Knight Rayearth
Program:
function: Find
inputs: Closer
function: Find
inputs: William Hanna
function: Relate
dependencies: 1
inputs: producer
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Closer" .  } UNION { ?e <pred:name> "The Three Musketeers" . ?e <producer> ?e_1 . ?e_1 <pred:name> "William Hanna" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Three Musketeers