Question: Was the production cost higher for action film Terminator Salvation or for Mr. & Mrs. Smith, produced by Akiva Goldsman?
Choices: Training Day
Rebecca
The Hunchback of Notre Dame
Pleasantville
A Prairie Home Companion
Curse of the Golden Flower
The Towering Inferno
Talk to Her
The Fifth Element
Terminator Salvation
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Terminator Salvation" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } UNION { ?e <pred:name> "Mr. & Mrs. Smith" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Akiva Goldsman" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: action film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Terminator Salvation
function: And
dependencies: 1
2
function: Find
inputs: Akiva Goldsman
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Mr. & Mrs. Smith
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater
Answer: Terminator Salvation