add query to analyze knowledge base.