Modelkit has an SQL query function that makes this process easy. Check out my video demonstrating how to do it.