Question: Which was more expensive to make: Casablanca, featuring Peter Lorre as a cast member, or The Polar Express, a Critics' Choice nominee for Best Animated Feature?
Choices:
Casablanca
Code Geass
My-HiME
Ponyo on the Cliff by the Sea
The Polar Express
Superman
Magic Knight Rayearth
A Christmas Carol
Naruto Shippuden the Movie: Bonds
Anastasia
Program:
function: Find
inputs: Peter Lorre
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Casablanca
function: And
dependencies: 1
2
function: Find
inputs: Critics' Choice Movie Award for Best Animated Feature
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: The Polar Express
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Casablanca" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Peter Lorre" .   } UNION { ?e <pred:name> "The Polar Express" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Critics' Choice Movie Award for Best Animated Feature" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Polar Express