Question: Which profession is the occupation of Andrew Jackson (the one that uses the language Swedish) and is the occupation of Martin Luther King Jr.?
Choices:
bandleader
preacher
speaker of the United States House of Representatives
make-up artist
illustrator
pastor
graphic designer
seiyū
astronaut
cinematographer
Program:
function: Find
inputs: Swedish
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: Andrew Jackson
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: occupation
forward
function: FilterConcept
dependencies: 4
inputs: profession
function: Find
inputs: Martin Luther King Jr.
function: Relate
dependencies: 6
inputs: occupation
forward
function: FilterConcept
dependencies: 7
inputs: profession
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "profession" . ?e_1 <occupation> ?e . ?e_1 <pred:name> "Andrew Jackson" . ?e_1 <languages_spoken,_written_or_signed> ?e_2 . ?e_2 <pred:name> "Swedish" .  ?e_3 <occupation> ?e . ?e_3 <pred:name> "Martin Luther King Jr." .  }
Answer: pastor