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