Question: Which one is longer, he Wolfman or Cobra (the one whose production company is The Cannon Group)?
Choices:
Training Day
The Wolfman
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
Cobra
Pleasantville
Talk to Her
Program:
function: Find
inputs: The Wolfman
function: Find
inputs: The Cannon Group
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Cobra
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Wolfman" .  } UNION { ?e <pred:name> "Cobra" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "The Cannon Group" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Wolfman