Write SQL query to solve given problem: What is the average download for entertainment apps with size no more than 1.0 M?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT AVG(CAST(REPLACE(REPLACE(Installs, ',', ''), '+', '') AS INTEGER)) FROM playstore WHERE Category = 'ENTERTAINMENT' AND Size < '1.0M'