Question: Does Murder on the Orient Express (whose distributor is 20th Century Fox) or Moonrise Kingdom have the lower cost?
Choices:
Moonrise Kingdom
Training Day
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
Pleasantville
Rebecca
Murder on the Orient Express
Talk to Her
The Fifth Element
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Murder on the Orient Express
function: And
dependencies: 1
2
function: Find
inputs: Moonrise Kingdom
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Murder on the Orient Express" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "Moonrise Kingdom" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Moonrise Kingdom