Question: Which movie is shorter, Batman (the one that was nominated for BAFTA Award for Best Makeup and Hair) or Dogville?
Choices:
Pleasantville
The Hunchback of Notre Dame
Training Day
Batman
A Prairie Home Companion
Talk to Her
The Fifth Element
Curse of the Golden Flower
Dogville
The Towering Inferno
Answer: Batman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Batman" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "BAFTA Award for Best Makeup and Hair" .   } UNION { ?e <pred:name> "Dogville" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: BAFTA Award for Best Makeup and Hair
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Batman
function: And
dependencies: 1
2
function: Find
inputs: Dogville
function: SelectBetween
dependencies: 3
4
inputs: duration
less