Question: Which is longer: The Singing Detective, distributed by Paramount Vantage, or Fish Tank?
Choices:
The Singing Detective
Talk to Her
The Hunchback of Notre Dame
The Towering Inferno
Training Day
Curse of the Golden Flower
Fish Tank
Pleasantville
The Fifth Element
A Prairie Home Companion
Program:
function: Find
inputs: Paramount Vantage
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: The Singing Detective
function: And
dependencies: 1
2
function: Find
inputs: Fish Tank
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Singing Detective" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Paramount Vantage" .   } UNION { ?e <pred:name> "Fish Tank" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Fish Tank