Question: Which movie cost less ot make, Spartacus (the one that is shot in Spain) or The Brothers Bloom?
Choices:
The Towering Inferno
A Prairie Home Companion
Talk to Her
The Fifth Element
Rebecca
Spartacus
Curse of the Golden Flower
Training Day
Pleasantville
The Hunchback of Notre Dame
Program:
function: Find
inputs: Spain
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Spartacus
function: And
dependencies: 1
2
function: Find
inputs: The Brothers Bloom
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spartacus" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Spain" .   } UNION { ?e <pred:name> "The Brothers Bloom" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Spartacus