select f.title, p.amount, p.payment_date, sum(p.amount) over (order by p.payment_date asc) as cumulative_revenue from film as f left join inventory as i on f.film_id = i.film_id left join rental as r ...
(Sorry about that, but we can’t show files that are this big right now.) ...