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