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