Question: What learned society is quartered in a city other than Westminster?
Choices:
Royal Academy of Arts
Swansea City A.F.C.
Royal Society
Norman
American Philosophical Society
Felix Mendelssohn
Hesse
American Academy of Arts and Letters
Academy of Motion Picture Arts and Sciences
Labour Party
Program:
function: Find
inputs: Westminster
function: Relate
dependencies: 0
inputs: different from
forward
function: FilterConcept
dependencies: 1
inputs: district with city status
function: Relate
dependencies: 2
inputs: headquarters location
backward
function: FilterConcept
dependencies: 3
inputs: learned society
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "learned society" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "district with city status" . ?e_2 <different_from> ?e_1 . ?e_2 <pred:name> "Westminster" .   }
Answer: Royal Academy of Arts