Question: Which movie is shorter, The Fighter (the one that was nominated for BAFTA Award for Best Actress in a Supporting Role) or Carrie (the one whose composer is Marco Beltrami)?
Choices:
The Towering Inferno
The Fifth Element
The Fighter
Rebecca
The Hunchback of Notre Dame
A Prairie Home Companion
Talk to Her
Carrie
Pleasantville
Training Day
Program:
function: Find
inputs: BAFTA Award for Best Actress in a Supporting Role
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Fighter
function: And
dependencies: 1
2
function: Find
inputs: Marco Beltrami
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Carrie
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fighter" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "BAFTA Award for Best Actress in a Supporting Role" .   } UNION { ?e <pred:name> "Carrie" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Marco Beltrami" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Carrie