Question: Which movie is shorter, The Cure (the one whose genre is silent film) or 8 Women?
Choices:
Neighbours
Eve
The Animatrix
The Cure
The Fugitive
The Town
David Copperfield
Robin Hood
8 Women
Frankenstein
Program:
function: Find
inputs: silent film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Cure
function: And
dependencies: 1
2
function: Find
inputs: 8 Women
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Cure" . ?e <genre> ?e_1 . ?e_1 <pred:name> "silent film" .   } UNION { ?e <pred:name> "8 Women" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Cure