Question: Which movie is longer, In the Mood for Love or The Singing Detective (the one that has Adrien Brody as a cast member)?
Choices:
The Singing Detective
The Hunchback of Notre Dame
Training Day
Pleasantville
A Prairie Home Companion
Rebecca
The Towering Inferno
In the Mood for Love
The Fifth Element
Talk to Her
Program:
function: Find
inputs: In the Mood for Love
function: Find
inputs: Adrien Brody
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Singing Detective
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "In the Mood for Love" .  } UNION { ?e <pred:name> "The Singing Detective" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Adrien Brody" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Singing Detective