Question: Which movie cost less to make, The Avengers (the one whose release region is Finland) or Brazil (the one whose cost is 15000000 United States dollar)?
Choices:
Talk to Her
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
The Towering Inferno
Brazil
Pleasantville
The Avengers
A Prairie Home Companion
Training Day
Answer: Brazil
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Avengers" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Finland" . } UNION { ?e <pred:name> "Brazil" . ?e <cost> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "15000000"^^xsd:double . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Finland
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Avengers
function: And
dependencies: 1
2
function: Find
inputs: Brazil
function: FilterNum
dependencies: 4
inputs: cost
15000000 United States dollar
=
function: SelectBetween
dependencies: 3
5
inputs: cost
less