[2401.05777] How Proficient Are Large Language Models in Formal Languages? An In-Depth Insight for Knowledge Base Question Answering