Abaixo está uma instrução que descreve uma tarefa de geração de SQL, combinada com uma entrada que fornece mais contexto sobre os esquemas de tabela disponíveis. Escreva o código SQL que responda adequadamente à solicitação
 ###Instrução: Qual é o orçamento médio alocado para a educação para cidades com mais de 5 departamentos?
 ###Tabelas: 
CREATE TABLE City_Budget (city_id INT, category VARCHAR(50), budget DECIMAL(10,2)); INSERT INTO City_Budget (city_id, category, budget) VALUES (1, 'Education', 3000000); INSERT INTO City_Budget (city_id, category, budget) VALUES (1, 'Health', 2500000); INSERT INTO City_Budget (city_id, category, budget) VALUES (1, 'Transportation', 1500000); INSERT INTO City_Budget (city_id, category, budget) VALUES (2, 'Education', 4000000); INSERT INTO City_Budget (city_id, category, budget) VALUES (2, 'Health', 3000000); INSERT INTO City_Budget (city_id, category, budget) VALUES (2, 'Transportation', 2000000); INSERT INTO City_Budget (city_id, category, budget) VALUES (3, 'Education', 1000000); INSERT INTO City_Budget (city_id, category, budget) VALUES (3, 'Health', 800000); INSERT INTO City_Budget (city_id, category, budget) VALUES (3, 'Transportation', 700000); INSERT INTO City_Budget (city_id, category, budget) VALUES (3, 'Housing', 600000); INSERT INTO City_Budget (city_id, category, budget) VALUES (3, 'Public Safety', 500000);
SELECT city_id, AVG(budget) as 'Avg Budget Allocated to Education' FROM City_Budget WHERE category = 'Education' GROUP BY city_id HAVING COUNT(category) > 5;