Question: Did teen film The Amazing Spider-Man or did Moonrise Kingdom perform better at the box office?
Choices:
Pleasantville
A Prairie Home Companion
Moonrise Kingdom
Training Day
The Towering Inferno
Talk to Her
Rebecca
The Amazing Spider-Man
The Hunchback of Notre Dame
The Fifth Element
Program:
function: Find
inputs: teen film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Amazing Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Moonrise Kingdom
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Amazing Spider-Man" . ?e <genre> ?e_1 . ?e_1 <pred:name> "teen film" .   } UNION { ?e <pred:name> "Moonrise Kingdom" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Amazing Spider-Man