Question: Which movie is shorter, Cinderella Man or Batman Forever (the one that has Drew Barrymore as a cast member)?
Choices:
Talk to Her
Training Day
Curse of the Golden Flower
Rebecca
Cinderella Man
The Towering Inferno
The Hunchback of Notre Dame
The Fifth Element
Batman Forever
Pleasantville
Answer: Batman Forever
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cinderella Man" .  } UNION { ?e <pred:name> "Batman Forever" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Drew Barrymore" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Cinderella Man
function: Find
inputs: Drew Barrymore
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Batman Forever
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less