CREATE TABLE station (id VARCHAR, local_authority VARCHAR)
CREATE TABLE weekly_weather (station_id VARCHAR, precipitation INT)

Find the id and local authority of the station whose maximum precipitation is higher than 50.
SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING MAX(t1.precipitation) > 50
SELECT "t2"."id", "t2"."local_authority" FROM "weekly_weather" AS "t1" JOIN "station" AS "t2" ON "t1"."station_id" = "t2"."id" GROUP BY "t1"."station_id" HAVING MAX("t1"."precipitation") > 50