Question: Which movie made more at the box office, Halloween (the one that has Daniel Roebuck as a cast member) or The Lion King (the one whose release region is Kuwait)?
Choices:
Halloween
A Christmas Carol
The Polar Express
Magic Knight Rayearth
Wonder Woman
Anastasia
My-HiME
The Lion King
Superman
Code Geass
Program:
function: Find
inputs: Daniel Roebuck
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Halloween
function: And
dependencies: 1
2
function: Find
inputs: Kuwait
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: The Lion King
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Halloween" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Daniel Roebuck" .   } UNION { ?e <pred:name> "The Lion King" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Kuwait" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Lion King