Question: Which one is shorter, Aurora, distributed by BBC, or Romeo + Juliet ?
Choices:
A Christmas Carol
The Three Musketeers
The Late Shift
The Challenge
A Streetcar Named Desire
Shackleton
All Quiet on the Western Front
Aurora
Romeo + Juliet
The Goodbye Girl
Program:
function: Find
inputs: NBC
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Aurora
function: And
dependencies: 1
2
function: Find
inputs: Romeo + Juliet
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aurora" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "NBC" .   } UNION { ?e <pred:name> "Romeo + Juliet" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Aurora