Question: Which was a bigger box office winner: Chicago, originating in Canada, or The Lord of the Rings: The Fellowship of the Ring, released in Guatemala?
Choices:
Pleasantville
The Lord of the Rings: The Fellowship of the Ring
Curse of the Golden Flower
The Fifth Element
Rebecca
Chicago
Training Day
Talk to Her
A Prairie Home Companion
The Towering Inferno
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Chicago
function: And
dependencies: 1
2
function: Find
inputs: Guatemala
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: The Lord of the Rings: The Fellowship of the Ring
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chicago" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "The Lord of the Rings: The Fellowship of the Ring" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Guatemala" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Lord of the Rings: The Fellowship of the Ring