SELECT avg(waga), ilosc, nazwa FROM zasob WHERE ilosc > 4 GROUP BY nazwa HAVING avg(waga)>10;