### Database Schema:
CREATE TABLE user_reviews (
	App	TEXT	NULL,
	Translated_Review	TEXT	NULL,
	Sentiment	TEXT	NULL,
	Sentiment_Polarity	TEXT	NULL,
	Sentiment_Subjectivity	TEXT	NULL,
	foreign key (App) references playstore (App)
);

CREATE TABLE playstore (
	App	TEXT	NULL,
	Category	TEXT	NULL,
	Rating	REAL	NULL,
	Reviews	INTEGER	NULL,
	Size	TEXT	NULL,
	Installs	TEXT	NULL,
	Type	TEXT	NULL,
	Price	TEXT	NULL,
	`Content Rating`	TEXT	NULL,
	Genres	TEXT	NULL
);

### User's Query:
What is the average download for entertainment apps with size no more than 1.0 M?

### Extra Knowledge:
downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';
SELECT AVG(CAST(REPLACE(REPLACE(Installs, ',', ''), '+', '') AS INTEGER)) FROM playstore WHERE Category = 'ENTERTAINMENT' AND Size < '1.0M'