Question: Which has a greater duration, The Birdcage or Clash of the Titans (which has cast member Liam Neeson)?
Choices:
Curse of the Golden Flower
A Prairie Home Companion
Clash of the Titans
Rebecca
The Fifth Element
Training Day
Pleasantville
The Towering Inferno
The Birdcage
The Hunchback of Notre Dame
Program:
function: Find
inputs: The Birdcage
function: Find
inputs: Liam Neeson
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Clash of the Titans
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Birdcage" .  } UNION { ?e <pred:name> "Clash of the Titans" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Liam Neeson" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Birdcage