Question: Which had a lower box office total: Hook or National Treasure, located in New Jersey?
Choices:
Hook
The Flintstones in Viva Rock Vegas
John Carter
Alvin and the Chipmunks: Chipwrecked
National Treasure
The Flintstones
Holes
Old Dogs
National Treasure: Book of Secrets
G-Force
Program:
function: Find
inputs: Hook
function: Find
inputs: New Jersey
function: Relate
dependencies: 1
inputs: narrative location
backward
function: Find
inputs: National Treasure
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hook" .  } UNION { ?e <pred:name> "National Treasure" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New Jersey" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hook