$a_1$ lies on the part of the function which is differentiable. For a differentiable function (subpart), only one sub-gradient is possible which is the gradient itself.
$a_2$ lies at the intersection of two $x^2$ and $2 x$. The function is not differentiable at this point (as left slope is different from right slope). Hence there are multiple sub-gradients possible at $a_2$.
$a_3$ lies on the part of the function which is differentiable. For a differentiable function (subpart), only one sub-gradient is possible which is the gradient itself.
$a_4$ lies at the intersection of two $2 x$ and $4 x-4$. The function is not differentiable at this point (as left slope is different from right slope). Hence there are multiple sub-gradients possible at $a_2$