Help me in solving GSQ46 problem

My issue

My code

 /* Write a query to find out the average Payout across department which has more than 3 employees from the table employee.
The output table should have the name of the department and their respective average pay. */
select Department,
Avg

Learning course: Learn SQL
Problem Link: CodeChef: Practical coding for everyone