Question: What is the connection between James Madison (the one whose date of death is 1812-03-06) to bishop?
Choices:
chairperson
partner
military branch
properties for this type
drug used for treatment
notable work
professional or sports partner
student of
airline alliance
position held
Answer: position held
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Madison" . ?e_1 <date_of_death> ?pv . ?pv <pred:date> "1812-03-06"^^xsd:date . ?e_2 <pred:name> "bishop" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: James Madison
function: FilterDate
dependencies: 0
inputs: date of death
1812-03-06
=
function: Find
inputs: bishop
function: QueryRelation
dependencies: 1
2