Write SQL query to solve given problem: Among all goalies who are still alive, whose first season in NHL in before 1950. List the team names they were in.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT DISTINCT T3.name FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T2.lgID = T3.lgID AND T2.year = T3.year WHERE T1.deathYear IS NOT NULL AND T1.firstNHL < 1950