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