Guides you on enriching LLM prompts with database schemas, sample data, and table relationships to improve generated SQL quality. Use this when Claude is producing inaccurate or incomplete queries against your database.
<data_sample>
Sample data for employees table:
id | name | age | department_id | salary | hire_date
1 | John Doe | 35 | 2 | 75000.0 | 2020-01-15
2 | Jane Smith | 28 | 3 | 65000.0 | 2021-03-01
</data_sample>
Source: https://github.com/anthropics/anthropic-cookbook/blob/main/capabilities/text_to_sql/guide.ipynb