Question: Which movie is shorter, Boogie Nights or The Bodyguard (the one whose producer is Fred Quimby)?
Choices: Wonder Woman
A Christmas Carol
Anastasia
Superman
My-HiME
Boogie Nights
The Bodyguard
Code Geass
The Polar Express
Ponyo on the Cliff by the Sea
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Boogie Nights" .  } UNION { ?e <pred:name> "The Bodyguard" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Fred Quimby" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Boogie Nights
function: Find
inputs: Fred Quimby
function: Relate
dependencies: 1
inputs: producer
backward
function: Find
inputs: The Bodyguard
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
Answer: The Bodyguard