Question: What does James Stewart (whose date of death is 1768-01-01) have to do with politician?
Choices:
continent
location
exported to
sexual orientation
takes place in fictional universe
occupation
permanent resident of
destination point
film crew member
talk show guest
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Stewart" . ?e_1 <date_of_death> ?pv . ?pv <pred:date> "1768-01-01"^^xsd:date . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: James Stewart
function: FilterDate
dependencies: 0
inputs: date of death
1768-01-01
=
function: Find
inputs: politician
function: QueryRelation
dependencies: 1
2