Optimize SQL query performance with expert analysis