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