I\'m facing a very weird problem where I have a complex (long) query with multiple CTE\'s and in the end I select values from those multiple CTE\'s using cross joins. Most o