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