Write SQL query to solve given problem: For all players who becomes coach after retirement, state the given name of coach and which teams and years did they coach?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT DISTINCT T2.nameGiven, T3.name, T3.year FROM Coaches AS T1 INNER JOIN Master AS T2 ON T2.coachID = T1.coachID INNER JOIN Teams AS T3 ON T1.lgID = T3.lgID WHERE T2.playerID IS NOT NULL AND T2.coachID IS NOT NULL