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