Question: How is Hamlet,  published on 1969-01-01, related to William Shakespeare,  whose Swedish Literature Bank AuthorID is ShakespeareW?
Choices:
designed to carry
after a work by
theme music
cause of death
different from
contributing factor of
material used
game mode
genre
Wikidata property
Program:
function: Find
inputs: Hamlet
function: FilterDate
dependencies: 0
inputs: publication date
1969-01-01
=
function: Find
inputs: William Shakespeare
function: FilterStr
dependencies: 2
inputs: Swedish Literature Bank AuthorID
ShakespeareW
function: QueryRelation
dependencies: 1
3
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1969-01-01"^^xsd:date . ?e_2 <pred:name> "William Shakespeare" . ?e_2 <Swedish_Literature_Bank_AuthorID> ?pv_1 . ?pv_1 <pred:value> "ShakespeareW" . ?e_1 ?p ?e_2 .  }
Answer: after a work by