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