Question: Did The Lovely Bones or The Devil Wears Prada (featuring cast member Adrian Grenier) earn more at the box office?
Choices:
The Hunchback of Notre Dame
The Fifth Element
Training Day
The Lovely Bones
A Prairie Home Companion
Talk to Her
Curse of the Golden Flower
The Towering Inferno
The Devil Wears Prada
Pleasantville
Program:
function: Find
inputs: The Lovely Bones
function: Find
inputs: Adrian Grenier
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Devil Wears Prada
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Lovely Bones" .  } UNION { ?e <pred:name> "The Devil Wears Prada" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Adrian Grenier" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Devil Wears Prada