to_char(shipped_date,'q') as shipped_quarter,
sum(price_charged) as revenue
from sh_orders_reportable
where product_id = 143
and shipped_date is not null
group by to_char(shipped_date,'yyyy'), to_char(shipped_date,'q')
order by to_char(shipped_date,'yyyy'), to_char(shipped_date,'q');