I am not allowed to use nested sub queries, how can I avoid them in the following query?
with t1 as ( select prod, month, quant from s