Question: Which movie is longer, Django Unchained or Mission: Impossible (the one whose genre is spy film)?
Choices:
Curse of the Golden Flower
Pleasantville
Rebecca
The Towering Inferno
Talk to Her
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Mission: Impossible
Program:
function: Find
inputs: Django Unchained
function: Find
inputs: spy film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Mission: Impossible
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Django Unchained" .  } UNION { ?e <pred:name> "Mission: Impossible" . ?e <genre> ?e_1 . ?e_1 <pred:name> "spy film" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mission: Impossible