Question: Tell me the one with the bigger box office, Armageddon (which is in the disaster film genre) or The Other Boleyn Girl.
Choices:
The Other Boleyn Girl
The Hunchback of Notre Dame
Talk to Her
The Towering Inferno
Pleasantville
Armageddon
Curse of the Golden Flower
The Fifth Element
Rebecca
A Prairie Home Companion
Program:
function: Find
inputs: disaster film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Armageddon
function: And
dependencies: 1
2
function: Find
inputs: The Other Boleyn Girl
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Armageddon" . ?e <genre> ?e_1 . ?e_1 <pred:name> "disaster film" .   } UNION { ?e <pred:name> "The Other Boleyn Girl" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Armageddon