You can refer to any column on this line:
select t1.ROWID/ 30000 as grpid, t1.deposits_end_bal, <*here*> from
that is included in the inner table/query t1.
Exactly what are you trying to accomplish with the list?
If the problem space is detailed, there will be that much less going...