Question: Which one, Spellbound (the one that was nominated for Academy Award for Best Director) or Terms of Endearment, has greater duration?
Choices:
Terms of Endearment
Rebecca
Spellbound
A Prairie Home Companion
Training Day
Talk to Her
The Towering Inferno
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Answer: Terms of Endearment
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spellbound" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Director" .   } UNION { ?e <pred:name> "Terms of Endearment" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Spellbound
function: And
dependencies: 1
2
function: Find
inputs: Terms of Endearment
function: SelectBetween
dependencies: 3
4
inputs: duration
greater