Question: Does Dick Tracy (the one that was nominated for BAFTA Award for Best Editing) or Tom Jones (the one that received Academy Award for Best Picture) have greater duration ?
Choices:
The Fifth Element
The Hunchback of Notre Dame
Rebecca
Tom Jones
Pleasantville
Talk to Her
Training Day
A Prairie Home Companion
The Towering Inferno
Dick Tracy
Program:
function: Find
inputs: BAFTA Award for Best Editing
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Dick Tracy
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Picture
function: Relate
dependencies: 4
inputs: award received
backward
function: Find
inputs: Tom Jones
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dick Tracy" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "BAFTA Award for Best Editing" .   } UNION { ?e <pred:name> "Tom Jones" . ?e <award_received> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Picture" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tom Jones