In the given code, we give the subquery the alias of station_num_trips - I'm unable to understand why this is given since it isn't referenced in any other part of the query or visible in the result. The tables used in this are available on bigquery under the dataset "new_york_citibike"
SELECT
station_id,
name,
number_of_rides AS number_of_rides_starting_at_station
FROM
(
SELECT
start_station_id,
COUNT(*) number_of_rides
FROM bigquery-public-data.new_york_citibike.citibike_trips
GROUP BY start_station_id
)
**AS station_num_trips**
INNER JOIN bigquery-public-data.new_york_citibike.citibike_stations
ON station_id = start_station_id
ORDER BY number_of_rides DESC