A Learn-Then-Reason Model Towards Generalization in Knowledge Base Question Answering