Question: What is the relation of Hamlet (whose genre is silent film) to William Shakespeare (whose date of baptism in early childhood is 1564-04-26)?
Choices:
head of state
source of income
after a work by
voice type
country for sport
seed team
lifestyle
works in collection
make-up artist
depicts
Program:
function: Find
inputs: silent film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: William Shakespeare
function: FilterDate
dependencies: 4
inputs: date of baptism in early childhood
1564-04-26
=
function: QueryRelation
dependencies: 3
5
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "silent film" . ?e_2 <pred:name> "William Shakespeare" . ?e_2 <date_of_baptism_in_early_childhood> ?pv . ?pv <pred:date> "1564-04-26"^^xsd:date . ?e_1 ?p ?e_2 .  }
Answer: after a work by