Question: Which has more box office, Silver Linings Playbook or Charlie and the Chocolate Factory released in the United Arab Emirates?
Choices:
Rebecca
Charlie and the Chocolate Factory
Pleasantville
Talk to Her
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Silver Linings Playbook
Training Day
The Towering Inferno
Program:
function: Find
inputs: Silver Linings Playbook
function: Find
inputs: United Arab Emirates
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: Charlie and the Chocolate Factory
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Silver Linings Playbook" .  } UNION { ?e <pred:name> "Charlie and the Chocolate Factory" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United Arab Emirates" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Charlie and the Chocolate Factory