Question: Was there a greater box office for Jackie Brown (the one that has Michael Keaton as a cast member) or Grindhouse?
Choices:
Curse of the Golden Flower
Grindhouse
Talk to Her
Jackie Brown
Training Day
Pleasantville
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
The Towering Inferno
Program:
function: Find
inputs: Michael Keaton
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Jackie Brown
function: And
dependencies: 1
2
function: Find
inputs: Grindhouse
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jackie Brown" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Michael Keaton" .   } UNION { ?e <pred:name> "Grindhouse" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jackie Brown