Question: Peter Weir, screenwriter of Master and Commander: The Far Side of the World, has what connection to Hollywood, where Lenny Bruce died?
Choices:
architectural style
award disciplines or subjects
work location
original network
official symbol
sport
performer
theme music
musical conductor
professional or sports partner
Answer: work location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Peter Weir" . ?e_3 <screenwriter> ?e_1 . ?e_3 <pred:name> "Master and Commander: The Far Side of the World" . ?e_2 <pred:name> "Hollywood" . ?e_4 <place_of_death> ?e_2 . ?e_4 <pred:name> "Lenny Bruce" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Master and Commander: The Far Side of the World
function: Relate
dependencies: 0
inputs: screenwriter
forward
function: Find
inputs: Peter Weir
function: And
dependencies: 1
2
function: Find
inputs: Lenny Bruce
function: Relate
dependencies: 4
inputs: place of death
forward
function: Find
inputs: Hollywood
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7