Bigquery First Value Function In Postgresql