Question: Which is shorter, Hairspray starring Debbie Harry or The Curious Case of Benjamin Button?
Choices:
Curse of the Golden Flower
Hairspray
The Curious Case of Benjamin Button
The Fifth Element
The Towering Inferno
Training Day
Pleasantville
Talk to Her
Rebecca
The Hunchback of Notre Dame
Program:
function: Find
inputs: Debbie Harry
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hairspray
function: And
dependencies: 1
2
function: Find
inputs: The Curious Case of Benjamin Button
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hairspray" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Debbie Harry" .   } UNION { ?e <pred:name> "The Curious Case of Benjamin Button" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hairspray