Since the inner query executes first, I thought I could just define an alias for the table and pass it on to the outer query if it's the very same table. So I tried the below.
SELECT
station_id,
num_bikes_available,
(SELECT
AVG(num_bikes_available)
FROM
bigquery-public-data.new_yourk.citibike_stations AS stations
) AS avg_num_bikes_avlb
FROM
stations
Unfortunately it won't recognize the alias stations. Is there a way to avoid typing table names repetitively in this case?