Question: Which movie cost more to make, Sabrina (the one whose composer is Friedrich Hollaender) or The Ring (the one whose box office is 249348933 United States dollar)?
Choices:
Pleasantville
Curse of the Golden Flower
Training Day
Sabrina
The Hunchback of Notre Dame
Talk to Her
The Ring
The Fifth Element
Rebecca
The Towering Inferno
Answer: The Ring
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sabrina" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Friedrich Hollaender" . } UNION { ?e <pred:name> "The Ring" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "249348933"^^xsd:double . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Friedrich Hollaender
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Sabrina
function: And
dependencies: 1
2
function: Find
inputs: The Ring
function: FilterNum
dependencies: 4
inputs: box office
249348933 United States dollar
=
function: SelectBetween
dependencies: 3
5
inputs: cost
greater