Question: Which movie is shorter, Neighbours (the one that received Academy Award for Best Documentary (Short Subject)) or No Country for Old Men (the one that was nominated for Golden Globe Award for Best Director)?
Choices:
The Town
Neighbours
Frankenstein
The Fugitive
The Animatrix
Robin Hood
The Cure
Eve
Friends
No Country for Old Men
Answer: Neighbours
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Neighbours" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Documentary (Short Subject)" .   } UNION { ?e <pred:name> "No Country for Old Men" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Golden Globe Award for Best Director" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Documentary (Short Subject)
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Neighbours
function: And
dependencies: 1
2
function: Find
inputs: Golden Globe Award for Best Director
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: No Country for Old Men
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less