Question: Which made the most at the box office, Black Hawk Down or Alexander, which originated in Italy?
Choices:
Black Hawk Down
Alexander
The Towering Inferno
Pleasantville
A Prairie Home Companion
The Hunchback of Notre Dame
Talk to Her
Training Day
Curse of the Golden Flower
The Fifth Element
Program:
function: Find
inputs: Black Hawk Down
function: Find
inputs: Italy
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Alexander
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Black Hawk Down" .  } UNION { ?e <pred:name> "Alexander" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Italy" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Black Hawk Down