Question: Was the cost greater for The Illusionist (the one whose producer is Bob Yari) or Star Wars Episode II: Attack of the Clones?
Choices:
The Illusionist
Pleasantville
The Towering Inferno
The Fifth Element
The Hunchback of Notre Dame
Rebecca
Star Wars Episode II: Attack of the Clones
Curse of the Golden Flower
Talk to Her
A Prairie Home Companion
Program:
function: Find
inputs: Bob Yari
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Illusionist
function: And
dependencies: 1
2
function: Find
inputs: Star Wars Episode II: Attack of the Clones
function: SelectBetween
dependencies: 3
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Illusionist" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Bob Yari" .   } UNION { ?e <pred:name> "Star Wars Episode II: Attack of the Clones" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Star Wars Episode II: Attack of the Clones