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