Question: Does The Mummy: Tomb of the Dragon Emperor (whose production company is Relativity Media) or The Prestige cost less?
Choices:
The Towering Inferno
The Prestige
The Mummy: Tomb of the Dragon Emperor
A Prairie Home Companion
Pleasantville
Curse of the Golden Flower
Training Day
Rebecca
Talk to Her
The Fifth Element
Program:
function: Find
inputs: Relativity Media
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Mummy: Tomb of the Dragon Emperor
function: And
dependencies: 1
2
function: Find
inputs: The Prestige
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Mummy: Tomb of the Dragon Emperor" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Relativity Media" .   } UNION { ?e <pred:name> "The Prestige" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Prestige