Question: What movie, starring John Leguizamo, was shot in Paris (the one whose postal code is 75004) ?
Choices:
Monte Carlo
Rebecca
Summer of Sam
Nancy
Rust and Bone
Carnage
Julia
A Prairie Home Companion
The Happening
Miracle at St. Anna
Program:
function: Find
inputs: John Leguizamo
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Find
inputs: Paris
function: FilterStr
dependencies: 3
inputs: postal code
75004
function: Relate
dependencies: 4
inputs: filming location
backward
function: FilterConcept
dependencies: 5
inputs: visual artwork
function: And
dependencies: 2
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Leguizamo" .  ?e <filming_location> ?e_2 . ?e_2 <pred:name> "Paris" . ?e_2 <postal_code> ?pv . ?pv <pred:value> "75004" .  }
Answer: The Happening