Whenever you're ready, walk me through how you'd approach this.
How would you optimize a SQL query to improve performance when dealing with large datasets?
Explain how you would diagnose the bottleneck, interpret an execution plan, and decide among indexing, partitioning, predicate pushdown, join changes, query rewrites, and incremental processing. Demonstrate your approach with SQL and describe how you would validate performance improvements in a production ETL or ELT pipeline.