Implemented the knowledge query fragment.