Question: Which performed worse at the box office: Waterworld, composed by James Newton Howard, or The Dark Knight, an Academy Award nominee for Best Supporting Actor?
Choices:
The Towering Inferno
Training Day
The Dark Knight
Rebecca
Pleasantville
Curse of the Golden Flower
The Hunchback of Notre Dame
Talk to Her
The Fifth Element
Waterworld
Answer: Waterworld
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Waterworld" . ?e <composer> ?e_1 . ?e_1 <pred:name> "James Newton Howard" .   } UNION { ?e <pred:name> "The Dark Knight" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Supporting Actor" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: James Newton Howard
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Waterworld
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actor
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: The Dark Knight
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
less