SchemaGraphSQL: Efficient Schema Linking with Pathfinding Graph Algorithms for Text-to-SQL on Large-Scale Databases
SchemaGraphSQL improves text-to-SQL by solving a critical bottleneck: linking source and destination tables in large databases. It models the schema as a graph and uses classical pathfinding algorithms to find minimal, relevant subschemas. This zero-shot method achieves state-of-the-art performance using only one lightweight LLM call per query.