Question: Which movie cost more to make, Mr. & Mrs. Smith (the one that has Vince Vaughn as a cast member) or Cape Fear (the one that was nominated for MTV Movie Award for Best Villain)?
Choices:
A Prairie Home Companion
Talk to Her
Training Day
Rebecca
Pleasantville
The Hunchback of Notre Dame
Mr. & Mrs. Smith
The Fifth Element
Cape Fear
Curse of the Golden Flower
Answer: Mr. & Mrs. Smith
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mr. & Mrs. Smith" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Vince Vaughn" .   } UNION { ?e <pred:name> "Cape Fear" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "MTV Movie Award for Best Villain" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Vince Vaughn
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Mr. & Mrs. Smith
function: And
dependencies: 1
2
function: Find
inputs: MTV Movie Award for Best Villain
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Cape Fear
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater