Why would you need an LLM to do this? The whole point is that SQL describes it's own relationships. You literally have everything you need out of the box.
LLM All THe ThiNgS!