Question: Was it cheaper to make Battleship, released in Panama, or Deep Impact?
Choices:
Talk to Her
A Prairie Home Companion
The Towering Inferno
Deep Impact
Battleship
Pleasantville
Rebecca
Curse of the Golden Flower
The Fifth Element
Training Day
Program:
function: Find
inputs: Panama
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Battleship
function: And
dependencies: 1
2
function: Find
inputs: Deep Impact
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Battleship" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Panama" .   } UNION { ?e <pred:name> "Deep Impact" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Deep Impact