Question: Which is longer, The Poseidon Adventure with Peter Weller in the cast ir The Pink Panther 2?
Choices:
The Challenge
The Late Shift
The Music Man
A Streetcar Named Desire
A Christmas Carol
Shackleton
The Goodbye Girl
The Pink Panther 2
The Poseidon Adventure
All Quiet on the Western Front
Program:
function: Find
inputs: Peter Weller
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Poseidon Adventure
function: And
dependencies: 1
2
function: Find
inputs: The Pink Panther 2
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Poseidon Adventure" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Peter Weller" .   } UNION { ?e <pred:name> "The Pink Panther 2" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Poseidon Adventure