Question: Which movie cost less to make, Slumdog Millionaire or Murder on the Orient Express (the one whose production company is 20th Century Fox)?
Choices:
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
Training Day
The Towering Inferno
Murder on the Orient Express
Rebecca
Curse of the Golden Flower
Slumdog Millionaire
Pleasantville
Program:
function: Find
inputs: Slumdog Millionaire
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Murder on the Orient Express
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Slumdog Millionaire" .  } UNION { ?e <pred:name> "Murder on the Orient Express" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Slumdog Millionaire