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