Trajectory-Derived Confidence for Reliable, Resource-Aware Clinical Text-to-SQL Agents · Trustworthy AI Lab