Question: Which movie is shorter, Aurora (the one that has Sophia Loren as a cast member) or Bridget Jones's Diary?
Choices:
Shackleton
A Streetcar Named Desire
The Late Shift
Bridget Jones's Diary
All Quiet on the Western Front
The Music Man
The Three Musketeers
The Challenge
Aurora
A Christmas Carol
Program:
function: Find
inputs: Sophia Loren
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Aurora
function: And
dependencies: 1
2
function: Find
inputs: Bridget Jones's Diary
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aurora" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sophia Loren" .   } UNION { ?e <pred:name> "Bridget Jones's Diary" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Aurora