In a group by clause you cannot use the alias names for columns. That's a result of that how a select statement is processed on the db, respectively in which order the single parts of a select statement (FROM clause, WHERE clause, GROUP BY clause ...) are processed.
In the group by you have to use the real column names:
... GROUP BY "T2"."SET_GUID", "T2"."CLIENT";