Question: Which movie made more at the box office, Thunderball (the one whose cost is 9000000 United States dollar) or American Beauty (the one that was nominated for Satellite Award for Best Original Screenplay)?
Choices:
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
Pleasantville
The Towering Inferno
The Fifth Element
Training Day
Rebecca
A Prairie Home Companion
American Beauty
Answer: American Beauty
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Thunderball" . ?e <cost> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "9000000"^^xsd:double . } UNION { ?e <pred:name> "American Beauty" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Satellite Award for Best Original Screenplay" . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Thunderball
function: FilterNum
dependencies: 0
inputs: cost
9000000 United States dollar
=
function: Find
inputs: Satellite Award for Best Original Screenplay
function: Relate
dependencies: 2
inputs: nominated for
backward
function: Find
inputs: American Beauty
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: box office
greater