Write SQL query to solve given problem: Please list the IDs of the top 3 professors that teaches the most courses.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT T1.p_id FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.professor = 1 GROUP BY T1.p_id ORDER BY COUNT(*) DESC LIMIT 3