Write SQL query to solve given problem: What is the percentage of the teams who had post season (playoff) were ranked number 1?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT CAST(SUM(CASE WHEN rank = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(name) FROM teams