Question: What costed more, Star Trek (the one whose producer is J. J. Abrams) or Chariots of Fire (the one that was nominated for BAFTA Award for Best Editing)?
Choices:
The Hunchback of Notre Dame
Chariots of Fire
Star Trek
The Fifth Element
Pleasantville
Rebecca
The Towering Inferno
Curse of the Golden Flower
Talk to Her
A Prairie Home Companion
Answer: Star Trek
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Trek" . ?e <producer> ?e_1 . ?e_1 <pred:name> "J. J. Abrams" .   } UNION { ?e <pred:name> "Chariots of Fire" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "BAFTA Award for Best Editing" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: J. J. Abrams
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Star Trek
function: And
dependencies: 1
2
function: Find
inputs: BAFTA Award for Best Editing
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Chariots of Fire
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater