SELECT product_id, COUNT(*) AS product_id_sum, SUM(nwa.notified) as notified FROM notify_when_arrives nwa GROUP BY nwa.product_id
SELECT nwa.product_id, (COUNT(*) + SUM(nwa.notified)) AS itog FROM notify_when_arrives nwa GROUP BY nwa.product_id