Question: Is the running time longer on Rear Window, filmed in New Jersey, or on The Three Musketeers, produced by Pandro S. Berman?
Choices:
Rear Window
Pleasantville
The Fifth Element
Training Day
Curse of the Golden Flower
The Three Musketeers
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
A Prairie Home Companion
Answer: The Three Musketeers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rear Window" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "New Jersey" .   } UNION { ?e <pred:name> "The Three Musketeers" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Pandro S. Berman" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: New Jersey
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Rear Window
function: And
dependencies: 1
2
function: Find
inputs: Pandro S. Berman
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater