Question: Which is longer, Intolerable Cruelty or Killers with Catherine O’Hara?
Choices:
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
A Prairie Home Companion
Talk to Her
Pleasantville
The Fifth Element
Training Day
Killers
Intolerable Cruelty
Program:
function: Find
inputs: Intolerable Cruelty
function: Find
inputs: Catherine O'Hara
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Killers
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Intolerable Cruelty" .  } UNION { ?e <pred:name> "Killers" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Catherine O'Hara" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Killers