Question: Which movie is longer, Tabu (the one that received National Film Registry) or The Maltese Falcon (the one that received National Film Registry)?
Choices:
Tabu
Pleasantville
Training Day
A Prairie Home Companion
The Towering Inferno
Rebecca
Talk to Her
Curse of the Golden Flower
The Maltese Falcon
The Hunchback of Notre Dame
Program:
function: Find
inputs: National Film Registry
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Tabu
function: And
dependencies: 1
2
function: Find
inputs: National Film Registry
function: Relate
dependencies: 4
inputs: award received
backward
function: Find
inputs: The Maltese Falcon
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tabu" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "National Film Registry" .   } UNION { ?e <pred:name> "The Maltese Falcon" . ?e <award_received> ?e_2 . ?e_2 <pred:name> "National Film Registry" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Maltese Falcon