I have a BigQuery table with ids and values. I want to get average value of last 3 record for each id.
ids
values
WITH t0 as (SELECT 1 as id, 1