Question: Which is shorter, The Three Musketeers produced by 20th Century Fox or The Robe?
Choices:
Talk to Her
The Hunchback of Notre Dame
The Three Musketeers
Rebecca
Curse of the Golden Flower
A Prairie Home Companion
The Towering Inferno
The Robe
Pleasantville
Training Day
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 1
2
function: Find
inputs: The Robe
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "The Robe" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Three Musketeers