Query Writing Skill Workflow for Simple Queries For straightforward questions about a single table: 1. Identify the table - Which table has the data? 2. Get the schema - Use to see columns 3. Write the query - SELECT relevant columns with WHERE/LIMIT/ORDER BY 4. Execute - Run with 5. Format answer - Present results clearly Workflow for Complex Queries For questions requiring multiple tables: 1. Plan Your Approach Use to break down the task: - Identify all tables needed - Map relationships (foreign keys) - Plan JOIN structure - Determine aggregations 2. Examine Schemas Use for EACH table to fi…