Question: Does Collateral (the one that was nominated for National Board of Review Award for Best Director) or West Side Story (the one that was nominated for Academy Award for Best Supporting Actor) have greater duration ?
Choices:
Training Day
Pleasantville
Rebecca
West Side Story
Curse of the Golden Flower
Collateral
A Prairie Home Companion
The Hunchback of Notre Dame
Talk to Her
The Towering Inferno
Answer: West Side Story
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Collateral" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "National Board of Review Award for Best Director" .   } UNION { ?e <pred:name> "West Side Story" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Supporting Actor" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: National Board of Review Award for Best Director
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Collateral
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actor
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: West Side Story
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater