Stop nesting subqueries. It makes SQL unreadable. Use WITH.
WITH MonthlySales AS ( SELECT Month, SUM(Amount) as Total FROM Sales GROUP BY Month ) SELECT * FROM MonthlySales WHERE Total > 10000;
It reads like a story from top to bottom, making it much easier for your team to maintain.

