Question: Was it more expensive to make Ghost or Casablanca, nominated for an Academy Award for Best Actor?
Choices:
Pleasantville
The Towering Inferno
Ghost
Training Day
Casablanca
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
A Prairie Home Companion
Rebecca
Answer: Ghost
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ghost" .  } UNION { ?e <pred:name> "Casablanca" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Actor" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ghost
function: Find
inputs: Academy Award for Best Actor
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Casablanca
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
greater