Question: Which movie is longer, Neighbours (the one that received Academy Award for Best Documentary (Short Subject)) or The Damned (the one that has Oliver Reed as a cast member)?
Choices:
The Towering Inferno
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
The Damned
Rebecca
Talk to Her
Training Day
Pleasantville
Curse of the Golden Flower
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: Oliver Reed
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Damned
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
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> "The Damned" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Oliver Reed" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Damned