Question: Which movie has a bigger budget, Rocky Balboa (the one whose duration is 102 minute) or Halloween (the one whose production company is Paramount Pictures)?
Choices:
A Prairie Home Companion
The Fifth Element
The Towering Inferno
Rebecca
Halloween
Pleasantville
Talk to Her
Training Day
Curse of the Golden Flower
Rocky Balboa
Program:
function: Find
inputs: Rocky Balboa
function: FilterNum
dependencies: 0
inputs: duration
102 minute
=
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 2
inputs: production company
backward
function: Find
inputs: Halloween
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: budget
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rocky Balboa" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "102"^^xsd:double . } UNION { ?e <pred:name> "Halloween" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" . } ?e <budget> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rocky Balboa