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