Question: Which movie made more at the box office, Robin Hood (the one whose release region is France) or Anger Management (the one that has Krista Allen as a cast member)?
Choices:
Robin Hood
Pleasantville
The Fifth Element
Talk to Her
The Hunchback of Notre Dame
The Towering Inferno
Anger Management
A Prairie Home Companion
Rebecca
Curse of the Golden Flower
Answer: Robin Hood
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Robin Hood" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "France" .   } UNION { ?e <pred:name> "Anger Management" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Krista Allen" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Robin Hood
function: And
dependencies: 1
2
function: Find
inputs: Krista Allen
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Anger Management
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
greater