TAHOE: Text-to-SQL with Automated Hint Optimization from Experience — ThinkLLM