Question: Which movie cost less to make, Vertigo (the one whose release region is Belgium) or Anger Management (the one whose narrative location is New York City)?
Choices:
The Towering Inferno
Pleasantville
The Hunchback of Notre Dame
Rebecca
Training Day
The Fifth Element
Talk to Her
Curse of the Golden Flower
Vertigo
A Prairie Home Companion
Program:
function: Find
inputs: Belgium
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Vertigo
function: And
dependencies: 1
2
function: Find
inputs: New York City
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: Anger Management
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Vertigo" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Belgium" .   } UNION { ?e <pred:name> "Anger Management" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "New York City" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Vertigo