Question: Which one is shorter in duration, the Metro-Goldwyn-Mayer distributed Chandler or Invictus?
Choices:
Pleasantville
Invictus
Chandler
A Prairie Home Companion
The Hunchback of Notre Dame
Training Day
Curse of the Golden Flower
The Towering Inferno
Rebecca
The Fifth Element
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Chandler
function: And
dependencies: 1
2
function: Find
inputs: Invictus
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chandler" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } UNION { ?e <pred:name> "Invictus" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chandler