Question: Which movie is shorter, Hairspray (the one that has Debbie Harry as a cast member) or The Prestige?
Choices:
The Prestige
Pleasantville
A Prairie Home Companion
Curse of the Golden Flower
Training Day
Rebecca
Hairspray
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
Answer: Hairspray
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hairspray" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Debbie Harry" .   } UNION { ?e <pred:name> "The Prestige" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
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 Prestige
function: SelectBetween
dependencies: 3
4
inputs: duration
less