Question: Which movie is shorter, The Poseidon Adventure (the one whose distributor is Buena Vista Home Entertainment) or Vanity Fair (the one whose genre is silent film)?
Choices:
Rebecca
Pleasantville
Curse of the Golden Flower
The Poseidon Adventure
Vanity Fair
The Hunchback of Notre Dame
The Towering Inferno
Talk to Her
Training Day
A Prairie Home Companion
Answer: Vanity Fair
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Poseidon Adventure" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Buena Vista Home Entertainment" .   } UNION { ?e <pred:name> "Vanity Fair" . ?e <genre> ?e_2 . ?e_2 <pred:name> "silent film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Buena Vista Home Entertainment
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: The Poseidon Adventure
function: And
dependencies: 1
2
function: Find
inputs: silent film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Vanity Fair
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less