Question: Which movie is shorter, The Dresser or Kiss (the one whose color is black-and-white)?
Choices:
The Towering Inferno
Kiss
Pleasantville
Rebecca
The Hunchback of Notre Dame
The Dresser
The Fifth Element
Training Day
Talk to Her
Curse of the Golden Flower
Program:
function: Find
inputs: The Dresser
function: Find
inputs: black-and-white
function: Relate
dependencies: 1
inputs: color
backward
function: Find
inputs: Kiss
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Dresser" .  } UNION { ?e <pred:name> "Kiss" . ?e <color> ?e_1 . ?e_1 <pred:name> "black-and-white" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kiss