Question: Which movie is shorter, Gulliver's Travels (the one that has Billy Connolly as a cast member) or All About My Mother?
Choices:
All About My Mother
The Towering Inferno
Curse of the Golden Flower
Gulliver's Travels
Pleasantville
The Fifth Element
A Prairie Home Companion
Rebecca
Training Day
The Hunchback of Notre Dame
Program:
function: Find
inputs: Billy Connolly
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Gulliver's Travels
function: And
dependencies: 1
2
function: Find
inputs: All About My Mother
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gulliver's Travels" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Billy Connolly" .   } UNION { ?e <pred:name> "All About My Mother" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Gulliver's Travels