Question: Which has more box office, The Last Samurai or Cleopatra which was nominated for an Academy Award for Best Production Design?
Choices:
The Last Samurai
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
The Fifth Element
Talk to Her
Cleopatra
Pleasantville
The Hunchback of Notre Dame
Rebecca
Answer: The Last Samurai
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Last Samurai" .  } UNION { ?e <pred:name> "Cleopatra" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Production Design" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Last Samurai
function: Find
inputs: Academy Award for Best Production Design
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Cleopatra
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater