Integrating Knowledge Graphs with Large Language Models for Natural Language Querying