Question: Which costed less Willy Wonka & the Chocolate Factory or Murder on the Orient Express (the one whose production company is 20th Century Fox)?
Choices:
The Hunchback of Notre Dame
The Fifth Element
The Towering Inferno
A Prairie Home Companion
Willy Wonka & the Chocolate Factory
Curse of the Golden Flower
Pleasantville
Training Day
Murder on the Orient Express
Talk to Her
Program:
function: Find
inputs: Willy Wonka & the Chocolate Factory
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> "Willy Wonka & the Chocolate Factory" .  } 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: Willy Wonka & the Chocolate Factory