Question: Which has a greater box office, Die Another Day (in spy film genre) or Terminator Salvation (which has Anton Yelchin as a cast member)?
Choices: The Fifth Element
Talk to Her
A Prairie Home Companion
The Towering Inferno
Die Another Day
The Hunchback of Notre Dame
Terminator Salvation
Training Day
Rebecca
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Die Another Day" . ?e <genre> ?e_1 . ?e_1 <pred:name> "spy film" .   } UNION { ?e <pred:name> "Terminator Salvation" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Anton Yelchin" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: spy film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Die Another Day
function: And
dependencies: 1
2
function: Find
inputs: Anton Yelchin
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Terminator Salvation
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
greater
Answer: Die Another Day