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