Question: Which is longer in duration, The Dreamers, or the black and white film The Damned?
Choices:
Rebecca
Training Day
Talk to Her
The Fifth Element
A Prairie Home Companion
Curse of the Golden Flower
The Towering Inferno
The Dreamers
The Damned
Pleasantville
Program:
function: Find
inputs: The Dreamers
function: Find
inputs: black-and-white
function: Relate
dependencies: 1
inputs: color
backward
function: Find
inputs: The Damned
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Dreamers" .  } UNION { ?e <pred:name> "The Damned" . ?e <color> ?e_1 . ?e_1 <pred:name> "black-and-white" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Dreamers