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