Question: Does Beauty and the Beast in black-and-white or This Is Spinal Tap clock in as longer?
Choices:
Rebecca
The Towering Inferno
Beauty and the Beast
The Fifth Element
Talk to Her
Pleasantville
Curse of the Golden Flower
This Is Spinal Tap
The Hunchback of Notre Dame
A Prairie Home Companion
Program:
function: Find
inputs: black-and-white
function: Relate
dependencies: 0
inputs: color
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 1
2
function: Find
inputs: This Is Spinal Tap
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beauty and the Beast" . ?e <color> ?e_1 . ?e_1 <pred:name> "black-and-white" .   } UNION { ?e <pred:name> "This Is Spinal Tap" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Beauty and the Beast