Question: Did Bruce Almighty or Rocky Balboa, with Talia Shire as a cast member, do better at the box office?
Choices:
Pleasantville
The Hunchback of Notre Dame
Rocky Balboa
Curse of the Golden Flower
Rebecca
Talk to Her
Bruce Almighty
A Prairie Home Companion
Training Day
The Towering Inferno
Program:
function: Find
inputs: Bruce Almighty
function: Find
inputs: Talia Shire
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Rocky Balboa
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bruce Almighty" .  } UNION { ?e <pred:name> "Rocky Balboa" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Talia Shire" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bruce Almighty