Postgresql Lead Function Example In Math