Question: Which movie cost more, Wreck-It Ralph or Timeline (the one that is written by Michael Crichton)?
Choices: The Polar Express
A Christmas Carol
Code Geass
Ponyo on the Cliff by the Sea
Wreck-It Ralph
My-HiME
Timeline
Wonder Woman
Magic Knight Rayearth
Anastasia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wreck-It Ralph" .  } UNION { ?e <pred:name> "Timeline" . ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "Michael Crichton" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Wreck-It Ralph
function: Find
inputs: Michael Crichton
function: Relate
dependencies: 1
inputs: after a work by
backward
function: Find
inputs: Timeline
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
greater
Answer: Wreck-It Ralph