Question: Find the id and local authority of the station whose maximum precipitation is higher than 50.
Schema: create table weekly_weather (station_id varchar, precipitation integer, PRIMARY KEY (station_id)); create table station (id varchar, local_authority varchar, PRIMARY KEY (id))
SQL: 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