Generate, optimize, and explain SQL queries with best practices. Use when writing database queries or optimizing SQL performance.