SELECT day, temp,
       CASE SIGN(temp - LAG(temp) OVER (ORDER BY day))
           WHEN 1 THEN 'افزایش'
           WHEN -1 THEN 'کاهش'
           ELSE 'ثابت'
       END AS trend
FROM temperature_data;