Question: Which movie is longer, The Gift (the one that has Keanu Reeves as a cast member) or Manhattan (the one that was nominated for National Society of Film Critics Award for Best Film)?
Choices:
Manhattan
The Gift
Pleasantville
The Fifth Element
Curse of the Golden Flower
The Towering Inferno
Rebecca
The Hunchback of Notre Dame
Talk to Her
A Prairie Home Companion
Program:
function: Find
inputs: Keanu Reeves
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Gift
function: And
dependencies: 1
2
function: Find
inputs: National Society of Film Critics Award for Best Film
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Manhattan
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Gift" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Keanu Reeves" .   } UNION { ?e <pred:name> "Manhattan" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "National Society of Film Critics Award for Best Film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Gift