Window functions: advanced — Learn Postgres