-> 윈도우 함수 사용하기
SELECT strftime('%Y', acquisition_date) "Acquisition year"
, COUNT(artwork_id) "New acquisitions this year (Flow)"
, SUM(COUNT(artwork_id)) over (order by strftime('%Y', acquisition_date)) "Total collection size (Stock)"
FROM artworks
GROUP BY strftime('%Y', acquisition_date)
HAVING strftime('%Y', acquisition_date) IS NOT NULL