Question: Which movie made more at the box office, Batman Forever (the one that has Pat Hingle as a cast member) or Tootsie?
Choices:
Curse of the Golden Flower
Talk to Her
The Hunchback of Notre Dame
Batman Forever
Pleasantville
Rebecca
Training Day
Tootsie
The Fifth Element
A Prairie Home Companion
Program:
function: Find
inputs: Pat Hingle
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Batman Forever
function: And
dependencies: 1
2
function: Find
inputs: Tootsie
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Batman Forever" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Pat Hingle" .   } UNION { ?e <pred:name> "Tootsie" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Batman Forever