Question: What is the relationship between John Wood (the one whose date of death is 1898-05-28) and politician?
Choices:
occupation
language of work or name
mountain range
contributing factor of
operating area
nutrient
stated in
operator
publisher
location
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Wood" . ?e_1 <date_of_death> ?pv . ?pv <pred:date> "1898-05-28"^^xsd:date . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Wood
function: FilterDate
dependencies: 0
inputs: date of death
1898-05-28
=
function: Find
inputs: politician
function: QueryRelation
dependencies: 1
2