Question: Between The End of the Affair, a BAFTA nominee for Best Film, or Inland Empire -- which is longer?
Choices:
The End of the Affair
Curse of the Golden Flower
Training Day
Rebecca
Inland Empire
Pleasantville
The Fifth Element
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Program:
function: Find
inputs: BAFTA Award for Best Film
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The End of the Affair
function: And
dependencies: 1
2
function: Find
inputs: Inland Empire
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The End of the Affair" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "BAFTA Award for Best Film" .   } UNION { ?e <pred:name> "Inland Empire" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Inland Empire