Question: What is the connection between John Adams (the one whose date of birth is 1772-09-18) to head teacher?
Choices: stated in
mother
notable people with this condition
symptoms
operating area
relative
position held
instrument
broadcast by
material used
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1772-09-18"^^xsd:date . ?e_2 <pred:name> "head teacher" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Adams
function: FilterDate
dependencies: 0
inputs: date of birth
1772-09-18
=
function: Find
inputs: head teacher
function: QueryRelation
dependencies: 1
2
Answer: position held