Show the average duration of trips ending at each station id.
select end_station_id, avg(duration) from trip group by end_station_id
For each station, find its latitude and the minimum duration of trips that ended at the station.
select t1.name, t1.lat, min(t2.duration) from station as t1 join trip as t2 on t1.id = t2.end_station_id group by t2.end_station_id