Question: Did Charlie and the Chocolate Factory, composed by Danny Elfman, or The Terminator perform worse at the box office?
Choices:
Charlie and the Chocolate Factory
Rebecca
Pleasantville
The Hunchback of Notre Dame
The Towering Inferno
The Fifth Element
The Terminator
Curse of the Golden Flower
Training Day
A Prairie Home Companion
Program:
function: Find
inputs: Danny Elfman
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Charlie and the Chocolate Factory
function: And
dependencies: 1
2
function: Find
inputs: The Terminator
function: SelectBetween
dependencies: 3
4
inputs: box office
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlie and the Chocolate Factory" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Danny Elfman" .   } UNION { ?e <pred:name> "The Terminator" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Terminator