Question: What is the relation between John Mills (the one dead in 2016-01-16) and London (the one that is the narrative location of Hereafter)?
Choices:
main subject
place of birth
has immediate cause
legislative body
applies to jurisdiction
fabrication method
country for sport
place of publication
characters
distributor
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Mills" . ?e_1 <date_of_death> ?pv . ?pv <pred:date> "2016-01-16"^^xsd:date . ?e_2 <pred:name> "London" . ?e_3 <narrative_location> ?e_2 . ?e_3 <pred:name> "Hereafter" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Mills
function: FilterDate
dependencies: 0
inputs: date of death
2016-01-16
=
function: Find
inputs: Hereafter
function: Relate
dependencies: 2
inputs: narrative location
forward
function: Find
inputs: London
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5