Question: Which movie is longer, Batman: Gotham Knight or Nuremberg (the one that has Christopher Plummer as a cast member)?
Choices:
Nuremberg
Batman: Gotham Knight
A Christmas Carol
A Streetcar Named Desire
The Three Musketeers
The Late Shift
The Music Man
All Quiet on the Western Front
The Challenge
The Goodbye Girl
Program:
function: Find
inputs: Batman: Gotham Knight
function: Find
inputs: Christopher Plummer
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Nuremberg
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Batman: Gotham Knight" .  } UNION { ?e <pred:name> "Nuremberg" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Christopher Plummer" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Nuremberg