Text-to-SQL technology allows ordinary users to query databases easily through natural language, but accurately converting complex database structures into SQL commands poses challenges. A research team from South China University of Technology and Tsinghua University has proposed a new method—MAG-SQL (Multi-Agent Generative Model), aimed at enhancing the accuracy of this process. MAG-SQL achieves this through the collaboration of multiple agents, including a 'Soft Pattern Linker', a 'Goal-Condition Decomposer', a 'Sub-SQL Generator', and a 'Sub-SQL Refiner'.