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