Question: What is the link between Hamlet having edition number 21 and William Shakespeare who was born in Stratford-upon-Avon?
Choices:
original language of film or TV show
author
position held
child astronomical body
present in work
successful candidate
notable work
cites
operating area
this taxon is source of
Answer: author
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <edition_number> ?pv . ?pv <pred:value> "21" . ?e_2 <pred:name> "William Shakespeare" . ?e_2 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Stratford-upon-Avon" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Hamlet
function: FilterStr
dependencies: 0
inputs: edition number
21
function: Find
inputs: Stratford-upon-Avon
function: Relate
dependencies: 2
inputs: place of birth
backward
function: Find
inputs: William Shakespeare
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5