Question: Does Carrie (whose release region is Turkey) or The Producers (whose cost is 941000 Canadian dollars) have the lower cost?
Choices:
A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Carrie
Talk to Her
Curse of the Golden Flower
The Producers
Rebecca
Pleasantville
The Fifth Element
Answer: The Producers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carrie" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Turkey" . } UNION { ?e <pred:name> "The Producers" . ?e <cost> ?pv_1 . ?pv_1 <pred:unit> "Canadian dollar" . ?pv_1 <pred:value> "941000"^^xsd:double . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Turkey
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Carrie
function: And
dependencies: 1
2
function: Find
inputs: The Producers
function: FilterNum
dependencies: 4
inputs: cost
941000 Canadian dollar
=
function: SelectBetween
dependencies: 3
5
inputs: cost
less