Question: Which movie cost more to make, Mary Poppins or National Treasure (the one that has Diane Kruger as a cast member)?
Choices: Mary Poppins
John Carter
National Treasure: Book of Secrets
Holes
Alvin and the Chipmunks: Chipwrecked
National Treasure
The Muppets
Old Dogs
The Flintstones
G-Force
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mary Poppins" .  } UNION { ?e <pred:name> "National Treasure" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Diane Kruger" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mary Poppins
function: Find
inputs: Diane Kruger
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: National Treasure
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
greater
Answer: National Treasure