Learning to Retrieve: Dual-Level Long-Term Memory for Text-to-SQL Agents | ArxivCSExplorer