Write SQL query to solve given problem: List the ID of all professors who are not faculty member along with the courses taught by him/her.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT T2.p_id, T2.course_id FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id WHERE T1.professor = 1 AND T1.hasPosition <> 0