Question: Does Celebrity or Hampstead, with Brendan Gleeson in its cast, have the longer running time?
Choices:
Training Day
Curse of the Golden Flower
Hampstead
A Prairie Home Companion
Rebecca
The Towering Inferno
Talk to Her
The Fifth Element
Pleasantville
Celebrity
Program:
function: Find
inputs: Celebrity
function: Find
inputs: Brendan Gleeson
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Hampstead
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Celebrity" .  } UNION { ?e <pred:name> "Hampstead" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Brendan Gleeson" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Celebrity