Question: Which teaching position was held by both the John Adams born on 1772-09-18 and John Stephenson who speaks Pashto?
Choices: bandleader
seiyū
make-up artist
head teacher
storyboard artist
financier
speaker of the United States House of Representatives
cinematographer
illustrator
graphic designer
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "teacher" . ?e_1 <position_held> ?e . ?e_1 <pred:name> "John Adams" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1772-09-18"^^xsd:date .  ?e_2 <position_held> ?e . ?e_2 <pred:name> "John Stephenson" . ?e_2 <languages_spoken,_written_or_signed> ?e_3 . ?e_3 <pred:name> "Pashto" .  }
Program:
function: Find
inputs: John Adams
function: FilterDate
dependencies: 0
inputs: date of birth
1772-09-18
=
function: Relate
dependencies: 1
inputs: position held
forward
function: FilterConcept
dependencies: 2
inputs: teacher
function: Find
inputs: Pashto
function: Relate
dependencies: 4
inputs: languages spoken, written or signed
backward
function: Find
inputs: John Stephenson
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: position held
forward
function: FilterConcept
dependencies: 8
inputs: teacher
function: And
dependencies: 3
9
function: What
dependencies: 10
Answer: head teacher