A neuro-symbolic framework for answering conjunctive queries