Question: What written's work narrative location is Pittsburgh, the birthplace of Andy Warhol ?
Choices:
A Single Man
Live and Let Die
The Shipping News
Flashdance
Zack and Miri Make a Porno
The Painted Veil
mustang
The Constant Gardener
Hoffa
The Perks of Being a Wallflower
Program:
function: Find
inputs: Andy Warhol
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Pittsburgh
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
backward
function: FilterConcept
dependencies: 4
inputs: written work
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Pittsburgh" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Andy Warhol" .   }
Answer: The Perks of Being a Wallflower