Bigquery Row Number Postgresql Tutorial Subquery