commented moving avg query