CREATE TABLE station (name VARCHAR2, lat VARCHAR2, id VARCHAR2)
CREATE TABLE trip (duration NUMBER, end_station_id VARCHAR2)

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
SELECT "T1"."name", "T1"."lat", MIN("T2"."duration") FROM "station" "T1" JOIN "trip" "T2" ON "T1"."id" = "T2"."end_station_id" GROUP BY "T2"."end_station_id"