Question: Which movie is shorter, Nickelodeon (the one that has M. Emmet Walsh as a cast member) or Thelma & Louise?
Choices:
Talk to Her
Thelma & Louise
Training Day
Nickelodeon
Curse of the Golden Flower
The Towering Inferno
Rebecca
Pleasantville
The Fifth Element
The Hunchback of Notre Dame
Program:
function: Find
inputs: M. Emmet Walsh
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Nickelodeon
function: And
dependencies: 1
2
function: Find
inputs: Thelma & Louise
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nickelodeon" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "M. Emmet Walsh" .   } UNION { ?e <pred:name> "Thelma & Louise" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Nickelodeon