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