Question: Which movie cost less to make, Young Adam or Henry V (the one that has Laurence Olivier as a cast member)?
Choices:
Curse of the Golden Flower
The Hunchback of Notre Dame
Pleasantville
Training Day
The Fifth Element
Rebecca
Talk to Her
Henry V
The Towering Inferno
A Prairie Home Companion
Program:
function: Find
inputs: Young Adam
function: Find
inputs: Laurence Olivier
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Henry V
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Young Adam" .  } UNION { ?e <pred:name> "Henry V" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Laurence Olivier" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Henry V