Question: Which has a greater box office, Alice in Wonderland (which has cast member Crispin Glover) or Enchanted?
Choices:
John Carter
Alice in Wonderland
Enchanted
The Flintstones in Viva Rock Vegas
National Treasure: Book of Secrets
Alvin and the Chipmunks: Chipwrecked
Old Dogs
Holes
The Muppets
G-Force
Answer: Alice in Wonderland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alice in Wonderland" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Crispin Glover" .   } UNION { ?e <pred:name> "Enchanted" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Crispin Glover
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Alice in Wonderland
function: And
dependencies: 1
2
function: Find
inputs: Enchanted
function: SelectBetween
dependencies: 3
4
inputs: box office
greater