Write SQL query to solve given problem: What is the average number of students for each advisor?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT CAST(COUNT(p_id) AS REAL) / COUNT(DISTINCT p_id_dummy) AS avgnum FROM advisedBy GROUP BY p_id_dummy