A State-transition Framework to Answer Complex Questions over Knowledge Base