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