Using the below pandas python dataframe. Show me how to create a new dataframe with each unique "page" and calculate the "total_impressions_count" for each unique "page" by date and include the top 5 "query" field values sorted by impressions for that given day.

EXAMPLE DATAFRAME DATA:
	id	date	query	page	country	device	clicks	impressions	ctr	avg_position	unique_hash
10988002	11409704	2022-10-21 pancakes	https://example.com/pancakes/	usa	DESKTOP	0	1	0.0	35.000000	d9e67cbc8afddd39a817fcbb9a8de3f8
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence