An agent that explores a database's schema, writes a query, double-checks it with a dedicated checker step, and recovers from execution errors.