A Two-Stage Approach towards Generalization in Knowledge Base Question Answering