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