Question: Is Braveheart (produced by Icon Productions) or Top Hat shorter in duration?
Choices:
The Hunchback of Notre Dame
A Prairie Home Companion
The Towering Inferno
Top Hat
Rebecca
Training Day
Curse of the Golden Flower
Braveheart
The Fifth Element
Pleasantville
Program:
function: Find
inputs: Icon Productions
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Braveheart
function: And
dependencies: 1
2
function: Find
inputs: Top Hat
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Braveheart" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Icon Productions" .   } UNION { ?e <pred:name> "Top Hat" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Top Hat