Question: Which learned society has Peter Cook, the Royal Academy of Arts member, among its members?
Choices: American Academy of Arts and Letters
The Three Musketeers
Academy of Motion Picture Arts and Sciences
Autonomous Republic of Crimea
CITV
meningitis
Royal Academy of Arts
Royal Society
American Philosophical Society
Detective Dee and the Mystery of the Phantom Flame
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "learned society" . ?e_1 <member_of> ?e . ?e_1 <pred:name> "Peter Cook" . ?e_1 <member_of> ?e_2 . ?e_2 <pred:name> "Royal Academy of Arts" .   }
Program:
function: Find
inputs: Royal Academy of Arts
function: Relate
dependencies: 0
inputs: member of
backward
function: Find
inputs: Peter Cook
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of
forward
function: FilterConcept
dependencies: 4
inputs: learned society
function: What
dependencies: 5
Answer: Royal Academy of Arts