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