Question: Which movie is longer, Crazy, Stupid, Love. or A Single Man (the one that mainly depicts suicide)?
Choices:
Talk to Her
The Towering Inferno
The Hunchback of Notre Dame
Rebecca
A Prairie Home Companion
Crazy, Stupid, Love.
A Single Man
Pleasantville
Training Day
The Fifth Element
Program:
function: Find
inputs: Crazy, Stupid, Love.
function: Find
inputs: suicide
function: Relate
dependencies: 1
inputs: main subject
backward
function: Find
inputs: A Single Man
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Crazy, Stupid, Love." .  } UNION { ?e <pred:name> "A Single Man" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "suicide" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Crazy, Stupid, Love.