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