Question: Which movie is longer, Tower of London (the one that has Basil Rathbone as a cast member) or Rush Hour 3?
Choices:
The Towering Inferno
A Prairie Home Companion
Rebecca
Pleasantville
Talk to Her
Tower of London
Curse of the Golden Flower
Rush Hour 3
Training Day
The Hunchback of Notre Dame
Program:
function: Find
inputs: Basil Rathbone
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Tower of London
function: And
dependencies: 1
2
function: Find
inputs: Rush Hour 3
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tower of London" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Basil Rathbone" .   } UNION { ?e <pred:name> "Rush Hour 3" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tower of London